-   Linux - Newbie (
-   -   which /dev/ for what hardware (

jkh 02-26-2005 04:56 PM

which /dev/ for what hardware
Is there a way to see which /dev file relates to what hardware? if so please state how.
I want to use my usb pen drive on my slackware install but this means if I want to mount it I need to write an /etc/fstab entry. My problem occurs because I don't know what /dev/ relates to my usb pen drive.

btmiller 02-26-2005 05:06 PM

Usually there will be some clues in the dmesg output. If you plug the device in, and it is recognized, you should see something in there. Usually IIRC pen drives show up as SCSI devices (/dev/sdXX).

Kristijan 02-26-2005 08:27 PM


As stated above, dmesg will give you some indication.

As root, try this...


dmesg | grep sd
Somewhere in the output you should find what you USB device is. More then likely its something like /dev/sda1.

Let me know if you're still stuck.


DaHammer 02-27-2005 01:09 AM

Take a look at "/usr/src/linux-`uname -r`/Documentation/devices.txt" if you have the kernel source installed.

jkh 03-03-2005 11:20 AM

thankyou all for your replies, it is /dev/sda1. Now I have the fstab entry complete :
/dev/sda1 /mnt/usb auto noauto,owner,rw 0 0
Only trouble im having now is allowing regular users to have write access to the device.
Thanks again

/usr/src/linux-`uname -r`/Documentation/devices.txt gives me : Permission denied. so I dont know whats up with that.

All times are GMT -5. The time now is 11:05 PM.