Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,5)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.11-1.1369_FC4)
root (hd0,5)
kernel /boot/vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=Fedora rhgb quiet
initrd /boot/initrd-2.6.11-1.1369_FC4.img
title WindowsXP Pro
rootnoverify (hd0,0)
chainloader +1
title Ubuntu
rootnoverify (hd0,5)
chainloader +1
and this is what I get when I type in fdisk -l
Code:
[root@700m ~]# fdisk -l
Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 2040 16386268+ c W95 FAT32 (LBA)
/dev/hda2 2041 4864 22683780 f W95 Ext'd (LBA)
/dev/hda5 * 2041 3315 10241406 83 Linux
/dev/hda6 3316 4717 11261533+ 83 Linux
/dev/hda7 4718 4864 1180746 82 Linux swap / Solaris
Disk /dev/sda: 262 MB, 262144000 bytes
32 heads, 33 sectors/track, 484 cylinders
Units = cylinders of 1056 * 512 = 540672 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 485 255984 b W95 FAT32
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(0, 1, 1) logical=(0, 0, 33)
Partition 1 has different physical/logical endings:
phys=(254, 31, 33) logical=(484, 27, 5)
what I couldn't understand is why Fedora thinks it's on hda5, when it's supposed to be on hda6
I can still mount Ubuntu and I can see that all the files are there untouched, and I tried changing grub.conf to hda3,hda4,hda5,hda6 and I always get the same error
Originally posted by homey If Fedora is on /dev/hda6 then that is correct and your Ubumpu entry is incorrect.
While in Fedora, mount the partition /dev/hda5 and get the correct information for your grub.conf that should be used for the Ubuntu entry.
I did as you said.
I mounted the partition, looked up the grub.conf in Ubuntu, copied over the 'correct' information, and ended up with this new but similiar error:
Code:
Booting 'Ubuntu'
root (hd0,4)
Filesystem type is ext2fs, partition type 0x83
chainloader +1
Error 13: Invalid or sunporrted executable format
Press any key to continue...
I think the Unbuntu grub.conf should look more like other linux entries.
Here is an example but you need to put the correct vmlinuz and initrd information.
title Ubuntu Linux
root (hd0,4)
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda5 ro quiet splash vga=792
initrd /boot/initrd.img-2.6.10-5-386
Is there a reason you want to chainload ubuntu?
title Ubuntu
root (hd0,4)
chainloader +1
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda4 ro quiet splash
initrd /boot/initrd.img-2.6.10-5-386
nyheat: It would be helpful if you would post the Ubuntu (hda5) /boot/grub/menu.lst and /etc/fstab in their entireties.
Did the partition numbering for the Ubuntu partition change as a result of installing FC?
You may find that the Ubuntu and/or swap partitions are misidentified in the Ubuntu fstab, but I would normally expect a kernel panic, not a grub error, if that was the case.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.