Lines Matching refs:DEVICE
38 diskutil info $DEVICE | egrep "(Device Node|Media Name|Total Size)"
43 ACTUAL_DEVICE=`readlink -f $DEVICE`
45 if [ "$ACTUAL_DEVICE" != "$DEVICE" ] ; then
46 echo " device: $DEVICE -> $ACTUAL_DEVICE"
48 echo " device: $DEVICE"
117 DEVICE=$2
125 if [ ! -e "$DEVICE" ]; then
126 echo "ERROR: Device $DEVICE does not exist"
133 ACTUAL_DEVICE=$DEVICE
135 ACTUAL_DEVICE=`readlink -f $DEVICE`
138 …echo "ERROR: Device $DEVICE is currently mounted - check if this is the right device, and unmount …
143 …echo "ERROR: Device $DEVICE is currently in use (possibly part of LVM) - check if this is the righ…
148 if [ ! -w "$DEVICE" ]; then
149 echo "ERROR: Device $DEVICE is not writable - possibly use sudo?"
157 printf "Write $IMAGE to $DEVICE [y/N]? "
166 pv "$IMAGE" | dd of="$DEVICE" bs="$BLOCKSIZE"
168 dd if="$IMAGE" of="$DEVICE" bs="$BLOCKSIZE"