LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-13-2011, 04:30 PM   #1
Bluerooster
LQ Newbie
 
Registered: Aug 2011
Location: Brighton, TN
Distribution: Ubuntu/Ubuntu Server
Posts: 4

Rep: Reputation: Disabled
Who names devices?


OK, next dumb questions: (I'm assuming that the system automatically recognizes hardware devices like hard drives, ethernet cards, and flash drives)
1) How does the system name devices on the system? (/dev/???1) I am certain that it follows some logical order but I cannot find what rules it uses.
2) Is there some way to find out what hardware the system thinks is connected to it?

...and again, thank you in advance for all you guys who are willing to help the n00bz.
 
Old 09-13-2011, 04:47 PM   #2
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Rep: Reputation: 69
/lib/udev
 
Old 09-14-2011, 12:11 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,101

Rep: Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552
The first question is a trick question. Distro's have been changing the way they name and use devices for many years and now seems to be the next generation. For example. HDx was both the way and the name where as we now tend to use scsi emulation even if on a ide disk so the name is now SDx. Another example is the way to address how pci cards are located.
So, a technical review of the distro or base OS would help in that area.

Second is hardware. There are many ways an OS might report a device. One is from bios reporting, another is a probe of devices, another is chips on devices detailing what they want the OS to know. I get the feeling there are more too.

Tools like lspsi and lshw and lsusb are a start. They may not find all devices.
 
Old 09-14-2011, 04:56 PM   #4
Bluerooster
LQ Newbie
 
Registered: Aug 2011
Location: Brighton, TN
Distribution: Ubuntu/Ubuntu Server
Posts: 4

Original Poster
Rep: Reputation: Disabled
I was afraid that that was the way that answer was going to go. OK, tell me this, how do you know and how would you figure it out? If it's a matter of just knowing the distro and knowing what conventions are used that's ok, but if there is some way to divine that information out of the system I would like to be able to get it that way. Again what I am looking for is top-level discussion about methods. It would be like telling me that my TV can be hooked to an HDMI device... I can figure out HOW i just need to know that it can be done. I hope that this makes sense and thanks again all!

...Oh and trist007, nice. Thank you, I had to look for it and I learned more in the search than when I actually got there. I still maintain that I have learned more about computers and computing by breaking them and HAVING to repair them.
 
Old 09-14-2011, 08:33 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,101

Rep: Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552
"but if there is some way to divine that information out of the system I would like to be able to get it that way. "

Tools like lspsi and lshw and lsusb are a start. They may not find all devices.

If you need info on a display adapter then that is a different deal. I can't explain all choices without some better question.
 
  


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
[SOLVED] md devices have odd names hedron Linux - Software 3 08-14-2011 12:54 AM
Devcice names for DVD andCD devices on Fedora 8/9 wombat53 Fedora 2 07-29-2008 11:28 PM
LXer: Persistent names for devices LXer Syndicated Linux News 0 04-19-2008 06:51 AM
Question about floppy devices names tongzhi Solaris / OpenSolaris 1 05-25-2004 11:21 AM
names of all block devices, web links if possible. oldstinkyfish Linux - Hardware 0 11-11-2003 09:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration