The hard disk inside my laptop looks like this
[ Win 8 ][ SWAP ][ Linux ][ Data ]
What are the steps to configure the GRUB2 to give me the option to dual-boot when I turn my laptop on?
I have setup a dual boot system with Fedora 21 and Arch Linux. The problem is that Fedora doesn't see my encrypted Arch installation. The installations are on separate partitions and do not share anything apart from hard disk space. I have run the following commands as root in Fedora:
Code:
grub2-install /dev/sda
Code:
os-prober
Code:
grub2-mkconfig -o /boot/grub2/grub.cfg
When I rebooted, Fedora was the only OS entry showing in the GRUB menu.
There was a suggestion from one of the members of the Arch forums that I should write the entry myself into /etc/grub.d/40_custom and then re-build the grub configuration or take the Arch entry from Arch's /boot/grub/grub.cfg and just paste it into the 40_custom in Fedora and rebuild.
How do I boot from a live Arch USB stick into the installed Arch and do as stated above? How would it work? Thanks in advance for your replies.
hiiii all
I had installed Windows 7 on /dev/sda1 and /dev/sda2 and then I installed Centos 7.
Since then I cant find Windows entry in the Grub.
And i had tried to use all kind of solution found on the net I still cant see any entry.
I had edited 40_custom script adding:
cat <<EOF
menuentry "windows 7" {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
search --no-floppy --fs-uuid --set=root FCDAE998DAE95006
chainloader +1
}
EOF
then this command grub2-mkconfig -o /boot/grub2/grub2.cfg
[root@localhost]# grub2-mkconfig -o /boot/grub2/grub2.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-123.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-123.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-93890f189dec4b309c004fdce969ca5a
Found initrd image: /boot/initramfs-0-rescue-93890f189dec4b309c004fdce969ca5a.img
then this
[root@localhost]# tail -10 /boot/grub2/grub.cfg
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
[root@localhost]#
Still cant find windows in grub
please help me with this guys
thanks
Hi All,
I recently decided to tryout Linux and dual booted my laptop (originally just had windows 8) with Xubuntu. Now I want to try out Kali Linux. So I downloaded Kali and made a bootable USB, the problem is that when I try to boot from the USB it just brings up the grub menu asking me to select Xubuntu, Windows etc. I've changed the boot menu in the BIOS but that has no effect.
I've tried booting into windows and the restarting by holding shift but when I select the usb option it just says:
"system doesn't have any USB boot option. Please select other boot option in Boot Manager Menu"
and then returns to the grub menu. I don't understand because I used a bootable usb to install xubunto?
I'd be really grateful if anyone can help me out with this!
Thanks
I want to change the menu on a Suse 12 Enterprise system.
I edit the /etc/default zip12grub.conf file execure grug2-mkconfig. Then reboot the system and no changes occur. The zip12grub.conf seems like the correct file to update so I am at a loss as to what the correct process would be.
cat zipl2grub.conf
## This is the template for '@zipldir@/config' and is subject to
## rpm's %config file handling in case of grub2-s390x-emu package update.
[defaultboot]
defaultmenu = menu
[grub2]
target = @zipldir@
ramdisk = @zipldir@/initrd,0x2000000
image = @zipldir@/image
parameters = "root=@GRUB_DEVICE@ @GRUB_EMU_CONMODE@ @GRUB_CMDLINE_LINUX@ @GRUB_CMDLINE_LINUX_DEFAULT@ initgrub quiet splash=silent "
[skip-grub2]
target = @zipldir@
ramdisk = @zipldir@/initrd,0x2000000
image = @zipldir@/image
parameters = "root=@GRUB_DEVICE@ @GRUB_CONMODE@ @GRUB_CMDLINE_LINUX@ @GRUB_CMDLINE_LINUX_DEFAULT@ "
[test-grub2]
target = @zipldir@
ramdisk = @zipldir@/initrd,0x2000000
image = @zipldir@/image
parameters = "root=@GRUB_DEVICE@ @GRUB_CONMODE@ @GRUB_CMDLINE_LINUX@ @GRUB_CMDLINE_LINUX_DEFAULT@ "
:menu
target = @zipldir@
timeout = 16
default = 1
prompt = 1
1 = grub2
2 = skip-grub2
3 = test menu grub2
grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/image-3.12.39-47-default
Found initrd image: /boot/initrd-3.12.39-47-default
Found linux image: /boot/image-3.12.28-4-default
Found initrd image: /boot/initrd-3.12.28-4-default
done
reboot
Storage cleared - system reset.
zIPL v1.24.1-38.17 interactive boot menu
0. default (grub2)
1. grub2
2. skip-grub2
Note: VM users please use '#cp vi vmsg <input> <kernel-parameters>'
Please choose (default will boot in 16 seconds):
Booting default (grub2)
I have windows 7 laptop, Dell. I downloaded the newest edition of Ubuntu (Twice)to see if it would install and dual boot beside Windows 7. Unsucessful on several attempts. Once I reboot the computer it will give ma a choice of 7 or Ubuntu. I decide on Ubuntu it starts to boot into Ubuntu than a black screen with all types of Kernel error codes that i'm unfamilur with. one is---(1.292618) kernel panic-not syncing: no working init found.
Try passing init option to Kernel (see Linux Documentation/init.txt for guidance..
I am not sure what all this means any help would be appreactiated...
I'm trying to install Debian 7.8 on my eMac G4 (700mhz, 640 Mb RAM). I've tried multiple methods but I keep running into problems one way or another. Since my eMac only has a Sony CD-RW drive and a busted Ethernet port I can't install from a DVD nor a netinstall CD which would be the easiest options unfortunately. First I tried using the multiple CD option, which seemed promising at first; until I had to swap to the next disk during "configure the package manager". it won't eject the CD when I use the eject key on my keyboard (imac g3 pro keyboard so I go back to the main menu and select the "eject a CD from the drive" option at the near bottom then things seem to get clustered. When I tried inserting the next disk, nothing else will install. It keeps telling me I need disk 1 again through every step. Then at the end, it tells me the installation is complete before I even install a desktop environment from the final CD. Then I just end up booting into garbled text and errors.
After all of that nonsense, I tried making a bootable USB from the DVD ISO with the OS X terminal. This method usually works with just about anything I've done before. However for some reason Debian apparently simply refuses to boot. As I tried selecting it on the boot menu on the start up, it gives me a black screen then goes straight back to the boot screen with disordered graphics. When I tried booting it from open firmware, it goes to the first screen, then when I hit enter to actually boot to the installer, nothing but errors. Finally I tried booting it straight from the ISO file on the hard drive, that method didn't even work at all.
Could someone point out what I'm doing wrong if possible or perhaps recommend me a different option?
I have an old debian distro installed on hard disk. The distro is on sda1 partition. I also have Win7 on a seperate hard disk which is on sdb1.
When I boot up, GRUB bootloader opens up and gives me the option to select either OS.
So I recently installed a new debian distro and put into my sda2 partition.
But now when I boot up, GRUB only sees the new distro in sda2 and I can't access the distro in sda1 or Win7 in sdb1.
On one thread someone said mounting the partitions and then using 'update-grub' will resolve the problem.
I tried it and re-booted, but GRUB still only offers the newly installed distro in sda2.
Can someone help please?
Did it again!
Last week, with help from this forum, I was able to install Linux Mint 17.1 dual boot with Windows 8.1. It worked so well, I decided to explore other Linux distros recommended by forum members as some I wanted to check out.
I was using Unetbootin to download and install these as live sessions on my Windows 8.1 partition.
On my last such download, something went wrong, and no doubt I caused the error, but no clue as to how.
When I opened up this PC, I got the normal dual boot option for Windows and Mint. When I selected Windows, I found an additional dual boot option between it and Unetbootin! Somehow I created a partition (?) on my C Drive for Unetbootin (see Thumbnail below).
This Unetbootin option only goes to a page for me to choose another OS. Further, when I rebooted, the Windows/Mint dual boot option no longer existed, just the Windows/Unetbootin one.
Been checking out various articles and websites about BCD/MBR repair, but nothing definitive (that I can understand) about modifying these to delete the Unetbootin partition and restoring the Windows/linux dual boot.
Naturally, this is a newbie land mine area, so I'm very reluctant to try anything I can't fully understand, which is the category everything I've Googled on this topic falls into.
Anyone know how I can resolve this short of a complete start over
installation based on steps that basically a PC fence post can follow?
TIA
Cheers!
Hello All. This is my first post here. I am worse than a newbie; I'm a PC dinosaur! Not joking either.
Recently got a Dell Inspiron 3048 with Windows 8.1 pre installed. As I am a die hard XP user (my other PC is a Dell Dimension 2400), and seeing that PC's days may be numbered, I want to start using Linux, and decided Mint 17.1 would be first on the list.
Ordered a Linux Mint 17.1 boot disk and went to install it. At the option for a dual boot with Windows, I got lost, and did not understand the "other" choice versus making Linux the only OS on the PC. I wound up wiping my HDD and lost contact with Windows 8.1. Fortunately, the Dell Tech I got at Dell Support was able to walk me through getting Windows back up, but the only way I can now access Mint 17.1 is with the boot disk, but there is no set up options as it is already set up, even though incorrectly for a dual boot.
How do I wipe out Linux without losing Windows 8.1 as well so I can re install Linux and this time make the correct selection for a dual boot?
Anyone willing to respond please do so small and slow so I can follow.
TIA.
BTW, I have tried installing Zorin OS 9 Ultimate on my XP machine via DVD and USB, but I can't get past the f1/f2 loop, even though I have reconfigured my boot sequence according to the drive I'm installing from. Zorin support has been MIA on this. Anyone having a similar problem?
Cheers
Hi,
I am new to the installation of Linux, and wish to install 3 different distro's on the same hard disk.
I have installed Centos 7 successfully as follows :
The /boot is /dev/sda2
/dev/sda1 is listed as unknown so i assume it is the Master Boot Record with Grub installed. I do obtain the option to boot to the various kernels after updating the OS.
/dev/sda3 is a Linux LVM with the various partitions i required.
When i installed the CentOS 7 the installer stated an error about the bootable partition - which was effectively /boot, so i moved this to /dev/sda2.
What i am not sure about is that if i want to install 2 other Linux OS's will i run out of /dev/sdaX assignments ?.
I read somewhere that there are 4 maximum that can be used a /boot (SDA1, SDA2, SDA3, SDA4), so does this mean i can only install one other OS ?.
Any guidance gratefully received. Thanks.
Regards,
Richard.