On 12/1/24 10:19, William Torrez Corea wrote:
I make a disk image but this makes a backup of free space and full space of
the disk.
I am using dd (Unix) and using gnome-disk-utility.
How can I make a disk image of selected data?
I don't want to make a backup of the entire disk.
I use dd(1) for backup images:
1. If you want to backup only one partition, specify the device node
for that partition:
# dd if=/dev/sda1 ...
2. If you want specific blocks, such as the MBR, primary GPT header,
secondary GPT header, etc., specific the starting block and the number
of blocks to backup:
# dd bs=512 skip=0 count=34 ...
Related:
3. Run zerofree(8), fstrim(8), or another utility to zero ununused
blocks prior to taking the image. This implies #4.
4. Enable compression of the backup stream. For command line usage:
# dd ... | gzip ...
David