Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As far as I can gather from the fedora website, I need to edit the /etc/grub.d/40_custom script to read:

menuentry "Arch Linux" {
        set root=(hd0,5)
        linux /boot/vmlinuz-linux
        initrd /PATH_TO_initramfs??

How do I finish this, and what else do I need to modify such that I can boot into both OSes from my Fedora grub installation?

EDIT: now that I got this working, I thing it is important to note that grub2-mkconfig must be run (or it may be named grub-mkconfig) in order for the changes to such scripts as the one mentioned above to take effect.

share|improve this question
See the Arch Wiki Grub2 entry for dual booting Linux OSes. – jasonwryan Feb 21 '13 at 22:45
up vote 1 down vote accepted

You need the kernel image, initrd, and also (usually) kernel parameters so it will mount the arch root rather than your fedora root.

If your arch has an autogenerated grub.conf in its /boot/ you can probably just use (copy&paste) the menuentry from there, or make your fedora grub load the arch grub config. That way you wouldn't have to edit/update your fedora grub conf everytime arch installs a new kernel.

Something like this could work (but I haven't actually tested it):

menuentry "Switch to Arch Grub" {
    set root=(hd0,7) # your arch partition
    configfile /boot/grub/grub.cfg # your arch grub.cfg
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.