Quote:
Originally Posted by MaxStirner
Why not just fill up free space, leaving no more than 200 mb.
|
Yeah, that's what I do now as last resort:
Code:
#!/bin/sh
x="$(df | grep " /mnt/us" | awk '{print $4}')" #how much space left in 1024B units
dd if=/dev/zero of=/mnt/us/filler count=1 bs=1 seek="$(($x *1024 - 20 * 1024 * 1024))" #keep 20MB free
Not really convenient and slow (~10 minutes for 1.7GB), but it works.