LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-28-2003, 12:20 PM   #1
kkempter
Member
 
Registered: Dec 2002
Posts: 187

Rep: Reputation: 30
Angry Re-installing Grub Bootloader?


Help!!!
I have a dual boot laptop with Redhat 8.0 and Winslow 2000. Unfortunately my winslow 2000 virus is acting badly and I think its time (once again) to re-install the pos.

The problem is that if I re-install the MS virus then it will of course assume that it is the only OS on my box and overwrite my bootloader.

My question is, once I re-install the windows 2000 virus, how do I get my bootloader back so i can still boot into a real OS ?
 
Old 02-28-2003, 12:27 PM   #2
Smitty-rh
Member
 
Registered: Oct 2002
Distribution: Redhat
Posts: 35

Rep: Reputation: 15
first off, I assume what you are saying is that you are reinstalling w2k, not an actual virus? I assume you are just attempting to show contempt for the OS?

make a boot disk for your redhat install. after you reinstall w2k then use the boot disk to get back into redhat and use the following command:

grub-install /dev/hda

that is if hda is where you want to put it.

this will put grub back in the MBR of the hd that you specify..
 
Old 02-28-2003, 12:41 PM   #3
kkempter
Member
 
Registered: Dec 2002
Posts: 187

Original Poster
Rep: Reputation: 30
Your assumption is correct, thanks for the input. Also how do I go about creating a boot disk?
 
Old 02-28-2003, 04:22 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Depending on your distro and kde/gnome/other desktop there may be a gui app to do it, have a look. If not, use the trusty 'mkbootdisk'. Usually mkbootdisk fd0, but read the manpage...

Ok, I just saw you are using RH8, there is definately a gui tool to make boot disks. Probably in 'system tools' or somewhere similar.

Last edited by bulliver; 02-28-2003 at 04:24 PM.
 
Old 02-28-2003, 06:33 PM   #5
thisisnotdave
LQ Newbie
 
Registered: Feb 2003
Posts: 9

Rep: Reputation: 0
Hey guys i have the same problem, except i stupidly instaleld XP over already and how dont have access to my linux partition... that makes my sad.. opps forgot too add the real problem im having is that i dont have a floppy drive...

Last edited by thisisnotdave; 02-28-2003 at 06:39 PM.
 
Old 02-28-2003, 06:48 PM   #6
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
If you dont't have a floppy, or don't want to make one, then you can probably use your distributions install CD. For RedHat, type "linux rescue" at the boot prompt. Then you can go about reinstalling grub, lilo, or whatever else might need fixing.

Don't forget to modify your grub.conf file to account for the new OS.
 
Old 02-28-2003, 07:46 PM   #7
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
You should be able to boot your system with the install cd, at the prompt type "linux root = /dev/hd??", where ?? is the location of your root partition.
 
Old 03-01-2003, 12:50 PM   #8
thisisnotdave
LQ Newbie
 
Registered: Feb 2003
Posts: 9

Rep: Reputation: 0
thanks guys!
 
Old 03-10-2003, 04:31 AM   #9
HenryHiggins
LQ Newbie
 
Registered: Nov 2002
Location: Edinburgh, Scotland
Distribution: SuSE 8.1
Posts: 5

Rep: Reputation: 0
Even more stupid than the last guy!

ok, i am guilty of the most fantastic oversight here. i too have had to reinstall windoze which has of course meant losing my bootloader (grub).
you suggest using a bootdisk - but i have already reinstalled so can't get in to make one!
you suggest booting from the distro cd - but i installed via ftp (suse 8.1) so don't have one!
hmmm.
is there perhaps a windows-installable bootloader which would allow me to get into linux and then reinstall grub from there? or perhaps some other more esoteric method?
rest assured, i shall be making a bootdisk once i DO get in!

cheers
 
Old 03-10-2003, 05:12 AM   #10
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
There are a host of downloadable linux rescue flopy images, you should be able to find a suitable one on the LWN distro list.
 
Old 03-10-2003, 07:08 AM   #11
HenryHiggins
LQ Newbie
 
Registered: Nov 2002
Location: Edinburgh, Scotland
Distribution: SuSE 8.1
Posts: 5

Rep: Reputation: 0
thanks.

how about the boot floppy used to start the ftp installation? would this allow me to get in and reinstall grub?
 
Old 03-10-2003, 07:37 AM   #12
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Maybe, the suse docs should be able to tell if the install floppy can be used as a rescue disk.
 
Old 03-10-2003, 11:13 AM   #13
aherm
Member
 
Registered: Jan 2003
Location: upNorth
Distribution: openSuSE/uBuntu
Posts: 410

Rep: Reputation: 30
Yes it can :-)

Or you can use SuSE Live-Eval CD for the rescue -> you will have a graphical one ;-)


Have a lot of fun!
 
Old 03-11-2003, 06:06 AM   #14
HenryHiggins
LQ Newbie
 
Registered: Nov 2002
Location: Edinburgh, Scotland
Distribution: SuSE 8.1
Posts: 5

Rep: Reputation: 0
i am still having problems here.
i am using the boot cd (image file downloaded from the suse ftp site) to get the rescue system so i now have a command line. however, none of the procedures i try (such as using grub-install or the grub command line sequence detailed elsewhere on this forum) seem to work. it appears that i only have access to the files located on the boot cd and it's associated kernel, NOT my actual linux hd partition, which i suppose would explain why i cannot install grub. do i have to mount my hd partition then? and how?
 
Old 03-11-2003, 06:59 AM   #15
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
What are you typing at the prompt?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
quick question about grub bootloader & installing another distro Ay-Karamba! Linux - Newbie 12 10-14-2005 10:00 AM
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 09:53 AM
GRUB bootloader spits out "GRUB hard disk error" Crampedson Linux - Software 2 01-26-2005 07:34 PM
Installing The Grub Bootloader From Rescue Disk sloik2000 Linux - Software 4 01-20-2005 05:38 PM
Installing Arch--bootloader killed my Grub busbarn Linux - Software 4 03-13-2004 11:34 PM

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

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