Linux – Where is /proc/scsi/scsi in Debian 6

debianlinuxscsi

I recently installed Debian 6 in a VM on ESXi 4.1, but I noticed there is no /proc/scsi/scsi. Am I missing a module which provides that, or is there a different way of doing things like echo "scsi add-single-device 0 0 1 0">/proc/scsi/scsi?

Best Answer

On recent kernels the /proc/scsi is being "migrated" to sysfs. You can recompile the kernel and enable the CONFIG_SCSI_PROC_FS: legacy /proc/scsi/ support to the scsi subsystem, or see if something under /sys/class/scsi_host and other sysfs dirs have what you need. The legacy support is a good route if you have many tools that rely on /proc/scsi to work.