LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 11-05-2005, 08:45 AM   #1
Barkpingu
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian 3.1 mainly, hand-built kernel
Posts: 2

Rep: Reputation: 0
problem with dd/foremoste+usb-hdd - trying to rescue data


Hello,
I'm trying to recover some data from hda, with windows installed.

I tried with knoppicilin 4 as basis (live-cd), since I don't want to interfere with the data and it was the latest linux I had on cd available. I connected the usb-hdd (larger than hda), and typed in something like

dd if=/dev/hda of=/dev/sda bs=2048k

In preperation, I've tested which bs value results in the best performance, and came up with the mentioned (or maybe 1024k, I don't think it matters too much). When I used a high (>100 aprox.) count of blocks to test, it sort of freezed, and I tried to copy the whole thing, let the machine run for around 40h (I extrapolated the time needed from my benchmark and expected something like 2h max), but it didn't do the job. TOP showed strange values, cpu was 99% wa, not idle, and the rest was used for dd...

So, since I couldn't get an image done, I tried to run foremost on /dev/hda with output to a reiserfs on the usb-hdd...
... went nice, but after some time it also stopped and TOP showed the same strange values.
Foremost (1.0, self compiled, tested succesfully on other machine) did find some files, but it looks like it crashed before it actually wrote something usefull on the usb-hdd, since all the files have 0 bytes in them.

Both application did not write any errors, so I suppose it's not a i/o error. hda is 170Gb.

Any ideas what could be the reason, and what I can do to recover the data?
greetings
Barkpingu

Last edited by Barkpingu; 11-05-2005 at 08:46 AM.
 
Old 11-05-2005, 12:28 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If you can, try dcfldd (search Sourceforge for FIRE or BIATCHUX) or dd_rescue instead of plain dd if you expect the drive to contain errors. Next to that I'd try Fatback first for quick wins and then use Foremost to do a header/footer search. I prolly don't need to tell you as you've started off the right way, but still I'd like to emphasise it's crucial to get that image first.

Good luck!
 
Old 11-07-2005, 08:01 AM   #3
Barkpingu
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian 3.1 mainly, hand-built kernel
Posts: 2

Original Poster
Rep: Reputation: 0
the solution was that I used another Distri with the old 2.4 Kernel. I tested and it was looking good, I started copying the whole thing (170Gb) and a few hours laters it was done.
Now I'm looking forward to analyse the image on one of my pcs - since all of them have just USB1.1 it will take at least 32h...
Why is it so crucial to get the image first?
thanks anyway,
barkpingu
 
  


Reply



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
Data rescue on ext3 e-Gandalf Linux - Software 7 03-27-2007 11:10 PM
hdd data problem b4u Linux - Hardware 1 06-26-2005 10:52 AM
problem getting USB HDD to work haimat Linux - Hardware 8 04-25-2005 10:01 AM
Can I back-up data from init3 rescue mode? d-kam Linux - Newbie 19 03-20-2005 02:38 PM
how to get data off in rescue mode bmicielli Linux - Software 4 08-24-2003 01:00 PM

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

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