Linux - HardwareThis 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.
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.
another question asked earlier got me thinking and has me stumped.
how can you tell what hardware is on your system, obviously the first thing to do would be to look at it, but like say my sound card, where can I find reffrence to that within my system, and my printer, I see it doing a modprobe for it everytime I boot up but besides that how do I tell I have a printer.
I guess a better way to phrase this question is;
1. how could I find out what hardware is on a machine that I have never seen, but somehow i have a root terminal at.
2. whats with that /dev directory? for example, I see in my dev directory that I have hdc# 1-32, I dont even have a hdc!!! for that matter, I dont have 99% of the stuf listed in my /dev directory, so why are they there, and more inportantly, how can I tell which ones are active (like hda1) and which ones are just sitting there uselessly (like hdc32).
also, viewing files in /proc would help to check what h/w your machine has. in Linux, all h/w are represented as files (err, did i say it right? ). your hdd, modem, etc - are accessible via filenames. and they go to the /dev directory. and as you observed, not all files present in /dev represent that hardware you have. intead, most of there are ready made and placed there by default for your machine's perusal. in fact, u can safely delete them. you can recreate them usng the MAKEDEV command in /dev. you can google around for it for more info.
Stuff like common hard drive slots me thinks are already preconfigured to a certain hardware slot, (whatever you call it, device address? ie. 0X080) so you won't have to mkdev your keyboard, your mouse, your hard drive, or even emulated scsi drives, etc. etc. They are there, but they don't exactly represent a valid device.
Last edited by natalinasmpf; 01-03-2004 at 04:23 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.