LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-22-2002, 08:06 AM   #1
Fredf
LQ Newbie
 
Registered: Nov 2002
Distribution: RH 8.0 Gnome
Posts: 3

Rep: Reputation: 0
Unhappy Trashed Grub -- Help! (RH8.0)


Hello all

Well, yesterday started out as such a happy day. ATI released new Linux drivers that enabled OpenGL on the Radeon 8500. Finally, I

could at least try and get a little further with UT2003. glxgears used to report 200-230fps, and it went up to 2500+fps!!! Wonderful!

So, pop the UT2003 CD in and start the install. Hmmm, 2.5GB, and I don't have it. No worries! I'll boot back into Win2K and delete

my M: drive, used it as a scratch drive for vid capture. So, boot in, do that, reboot and, guess what

grub>

Hmm. No idea, pull out the notebook, Google away, and get so far as to get grub reinstalled. Grub comes up now, the splash screen is

gone, I cannot boot Linux, but of all things, Win2K boots. Here is the error I get booting Linux

Booting Redhat Linux 2.4.18-17.8.0

root (hd1,2)
Filesystem type unknown, partition type 0xf
kernel /vmlinuz-2.4.18-17.8.0 ro root=LABEL=/

Error 17: Cannot mount selected partition

I can boot with the CD and get into rescue mode and get my system mounted under /mnt/sysimage (do I have a fully functional system after

I do the chroot? Seems mostly, haven't tried X tho). Everything looks like it's there. fdisk -l reports

Device Boot ID System
/dev/hda1 * c Win95 FAT32

Device Boot ID System
/dev/hdb1 7 NTFS
/dev/hdb2 * 83 Linux
/dev/hdb3 f Win95 Extd
/dev/hdb5 83 Linux
/dev/hdb6 82 Linux swap

and here is grub.conf

title Redhat 2.4.18-17.8.0
root (hd1,2)
kernel /vmlinuz-2.4.18-17.8.0 ro root=LABEL=/
initrd /initrd-2.4.18-17.8.0.img

title DOS
rootnoverify (hd0,0)
chainloader+1


I actually also have another kernel option from the original install, but I didn't include to try and make this shorter. Suffice to say

it does the same thing.

I'm pretty sure I can get this back, just not exactly sure how. I don't have a boot disk because I don't have a floppy. I guess I

could put one in, but I think I can get this without it.

Any help muchly appreciated. I put it in here because I'm new/
 
Old 11-22-2002, 08:34 AM   #2
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
So you have 2 disks, one with Windows (FAT32) and another disk with Windows (NTFS) and Linux, right?

The output of fdisk is confusing me. The DOS labelled system in GRUB is pointing to the FAT32 partition BTW.

A really useful feature (and secret tip) in grub is that autocompletion works! Press <TAB> to find the appropriate partition.
 
Old 11-22-2002, 09:31 AM   #3
Fredf
LQ Newbie
 
Registered: Nov 2002
Distribution: RH 8.0 Gnome
Posts: 3

Original Poster
Rep: Reputation: 0
Yes, sorry, it is a little confusing. hda is a 10GB fat32 drive that currently has only Win2K on it. This drive is going to be replaced relatively soon, so I've left it FAT. hdb is a 40GB maxtor. It was about 20GB NTFS and I partitioned off a piece of the remainder for Linux. It's a RH8.0 install, and I just let thei nstall do it's thing with grub, and everything worked great, until I let Windows trash it...

I have another drive that I will be replacing the 10GB with, but I'd rather putter about in this Linux install, learn, and then do a fresh install that would be a little cleaner.

Hope this helps
 
Old 11-22-2002, 01:11 PM   #4
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
Right so Windows overwrote the MBR.
Use your boot floppy to get into Linux and make a grub floppy. It takes 2 seconds to boot and you don't have the hassle of touching the MBR. You could also do this by messing with the boot.ini in windows but I've never sone it. Look around on the forum to find it.
 
Old 11-22-2002, 02:47 PM   #5
Fredf
LQ Newbie
 
Registered: Nov 2002
Distribution: RH 8.0 Gnome
Posts: 3

Original Poster
Rep: Reputation: 0
No can do-no floppy. Not just a disk, but no drive. I guess I could connect one, but I'd rather not. I can get into the filesystem using rescue mode, there's just something wrong with grub.conf...

I don't really mind messing around with the MBR, and the dual boot did work until I screwed around with it.

Here's a question- Once I get this all figured out, I'm going to take the 10GB that I deleted and re-create the partition under Linux. Am I going to find the same thing all over again?

Thanks
 
Old 11-22-2002, 02:59 PM   #6
dogmeat
Member
 
Registered: Jul 2002
Location: Wyoming
Distribution: Mandrake9.0
Posts: 48

Rep: Reputation: 15
You need to boot into linux, i think you can use the install cd to boot into the distro, then reinstall grub from linux. IT sounds like it couldnt find your lilo file.
 
Old 11-22-2002, 08:16 PM   #7
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
Yes, try it again, select the 'upgrade existing system' and re-install the GRUB bootloader. Don't select any other packages and it will take just two minutes. And reboot.
 
  


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
GRUB trashed Win2K Boot Sector. AHH! penguinlnx Linux - Software 3 04-22-2005 07:21 AM
I trashed my grub.conf and need help vtbludgeon Red Hat 5 01-22-2004 12:32 AM
rh8 boot screen GRUB Ian_Hawdon Linux - General 6 09-28-2003 02:10 PM
grub rh8 Ian_Hawdon Linux - Software 1 09-01-2003 01:01 PM
GRUB hates me! (RH8.0, WinXP) MagicTom Linux - General 2 02-20-2003 09:44 PM


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

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