the job. partclone can only copy partitions but not entire disks..
How is there no tool for such a simple task? D:
Copying a disk means copying the data, regardless the file system in them There are a lot of tools to do disk images. Your request is not valid, you don't want to copy the unused/free space
ok, is there a tool that can turn a disk into an img file ignoring the blank space?
Wrong question again. Fill your unused space with zeroes, then image the disk
it takes too much time on huge disks. This looks like a non-sensical strategy to me. You pay with I/O and time. There must be a better way. Maybe there is a way to create an img file from cloned partitions.
To know if the space is needed requires knowing the file system in them, hence clone the file systems
Guess the filesize, create an image, create btrfs fs with compression (for smaller file size) and rsync the data to it
Sounds similar to this solution: https://serverfault.com/a/785995
What about clonezilla? I think it can do that
Lots of options - zero the unused space and use dd conv=sparse - mount the partition and copy the files some place else (e.g. a loop device formatted with some FS) - tell the file system on your partition to shrink itself as much as it can and copy the first N bytes of that partition
Clonezilla?
Обсуждают сегодня