LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-08-2003, 01:41 AM   #1
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Rep: Reputation: 30
Grub!!!


i have a machine, dual boot, between win98 and RH9. so, i was installed my grub into the MBR in win98.

it works fine for me all this while. when i start the machine it appears a screen to let me choose the os.

yesterday, i have to upgrade my win98 to winxp. thru the installation, winxp has rewrite my MBR. now, i dun have GRUB when it is booted. i know my RH9 still in my harddrive. the thing is that i don't how to invoke it now.

how am i going to do to invoke my grub and boot my RH9? pls advise. thanks in advance!

Cheers,
yenonn
 
Old 07-08-2003, 01:54 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Didn't you make a bootdisk? I only use LILO, but you just boot with the floppy and run LILO again. I guess grub is the same.

If you didn't, see about downloading one from the RH site or get tomsrtbt or something. Good luck.
 
Old 07-08-2003, 02:08 AM   #3
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Original Poster
Rep: Reputation: 30
yes i have one with me. (always get ready to go) . then, how? what to continue?
 
Old 07-08-2003, 02:21 AM   #4
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Original Poster
Rep: Reputation: 30
i have booted in just now. thanks... but then, i want back my grub in the booting time. i miss my grub a lot. how to get it back? and don't tell me that, i need the linux boot disk in order to invoke my RH. there must be somehow the solution over there....how???? help me!!!!!!

Last edited by yenonn; 07-08-2003 at 02:26 AM.
 
Old 07-08-2003, 04:46 PM   #5
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Good deal. Well, like I say, I only know LILO but I'd just type 'lilo' at the prompt. Try 'man grub' and see what it says - or just try 'grub'. *g* It should permanently reinstall it.

This is assuming your... I guess 'grub.conf' didn't get messed up. If it did, just rewrite it to boot RH and Win98.
 
Old 07-08-2003, 07:24 PM   #6
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Original Poster
Rep: Reputation: 30
i dont see typing "grub" will work. it yields me: "kernel cannot find image for grub". then, i try "man grub". it yields me again: "kernel cannot find image man".
when i boot using the linux boot disk, all i can see is a "boot>" command starting. i dunno what can i do in this. but, for sure i can't do much of the thing, bcz it is counting down from 10 seconds. when the time up, it will automatically boot me into RH9.
help.........................
 
Old 07-08-2003, 09:19 PM   #7
asc3ndant
LQ Newbie
 
Registered: Mar 2003
Posts: 28

Rep: Reputation: 15
i would rpm -e grub to clean any excess grub files, then grab the redhat rpm from the cd or kernel.org... and reinstall grub.

read thru some man pages, and http://www.gnu.org/software/grub/

and then you should be able to easily install grub on the mbr and edit grub.conf to make everything work properly...

the process is fairly simple...
 
Old 07-08-2003, 10:26 PM   #8
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Well, my mistake - you'd have to mount your root filesystem and then do '/sbin/grub' because you're not booting normally. (I'm unfamiliar with RH boot disks - I'd assume you'd just hit enter or pass options at the boot prompt.) And this is going on the assumption all the stuff on your Linux partitions is still there like you said and that just the MBR got whacked. It sounds kind of like your system's gone but hopefully it was either unmounted or just the stuff wasn't on the path.

Maybe asc3ndant's right, though - grub's fubared and get a new one.

- Actually, if RH is just trying to throw you into RH again, try tomsrtbt. I just booted my Basic system with it as a test. When the prompt comes up, do 'root' and 'password' and then 'mount /dev/hda2 /mnt' (in my case) and there was my filesystem. So then I'd just do '/mnt/sbin/lilo' (hopefully 'grub' in your case) and LILO would be reinstalled. Like that, I guess.

Last edited by slakmagik; 07-08-2003 at 10:36 PM.
 
Old 07-09-2003, 01:10 AM   #9
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Original Poster
Rep: Reputation: 30
thanks....
i think i will format all the hard disk if i fail to mend the trouble
 
Old 07-09-2003, 01:16 AM   #10
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
i think at the boot prompt you could just use this (since i doubt your grub.conf file got messed up):

grub-install /dev/hda1

http://www.mcc.ac.uk/grub/grub_16.html
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting of raw ISO from GRUB/LILO (though preferably GRUB) Orkie Linux - Software 28 12-15-2013 09:37 PM
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 08:01 PM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 08:13 PM
Why grub prompt after installing Grub inder Debian woody 3.0r2? velan Debian 1 04-20-2004 04:55 AM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:30 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