# Unmount and compress the filesystem
echo "Compressing filesystem"
sync;sync
umount
-r tempfs 2> /dev/null
umount -l tempfs 2> /dev/null
dd if=fs bs=1k | gzip -q -9 > filesys