10 lines
180 B
Bash
10 lines
180 B
Bash
|
#!/usr/bin/env bash
|
||
|
set -eux
|
||
|
|
||
|
while read mountp; do
|
||
|
cat /dev/zero | dd of=${mountp}/EMPTY || true
|
||
|
rm -f ${mountp}/EMPTY
|
||
|
done < <(mount -l -t ext4 | awk '{print $3}')
|
||
|
|
||
|
sync
|