LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 07-26-2006, 02:21 PM   #1
ariadneN
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
how to recover partition table


Hello everyone,
In an old DELL machine running SUSE10 I wanted to read-only my files in an older hard-disk with WIN95 installed. I installed the old drive
as a slave and booted. I did not know how to
mount it so I got the *brilliant* idea:
fdisk /dev/hdb
n
e
1
fdisk warned hdb1 already existed and to delete
it first. As this is my practice machine i was
not careful and typed w ...

of course that was not *enough practice*
so i did
mkfs -t ext3 /dev/hdb1
Naturally I can only see the the linux partition in hdb
gpart reports 4 partitions
1 ext2 linux
3 unused

Is there a way to recover the WIN partition table or just the files in it?
Please help anyone?
 
Old 07-26-2006, 02:42 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
If you hadn't done the mkfs, I could've almost guaranteed success. Now, It's chancy. In any case, check out 'testdisk'. It's saved me from corrupted or damaged partition tables dozens of times.
 
Old 07-26-2006, 03:08 PM   #3
ariadneN
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Original Poster
Rep: Reputation: 0
testdisk reported 2 partitions type FAT32, creator linux;
complained about #of heads and other things i have no hope of
understanding... it proposed a table which i chose to write
(did not seem i had much more to lose...). Now testdisk
reports 2 ext linux partitions.
before testdisk i tried r-studio emergency demo and it
reported finding thousands of files but i have no windows formated
disk to write the files.
anything else i could try?
 
Old 07-26-2006, 03:13 PM   #4
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,032

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
Quote:
I did not know how to
mount it so I got the *brilliant* idea:
fdisk /dev/hdb
That's a very interesting variation on the "mount" command! Not one I would have tried myself. Many people think they've destroyed things after running this command, but in fact it can be recovereable if you don't panic and do something worse.
Quote:
of course that was not *enough practice*
so i did
mkfs -t ext3 /dev/hdb1
Whoopsie ... you paniced!

I just have to ask ... why did you think repartitioning and reformatting your disk would help read the (previously) existing contents? I can't offer any help to get you out of your current troubles. I doubt recovery will be possible. If it is, it won't be easy or complete. I would recommend that the next time you are faced with something you don't know or understand, walk away from the computer for a while and think about things before jumping in. Ask for help before proceding. I don't mean to sound harsh, but what you did is akin to trying to fix a flat tire on your car by driving the thing off a cliff. Terribly destructive, and doesn't help the original flat tire situation in the slightest.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recover partition table djib Linux - Software 2 05-14-2005 08:07 AM
Recover the partition table yogeshwar_s Linux - Hardware 1 09-22-2004 03:02 AM
Slack 10: S-ATA = "No partition table or unknown signature on partition table"? dissolved soul Slackware - Installation 11 08-05-2004 03:12 PM
Data Recover Help -> Incorrect Partition Table PhuckFonix Linux - General 8 05-30-2004 11:12 PM
HELP!!! to recover lost inode table moden Linux - General 3 11-26-2002 06:53 AM


All times are GMT -5. The time now is 11:36 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration