Ask Your Question
1

grub2 detects ubuntu but doesn't add to grub menu.

asked 2012-02-20 12:28:22 -0500

fedvasu gravatar image

updated 2012-05-07 10:38:38 -0500

i installed ubuntu 11.10 and then installed Fedora 16 and installed grub2 of fedora on MBR , overwriting Ubuntu's grub2.(while installing fedora anaconda detected ubuntu but it somehow didn't add to grub menu :()

when i say in fedora 16

grub2-mkconfig -o /boot/grub2/grub.cfg

here's the output

Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.6-3.fc16.i686
Found initrd image: /boot/initramfs-3.2.6-3.fc16.i686.img
Found linux image: /boot/vmlinuz-3.1.0-7.fc16.i686
Found initrd image: /boot/initramfs-3.1.0-7.fc16.i686.img
No volume groups found
Found Ubuntu 11.10 (11.10) on /dev/sda2
done

but my grub.cfg doesn't contain any entry for Ubuntu!! did i screw up big time?

EDIT: I solved by booting ubuntu live-cd and upgrading existing ubuntu install.

To avoid this problem, use separate partitions for /boot for both os , only install one of it's grub on MBR and when logged into one of the OS (OS with grub on MBR) , update grub.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2012-03-14 14:06:16 -0500

mether gravatar image

You should file a bug report against Anaconda.

edit flag offensive delete link more
1

answered 2012-02-25 20:02:41 -0500

tjw344 gravatar image

updated 2012-02-25 20:04:29 -0500

Ok. I had a problem with this because I use an EFI system. First, is the grub2 menu showing updated version of Fedora? If not, it is probably because the command

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

is putting the config in a different location than the bios is looking. For instance, the command I use to update grub2 is

grub2-efi-mkconfig -o /boot/grub2-efi/grub.cfg

This is where my SecureCoreTiano efi looks for the config files for booting. Do Not use my command. What I am suggesting is that you look in your boot folder. Look for grub.cfg files, and check the contents. Their is likely to be more than one of them. The one that does not have the ubuntu entries will be the one that your bios is looking at, and is not being updated with your command. The grub.cfg that does contain the ubuntu entries is where you keep writing grub.cfg with the above command. All you need to do is change the command as I did to write to the proper location. Let me know what you come up with.

edit flag offensive delete link more
0

answered 2012-02-21 14:17:20 -0500

Marcio Riccardo gravatar image

try install system-config-boot

GL

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-02-20 12:28:22 -0500

Seen: 3,334 times

Last updated: May 07 '12