Group: comp.os.linux.networking
From: Ramon F Herrera
Date: Tuesday, April 08, 2008 12:10 PM
Subject: How to detect that a USB disk has been plugged?


My server is in a remote site and I have ssh access only. I had a
colleague plug an USB disk into the server and would like to mount it.

I was hoping that the insertion of the disk would generate some log
message but that doesn't seem to be the case. I only looked in /var/
log/messages, btw.

My second approach was to reboot the server and take a look at the
boot log in order to identify the device and mount the disk.

Is it possible to identify the device without rebooting? Maybe I
should look under the /proc filesystem?

TIA,

-Ramon