--- /etc/init.d/umountiscsi.sh.orig 2014-06-01 13:10:48.701071824 +0100 +++ /etc/init.d/umountiscsi.sh 2014-06-01 13:12:15.219170707 +0100 @@ -54,6 +54,9 @@ continue fi for BLOCK_FILE in $SESSION_DIR/target*/*\:*/block/*; do + if ! [ -d $BLOCK_FILE ]; then + continue + fi BLOCK_DEV=`echo "$BLOCK_FILE" | sed 's/.*block\///'` DOS_PARTITIONS="`awk "/^\/dev\/$BLOCK_DEV/ { print \\$2; }" < /proc/mounts`" for DEVICE in $DOS_PARTITIONS; do