>Every time I plug / unplug the disk, I have to echo "scsi >add-single-device"/"scsi remove single-device" (with correct traget ID) to >/proc/scsi/scsi. I wanted to automate this process, I wanted the disk to get >detected and installed the moment it is inserted / removed. Can I do that? I >don't mind writing a kernel module if need be.
This is the wonderful world of hotplug. I don't know anything about hotplug -- my expertise on SCSI comes from an era when it wasn't even electrically possible (allowable, anyway) to add a disk to a SCSI bus without powering down. So I hope someone on the list will give us an overview of the state of hotplug and SCSI. - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html