LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 06-06-2003, 07:04 PM   #1
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
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.
 
Old 06-06-2003, 07:31 PM   #2
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Have a look at the Mass Storage Device section of the Linux USB Guide.
 
Old 06-12-2003, 02:37 PM   #3
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Original Poster
Rep: Reputation: 45
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?
 
Old 06-12-2003, 02:42 PM   #4
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Original Poster
Rep: Reputation: 45
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....
 
Old 06-12-2003, 03:34 PM   #5
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Original Poster
Rep: Reputation: 45
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
 
Old 06-12-2003, 03:36 PM   #6
ddpicard
Member
 
Registered: Oct 2001
Location: Texas
Distribution: Slackware 13
Posts: 214

Rep: Reputation: 31
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
 
Old 06-13-2003, 05:22 PM   #7
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Original Poster
Rep: Reputation: 45
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...
 
  


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
Mounting a lexar usb jumpdrive fcnewbie Fedora 4 10-27-2004 10:38 PM
USB Lexar JumpDrive rock9604 Linux - Newbie 5 05-03-2004 12:02 PM
usb jumpdrive of lexar, i need help PaAaScAl Linux - Hardware 0 10-21-2003 09:50 PM
Lexar USB media... rcarr Linux - Hardware 2 09-27-2003 04:33 PM
Lexar USB Memory Key infurn Linux - Hardware 12 08-18-2003 12:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:16 AM.

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