LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 07-16-2004, 06:12 PM   #1
globeTrotter
Member
 
Registered: Feb 2004
Location: Townsville, Queensland, Oz
Distribution: Red Hat 9
Posts: 107

Rep: Reputation: 15
Grub after XP re install


Hi all

i'm running a dual boot system with 2 hard drives at the moment. XP on the master & RH9 on the slave. At the moment all is fine and hunky dory. what i need to do for next semester at uni is have win 2003 server & XP on one drive and RH9 on the other disk so i can practice networking/server. i'm obviously going to invest in another pc to use as a LAN workstation. i've already set up apache (or at least it tells me i have when i type http://localhost in the browser) Unfortunately i have to teach myself Linux (6 months now) as Linux subjects are reserved for post-grads. (MS sponsored uni!!!!!!?????!!!!!???!!!) Anyway, once i reformat the master drive with clean installs of both XP & server 2003 how do i or what do i have to do to get grub up and running again after MS wipes the MBR to please itself?????? Please, only replies from folks who have actually done this as i can't afford to f@#k it up. i can supply any files if you need to see them. thanks
GT
 
Old 07-17-2004, 12:55 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It's not that hard:
1) Boot from RH CD1
2) At the "boot:" prompt type "linux rescue"
3) At the bash prompt change to your system root "chroot /mnt/sysimage"
4) Then to reinstate grub on the mbr "/sbin/grub-install /dev/hda"
5) Reboot "shutdown -r now"
 
Old 07-18-2004, 05:45 PM   #3
globeTrotter
Member
 
Registered: Feb 2004
Location: Townsville, Queensland, Oz
Distribution: Red Hat 9
Posts: 107

Original Poster
Rep: Reputation: 15
Hi
sorry for taking so long to get back, but i lost my password. anyhow it will be another 2 weeks before i get round to re-formatting. are you sure this will give me back a grub frontend at boot with all three choices lined up??????

it seems so very diffrent to what everyone else tells me?????? not that any 2 people have told me the same way. i know there's more than one way to skin a cat. i just need to be certain thats all before i start.

also how do i make a boot disk, just incase it all fails??????
thanks
lee
 
Old 07-19-2004, 07:37 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
What password have you lost? Why do you need to reinstall?

It won't necesarily give you all three choices but ti will get you back into Linux where you can add more bootloader entries.

What system do you want to make a boot disk for?
 
Old 07-19-2004, 05:34 PM   #5
globeTrotter
Member
 
Registered: Feb 2004
Location: Townsville, Queensland, Oz
Distribution: Red Hat 9
Posts: 107

Original Poster
Rep: Reputation: 15
Hi

sorry for being so unclear in my last post, i was in a rush. So here's some answers to your last post

1) The password i lost was for this site so i couldn't answer your first post promptly.

2) I need to do a clean install and re-format my windows drive because one of the subjects i'm doing next semester at uni is for Active Directory in win 2003 server. so i need to put a version of it on my hard drive. (linux is on a seperate HD) I've bough another pc to serve to. (i will also use this to practice various linux networking services. Unfortunately as stated, my uni doesn't teach Linux until post-grad, smart uni!!!!!!!!!! so i have to teach myself )

3) I need to make a boot disk for RH9, as i don't have one.

So after formatting the master drive i figure grub will be overwritten. i need to know how to reinstall the grub GUI with the new settings for boot. Unfortunately when i ask 10 people about this, i get 10 diffrent answers, all from folk who are quite knowledgeable, but haven't done it yet., like i said, i can't afford to screw this up. i don't have the pleasure of being able to spend a couple of weeks to figure it out myself by trying all the suggestions and visiting all the helpful websites on-line. sorry for needing my hand holding on this one.
kind regards
GT
PS The reason i can't do this for another 2 weeks is because i'm in the middle of a block mode at uni studying software engineering.
 
Old 07-19-2004, 05:43 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
3) do you not have cd1? You can use it in rescue mode to fix the bootloader.


The instructions I gave you above will most definately put grub back on the mbr. Once you are able to boot into linux you will be able to add whatever new bootloader entries you want for your other OSs.
 
Old 07-19-2004, 09:50 PM   #7
globeTrotter
Member
 
Registered: Feb 2004
Location: Townsville, Queensland, Oz
Distribution: Red Hat 9
Posts: 107

Original Poster
Rep: Reputation: 15
Hi


i beleive my grub.conf file is the file i should hack. is this right and if so which one do i hack or do i hack both of the following.

/boot/grub/grub.conf
/etc/grub.conf

i take it i hack the

/boot/grub/grub.conf

as the other is just a link. Is this correct. If so, i should be able to leave the file as is should'nt i as the windows partition numbers will not change????????? Sorry for this but after 6 months of tinkering with Linux, i'm just getting the hang of it (ish). Great fun though eh? Once ya get over the initial culture shock!!!
kind regards
GT
PS yes i do have the cd. Although i thought a boot floppy (like the win98) would be good to use if all fails. Sounds like the CD1 is the same, yes?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 10:29 AM
fc3 install doesnt install grub properly onto sata drive sabo Linux - Newbie 4 02-03-2007 04:04 PM
[GRUB]how to install grub onto another partition Liquid_T<NL> Linux - Newbie 1 09-05-2005 09:46 AM
Accidental Install of Windows Second....Install GRUB? Brnzwngs Linux - Newbie 6 08-12-2005 01:10 PM
GRUB..where should be install..?????? avols143 Linux - General 1 10-24-2004 05:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:13 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
Open Source Consulting | Domain Registration