LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-26-2005, 04:56 PM   #1
jkh
Member
 
Registered: Dec 2004
Location: Maidstone, Kent, England
Distribution: Ubuntu
Posts: 100

Rep: Reputation: 15
which /dev/ for what hardware


hello
Is there a way to see which /dev file relates to what hardware? if so please state how.
I want to use my usb pen drive on my slackware install but this means if I want to mount it I need to write an /etc/fstab entry. My problem occurs because I don't know what /dev/ relates to my usb pen drive.
 
Old 02-26-2005, 05:06 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Usually there will be some clues in the dmesg output. If you plug the device in, and it is recognized, you should see something in there. Usually IIRC pen drives show up as SCSI devices (/dev/sdXX).
 
Old 02-26-2005, 08:27 PM   #3
Kristijan
Member
 
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Rep: Reputation: 30
jkh,

As stated above, dmesg will give you some indication.

As root, try this...

Code:
dmesg | grep sd
Somewhere in the output you should find what you USB device is. More then likely its something like /dev/sda1.

Let me know if you're still stuck.

Cheers,
-Kristijan
 
Old 02-27-2005, 01:09 AM   #4
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Take a look at "/usr/src/linux-`uname -r`/Documentation/devices.txt" if you have the kernel source installed.
 
Old 03-03-2005, 11:20 AM   #5
jkh
Member
 
Registered: Dec 2004
Location: Maidstone, Kent, England
Distribution: Ubuntu
Posts: 100

Original Poster
Rep: Reputation: 15
thankyou

thankyou all for your replies, it is /dev/sda1. Now I have the fstab entry complete :
/dev/sda1 /mnt/usb auto noauto,owner,rw 0 0
Only trouble im having now is allowing regular users to have write access to the device.
Thanks again

also:
/usr/src/linux-`uname -r`/Documentation/devices.txt gives me : Permission denied. so I dont know whats up with that.

Last edited by jkh; 03-03-2005 at 11:29 AM.
 
  


Reply



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
I cannot access EITHER CD drive! And there's no /dev/hdc or /dev/hdd or /dev/cdrom! Dmalic Linux - Hardware 13 11-18-2005 07:11 PM
Finding my /dev/hardware binarybob0001 Linux - Newbie 12 07-04-2005 04:41 PM
ln: creating symbolic link `/dev/dvd' to `/dev/hdc': Permission denied qazwsx27 Fedora 3 06-14-2005 02:09 PM
How does Linux decide what device in /dev to use for a piece of hardware? BrianHenderson Linux - Hardware 4 08-30-2004 04:06 PM
hardware & the /dev directory? e1000 Linux - Hardware 4 01-03-2004 04:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:51 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration