which files in /dev actually represent hardware, and what hardware?
Linux - NewbieThis 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
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.
which files in /dev actually represent hardware, and what hardware?
/dev usually has lots of entries, very few of which seem to represent hardware that is actually installed. Is there any way from the command line to find what hardware is where - in particular, where in /dev are those hardware items that can be mounted with a mount command? Or at least to screen out those entries in /dev that represent nothing?
lspci and lsusb will show installed hardware, but there doesn't seem to be any option that tells you where to find each item in /dev
Knoppix and Puppy show installed but unmounted hardware in the GUI, but the Debian Live Rescue Disk is strictly CLI, and anyway I would like to know a distro-independent CLI approach.
Ok, /dev doesnt represent hardware, at least , not only. If you look at my signature, you will see that" /dev/pts/0 , if you type "tty" in a shell outside X, it will return something like that: /dev/tty2 Are these hardware, no no no. /dev are just a configuration and linking system, example, you go to /dev/sda1 , but you end up in /media/%Something%. Or you didnt meant that.
On many (older...) systems, there are lots of "/dev" entries that merely correspond to devices that could exist.
More recent systems use a feature called udev that, by various (configurable) means, determines what devices actually do exist and constructs dev-entries for them. Furthermore, this system can handle removable devices: within a second or so of a device being plugged-in, a new entry will appear. (See also: hotplug; coldplug.)
It isn't my intention to explain the whys and wherefores of this subsystem here.
Ok, /dev doesnt represent hardware, at least , not only. If you look at my signature, you will see that" /dev/pts/0
Where?
Quote:
/dev are just a configuration and linking system, example, you go to /dev/sda1 , but you end up in /media/%Something%.
/dev/sda1 would be MOUNTED at /media/something in order to access it thru the filesystem. It would be more correct to say: "If you go to /media/something, you would wind up at /dev/sda1."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.