Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
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.
|
 |
06-06-2003, 07:04 PM
|
#1
|
Senior Member
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032
Rep:
|
Lexar USB key, please help
Does anybody know how to mount one, or any USB Key? So far I've created a directory in /mnt labled /mnt/usbkey
and I've ran "tail -f /var/log/messages" and here's what I got:
kernel: cdrom: This disk doesn't have any tracks I recognize
-- MARK --
kernel: usb.c: registered new driver usbdevfs
kernel: usb.c: registered new driver hib
kernel: Initializing USB Mass Storage driver...
kernel: usb.c: USB Mass Storage support registered
-- MARK --
Any and all help would be appreciated.
|
|
|
06-06-2003, 07:31 PM
|
#2
|
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590
Rep:
|
Have a look at the Mass Storage Device section of the Linux USB Guide.
|
|
|
06-12-2003, 02:37 PM
|
#3
|
Senior Member
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032
Original Poster
Rep:
|
Well, I did modprobe for two modules, and now there's something that shows up in usb-storage and also in /proc/scsi/usb-storage-0/1 and in /proc/scsi/scsi
/proc/scsi/scsi:
Attached devices:
Host: scsi1 Channel: 00 ID: 00 Lun: 00
Vendor: LEXAR Model: JUMPDRIVE Rev:1.10
Type: Direct-Access ANSI SCSI revision: 02
/proc/scsi/usb-storage-0/1:
Host scsi1: usb-storage
Vendor: LEXAR MEDIA
Product: JUMPDRIVE
Serial Number: 0000000115721
Protocol: Transparent SCSI
Transport: Bulk
GUID: 05dc00800000000000115721
Attached: Yes
Now, what do I do?
|
|
|
06-12-2003, 02:42 PM
|
#4
|
Senior Member
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032
Original Poster
Rep:
|
Followup:
I ended up running the command mount /dev/sda1 /mnt/usbkey and it worked! Now my question is, how can I chmod my usbkey so I don't have to log in as SU to move files onto it and remove files? I ran the command chmod 777 /mnt/usbkey but it didn't work....
|
|
|
06-12-2003, 03:34 PM
|
#5
|
Senior Member
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032
Original Poster
Rep:
|
Okay, so I can mount it and everything, but now I can't write to it... Here's my fstab settings for my USB Key....
/dev/sda1 /mnt/usbkey vfat user,noauto,rw 1 2
|
|
|
06-12-2003, 03:36 PM
|
#6
|
Member
Registered: Oct 2001
Location: Texas
Distribution: Slackware 13
Posts: 214
Rep:
|
r_jensen11, I have a keychain usb storage device. Here is what I do so that I can mount it:
Add this line to your /etc/fstab
/dev/sda1 /mnt/usbkey vfat noauto,users,umask=000,gid=600 0 0
Then you can setup a link to mount just like you would another harddrive.
Dave
|
|
|
06-13-2003, 05:22 PM
|
#7
|
Senior Member
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032
Original Poster
Rep:
|
Thanks, ddpicard. Here're my problems though, with my current settings:
When I boot up, I have to manually type in modprobe usb-storage;modprobe usb-uhci
How can I get it so I don't have to do that? I tried using putting both commands in my /etc/modules.conf, each in their own line, so the first read modprobe usb-storage, but there was an error whenever I booted, so I changed it to usb-storage, and that still didn't solve any problem. How can I fix that?
My other problem is, how can I get it so it doesn't think it's a read-only device? If it's with setting up a link, how would I go about doing that? Sorry, but I'm still very much a newby...
|
|
|
All times are GMT -5. The time now is 10:38 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
|
|