partclone.dd test

create raw file floppy.raw

dd if=/dev/urandom of=floppy.raw bs=1024 count=131072

131072+0 records in 131072+0 records out 134217728 bytes (134 MB) copied, 13.9961 s, 9.6 MB/s

clone floppy.raw to floppy.img

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

Partclone v0.2.70 http://partclone.org Starting to clone/restore (floppy.raw) to (floppy.img) with dd mode Reading Super Block Calculating bitmap… Please wait… done! File system: raw Device size: 134.2 MB = 262144 Blocks Space in use: 134.2 MB = 262144 Blocks Free Space: 0 Byte = 0 Blocks Block size: 512 Byte Elapsed: 00:00:01, Remaining: 00:01:39, Completed: 1.00%, 0.00byte/min, current block: 0, total block: 262144, Complete: 0.00% Elapsed: 00:00:02, Remaining: 00:00:00, Completed: 100.00%, Rate: 4.03GB/min, current block: 262144, total block: 262144, Complete: 100.00% Total Time: 00:00:02, Ave. Rate: 4.0GB/min, 100.00% completed! Syncing… OK! Cloned successfully.

create raw file floppy.raw for restore

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

131072+0 records in 131072+0 records out 134217728 bytes (134 MB) copied, 0.507454 s, 264 MB/s

restore floppy.img to floppy.raw

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

Partclone v0.2.70 http://partclone.org Starting to clone/restore (floppy.img) to (floppy.raw) with dd mode Reading Super Block Calculating bitmap… Please wait… done! File system: raw Device size: 134.2 MB = 262144 Blocks Space in use: 134.2 MB = 262144 Blocks Free Space: 0 Byte = 0 Blocks Block size: 512 Byte Elapsed: 00:00:01, Remaining: 00:01:39, Completed: 1.00%, 0.00byte/min, current block: 0, total block: 262144, Complete: 0.00% Elapsed: 00:00:02, Remaining: 00:00:00, Completed: 100.00%, Rate: 4.03GB/min, current block: 262144, total block: 262144, Complete: 100.00% Total Time: 00:00:02, Ave. Rate: 4.0GB/min, 100.00% completed! Syncing… OK! Cloned successfully.

dd test ok

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