LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-23-2014, 07:42 PM   #1
kevind963
LQ Newbie
 
Registered: Jan 2014
Posts: 1

Rep: Reputation: Disabled
Recovering Last Data From Formatted Drive


Hello,

I have done something quite dumb and have lost some data I would like restored. To give some background, I created a new ZFS pool using zpool create
Code:
zpool create -f datastore raidz /dev/sdb /dev/sdc /dev/sdd
and did not realize that that would format the drives without warning. I have two of the drives that I would like to recover some data on. I have tried using testdisk to recover the data however I have not been successful.

When I run testdisk and analyze the drive I get the following result:
Code:
>P MS Data                     2046 3907028989 3907026944 [Hydra]
Hydra is the name of the partition that I am trying to recover. However, when I try to list files I get "no file found, filesystem my be damaged." If I run a deeper search I find the following
Code:
     Partition               Start        End    Size in sectors
   MS Data                     2046 3907028989 3907026944 [Hydra]
>  MS Data                     2048 3907028991 3907026944 [Hydra]
The drive is listed twice.

Does anyone have any suggestions on how to recover this data?

Thank you!
 
Old 01-24-2014, 09:07 AM   #2
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Debian 12 (Bookworm)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
This depends on what type of data it is. The directory information may be corrupted in which case testdisk may be unable to help you. However, testdisk includes photorec, which can recover the individual files to a backup drive. The caveat is that the filenames are unknowable so photorec will use a series of numbers for file names.

This is fine for image files, video files and sound files. Software is generally unrecoverable in this way though and text files will be buried amongst thousands of scripts and configuration files you didn't even know were on the drive.

The backup drive you use to hold the recovered files must have more free space available than the total volume of the drive you're recovering or you risk running out of free space half way through.
 
  


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
recovering files from a formatted ext3 drive... possible? oskar Linux - General 8 10-25-2008 05:23 PM
recovering files from formatted drive skale Linux - General 3 08-25-2006 10:29 AM
Recovering data from logical drive formatted by linux soliant Linux - General 3 02-09-2005 07:24 PM
recovering formatted data walterw Linux - Newbie 4 11-09-2003 06:17 PM
Recovering data from formatted FS? froguy Linux - General 4 10-02-2003 08:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:50 AM.

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