See the following testing:
$ sudo partclone.ext4 -c -s /dev/nvme0n1p2 -o aaa.img
Partclone v0.3.13
http://partclone.org
Starting to clone device (/dev/nvme0n1p2) to image (aaa.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: 26.2 GB = 6400000 Blocks
Space in use: 9.4 GB = 2299940 Blocks
Free Space: 16.8 GB = 4100060 Blocks
Block size: 4096 Byte
Elapsed: 00:00:34, Remaining: 00:00:00, Completed: 100.00%, Rate: 16.62GB/min, current block: 6400000, total block: 6400000, Complete: 100.00%
Total Time: 00:00:34, Ave. Rate: 16.6GB/min, 100.00% completed!
Syncing... OK!
Partclone successfully cloned the device (/dev/nvme0n1p2) to the image (aaa.img)
Cloned successfully.
$ du -h aaa.img
8.8G aaa.img
As you can see, the partclone tool let me clone the real blocks used on the disk part into an IMG file which can be used to restore to another disk partition later.
I want to know if I can use dd to achieve the same purpose.
Regards,
HY
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)