Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-14-2005, 11:06 AM   #1
LQ Newbie
Registered: Mar 2005
Location: /dev/sda2
Distribution: slackware 10.0 [nptl]
Posts: 5

Rep: Reputation: 0
Exclamation HELP! partition table screwed up

Yesterday I wanted to empty my usb flash disk:
the command I wanted to use was the following:
dd if=/dev/zero of=/dev/sdb
instead, I mistyped and did this:
dd if=/dev/zero of=/dev/sda (I got used to typing sda)

I found out the operation took a bit long, and I didn't saw the light of my usb stick flicker, so I cancelled it.
It prompted that 1,5gig was written, then I found out it was my HD!
the hd contained:

[ sda1 - fat32 - win32 - 20gb ] [ sda2 - reiser4 - linux 2.6 - 20gb ] [ sda3 - swap - 1gb ] [ sda4 - fat32 - data - about 100gb ]

So, my partition table is screwed up, and my first fat32 filesystem is also.
The fact that win32 is gone is not a problem at all, I didn't do anything with it at all, but the fact that the partition table is gone, IS a big problem, because now, I cannot access any of my filesystems anymore.

my question is:
Is there a tool that can find out where on my hd a filesystem starts and ends ? so I can rebuild a partition table, so I can access the 100gb data disk (the data on it is essential to me), and maybe sda2 ? (it took me quite long to get such a nice configuration)

The data on sda4 really is essential to me, it would be a real pain to see me formatting the whole disk again, while it is recoverable...

please give me a clue on how to do this, any help is appreciated.. I need that data back...

thank you.
ps. No, I don't have a backup of my partition table, otherwise I would have already returned it.

Last edited by CARLiCiOUS; 04-14-2005 at 11:08 AM.
Old 04-15-2005, 04:26 AM   #2
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,302

Rep: Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996
testdisk was written just for YOU ...
Old 04-15-2005, 04:25 PM   #3
LQ Newbie
Registered: Mar 2005
Location: /dev/sda2
Distribution: slackware 10.0 [nptl]
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you so much for that
that's exactly the thing I'm looking for, too bad it couldn't save my reiser4 partition, but I got the rest of all my data back, so I'm really glad that this tool was out there.



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
"No partition table or unknown signature on partition table" 10.1 install madcow007 Slackware 4 02-09-2009 12:04 PM
Slack 10: S-ATA = "No partition table or unknown signature on partition table"? dissolved soul Slackware - Installation 11 08-05-2004 03:12 PM
Why can't I restore a partition table backup containing a reiser partition? oldweasel Linux - Software 2 05-23-2004 01:11 AM
Booting from an extended partition - need a partition table editor Ouch_Taser Linux - General 2 02-10-2004 07:22 PM
strange partition table - boot partition empty etanter Linux - General 0 12-23-2003 10:46 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration