partclone.info test

create raw file floppy.raw

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

262144+0 records in 262144+0 records out 268435456 bytes (268 MB) copied, 1.00954 s, 266 MB/s

format floppy.raw as ext2 raw partition

mkfs.ext2 -F floppy.raw

mke2fs 1.42.8 (20-Jun-2013) Discarding device blocks: 1024/262144 done
Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) Stride=0 blocks, Stripe width=0 blocks 65536 inodes, 262144 blocks 13107 blocks (5.00%) reserved for the super user First data block=1 Maximum filesystem blocks=67371008 32 block groups 8192 blocks per group, 8192 fragments per group 2048 inodes per group Superblock backups stored on blocks: 8193, 24577, 40961, 57345, 73729, 204801, 221185

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

clone floppy.raw to floppy.img

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

Partclone v0.2.70 http://partclone.org Starting to clone device (floppy.raw) to image (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: 268.4 MB = 262144 Blocks Space in use: 10.6 MB = 10335 Blocks Free Space: 257.9 MB = 251809 Blocks Block size: 1024 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: 317.49MB/min, current block: 254211, total block: 262144, Complete: 100.00% Total Time: 00:00:02, Ave. Rate: 317.5MB/min, 100.00% completed! Syncing… OK! Partclone successfully cloned the device (floppy.raw) to the image (floppy.img) Cloned successfully.

print image header

../src/partclone.info -s floppy.img -L test.log

Partclone v0.2.70 http://partclone.org Display image information File system: EXTFS Device size: 268.4 MB = 262144 Blocks Space in use: 10.6 MB = 10335 Blocks Free Space: 257.9 MB = 251809 Blocks Block size: 1024 Byte

print image header from stdin image

cat floppy.img | ../src/partclone.info -s - -L test.log

Partclone v0.2.70 http://partclone.org Display image information File system: EXTFS Device size: 268.4 MB = 262144 Blocks Space in use: 10.6 MB = 10335 Blocks Free Space: 257.9 MB = 251809 Blocks Block size: 1024 Byte

check logfile

cat test.log

Partclone v0.2.70 http://partclone.org Display image information initial main bitmap pointer 0x942d6c0 Initial image hdr: read bitmap table check main bitmap pointer 0x942d6c0 print image_head File system: EXTFS Device size: 268.4 MB = 262144 Blocks Space in use: 10.6 MB = 10335 Blocks Free Space: 257.9 MB = 251809 Blocks Block size: 1024 Byte

give no options

partclone v0.2.70 http://partclone.org Usage: partclone.info [FILE] Or: partclone.info [OPTIONS]

-s,  --source FILE      Source FILE, or stdin(-)
-L,  --logfile FILE     Log FILE
-dX, --debug=X          Set the debug level to X = [0|1|2]
-q,  --quiet            Disable progress message
-v,  --version          Display partclone version
-h,  --help             Display this help

info test ok

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