LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-29-2003, 03:39 AM   #1
Chapster
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Rep: Reputation: 0
Reinstalled Windows, MBR overwritten


I have looked through 228 questions asked previously dealing with similar subjects and did not find a clear answer to this question. I have played around with Linux several times before, with little success. About 9 months ago I got ahold of Sus8.1 and installed on my computer that has win98SE on it. The installation went well and I have had fun using Linux. Unfortunately, I had to replace the motherboard on the computer and that, due to secondary things necessitated the reinstallation of Windows SE. I was using grub to boot into my Linux. From what I have learned on these forums, when I reinstalled Windows, it overwrote my MBR which grub had set up for dual boot.


What should I do at this point? Shold I attempt to fix GRUB to do the dual boot again. I have looked at postings that talked about this, but honestly, they didn't make much sense to me. Another consideration is that when I installed my new motherboard, it also has an AMD processsor, an Nvidia chipset, and an NVidia AGP board. If I go through the SUSE installation process again, will it delete all my old data? Is there an easy way to save my old user settings on my linux partition, then I could just reinstall linux? OR, is this a poor option. I hate to lose my e-mails on the linux partition, and the other valuable information (though apart from the e-mails, there's not that much important stuff on my linux). I do not have a boot disk. I do have a boxed SUSE installation set, but I don't see a boot disk there. I tried to use a Slackware boot disc, but it didn't take me to the install that is on the hard drive.

I just need to know what to do. If I had some simple directions on how to boot into my current installation and then reset grub to work right with my MBR, I feel like it would be fine and I could go from there.

Thanks for any help.
 
Old 11-29-2003, 04:00 AM   #2
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
simple,
1.boot thru ur linux CD
2.go into rescue mode , follow the on screen installation text
3.reinstall grub
 
Old 11-29-2003, 04:02 AM   #3
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
put in the first suse installation cd and run the rescue utility.

it will help u to configure your boot loader
 
Old 11-29-2003, 04:04 AM   #4
Guru3
Member
 
Registered: Sep 2003
Location: //home/sweden
Distribution: RedHat 9, Fedora Core 1
Posts: 360

Rep: Reputation: 31
I agree. Then, to make sure that grub will boot windows again, edit /boot/grub.conf (it's in the boot partition someplace), and just tell it the partition and to chain load. (It's in the documentation). Windows is good in that it doesn't use the MBR to boot, it uses a standard MBR, which boots of the first bootable partition, or the Active Partition. So, when grub over writes the MBR, just tell it to chain load to the win partition for that boot option. If you need more help on how to do that, I can look around some for your (or check my own config...)
 
Old 11-29-2003, 04:17 AM   #5
Chapster
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks, all!

I'll give it a try!
 
Old 11-29-2003, 05:09 AM   #6
Chapster
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Original Poster
Rep: Reputation: 0
I did as suggested.

A main screen came up with options to install, resue, and another one. I chose rescue. A nice screen came up and in the center table, in nice font, the boot up log scrolled by. Eventually, all that cleared and a textual prompt came up:

Rescue login:

Not knowing what to put here, I entered root .

The following prompt came up then:

Rescue:~ #

I have no idea what to do at this point. There is no further instructions or feedback from the installation CD.

Not sure what to do now. I checked the documentation at SUSE (which btw leaves a little to be desired, imho). No help there (though they claim to have one of the largest repositories of linux info in the world - seems there's much better help here...
) anyway, that's where it's at now!

Thanks, Mike!
 
Old 11-29-2003, 05:29 AM   #7
Guru3
Member
 
Registered: Sep 2003
Location: //home/sweden
Distribution: RedHat 9, Fedora Core 1
Posts: 360

Rep: Reputation: 31
You should be able to do what's here: http://www.gnu.org/manual/grub-0.92/...b-install.html
 
Old 11-29-2003, 05:36 AM   #8
Ragaman
LQ Newbie
 
Registered: Nov 2003
Posts: 8

Rep: Reputation: 0
I think you ought to do what guru3 suggested.
You realize that you are at the shell prompt right?
Use your favorite text editor and edit your grub.conf
I like pico cause it's easy

Rescue:~#pico /boot/grub.conf

If you don't know how to configure grub, then you should probably do some more internet research.
 
Old 11-29-2003, 05:37 AM   #9
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
try the grub console, a little bit more reliable then the grub-install script
once you get into the rescue prompt just type "grub"
then first do:

root (hdX,X)

(subsitude the X with your configuration, the first digit refers to the disk, second digit refers to the partition, so if / (or /boot if u have one) is on the second partition of the first harddrive it would be (hd0,1))
then

setup (hd0)

to install it back into the MBR of the first harddisk.
 
Old 11-30-2003, 07:33 AM   #10
Chapster
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks again for the responses.

I don't think I've used pico before but I'll try.

I'm not sure what my configuration is. I'm not sure how to find out. I went through the linux installation cd and had it run the system information. Here's the info it gave me:

(E) IDE

Harddisk
Maxtor 53073u6
Firmware: DA6207V0
Ser # K605S9QC
Geometry 16383/16/63

Harddisk
ST34321A
Firmware: 3.05
Ser#: xt171328
Geometry: 8894/15/63

CDROM
TDK CDRW4800
Firmware: S7DS
Ser No:


I also checked My COmputer in Windows 98SE and it shows 2 hard drives. It shows the main drive C: and another drive D:, with a small dat file (658k) on it.

I also had fdisk display the partition info and it shows only one drive, C: as the primary drive.

I don't really know much about partitions and all. I'll try to find out, but have tried to show here what I've found so far. I'm not sure where the linux is.

Thanks for the help!
 
Old 11-30-2003, 08:47 AM   #11
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
there's no need to edit grub.conf if the partition structure didn;t change and all you want to do is reinstall grub back into MBR.
You know which drive suse is located right? go into the grub prompt, if its the first disk do root (hd0,0) and increment the second number if neccesary, it'll display the type of partition so if you see either reiserfs/ext3/whatever you chose then it's gotta be the linux partition so keep trying until you get it, use (hd1,0) if its the second disk.
The above step is basically telling grub where the config files are, so when you get it, simply type "setup (hd0)" and that will install grub back into the MBR. Good Luck!
 
  


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
Reinstalled XP and can't get into Windows Superganja23 Mandriva 9 05-23-2006 07:09 AM
reinstalled windows yesterday and... garba General 9 11-07-2005 11:34 AM
GRUB MBR overwritten by WIN98 MBR TOuseef Linux - General 7 11-14-2004 05:25 PM
MBR is overwritten and GRUB is lost satish427 Red Hat 3 10-13-2004 01:48 PM
?overwritten MBR? sharon63 Linux - Newbie 2 08-21-2003 07:46 PM


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