I solved this issue: (btw there was no readme in the unpacked zerofree souce file, there was nothing to go on). These steps worked for me, maybe they will help someone with the same problem:
1) make a backup copy of /etc/fstab
2) edit /etc/fstab and change the following 'default' values to 'ro'.
Quote:
/dev/mapper/your_root_partition / ext4 ro 1 1
UUID=<very-long-string> /boot ext4 ro 1 2
/dev/mapper/your_home_partition /home ext4 ro 1 2
|
3) reboot <-- partitions will now be in read-only
the following was done in a putty console from another pc:
6) # echo "u" > /proc/sysrq-trigger
7) # mount /dev/mapper/your_root_partition/ -o remount,ro
8) # zerofree -v /dev/mapper/your_root_partition
(percentage progress)....
9) # zerofree -v /dev/mapper/your_home_partition
(percentage progress)...
10) restore the root partition back to rw
# mount /dev/mapper/your_root_partition/ -o remount,rw
10a) restore original /etc/fstab from backup copy you made in step 1.
11) check /etc/fstab. make sure it's back to default
12) reboot <--- machine will now boot as normal.