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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-18-2002, 07:33 PM
|
#1
|
Newbie
Registered: Oct 2002
Posts: 12
Rep:
|
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-
|
|
|
11-18-2002, 07:39 PM
|
#2
|
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368
Rep:
|
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
|
|
|
11-19-2002, 06:36 AM
|
#3
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
11-19-2002, 03:10 PM
|
#4
|
Newbie
Registered: Oct 2002
Posts: 12
Original Poster
Rep:
|
Thanks for the responses. This was something I always wondered about.
|
|
|
All times are GMT -5. The time now is 03:12 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|