Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-17-2004, 11:42 PM   #1
LQ Newbie
Registered: Oct 2004
Posts: 1

Rep: Reputation: 0
GRUB problem after Windows re-install

I have a system which came with Windows 2000. Awhile ago, I added a second harddrive and installed Redhat 9 onto it. GRUB was installed as part of the Redhat installation and it worked great allowing me to select either OS to boot to. However, I just re-installed Windows (and converted its drive to NTFS in the process), and after the Windows install completed, GRUB no longer ran and I could only boot to Windows. I did have a Linux boot diskette which allowed me to boot to Redhat 9, so I did so and tried installing GRUB again using the command '/sbin/grub-install /dev/hda'. Now, when I boot the system, I get what appears to be a GRUB error:
"Booting 'Red Hat Linux 2.4.20-31.9'
root hd0,2
Filesystem type unknown, partition type 0xf
kernel /vmlinuz-2.4.20-31.9 ro root=LABEL=/
Error 17: Cannot mount selected partition
Press any key to continue."

The entire rest of the screen (outside the bounds of the above message text) is filled with some unknown graphic character. If I press a key to continue, then my old GRUB menu appears but is almost unreadable because it appears on top of a screen full of vertical lines. If, I select Windows 2000 in the list, then it will successfully boot to my updated Windows drive. However, if I select 'Red Hat Linux 2.4.20-31.9' then I get the same error as shown above again. I seem to have several problems:

a) It seems to initially attempt to boot directly into Red Hat 9, and only presents
the GRUB menu when that fails - I want the GRUB menu first so I have the chance to pick which OS to boot to.
b) It is unable to boot into Red Hat 9 at all (but I can still get to it from my boot diskette)
c) GRUB now has some kind of weird display problem so that it is almost unreadable (however, if I select Windows 2000, then it boots fine and has no residual display problem.

Any suggestions on how I can solve these problems and get GRUB to again correctly boot to either 'Windows 2000' or 'Red Hat 9' after prompting me?

In case it might be of use, my original grub.conf file contained the following entries:
- Red Hat Linux (2.4.20-31.9)
root (hd0,2)
kernel /vmlinuz-2.4.20-31.9 ro root=LABEL=/
initrd /initrd-2.4.20-31.9.img
- Windows 2000
rootnoverify (hd0,0)
chainloader +1

Also, my Linux boot disk which works has the following in its syslinux.cfg file:
default linux
prompt 1
display boot.msg
timeout 100
label linux
kernel vmlinuz
append initrd=initrd.img ro root=/dev/hdc5

Old 10-17-2004, 11:53 PM   #2
Senior Member
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
Your grub.conf and the boot disk don't agree where your / is located.
The grub says it's on the first drive, second partition.
"root (hd0,2)"

and the disk says it's on hdc5
"append initrd=initrd.img ro root=/dev/hdc5"

If you can get into the Redhat system with the disk, then run the command: [B]rdev[B] to find out just where the system is located. Then you can edit the grub.config to match.
Then rerun the grub-install command.

If you can't get into the Redhat system with your boot disk, use CD#1 and start with the command: linux rescue
Old 10-25-2004, 10:44 PM   #3
LQ Addict
Registered: Oct 2003
Location: Australia
Distribution: MX 17
Posts: 5,299

Rep: Reputation: Disabled
root (hd0,2) does not refer to the root but to /BOOT partition and is the third partition well alllegedly

i prefer you post your /etc/fstab to be sure but it could be

title linux
root (hd0,2)
kernel /boot/vmlinuz root=/dev/hda5
initrd /boot/initrd.img

title xp
rootnoverify (hd0,0)
chainloader +1


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Accidental Install of Windows Second....Install GRUB? Brnzwngs Linux - Newbie 6 08-12-2005 02:10 PM
add windows install to GRUB menu sall Linux - Hardware 4 07-29-2005 06:41 PM
GRUB + Windows Install =What!? It's not Overwritten? ellakano Linux - Software 7 09-12-2004 06:57 PM
How to install GRUB from within Windows XP dubl59zy Linux - General 1 08-14-2004 12:10 AM
Windows XP corrupted after RH-Linux9 Grub install sajkumar Linux - Software 4 08-29-2003 02:30 PM > Forums > Linux Forums > Linux - Newbie

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

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