[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How to browse hardwares in shell?



On Tue, 1 Jul 2003, Edward Dekkers wrote:
> Leo Huang wrote:
> > I plugged a USB HD into a server, running Redhat 7.3. How embarrased I was
> > as I couldn't find where the device was!! It used to be /dev/sd1 at my
> > desktop, running 9.0. As the server has a SCSI RAID taking /dev/sd1, I tried
> > /dev/sd2 /dev/sd3, but they didn't work.
> > 
> It probably shows up somewhere under /proc no?
> 
Probably a couple of different places. My server here doesn't have 
any USB devices so I can't totally check it out, but try:

cat /proc/bus/usb
cat /proc/devices

and

lsusb                (8)  - list all USB devices
usbmodules           (8)  - List kernel driver modules available for a 
plugged in USB device

lsusb will probably give you exactly what you need, but it should also 
show up under /proc/devices

-ray




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]