Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-26-2007, 08:58 AM
|
#1
|
LQ Newbie
Registered: Nov 2007
Posts: 2
Rep:
|
Data recovery with ddrescue
I had a 200 GB external USB formatted under windows xp ntfs go bad on me. It was just used for storage with only 1 partition. I'm new to linux but was able to use knoppix 5.1 and figured out how to get ddrescue 1.6 installed and working. I was able to rescue the entire disk using the following: ddrescue -B -n /dev/sdd /dev/sda2 recused.log. sdd was the usb and sda2 was a new partition on an e-sata drive. The one thing I think I screwed up was that the new partition on sda2 was not exactly the same size as the original. Can I still use what I have rescued or should I start over with a partition that is exactly the same size? The other question I have is is it better to rescue the data as an image vs an exact disk copy? From what I've read online the opinions seem to vary.
Thanks for any help,
Kevin
|
|
|
11-26-2007, 11:14 AM
|
#2
|
Moderator
Registered: May 2001
Posts: 29,415
|
Speaking from a Forensics point of view I always make images to file. This way it's easier to make a copy of the file (for safekeeping: don't work on your only backup) and do ops on it (like carving for stuff). Obviously you also bypass the probs with partition sizes and that. Also note there's tools called 'dd_rescue' and 'dcfldd'. Last time I used 'dd_rescue' for recovery IIRC. BTW what does "go bad on me" mean in your book? Ticking noises like the HD's heads are wonky or what?
|
|
|
11-26-2007, 09:12 PM
|
#3
|
LQ Newbie
Registered: Nov 2007
Posts: 2
Original Poster
Rep:
|
It never made strange noises but I could not read the drive at all in windows or knoppix. It always came up as an unformatted drive but I never did anything to it that should have caused it to be wiped out. It initially had I/O errors and would not get recognized at all using USB. I tried the fire wire port and was able to see it in windows but it said it was not formated. I tried every file recovery program I could find but the only one that worked was Photorec which did retrieve some files but stopped at a certain point probably due to bad sectors or something. ddrescue found 5000+ errors. What is 'dcfldd'?
|
|
|
11-27-2007, 02:55 PM
|
#4
|
Moderator
Registered: May 2001
Posts: 29,415
|
Quote:
Originally Posted by Matistimo
It never made strange noises (..) It initially had I/O errors
|
That would be the kind of valuable information to mention in an original post next time.
Quote:
Originally Posted by Matistimo
ddrescue found 5000+ errors.
|
All I/O errors? Please don't talk *about* errors but *post* some.
Quote:
Originally Posted by Matistimo
What is 'dcfldd'?
|
What are them WWW searchengines for?
|
|
|
11-29-2007, 11:12 PM
|
#5
|
LQ Newbie
Registered: Oct 2007
Posts: 2
Rep:
|
Hi Matistimo, have your tried NTFS Data Recovery Software. I had success using this utility in recovering my lost data after I had accidentally formatted my partition. You can use the demo version to see whether the software is able to recover your files or not, if you can see the data you are looking for then you can go for the full version. Since you have only one partition I recommend you to download the demo to other healthy system and connect your external hard drive from which you wish to recover the data as a slave. Hope you get back your lost data very soon.
Aylen.
|
|
|
11-30-2007, 03:46 AM
|
#6
|
Moderator
Registered: May 2001
Posts: 29,415
|
Quote:
Originally Posted by aylen
NTFS Data Recovery Software
|
The SW mentioned is commercial, a license starts at USD 99. I'd suggest exhausting all relevant OSS options first.
|
|
|
11-30-2007, 05:54 AM
|
#7
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,249
|
I'm with unSpawn, however I have to say I've had little success recovering trashed NTFS. I have sufficiently good backups to get me out of holes, but I've been asked to help others; without success.
NTFS is a proprietary can of worms, marketed by a company of ... well, you get the idea.
If a commercial product ultimately does the job, I see no problem paying for it.
|
|
|
11-30-2007, 07:15 AM
|
#8
|
Moderator
Registered: May 2001
Posts: 29,415
|
Quote:
Originally Posted by syg00
If a commercial product ultimately does the job, I see no problem paying for it.
|
It depends on how you approach the case, the state of the filesystem and the tools you use. Using a mix of OSS and proprietary tools, often as a means of validating results for evidentiary purposes, I found some tools to be more equal than others ;-p I have no problems using commercial tools but just because a tool is a commercial product does not per definition mean it is "better" in every aspect compared to OSS counterparts.
Last edited by unSpawn; 11-30-2007 at 07:17 AM.
|
|
|
All times are GMT -5. The time now is 05:58 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|