source: http://www.tldp.org/HOWTO/archived/SCSI-Programming-HOWTO/SCSI-Programming-HOWTO-4.html

To remove a drive from “cat /proc/partitions” similar to article here

echo “scsi remove-single-device a b c d” > /proc/scsi/scsi
echo “scsi add-single-device a b c d” > /proc/scsi/scsi
a == hostadapter id (first one being 0)
b == SCSI channel on hostadapter (first one being 0)
c == ID
d == LUN (first one being 0)

get a b c d from /sys/block path
find /sys/block | grep sdc
8:0:0:0 <– look for that

to remove: echo “scsi remove-single-device 8 0 0 0” > /proc/scsi/scsi
to add: echo “scsi add-single-device 8 0 0 0” > /proc/scsi/scsi

Leave a Reply

Your email address will not be published. Required fields are marked *