LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-03-2004, 05:40 PM   #1
nny0000
Member
 
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??

Thanks
A Slacker
 
Old 02-03-2004, 05:45 PM   #2
Namaseit
Member
 
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, 06:17 PM   #3
nny0000
Member
 
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, 06:37 PM   #4
snacky
Member
 
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.
 
  


Reply


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 08:18 PM
/dev/mapper directory joshnya Linux - Newbie 11 09-15-2005 03:09 AM
/dev directory Dave-Bowskill Programming 0 09-19-2004 11:52 PM
/dev directory class_struggle Linux - Newbie 2 07-13-2004 12:30 PM
/dev directory phishman3579 Slackware 3 12-02-2003 04:18 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration