/dev directory
Is there any easy way to find out what devices are being used in the /dev directory?
/dev/hdc = first hard drive but what about the others that I might not know about? Granted most are not used they are just created to be there so you dont have to create them one by one. Do USB devices use /dev?? Thanks A Slacker |
all devices use /dev(device!)
Usb devices such as a usb pendrive will be mounted as a scsi device. You can find out what devices /dev/???? point is by using 'dmesg' at the commandline. So when I mount my 80gig usb HDD I mount it as 'mount /dev/sda1 /mnt/hd'. |
I know that /dev is for devices!
Thanks for the post It was helpful. A Slacker |
Not a 100% satisfactory answer, but..
cat /proc/devices This will give you an idea of what's in use or what is usable. Normally /dev has just about every device entry in it that it's possible to have. That way if you ever do hook up one of those hundreds of devices, you'll already have a standard entry for it to interface to. It's different for people with devfs. |
All times are GMT -5. The time now is 08:36 AM. |