I'm trying to recover data from a disk with multiple corrupted sectors. Damaged partition (Windows partition, sdb2) s no longer mountable (it takes a lot of time, and sometimes makes Ubuntu file explorer crash/everything get laggy), so I tried to use ddrescue to recover its data.
I formatted another disk (2 times bigger than damaged partition) as FAT (sda1) and intended to use it as a rescue disk.
I run this command :
sudo ddrescue -B -v -n --force /dev/sdb2 /dev/sda1 récupérationLog2.log
After 9 hours of intense work, the console output seems pretty nice as it mentions 953525 MiB of data rescued (on a 1TB partition):
*GNU ddrescue 1.19
About to copy 953668 MiBytes from /dev/sdb2 to /dev/sda1.
Starting positions: infile = 0 B, outfile = 0 B
Copy block size: 128 sectors Initial skip size: 128 sectors
Sector size: 512 Bytes
Press Ctrl-C to interrupt
rescued: 953525 MiB, errsize: 142 MiB, current rate: 3072 B/s
ipos: 904228 MiB, errors: 513, average rate: 29903 KiB/s
opos: 904228 MiB, run time: 9.07 h, successful read: 0 s ago
Finished*
Everything seems pretty good, but when I mount the rescue partition, sda1, it seems there is no file at all. Everything is empty. Of course it tried to list hidden files with ls -a
, but there's nothing there.
That's the second times I get what seems to be a pretty successful recovery without getting any output files. Is there anything I did wrong or anything else to try?
Excerpt of logFile
# Rescue Logfile. Created by GNU ddrescue version 1.19
# Command line: ddrescue -B -v -n --force /dev/sdb2 /dev/sda1 récupérationLog2.log
# Start time: 2017-04-18 09:47:59
# Current time: 2017-04-18 18:52:11
# Finished
# current_pos current_status
0xDCC247D000 +
# pos size status
0x00000000 0x0160C000 +
0x0160C000 0x00000200 -
0x0160C200 0x02B5FC00 /
0x0416BE00 0x00000200 -
0x0416C000 0x14B94000 +
0x18D00000 0x00000200 -
0x18D00200 0x003FFC00 /
0x190FFE00 0x00000200 -
0x19100000 0x4F570000 +
0x68670000 0x00000200 -
0x68670200 0x00005C00 /
0x68675E00 0x00000200 -
0x68676000 0x00094000 +
0x6870A000 0x00000200 -
0x6870A200 0x00001C00 /
0x6870BE00 0x00000200 -
0x6870C000 0x008E0000 +
0x68FEC000 0x00000200 -
0x68FEC200 0x00002C00 /
0x68FEEE00 0x00000200 -
0x68FEF000 0x0000A000 +
0x68FF9000 0x00000200 -
0x68FF9200 0x00006C00 /
0x68FFFE00 0x00000200 -
I had to add the argument --force
cause every time I tried to use ddrescue it said it could not start due to ouputlog file already exists even if I tried a different, non-existent file name each time.
fsck
or similar? I can't read the logfile, but there isddrescueview
in the ubuntu repos for a neat GUI – Xen2050 Apr 19 '17 at 09:19/dev/sda1
? – d a i s y Apr 19 '17 at 09:23Once rescue was finished, I mounted /dev/sda1 (ouput partition), but it seems there is nothing there (not even hidden files)
– Nicolas D Apr 19 '17 at 09:27/dev/sdb2
, right? what is size of it? and `/dev/sda1, is it your external harddrive? What size of it? – d a i s y Apr 19 '17 at 09:32/dev/sdb
has two os ubuntu and windows, then how windows partition has 999.84GB of data. It should be size of/dev/sdb2
. – d a i s y Apr 19 '17 at 09:49-sdb (damaged disk) with sdb1 (210MB efi windows partition) and sdb2 (1Tb damaged windows partition containing the data I would like to recover)
-sdc which contains my linux OS on a an ext4 partition sdc1
– Nicolas D Apr 19 '17 at 09:50/dev/sdb1
corrupted and i've used 160 GB of fresh installed ubuntu drive/dev/sda1
to recover it with:sudo ddrescue -r 3 -C /dev/sdb1 /media/username/e205d787-b94e-49c5-86ca-90d122cbe90a/home/username/recoverdata.img
and then mount that image file. In my case/dev/sda1/
mounted on/media/username/e205d787-b94e-49c5-86ca-90d122cbe90a
See: DataRecovery – d a i s y Apr 19 '17 at 10:02testdisk
on the rescued clone but you will have no luck if the original partition was encrypted. – Takkat Apr 19 '17 at 11:19sudo mount -o loop -t auto /media/nicolas/ext/backup/image.dd /mnt/disk_image
image.dd seems to be properly mounted on disk_image, but, as usual, not any data (checked with ls -a).
any idea of why ?
Thanks for your support !
– Nicolas D Apr 20 '17 at 08:20Another person already tried rescuing data from this disk before me, is there any chance all data were removed in the process, explaining why both ddrescue and testdisk succesfully rescue 99% of the disk, which provide 0 file ?
– Nicolas D Apr 20 '17 at 09:53