Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In my computer there are three operating systems..

First i installed Windows 7 then i installed ubuntu 10.04

and in last i installed redhat 5.1

NOw i know one thing as i installed redhat then grub installed by ubuntu will be overwritten by redhat grub..and i know that to see all three operating syetm at the startup i have to make entry of /boot/grub/cfg into /boot/grub/menu.lst file..

Now the problem is like this

In te previous version it was very easy to play with ubuntu grub file but now this file is modified..NOw i dont know what is to be picked up from ubuntu /grub/grub.cfg file so that i can make entry in redhat /boot/grub/menu.lst file..

In short i am not able to put entry of grub.cfg file into redhat menu.lst file.. will u help me plz i want to work on these thre eOS..

share|improve this question
    
is there any solution of this problem –  Deepak Narwal Jun 5 '10 at 2:50

1 Answer 1

Recent releases of Ubuntu has been shipping with grub2 which uses different syntax for its configuration file from grub1 (which is what redhat uses, I believe).

If you have a look at the /boot/grub/grub.cfg file in ubuntu you should find a section which looks like this

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,3)'
    search --no-floppy --fs-uuid --set 5cf7c0d3-8b4d-428f-a54a-ea43ce486654
    linux /boot/vmlinuz-2.6.32-21-generic root=UUID=5cf7c0d3-8b4d-428f-a54a-ea43ce486654 ro quiet splash
    initrd  /boot/initrd.img-2.6.32-21-generic
}

which translates to following menu.lst entry

title Ubuntu, with Linux 2.6.32-21-generic
root (hd0,3)
kernel /boot/vmlinuz-2.6.32-21-generic root=UUID=5cf7c0d3-8b4d-428f-a54a-ea43ce486654 ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic

Of course, you will need to adjust disk UUIDs and partition numbers as per your configuration.

share|improve this answer
    
THe latest kernels won't boot on grub. They require grub2. You can configure grub to chain into grub2. –  BillThor Jun 5 '10 at 19:41

Your Answer

 
discard

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