View previous topic :: View next topic |
Author |
Message |
JetAce44 Apprentice
Joined: 02 Feb 2004 Posts: 152
|
Posted: Sat Aug 07, 2004 2:50 am Post subject: Grub/MBR Problem |
|
|
Not really an install question, but has to deal with part of it.
I've had a running gentoo system for about 6 months now, finally got everything running the way I wanted etc etc.
In an attempt to make my box quiet(er), I purchased a bunch of fans and cooling equipment. Long story short, I somehow corrupted the MBR while taking out my main OS drive. I honestly have no idea how that happened.
At first, I freaked. I figured somehow I corrupted the entire disk, messed up the IDE connector or some physical harm done to the drive.
Luckily I have a speedy connection, and was able to grab a knoppix iso. Mounted my OS drive perfectly. I can see my windows, boot, and root partitions perfectly (*huge sigh of relief*)
Anyway, what can I do to repair my MBR so that grub is back in order? My grub.conf and all the necessary files are still in the boot partition.
I'm still a little myphed about what exactly happened, but at least my data is there (I'll be sure to run a thorough fsck).
Any suggestions?
Mods, if this is in the wrong place, please move. I figured this was the closest place where my topic fit into. _________________ Tyan Tiger MPX 2466
2x AMD Athlon MP 1800+
1gig Crucial PC2100 ECC
NV 6600GT
1x 1000JB WD 100gig 8mb Cache IDE Drive
4x 2000JD WD 200gig 8mb Cache Sata Drive (Under RAID 5 on a 3ware 8506-4LP)
Registered Linux User #346685 |
|
Back to top |
|
|
freelight Apprentice
Joined: 12 Jun 2004 Posts: 295 Location: NYC, NY, USA
|
Posted: Sat Aug 07, 2004 2:53 am Post subject: |
|
|
You can simply do:
Code: | grub-install /dev/hda |
(assuming hda is the harddrive in question) |
|
Back to top |
|
|
JetAce44 Apprentice
Joined: 02 Feb 2004 Posts: 152
|
Posted: Sat Aug 07, 2004 3:00 am Post subject: |
|
|
freelight wrote: | You can simply do:
Code: | grub-install /dev/hda |
(assuming hda is the harddrive in question) |
No kidding, its really that easy? Knoppix has grub-install built in? _________________ Tyan Tiger MPX 2466
2x AMD Athlon MP 1800+
1gig Crucial PC2100 ECC
NV 6600GT
1x 1000JB WD 100gig 8mb Cache IDE Drive
4x 2000JD WD 200gig 8mb Cache Sata Drive (Under RAID 5 on a 3ware 8506-4LP)
Registered Linux User #346685 |
|
Back to top |
|
|
nzpilgrim n00b
Joined: 03 Oct 2003 Posts: 13 Location: Wellington, New Zealand
|
Posted: Sat Aug 07, 2004 3:23 am Post subject: |
|
|
pray pardon my ignorance, but wouldn't loading a livecd, popping into the shell, then running
Code: |
# grub
grub > setup (hd0)
grub > quit
|
do the trick?
Just follow the appropriate part of the installation instructions again about installing grub (you only need to do the pertinent bits - that is, where grub gets put into the MBR) and you should be away laughing...
Anyone else feel free to correct me.
All the best with your problem... _________________ Cheers,
Ashley R. Clarkson (NZPilgrim). |
|
Back to top |
|
|
freelight Apprentice
Joined: 12 Jun 2004 Posts: 295 Location: NYC, NY, USA
|
Posted: Sat Aug 07, 2004 3:24 am Post subject: |
|
|
grub-install is a part of grub, as far as I'm aware. If grub-install doesn't work, do it the old-fashioned way:
Code: | grub
root (hd0,0)
setup (hd0)
|
This assumes that your /boot partition is /dev/hda1 |
|
Back to top |
|
|
JetAce44 Apprentice
Joined: 02 Feb 2004 Posts: 152
|
Posted: Sat Aug 07, 2004 3:33 am Post subject: |
|
|
freelight wrote: | grub-install is a part of grub, as far as I'm aware. If grub-install doesn't work, do it the old-fashioned way:
Code: | grub
root (hd0,0)
setup (hd0)
|
This assumes that your /boot partition is /dev/hda1 |
Hrm, something fishy is going on here. Everything worked fine under knoppix, didnt complain about any write errors, but I'm still getting the damn 'Operating System Not Found' error.
Gonna try a gentoo livecd next.
/edit: I figured I'm too tired atm to risk anything further, I'll do a sitrep tomorrow when I'm actually coherent. Tried running grub again, still to no avail. Odd thing is the windows xp install disk that I have doesnt work, so I cant even do a checkdisk....
You think backing up my grub.conf and then wiping the boot partition would do any good? _________________ Tyan Tiger MPX 2466
2x AMD Athlon MP 1800+
1gig Crucial PC2100 ECC
NV 6600GT
1x 1000JB WD 100gig 8mb Cache IDE Drive
4x 2000JD WD 200gig 8mb Cache Sata Drive (Under RAID 5 on a 3ware 8506-4LP)
Registered Linux User #346685 |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|