Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 11-18-2002, 06:33 PM   #1
Registered: Oct 2002
Posts: 12

Rep: Reputation: 0
devices in /dev

Ok guys, I am a little confused about the /dev section. I need to know how to determine what corresponds to what under /dev.

I had a sandisk cruzer usb device and I saw it listed in /proc/usb and wondered how would I have determined that it was supposed to be sda1 to begin with? I noticed that the drivers section under /proc/usb/drivers said it was using the transparent-scsi access method/driver. There are probably hundreds of entries in /dev.

Is there a naming scheme to the stuff in /dev that people know and use or is there a way to get your system to tell you what hardware you have goes to what entry in /dev ???

I guessed that transparent-scsi meant it would show up as a scsi drive so I tried sda1 and it worked, but what if it was something else? How can you tell what /dev listings are mountable? How can you tell the ones that actually represent something that is plugged in and ready to go vs the ones sitting there that do nothing because there is no corresponding hardware to mount????

Thanks in advance.

Old 11-18-2002, 06:39 PM   #2
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
Thank God for devfs! Under the standard setup, there will be lots of entries in /dev, and most of them will be for devices that could exist. When using devfs, however, only the devices that are actually available are shown - it's very handy!

Anyway, with regard to mounting, if you issue the command fdisk -l, it should list all block devices that actually exist, so you should be able to determine which ones are mountable.

Old 11-19-2002, 05:36 AM   #3
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Also, sometimes by reading either dmesg or /var/log/messages you can determine what /dev each disk corresponds to, but not always. I have a success rate of oh, maybe 30% using that, otherwise it's a lucky guess or a quick search on here

Old 11-19-2002, 02:10 PM   #4
Registered: Oct 2002
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for the responses. This was something I always wondered about.


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
Disappearing devices in /dev/ thew00t Linux - Hardware 3 04-11-2005 07:09 AM
various /dev/(n)st0? devices coreyw Linux - Hardware 1 11-03-2003 05:53 PM
mounting 2 ide-scsi devices /dev/cdrom and /dev/cdrom1 issue penguin123 Linux - Hardware 3 09-26-2003 08:36 PM
Two Video Devices - /dev/video0 & /dev/video1 liguorir Linux - Software 1 07-21-2003 08:20 PM
Floppy devices in /dev Thymox Linux - Hardware 4 07-01-2003 05:03 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:36 PM.

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