Code: Select all
~$ df -ht ext4
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 46G 17G 28G 38% /
/dev/sdf1 3.6T 100G 3.4T 3% /data/backup
/dev/sda4 1.8T 5.2G 1.7T 1% /home
Code: Select all
/data/backup/DiskImages/LinuxMint/LM-22-05-18$ ls -lh
total 52G
-rw-r--r-- 1 root root 490 May 18 19:53 20220518-uncompressed.backup
-rw-r--r-- 1 root root 1.0M May 18 19:48 20220518-uncompressed.grub
-rw-r--r-- 1 root root 89 May 18 19:53 20220518-uncompressed.note.txt
-rw------- 1 root root 2.2M May 18 19:48 20220518-uncompressed.sda1.img
-rw-r--r-- 1 root root 615 May 18 20:04 20220518-uncompressed.sda1.img.chk
-rw-r--r-- 1 root root 671 May 18 19:48 20220518-uncompressed.sda1-log.txt
-rw------- 1 root root 17G May 18 19:49 20220518-uncompressed.sda2.img
-rw-r--r-- 1 root root 621 May 18 19:59 20220518-uncompressed.sda2.img.chk
-rw-r--r-- 1 root root 678 May 18 19:49 20220518-uncompressed.sda2-log.txt
-rw------- 1 root root 35G May 18 19:52 20220518-uncompressed.sda4.img
-rw-r--r-- 1 root root 626 May 18 20:03 20220518-uncompressed.sda4.img.chk
-rw-r--r-- 1 root root 684 May 18 19:53 20220518-uncompressed.sda4-log.txt
-rw-r--r-- 1 root root 310 May 18 19:48 20220518-uncompressed.sfdisk
But the size of /dev/sda4 reported by df is 5.2GB while the corresponding Foxclone file 20220518-uncompressed.sda4.img is 35GB.
This is not to cast any shade on Foxclone since it must be using a different view of the used blocks than df is using. So my question is this. Can I do anything to release the blocks that no longer contain data as viewed by Foxclone and come away with smaller disk images?