Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-26-2005, 05:56 PM   #1
Registered: Dec 2004
Location: Maidstone, Kent, England
Distribution: Ubuntu
Posts: 100

Rep: Reputation: 15
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.
Old 02-26-2005, 06:06 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,265

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
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).
Old 02-26-2005, 09:27 PM   #3
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Rep: Reputation: 30

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.

Old 02-27-2005, 02:09 AM   #4
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Take a look at "/usr/src/linux-`uname -r`/Documentation/devices.txt" if you have the kernel source installed.
Old 03-03-2005, 12:20 PM   #5
Registered: Dec 2004
Location: Maidstone, Kent, England
Distribution: Ubuntu
Posts: 100

Original Poster
Rep: Reputation: 15

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.

Last edited by jkh; 03-03-2005 at 12:29 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I cannot access EITHER CD drive! And there's no /dev/hdc or /dev/hdd or /dev/cdrom! Dmalic Linux - Hardware 13 11-18-2005 08:11 PM
Finding my /dev/hardware binarybob0001 Linux - Newbie 12 07-04-2005 05:41 PM
ln: creating symbolic link `/dev/dvd' to `/dev/hdc': Permission denied qazwsx27 Fedora 3 06-14-2005 03:09 PM
How does Linux decide what device in /dev to use for a piece of hardware? BrianHenderson Linux - Hardware 4 08-30-2004 05:06 PM
hardware & the /dev directory? e1000 Linux - Hardware 4 01-03-2004 05:22 AM

All times are GMT -5. The time now is 12:25 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration