LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 03: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, 03:47 PM   #2
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 70
/lib/udev
 
Old 09-14-2011, 11:11 AM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
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, 03: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, 07:33 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
"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



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

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

All times are GMT -5. The time now is 07:36 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
Open Source Consulting | Domain Registration