LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices


Reply
  Search this Thread
Old 11-18-2002, 07:33 PM   #1
icel0rd
Newbie
 
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.


-Ice-
 
Old 11-18-2002, 07:39 PM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
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.

HTH
 
Old 11-19-2002, 06:36 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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

Cool
 
Old 11-19-2002, 03:10 PM   #4
icel0rd
Newbie
 
Registered: Oct 2002
Posts: 12

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


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

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