LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-25-2003, 03:42 AM   #1
eco2geek
Member
 
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)
makeactive
chainloader +1
boot

# 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
boot
 
Old 10-25-2003, 03:55 AM   #2
snot
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
rootnoverify 
(hd0,0)
makeactive
chainloader 
+1
boot 
you did mess up i guess,
try
PHP Code:
# Windows section
title Microsoft Windows 98SE
root 
(hd0,0)
makeactive
chainloader 
+
it will work i hope

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


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration