Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
for i in $(lshw -class disk -class tape | grep 'logical name' | awk '{ print $NF }' | grep 'sd\|nvm'); do
    timeout 10 dd if=/dev/zero of=$i bs=20M count=1 &
done

sleep 15

for i in $(lshw -class disk -class tape | grep 'logical name' | awk '{ print $NF }' | grep 'sd\|nvm'); do
    wipefs -a -f $i
done

halt

You can customize the commands as you like.

...