4

Ok, so I installed Fedora on a dual boot Windows 7 and Ubuntu machine to see which distro I liked better, and now Ubuntu doesn't appear in the GRUB menu. In fact, Windows doesn't either. There are only two items, Fedora and Other (which boots Windows) How do I get GRUB to recognize all installed operating systems?

1 Answer 1

3

If you want to keep the Linux distributions as separate as possible, I would suggest only installing one distro's boot loader to the MBR (e.g. /dev/sda), and install the other distros' boot loaders into their respective partitions (e.g. /dev/sda1). For whichever boot loader you've installed to the MBR, add entries that chain load to the partitions holding the other boot loaders.

If you use Ubuntu's grub as the main boot loader, you can add extra entries by editing /etc/grub.d/40_custom and adding entries like:

menuentry "Other Linux" {
    # The partition holding the boot loader in Grub's syntax.
    set root=(hd0,2)
    chainloader +1
}

After saving the file, run sudo update-grub to assemble the Grub configuration file.

This should give each Linux distro its own boot loader configuration to play with and reduce the chance of them stepping on each others feet. It will even handle the case of different distros expecting different boot loaders.

3
  • I currently cannot boot into Ubuntu, and the GRUB that appears on boot is Fedora's version of GRUB. What I want to happen when I turn the computer on, GRUB lists all 3 operating systems.
    – nahano
    May 11, 2011 at 13:37
  • Oh and there is nothing called sda or similar in Ubuntu's /dev/ but there is in Fedora's /dev/
    – nahano
    May 11, 2011 at 13:44
  • Maybe udev has not created it. Sep 21, 2014 at 12:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .