Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 02-03-2004, 06:40 PM   #1
Registered: Aug 2003
Distribution: Slackware, Ubuntu
Posts: 158

Rep: Reputation: 30
/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??

A Slacker
Old 02-03-2004, 06:45 PM   #2
Registered: Dec 2003
Distribution: Slackware
Posts: 325

Rep: Reputation: 30
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'.
Old 02-03-2004, 07:17 PM   #3
Registered: Aug 2003
Distribution: Slackware, Ubuntu
Posts: 158

Original Poster
Rep: Reputation: 30
I know that /dev is for devices!
Thanks for the post It was helpful.

A Slacker
Old 02-03-2004, 07:37 PM   #4
Registered: Feb 2004
Distribution: Debian
Posts: 286

Rep: Reputation: 30
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.


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
no files in /dev directory balajia82 Linux - Software 1 10-12-2005 09:18 PM
/dev/mapper directory joshnya Linux - Newbie 11 09-15-2005 04:09 AM
/dev directory Dave-Bowskill Programming 0 09-20-2004 12:52 AM
/dev directory class_struggle Linux - Newbie 2 07-13-2004 01:30 PM
/dev directory phishman3579 Slackware 3 12-02-2003 05:18 PM

All times are GMT -5. The time now is 11:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration