On Friday 03 June 2005 18:27, Oded Maimon wrote:
Saurabh Bathe wrote:
> Oded Maimon wrote:
>> Hi,
>>
>> When i enter a disk on key to one of my usb's, how can i know which
>> device the usb on?
>>
>>
>> i dont think lsusb give me the device name (/dev/sda1,sda2...)
>>
>>
>> Thanks,
>>
>> Oded.
>
> Check dmesg.
> It will tell the device name assigend to the usb stick/disk
>
> -Saurabh
Thanks,
but, this is the only way to know? by checking the syslog/dmesg? no
command that can give this information?
Regards,
Oded.
build your own command such as:
dmesg | tail
you could pipe dmesg output through grep or awk for more precise selection
--
Paul Almquist
paul(a)almquist.name
Eau Claire, WI USA