Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-25-2003, 02:42 AM   #1
Registered: Feb 2003
Location: Portland, OR
Distribution: openSUSE 10.3, among others
Posts: 141
Blog Entries: 1

Rep: Reputation: 15
Question A little GRUB ate my hard disk - comments?

Seeking comments on what I did wrong.

Since my experiment with creating a GRUB boot floppy was successful, I decided to try installing GRUB on my Win98/Red Hat computer. What a mess. Here was the partition layout prior to the fiasco:

hda1 = FAT32 (C:\) [Win98]
hda2 = /home (ext3)
hdb1 = FAT32 (D:\)
hdb2 = / (ext3) [Red Hat 9]

After installing it, Linux would boot just fine, but Windows wouldn't. GRUB would display, "Loading Stage2..." and hang.

I tried very hard to restore from backup to hda1 without repartitioning the entire drive. I was unsuccessful. Using the "fdisk /mbr" command from a DOS boot disk did not erase GRUB from the MBR. Reformatting hda1 and then using "fdisk /mbr" did, but it hosed the partition table. Eventually I had to move the contents of hda2, /home, back to hdb2 and delete and recreate and reformat the partitions on hda, and set hda1 as the active partition.

(Thank God for networks and backups. "hdb" was unaffected.)

(The only difference between the boot floppy and booting into GRUB on the hard drive was that the boot floppy loaded "stage 2" before the GRUB GUI was displayed; from the hard drive, "stage 2" loaded - or not - after the GUI. I have no idea if that even makes a difference.)

Here's my /boot/grub/grub.conf file:

# Boot to Windows (the first entry) by default
default 0

# If for some reason that doesn't work, boot Linux
fallback 1

# Use the background image supplied by Red Hat in /boot/grub
splashimage (hd1,1)/boot/grub/splash.xpm.gz

# Boot to Windows if no choice is made after 15 seconds
timeout 15

# Windows section
title Microsoft Windows 98SE
rootnoverify (hd0,0)
chainloader +1

# Red Hat section
title Red Hat 9 (Shrike)
root (hd1,1)
kernel /boot/vmlinuz-2.4.20-20.9 root=/dev/hdb2 ro vga=normal mem=128M hdc=ide-scsi
Old 10-25-2003, 02:55 AM   #2
LQ Newbie
Registered: Oct 2003
Location: Belgium europe
Distribution: Gentoo for the moment
Posts: 10

Rep: Reputation: 0
PHP Code:
# Windows section
title Microsoft Windows 98SE
you did mess up i guess,
PHP Code:
# Windows section
title Microsoft Windows 98SE
it will work i hope

Last edited by snot; 10-25-2003 at 03:16 AM.


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
Vista ate my GRUB! springsteenfan Linux - Software 2 09-19-2005 05:16 PM
GRUB hard disk error 0perat0r Linux - Newbie 3 02-24-2005 12:17 AM
Grub or LILO on a new hard disk MCG Linux - Hardware 1 11-17-2004 04:59 PM
GRUB - adding new hard disk gedi1 Linux - General 2 06-16-2004 07:16 PM
1st HDD = RH9.0 (grub) ... How do I modify grub when adding 2nd hard disk ? Onyx^ Linux - Software 1 09-05-2003 09:16 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:11 AM.

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
Open Source Consulting | Domain Registration