1
0

spacer gen

This commit is contained in:
Deven Blake 2021-03-26 10:41:52 -04:00
parent 56d17f5fab
commit 121c225f03

7
dotfiles-old/scripts/spacer.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
# creates an 8GB empty file in the root dir
# that way when the alarm bells go off you can delete it to save a couple
# minutes before the system really runs out of disk
! [ -e /spacer.img ] || return 1 || exit 1
dd if=/dev/zero bs=1K count=8M >spacer.img
sudo mv ./spacer.img /spacer.img