partclone.imager test

create raw file floppy.raw and save as partclone image file

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

128+0 records in 128+0 records out 131072 bytes (131 kB, 128 KiB) copied, 0.000800137 s, 164 MB/s

clone floppy.raw to floppy.img

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

Partclone v0.3.9 http://partclone.org Starting to clone device (floppy.raw) to image (floppy.img) Reading Super Block Calculating bitmap… Please wait… done! File system: raw Device size: 0 Byte = 0 Blocks Space in use: 0 Byte = 0 Blocks Free Space: 0 Byte = 0 Blocks Block size: 512 Byte

Elapsed: 00:00:01, Remaining: > -596523 , Completed: -nan%, 0.00byte/min,

current block: 0, total block: 0, Complete: -nan% [A

Elapsed: 00:00:02, Remaining: 00:00:00, Completed: 100.00%, Rate: 0.00byte/min,

current block: 0, total block: 0, Complete: 100.00% Total Time: 00:00:02, Ave. Rate: 0.0byte/min, 100.00% completed! Syncing… OK! Partclone successfully cloned the device (floppy.raw) to the image (floppy.img) Cloned successfully.

create raw file floppy.raw for restore

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

128+0 records in 128+0 records out 131072 bytes (131 kB, 128 KiB) copied, 0.00354123 s, 37.0 MB/s

restore floppy.img to floppy.raw

../src/partclone.restore -s floppy.img -O floppy.raw -C -F -L test.log

Partclone v0.3.9 http://partclone.org Starting to restore image (floppy.img) to device (floppy.raw) Calculating bitmap… Please wait… done! File system: raw Device size: 0 Byte = 0 Blocks Space in use: 0 Byte = 0 Blocks Free Space: 0 Byte = 0 Blocks Block size: 512 Byte

Elapsed: 00:00:01, Remaining: 00:00:00, Completed: 100.00%, Rate: 0.00byte/min,

current block: 0, total block: 0, Complete: 100.00% Total Time: 00:00:01, Ave. Rate: 0.0byte/min, 100.00% completed! Syncing… OK! Partclone successfully restored the image (floppy.img) to the device (floppy.raw) Cloned successfully.

imager test ok

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