PDA

View Full Version : [ubuntu] 11.10 dual boot no grub menu



ollnixon
February 13th, 2012, 08:15 AM
I have been trying to set up a dual boot ubuntu for a couple of days with no luck.

With a clean machine, installing Windows 7 and then Ubuntu 11.10, on reboot, I do not get a grub menu, instead it goes straight into Windows.

I tried installing Fedora 16 which worked as expected (Grub menu with Windows and Fedora options).

Formatting the Fedora partition and re-installing Ubuntu over it gives me the exact same grub menu (Fedora and Windows). How can I fix this?


============================= Boot Info Summary: ===============================

=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (,msdos3)/grub2 on this drive.
=> Syslinux MBR (4.04 and higher) is installed in the MBR of /dev/sdb.

sda1: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /Boot/BCD

sda2: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files: /Windows/System32/winload.exe

sda3: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files: /grub2/grub.cfg /grub2/core.img

sda4: __________________________________________________ ________________________

File system: Extended Partition
Boot sector type: Unknown
Boot sector info:

sda5: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 11.10
Boot files: /boot/grub/grub.cfg /etc/fstab

sda6: __________________________________________________ ________________________

File system: swap
Boot sector type: -
Boot sector info:

Tranas
February 13th, 2012, 09:50 AM
Appears to be a GRUB problem exclusive to Ubuntu. They don't seem to care.

https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/929322

oldfred
February 13th, 2012, 05:03 PM
Your grub in sda is still booting to the Fedora boot partition in sda3, but Ubuntu is in sda5. Normally with Ubuntu Desktop you do not need a separate /boot partition.

You did not post full boot script so I cannot tell if the rest of Ubuntu is correct or not.

Boot repair should let you reinstall Ubuntu's grub2 to the MBR to boot from sda5 or you can manually reinstall. This does not include installs where you have a separate /boot partition as that is not common for Desktops.

#Comments are anything after the #, enter commands in terminal session
#Install MBR from LiveCD/usb, Ubuntu install on sda5 and want grub2's bootloader in drive sda's MBR:
#Find linux partition, change sda5 if not correct:
sudo fdisk -l
#confirm that linux is sda5
sudo mount /dev/sda5 /mnt
#If grub 1.99 with Natty or later uses boot not root.
sudo grub-install --boot-directory=/mnt/boot /dev/sda

# If no errors on previous commands reboot into working system and run this:
sudo update-grub

YannBuntu
February 13th, 2012, 05:59 PM
Hello
Boot-Repair can solve this, but you need to unselect the "Use separate /boot" option.