LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-14-2005, 11:49 PM   #1
tsphan
Member
 
Registered: Jan 2005
Location: Clackamas, Oregon, US
Distribution: Slackware 10.2
Posts: 154

Rep: Reputation: 30
erased all boot records or so


I was being stupid by trying to help a friend with a computer problem, he wanted to get his windows xp back up and etc.

anyways, i got this dd line which i told him to do to erase his MBR.

dd if=/dev/zero of =/dev/hdc bs=512 count=1

anyways, i thought it was suppose to ONLY erase my MBR, which hopefully, i was hoping it'd do.

so I reran Lilo but i get this weird problem with my /dev/hdc1 partition, which is my Windows98 partition, I take it out and I wind up with only my Slackware partition on /dev/hdc5 still active.

so I thought, well that's not too bad, I'll just fix windows98 sometimes later and I loaded up Slackware after a reboot.

However, it didn't detect my /dev/hdc5 root partition either, so I was going CRAZY here.

I tried popping in the Slackware 10.0 CD 2 Rescue Disc. I add in the "root=/dev/hdc5" and it DOES THE SAME THING THAT HAPPENS ON SLACKWARE!!!

So now I'm panicking, I loaded up SimplyMEPIS cause I know it has qtparted. With qtparted, it doesn't show anything about my hard drive and reiserfsck doesn't seem to be helping my poor reiserfs on /dev/hdc5.

PLEASE HELP
 
Old 02-15-2005, 12:20 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 20,678

Rep: Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935
You *REALLY* don't want to be screwing with the first block of a disk.
I mean
You *REALLY* don't want to be screwing with the first block of a disk.

As you probably already suspect, you zero'd the MBR and the partition table. Whilst you had the system active that issued the dd you had an in-storage copy.
After boot, you are history.

How good are your backups ???.
 
Old 02-15-2005, 12:26 AM   #3
tsphan
Member
 
Registered: Jan 2005
Location: Clackamas, Oregon, US
Distribution: Slackware 10.2
Posts: 154

Original Poster
Rep: Reputation: 30
NOT TOO GOOD

well, good job me

i guess i'll get the back up cds ready
 
Old 02-15-2005, 12:37 AM   #4
jacks4u
Member
 
Registered: Dec 2004
Location: Phoenix, Arizona, USA
Distribution: Debian, RedHat, ???
Posts: 56

Rep: Reputation: 15
Sounds to me like you need to run gpart.

Here's a link to help you get started fixing things...
http://linux-universe.com/HOWTO/LILO...on_rescue.html

and perhaps back up your partition table after everything's fixed, with fdisk -l

gpart helps you guess the partition table. it's usually pretty good at it, but if you want to be 100% certain, you want to keep an exact copy (fdisk -l) of your partition table. if you wipe your partition table by accident, you can just use fdisk and recreate the table again

hope this helps

jacks4u

Last edited by jacks4u; 02-15-2005 at 12:41 AM.
 
Old 02-15-2005, 12:54 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 20,678

Rep: Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935Reputation: 3935
Quote:
Originally posted by jacks4u
Sounds to me like you need to run gpart.
Thought about mentioning that, but I wan't sure if it only used the in-storage copy.
Never used it. Guess I'm going to have to set up a "trashable" system to test all these things
 
Old 02-17-2005, 09:31 PM   #6
tsphan
Member
 
Registered: Jan 2005
Location: Clackamas, Oregon, US
Distribution: Slackware 10.2
Posts: 154

Original Poster
Rep: Reputation: 30
i wish i knew that before i reformatted all of my things
 
Old 02-17-2005, 09:46 PM   #7
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Quote:
anyways, i thought it was suppose to ONLY erase my MBR, which hopefully, i was hoping it'd do.
Well, yes. The command string you listed will ONLY erase your MBR. That is what it did. It zeroed your MBR.

It did exactly what you told it to do.

Oh, I almost forgot. Guess what is found in the MBR.

Give up? I'll tell you then.

The partition table.

You erased your partition table.

Don't worry. It can be reconstructed. Get a copy of parted and run it.
 
Old 02-17-2005, 09:50 PM   #8
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Quote:
i wish i knew that before i reformatted all of my things
Ooooopppsssss!!!!

I missed this one line response before my last post.

I feel your pain. Really I do. But I'm laughing anyway.

Next time, be SURE what you're doing. Of course, at this point, you don't need to be told that.
 
Old 02-17-2005, 11:30 PM   #9
tsphan
Member
 
Registered: Jan 2005
Location: Clackamas, Oregon, US
Distribution: Slackware 10.2
Posts: 154

Original Poster
Rep: Reputation: 30
hahahahaha, well, after having losing all of my newest Linux downloads as well as alot of stuff which I downloaded and being stuck with 56k, it's not too much of a problem. Slackware is actually going much faster than it is now.
 
Old 02-18-2005, 12:47 PM   #10
jacks4u
Member
 
Registered: Dec 2004
Location: Phoenix, Arizona, USA
Distribution: Debian, RedHat, ???
Posts: 56

Rep: Reputation: 15
Lessons learned:

There's almost always a way to fix a gone-bad-system, without re-fomatting, re-installing. find that way, and save your data, configuration, and settings.

jack4u.
 
  


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
Windows installation erased linux boot sector? xelt Linux - General 5 05-01-2005 02:35 PM
erased glib libraries on slackware 10, need help on boot salviadud Linux - Newbie 1 03-05-2005 12:00 PM
bookmarks erased habala Linux - General 3 01-29-2005 11:13 PM
Explanation or Tutorial on Boot Records? kkathman Linux - General 2 10-16-2003 07:32 PM
reinstalled windows, boot data erased, now what farhanali Linux - General 3 04-27-2003 02:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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