domain logfile option test

create raw file floppy.raw

dd if=/dev/zero of=floppy.raw bs=1024 count=256

256+0 records in 256+0 records out 262144 bytes (262 kB, 256 KiB) copied, 0.00061305 s, 428 MB/s

format floppy.raw as ext3 raw partition

mkfs.ext3 -F floppy.raw

mke2fs 1.43.4 (31-Jan-2017)

Filesystem too small for a journal Discarding device blocks:
done
Creating filesystem with 256 1k blocks and 32 inodes

Allocating group tables: 0/1 done
Writing inode tables: 0/1 done
Writing superblocks and filesystem accounting information: 0/1 done

clone floppy.raw and output domain file

../src/partclone.extfs -d -D -s floppy.raw -O floppy.img -F -L test.log

Partclone v0.3.9 http://partclone.org Starting to map device (floppy.raw) to domain log (floppy.img) Reading Super Block Calculating bitmap… Please wait…

Elapsed: 00:00:01, Remaining: 00:00:00, Completed: 100.00% Total Time: 00:00:01, 100.00% completed! done! File system: EXTFS Device size: 262.1 KB = 256 Blocks Space in use: 23.6 KB = 23 Blocks Free Space: 238.6 KB = 233 Blocks Block size: 1024 Byte

Elapsed: 00:00:01, Remaining: 00:01:39, Completed: 1.00%, 0.00byte/min,

current block: 0, total block: 256, Complete: 0.00% [A

Elapsed: 00:00:02, Remaining: 00:00:00, Completed: 100.00%, Rate: 706.56KB/min,

current block: 257, total block: 256, Complete: 100.00% Total Time: 00:00:02, Ave. Rate: 706.6KB/min, 100.00% completed! Syncing… OK! Partclone successfully mapped the device (floppy.raw) to the domain log (floppy.img) Cloned successfully.

real 0m2.008s user 0m0.004s sys 0m0.000s

create raw file raw2 for restore

dd if=/dev/zero of=raw2 bs=1024 count=256

256+0 records in 256+0 records out 262144 bytes (262 kB, 256 KiB) copied, 0.000786378 s, 333 MB/s

ddrescue from floppy.raw to raw2 with option –domain-logfile=floppy.img

ddrescue –domain-logfile=floppy.img floppy.raw raw2

GNU ddrescue 1.21 Press Ctrl-C to interrupt

[A ipos: 0 B, non-trimmed: 0 B, current rate: 0 B/s opos: 0 B, non-scraped: 0 B, average rate: 0 B/s non-tried: 23552 B, errsize: 0 B, run time: 0s rescued: 0 B, errors: 0, remaining time: n/a percent rescued: 0.00% time since last successful read: 0s

Copying non-tried blocks… Pass 1 (forwards) [A ipos: 0 B, non-trimmed: 0 B, current rate: 23552 B/s opos: 0 B, non-scraped: 0 B, average rate: 23552 B/s non-tried: 0 B, errsize: 0 B, run time: 1s rescued: 23552 B, errors: 0, remaining time: n/a percent rescued: 100.00% time since last successful read: 0s

Finished
raw2: OK

ddrescue domain logfile test ok

clear tmp files floppy.img floppy.raw test.log raw2