Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have ubuntu 10.10 on sda1. Archlinux with its bootloader, Grub1, on sda3. Ubuntu's bootloader grub2 in on sda. How can I create an entry for sda3 Grub1 in ubuntu's sda Grub2. Simply put, On bootup I should see Grub2 first and it should have an entry for Grub1.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

You can just put

# (1) Arch Linux
 echo "Adding Arch Linux" >&2
 cat << EOF
 menuentry "Arch Linux" {
 set root=(hd0,2)
 chainloader +1
}

in /etc/grub.d/40_custom and then run

sudo update-grub

Reference: http://members.iinet.net/~herman546/p20/GRUB2%20Configuration%20File%20Commands.html#chainloader_boot_entry

share|improve this answer

GRUB2 supports the chainloader command ( that instead of booting directly a kernel, simply 'pass the stick' to the next boot loader ).

So in your /boot/grub.cfg file you should add something that resemble this:

# (1) Arch Linux
 menuentry "Arch Linux" {
 set root=(hd0,2)
 chainloader +1
}

Be aware that if you update your grub2 configuration by its tool ( update-grub ) you will need to apply this setting again.

share|improve this answer

Your Answer

 
discard

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.