Hi,
I hava a eSATA external hard disk. The units does not show up when I plug it in after the system boots up (Fedora 9), but is available when it has been switched on before the system is booted.
From a Google search, I found the command "echo "---">/sys/class/scsi_host/host{n}/scan" which made the external disk be mounted automatically.
I checked that there is a directory "/sys/class/scsi_host/host{0-6}" and a file "scan" which has a permission of "-w-------".
Can anyone explain how this command works, or give some pointers for further reading?
Thanks and regards.
sadhu
On Fri, Jan 16, 2009 at 3:47 PM, Nachiketa Sadhu sadhu@iitb.ac.in wrote:
Can anyone explain how this command works, or give some pointers for further reading?
Have you checked sysfs documentation? I guess that will answer your query. Here's it's wikipedia page which will give you some useful links - http://en.wikipedia.org/wiki/Sysfs
Mehul Ved wrote:
On Fri, Jan 16, 2009 at 3:47 PM, Nachiketa Sadhu sadhu@iitb.ac.in wrote:
Can anyone explain how this command works, or give some pointers for further reading?
Have you checked sysfs documentation? I guess that will answer your query. Here's it's wikipedia page which will give you some useful links - http://en.wikipedia.org/wiki/Sysfs
Thanks.
sadhu
On Sun, Jan 18, 2009 at 4:45 PM, Nachiketa Sadhu sadhu@iitb.ac.in wrote:
Mehul Ved wrote:
Have you checked sysfs documentation? I guess that will answer your query. Here's it's wikipedia page which will give you some useful links - http://en.wikipedia.org/wiki/Sysfs
Thanks.
Also, don't forget $ man 2 sysfs and $ info sysfs