LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-03-2008, 07:44 PM   #1
hattrick
Member
 
Registered: Oct 2007
Posts: 32

Rep: Reputation: 15
[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..

Last edited by hattrick; 11-03-2008 at 07:48 PM.
 
Old 11-03-2008, 08:09 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,130

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
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.
 
Old 11-03-2008, 08:23 PM   #3
hattrick
Member
 
Registered: Oct 2007
Posts: 32

Original Poster
Rep: Reputation: 15
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?
 
Old 11-03-2008, 08:47 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,130

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
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.
 
Old 11-04-2008, 07:15 AM   #5
hattrick
Member
 
Registered: Oct 2007
Posts: 32

Original Poster
Rep: Reputation: 15
Awesome! I'll try it, ty so much for the help!!
+rep
 
Old 11-05-2008, 05:02 PM   #6
hattrick
Member
 
Registered: Oct 2007
Posts: 32

Original Poster
Rep: Reputation: 15
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?
 
Old 11-05-2008, 09:28 PM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,523

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
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.
 
Old 11-05-2008, 09:39 PM   #8
hattrick
Member
 
Registered: Oct 2007
Posts: 32

Original Poster
Rep: Reputation: 15
..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

Last edited by hattrick; 11-05-2008 at 09:40 PM.
 
Old 11-05-2008, 11:05 PM   #9
hattrick
Member
 
Registered: Oct 2007
Posts: 32

Original Poster
Rep: Reputation: 15
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!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adding multiple linux OS's to grub highlandish Linux - Newbie 4 02-23-2008 11:01 PM
2HDDs, 2 OS's (Grub Q) phantom_cyph Linux - Software 2 05-14-2007 10:18 PM
So exactly how many os's can Grub handle? mebrelith Fedora 2 03-16-2005 04:37 PM
2 harddrives, 2 os's, 1 grub? arg!! nickwu2000 Linux - Newbie 1 03-31-2003 11:23 AM
using grub to boot multiple linux os's Smerk Linux - Software 9 03-21-2003 12:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration