LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   [GRUB] can't find other OS's (https://www.linuxquestions.org/questions/linux-newbie-8/%5Bgrub%5D-cant-find-other-oss-680932/)

hattrick 11-03-2008 07:44 PM

[GRUB] can't find other OS's
 
Hey everyone- hope all is well?

I recently partitioned my hard drive and added Fedora core 8 to the already core 9 / xp duo, but when I use the grub all it boots is fc8.. Not too sure how to exactly edit the grub without COMPLETELY ruining everything..

I know where the operating systems are, as far as /dev/hd#, if that helps?


=(

thanks in advance..

syg00 11-03-2008 08:09 PM

Grub config file is /boot/grub/menu.lst. There will be one on the Fedora9 partition as well. Normally you could just copy/paste from one to the other, but if you installed Fedora 9 into an ext3 partition it will (default) be incompatible with the grub in Fedora 8 due to structiral changes in ext3 (to accommodate ext4).
You might be best using Fedora 9 grub to control the lot.

hattrick 11-03-2008 08:23 PM

can u help me a little more, or point me in the right direction?

Am I better formatting and starting over with xp, then 8, then 9?

syg00 11-03-2008 08:47 PM

No re-install(s) needed.
Easiest is to boot the Fedora9 CD and re-install it's grub to the MBR. You will then have to manually add an entry to menu.lst for Fedora 8 - worry about that later. Just follow the prompts - get into rescue mode, "chroot /mnt/sysimage", then "grub-install /dev/sda".
Reboot.

hattrick 11-04-2008 07:15 AM

Awesome! I'll try it, ty so much for the help!!
+rep

hattrick 11-05-2008 05:02 PM

Just a quick update..

Ran the fc9 rescue disk, and it found the Windows OS, and my fc8, both the most updated kernel version and the previous version, but it still doesn't recognize my fc9 installation. I get this error:

root (hd0,1)
filesystem type is ext2fs, partition type 0x83
kernel /boot/vmlinuz-2.6.25.14-108.fc9.i686 ro root=UUID=blah blah blah -blah blah rhgb quiet

error 2: bad file or directory type

press any key to continue..

any thoughts?

yancek 11-05-2008 09:28 PM

So you can boot windows and Fedora 8 now? If you installed Fedora 8 after Fedora 9 you are probably using the Fedora 8 Grub and you need an entry for Fedora 9. Or, did you re-install the Fedora 9 Grub as suggested? It would help if you posted the contents of /boot/grub/menu.lst if you can access it and also your partition information, command 'fdisk -l' run as root, lower case letter L, not a number one.

hattrick 11-05-2008 09:39 PM

..yes, I can boot windows & fc8. I popped in the Fc9 disk and ran the rescue mode.
*note: before I did the rescue mode I could not access the windows partition
THANK YOU FOR THE HELP!! =)

fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x14ec0c0b

Device Boot Start End Blocks Id System
/dev/sda1 * 1 12748 102396928 7 HPFS/NTFS
/dev/sda2 12749 16664 31455270 83 Linux
/dev/sda3 16665 16729 522112+ 82 Linux swap / Solaris
/dev/sda4 16730 19457 21912660 5 Extended
/dev/sda5 16730 19457 21912628+ 83 Linux






# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,4)
# kernel /boot/vmlinuz-version ro root=/dev/sda5
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,4)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.26.6-49.fc8)
root (hd0,4)
kernel /boot/vmlinuz-2.6.26.6-49.fc8 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.26.6-49.fc8.img
title Fedora (2.6.26.5-28.fc8)
root (hd0,4)
kernel /boot/vmlinuz-2.6.26.5-28.fc8 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.26.5-28.fc8.img
title Fedora (2.6.25.14-108.fc9.i686)
root (hd0,1)
kernel /boot/vmlinuz-2.6.25.14-108.fc9.i686 ro root=UUID=2962cbcd-edc7-479a-9a74-28eb4878f13e rhgb quiet
initrd /boot/initrd-2.6.25.14-108.fc9.i686.img
title Other
rootnoverify (hd0,0)
chainloader +1

hattrick 11-05-2008 11:05 PM

update..

so I used the instructions here: http://fedoraforum.org/forum/showthread.php?t=194442

I IM'd a buddy of my old grub (from fc8) and just added the OLD fedora core 8 info to the NEW fc9 /boot/grub/grub.conf..

works awesome =)

ty for the help!!


All times are GMT -5. The time now is 06:46 PM.