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

On Apr 8, 2:44 pm, Bill Marcum wrote:
> On 2008-04-08, Ramon F Herrera wrote:
>
>
>
> > 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?
>

> Perhaps your server installation does not include udevd.

Good point. I have been able to mount that disk on that server many
times, but I can't remember the details. At this point all I need is
the device to use with 'mount'. I have looked in 'dmesg' and under /
proc, and can't find anything.

-Ramon

ps: udev is up & running on my system - thanks for bringing it to my
attention.

Safety Articles | Usenet Groups | Usenet News | Bluegrass