Basic ext3 test

create raw file floppy.raw

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

819204+0 records in 819204+0 records out 838864896 bytes (839 MB, 800 MiB) copied, 1.86373 s, 450 MB/s

format floppy.raw as ext3 raw partition

mkfs.ext3 -F floppy.raw

mke2fs 1.43.4 (31-Jan-2017) Discarding device blocks: 4096/204801

done
Creating filesystem with 204801 4k blocks and 51296 inodes Filesystem UUID: bf9b7e0f-b20e-4984-a7f4-52faf104bdc3 Superblock backups stored on blocks: 32768, 98304, 163840

Allocating group tables: 0/7 done
Writing inode tables: 0/7 done
Creating journal (4096 blocks): done Writing superblocks and filesystem accounting information: 0/7 done

create raw file restore.raw for restore

dd if=/dev/zero of=restore.raw bs=1024 count=819204

819204+0 records in 819204+0 records out 838864896 bytes (839 MB, 800 MiB) copied, 1.75107 s, 479 MB/s

clone floppy.raw to floppy.img

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

Partclone v0.3.9 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:01:39, Completed: 1.00%

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: 838.9 MB = 204801 Blocks Space in use: 30.9 MB = 7535 Blocks Free Space: 808.0 MB = 197266 Blocks Block size: 4096 Byte

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

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

Elapsed: 00:00:02, Remaining: 00:00:00, Completed: 100.00%, Rate: 925.90MB/min,

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

do image checking

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

Partclone v0.3.9 http://partclone.org Starting to check image (floppy.img) Calculating bitmap… Please wait… done! File system: EXTFS Device size: 838.9 MB = 204801 Blocks Space in use: 30.9 MB = 7535 Blocks Free Space: 808.0 MB = 197266 Blocks Block size: 4096 Byte

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

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

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

current block: 0, total block: 204801, Complete: 100.00% Total Time: 00:00:02, Ave. Rate: 0.0byte/min, 100.00% completed! Partclone successfully checked the image (floppy.img) Checked successfully.

restore floppy.img to restore.raw

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

Partclone v0.3.9 http://partclone.org Starting to restore image (floppy.img) to device (restore.raw) Calculating bitmap… Please wait… done! File system: EXTFS Device size: 838.9 MB = 204801 Blocks Space in use: 30.9 MB = 7535 Blocks Free Space: 808.0 MB = 197266 Blocks Block size: 4096 Byte

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

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

Elapsed: 00:00:02, Remaining: 00:00:00, Completed: 100.00%, Rate: 925.90MB/min,

current block: 197068, total block: 204801, Complete: 100.00% Total Time: 00:00:02, Ave. Rate: 925.9MB/min, 100.00% completed! Syncing… OK! Partclone successfully restored the image (floppy.img) to the device (restore.raw) Cloned successfully.

checksum option -a 0 -k 0 test ok

file system ext3 test done

clone floppy.raw to floppy.img

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

Partclone v0.3.9 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:01:39, Completed: 1.00%

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: 838.9 MB = 204801 Blocks Space in use: 30.9 MB = 7535 Blocks Free Space: 808.0 MB = 197266 Blocks Block size: 4096 Byte

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

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

Elapsed: 00:00:02, Remaining: 00:00:00, Completed: 100.00%, Rate: 925.90MB/min,

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

do image checking

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

Partclone v0.3.9 http://partclone.org Starting to check image (floppy.img) Calculating bitmap… Please wait… done! File system: EXTFS Device size: 838.9 MB = 204801 Blocks Space in use: 30.9 MB = 7535 Blocks Free Space: 808.0 MB = 197266 Blocks Block size: 4096 Byte

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

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

Elapsed: 00:00:02, Remaining: 00:00:00, Completed: 100.00%, Rate: 925.90MB/min,

current block: 197068, total block: 204801, Complete: 100.00% Total Time: 00:00:02, Ave. Rate: 925.9MB/min, 100.00% completed! Partclone successfully checked the image (floppy.img) Checked successfully.

restore floppy.img to restore.raw

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

Partclone v0.3.9 http://partclone.org Starting to restore image (floppy.img) to device (restore.raw) Calculating bitmap… Please wait… done! File system: EXTFS Device size: 838.9 MB = 204801 Blocks Space in use: 30.9 MB = 7535 Blocks Free Space: 808.0 MB = 197266 Blocks Block size: 4096 Byte

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

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

Elapsed: 00:00:02, Remaining: 00:00:00, Completed: 100.00%, Rate: 925.90MB/min,

current block: 197068, total block: 204801, Complete: 100.00% Total Time: 00:00:02, Ave. Rate: 925.9MB/min, 100.00% completed! Syncing… OK! Partclone successfully restored the image (floppy.img) to the device (restore.raw) Cloned successfully.

checksum option -a 1 -k 0 test ok

file system ext3 test done

clone floppy.raw to floppy.img

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

Partclone v0.3.9 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:01:39, Completed: 1.00%

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: 838.9 MB = 204801 Blocks Space in use: 30.9 MB = 7535 Blocks Free Space: 808.0 MB = 197266 Blocks Block size: 4096 Byte

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

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

Elapsed: 00:00:02, Remaining: 00:00:00, Completed: 100.00%, Rate: 925.90MB/min,

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

do image checking

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

Partclone v0.3.9 http://partclone.org Starting to check image (floppy.img) Calculating bitmap… Please wait… done! File system: EXTFS Device size: 838.9 MB = 204801 Blocks Space in use: 30.9 MB = 7535 Blocks Free Space: 808.0 MB = 197266 Blocks Block size: 4096 Byte

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

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

Elapsed: 00:00:02, Remaining: 00:00:00, Completed: 100.00%, Rate: 925.90MB/min,

current block: 197068, total block: 204801, Complete: 100.00% Total Time: 00:00:02, Ave. Rate: 925.9MB/min, 100.00% completed! Partclone successfully checked the image (floppy.img) Checked successfully.

restore floppy.img to restore.raw

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

Partclone v0.3.9 http://partclone.org Starting to restore image (floppy.img) to device (restore.raw) Calculating bitmap… Please wait… done! File system: EXTFS Device size: 838.9 MB = 204801 Blocks Space in use: 30.9 MB = 7535 Blocks Free Space: 808.0 MB = 197266 Blocks Block size: 4096 Byte

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

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

Elapsed: 00:00:02, Remaining: 00:00:00, Completed: 100.00%, Rate: 925.90MB/min,

current block: 197068, total block: 204801, Complete: 100.00% Total Time: 00:00:02, Ave. Rate: 925.9MB/min, 100.00% completed! Syncing… OK! Partclone successfully restored the image (floppy.img) to the device (restore.raw) Cloned successfully.

checksum option -a 1 -k 17 test ok

file system ext3 test done

clone floppy.raw to floppy.img

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

Partclone v0.3.9 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:01:39, Completed: 1.00%

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: 838.9 MB = 204801 Blocks Space in use: 30.9 MB = 7535 Blocks Free Space: 808.0 MB = 197266 Blocks Block size: 4096 Byte

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

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

Elapsed: 00:00:02, Remaining: 00:00:00, Completed: 100.00%, Rate: 925.90MB/min,

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

do image checking

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

Partclone v0.3.9 http://partclone.org Starting to check image (floppy.img) Calculating bitmap… Please wait… done! File system: EXTFS Device size: 838.9 MB = 204801 Blocks Space in use: 30.9 MB = 7535 Blocks Free Space: 808.0 MB = 197266 Blocks Block size: 4096 Byte

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

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

Elapsed: 00:00:02, Remaining: 00:00:00, Completed: 100.00%, Rate: 925.90MB/min,

current block: 197068, total block: 204801, Complete: 100.00% Total Time: 00:00:02, Ave. Rate: 925.9MB/min, 100.00% completed! Partclone successfully checked the image (floppy.img) Checked successfully.

restore floppy.img to restore.raw

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

Partclone v0.3.9 http://partclone.org Starting to restore image (floppy.img) to device (restore.raw) Calculating bitmap… Please wait… done! File system: EXTFS Device size: 838.9 MB = 204801 Blocks Space in use: 30.9 MB = 7535 Blocks Free Space: 808.0 MB = 197266 Blocks Block size: 4096 Byte

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

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

Elapsed: 00:00:02, Remaining: 00:00:00, Completed: 100.00%, Rate: 925.90MB/min,

current block: 197068, total block: 204801, Complete: 100.00% Total Time: 00:00:02, Ave. Rate: 925.9MB/min, 100.00% completed! Syncing… OK! Partclone successfully restored the image (floppy.img) to the device (restore.raw) Cloned successfully.

checksum option -a 1 -k 1 test ok

file system ext3 test done

clone floppy.raw to floppy.img

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

Partclone v0.3.9 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:01:39, Completed: 1.00%

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: 838.9 MB = 204801 Blocks Space in use: 30.9 MB = 7535 Blocks Free Space: 808.0 MB = 197266 Blocks Block size: 4096 Byte

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

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

Elapsed: 00:00:02, Remaining: 00:00:00, Completed: 100.00%, Rate: 925.90MB/min,

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

do image checking

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

Partclone v0.3.9 http://partclone.org Starting to check image (floppy.img) Calculating bitmap… Please wait… done! File system: EXTFS Device size: 838.9 MB = 204801 Blocks Space in use: 30.9 MB = 7535 Blocks Free Space: 808.0 MB = 197266 Blocks Block size: 4096 Byte

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

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

Elapsed: 00:00:02, Remaining: 00:00:00, Completed: 100.00%, Rate: 925.90MB/min,

current block: 197068, total block: 204801, Complete: 100.00% Total Time: 00:00:02, Ave. Rate: 925.9MB/min, 100.00% completed! Partclone successfully checked the image (floppy.img) Checked successfully.

restore floppy.img to restore.raw

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

Partclone v0.3.9 http://partclone.org Starting to restore image (floppy.img) to device (restore.raw) Calculating bitmap… Please wait… done! File system: EXTFS Device size: 838.9 MB = 204801 Blocks Space in use: 30.9 MB = 7535 Blocks Free Space: 808.0 MB = 197266 Blocks Block size: 4096 Byte

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

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

Elapsed: 00:00:02, Remaining: 00:00:00, Completed: 100.00%, Rate: 925.90MB/min,

current block: 197068, total block: 204801, Complete: 100.00% Total Time: 00:00:02, Ave. Rate: 925.9MB/min, 100.00% completed! Syncing… OK! Partclone successfully restored the image (floppy.img) to the device (restore.raw) Cloned successfully.

checksum option -a 1 -k 64 test ok

file system ext3 test done

clone floppy.raw to floppy.img

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

Partclone v0.3.9 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:01:39, Completed: 1.00%

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: 838.9 MB = 204801 Blocks Space in use: 30.9 MB = 7535 Blocks Free Space: 808.0 MB = 197266 Blocks Block size: 4096 Byte

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

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

Elapsed: 00:00:02, Remaining: 00:00:00, Completed: 100.00%, Rate: 925.90MB/min,

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

do image checking

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

Partclone v0.3.9 http://partclone.org Starting to check image (floppy.img) Calculating bitmap… Please wait… done! File system: EXTFS Device size: 838.9 MB = 204801 Blocks Space in use: 30.9 MB = 7535 Blocks Free Space: 808.0 MB = 197266 Blocks Block size: 4096 Byte

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

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

Elapsed: 00:00:02, Remaining: 00:00:00, Completed: 100.00%, Rate: 925.90MB/min,

current block: 197068, total block: 204801, Complete: 100.00% Total Time: 00:00:02, Ave. Rate: 925.9MB/min, 100.00% completed! Partclone successfully checked the image (floppy.img) Checked successfully.

restore floppy.img to restore.raw

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

Partclone v0.3.9 http://partclone.org Starting to restore image (floppy.img) to device (restore.raw) Calculating bitmap… Please wait… done! File system: EXTFS Device size: 838.9 MB = 204801 Blocks Space in use: 30.9 MB = 7535 Blocks Free Space: 808.0 MB = 197266 Blocks Block size: 4096 Byte

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

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

Elapsed: 00:00:02, Remaining: 00:00:00, Completed: 100.00%, Rate: 925.90MB/min,

current block: 197068, total block: 204801, Complete: 100.00% Total Time: 00:00:02, Ave. Rate: 925.9MB/min, 100.00% completed! Syncing… OK! Partclone successfully restored the image (floppy.img) to the device (restore.raw) Cloned successfully.

checksum option -a 1 -k 3097 test ok

file system ext3 test done

clone.0.0.log 0.00user 0.03system 0:02.01elapsed 1%CPU (0avgtext+0avgdata 4632maxresident)k 0inputs+60352outputs (0major+660minor)pagefaults 0swaps

clone.1.0.log 0.07user 0.02system 0:02.02elapsed 5%CPU (0avgtext+0avgdata 4640maxresident)k 8inputs+60344outputs (0major+659minor)pagefaults 0swaps

clone.1.17.log 0.07user 0.02system 0:02.01elapsed 5%CPU (0avgtext+0avgdata 4732maxresident)k 0inputs+60344outputs (0major+661minor)pagefaults 0swaps

clone.1.1.log 0.08user 0.02system 0:02.02elapsed 5%CPU (0avgtext+0avgdata 4600maxresident)k 0inputs+60400outputs (0major+661minor)pagefaults 0swaps

clone.1.3097.log 0.07user 0.03system 0:02.03elapsed 5%CPU (0avgtext+0avgdata 4684maxresident)k 0inputs+60344outputs (0major+660minor)pagefaults 0swaps

clone.1.64.log 0.07user 0.04system 0:02.03elapsed 5%CPU (0avgtext+0avgdata 4864maxresident)k 0inputs+60344outputs (0major+662minor)pagefaults 0swaps

restore.0.0.log 0.00user 0.01system 0:02.00elapsed 0%CPU (0avgtext+0avgdata 4008maxresident)k 0inputs+58440outputs (0major+632minor)pagefaults 0swaps

restore.1.0.log 0.07user 0.02system 0:02.01elapsed 4%CPU (0avgtext+0avgdata 4104maxresident)k 0inputs+60288outputs (0major+632minor)pagefaults 0swaps

restore.1.17.log 0.08user 0.01system 0:02.01elapsed 4%CPU (0avgtext+0avgdata 4228maxresident)k 0inputs+60288outputs (0major+633minor)pagefaults 0swaps

restore.1.1.log 0.08user 0.03system 0:02.03elapsed 5%CPU (0avgtext+0avgdata 4092maxresident)k 0inputs+60288outputs (0major+632minor)pagefaults 0swaps

restore.1.3097.log 0.06user 0.03system 0:02.01elapsed 4%CPU (0avgtext+0avgdata 4008maxresident)k 0inputs+60296outputs (0major+631minor)pagefaults 0swaps

restore.1.64.log 0.07user 0.02system 0:02.01elapsed 4%CPU (0avgtext+0avgdata 4004maxresident)k 0inputs+60288outputs (0major+631minor)pagefaults 0swaps

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

checksum test done