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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
02-26-2005, 04:56 PM
|
#1
|
Member
Registered: Dec 2004
Location: Maidstone, Kent, England
Distribution: Ubuntu
Posts: 100
Rep:
|
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.
|
|
|
02-26-2005, 05:06 PM
|
#2
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
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).
|
|
|
02-26-2005, 08:27 PM
|
#3
|
Member
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394
Rep:
|
jkh,
As stated above, dmesg will give you some indication.
As root, try this...
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
|
|
|
02-27-2005, 01:09 AM
|
#4
|
Member
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561
Rep:
|
Take a look at "/usr/src/linux-`uname -r`/Documentation/devices.txt" if you have the kernel source installed.
|
|
|
03-03-2005, 11:20 AM
|
#5
|
Member
Registered: Dec 2004
Location: Maidstone, Kent, England
Distribution: Ubuntu
Posts: 100
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 09:54 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|