Home HDs erroring. Booted comp with Knoppix CD, sudo gparted & from terminal. ntfsclone to the rescue :)
posted to #linux 01.09.2009 (en)
Home HDs erroring. Booted comp with Knoppix CD, sudo gparted & from terminal. ntfsclone to the rescue :)
ntfsclone couldn't cope with the errors this time. Spell of the next day:
./ddrescue -v /dev/sda3 /dev/sdb3 loki
(that is, input from sda3, output to sdb3. Read all you can, make a logfile of the error sectors and try them again later)
ddrescue had to be installed from the net, found by googling: ddrescue gnu
Victory! After a few days worth of copying, windows sees the ddrescued partition again and could repair it. Nothing of value was lost. Here's a copypaste from the final moment of ddrescue:
Initial status (read from logfile)
rescued: 245693 MB, errsize: 3359 kB, errors: 146
Current status
rescued: 245694 MB, errsize: 2904 kB, current rate: 0 B/s ipos:
63684 MB, errors: 168, average rate: 3 B/s opos: 63684 MB,
time from last successful read: 19.2 h
Retrying bad sectors... Retry 3
Well, it's well hyped and packaged, but not as effective. Whatever works for you. I opt for free solutions that can be further deployed or used without license issues.
http://serverfault.com/questions/5168...
Second case - a Vista laptop with many 10's of GBs of missing data. Has been in use for a month and even been defragmented during that time (major ouch). Will try to see if there's anything salvageable..
First, booted the laptop with Knoppix and made a dd-copy of the relevant partitions to an external 500GB USB-HD. 250GB internal laptop drive. Made the partitions graphically with sudo gparted & then copy - paste - cancel. This was to ease the fdisk sector tweaking.
With the receiver partitions in place on the external HD, gave this command to make a full duplicate of the partitions:
dd if=/dev/sda2 conv=noerror,sync bs=64k | dd of=/dev/sdb2 bs=64k
That is, read data from the partition sda2, ignore errors, read 64kb blocks and pad with 0's in the end if necessary. Then write the piped output simultaneously to sdb2 with the same blocksize.
This gave a transfer rate limited by the slowest component in the chain, be it a hard drive or the usb bus. Transfer speed was 25,1 MB/s
Copying done, running DIY iRecover on the imaged drive. Shareware version allows restoring of 1 folder/run, or any number of pictures (not limited).
http://www.diydatarecovery.nl/irecove...
Looked at the original comp a bit more, and found zipped backup files on D:-drive. It'll take some extracting, but the missing data seems to be there in the automatic backups.
Copyright Rohea Oy 2010 | Mobile version | Feedback | API | Terms of Service | Applications and tools