New answers tagged

0

I have a pair of scripts that build upon the answer by Wyzard. The first, scsi-drop, is to safely detach a single disk: #!/bin/sh if test -h "$1" then disk=$(chase "$1") else disk="$1" fi if test -b "$disk" then echo 1 >/sys/block/$(basename "$disk")/device/delete else echo "$0: not a block device: $1" >&2 exit 1 fi Its ...



Top 50 recent answers are included