LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 05-19-2005, 11:10 AM   #1
guillaume31
LQ Newbie
 
Registered: Jul 2004
Posts: 15

Rep: Reputation: 0
USB flash drive mounting problem


Hi,

I've just bought an USB flash drive (Kingston Datatraveler II Plus). I thought that a simple "mount /dev/sda1/ /mnt/usbkey" under root was enough to play with the stuff. But no. I'm fighting for one hour to try to figure out how to acceed the drive.

Doing this, I get:
mount: /dev/sda1 is not a valid block device

I'm running RH9, and when I plug the USB key, the following appears in
/var/log/messages:
----------------------
May 19 18:06:01 tocai devlabel: devlabel service started/restarted
May 19 18:06:01 tocai kernel: hub.c: connect-debounce failed, port 6 disabled
May 19 18:06:04 tocai kernel: hub.c: new USB device 00:1d.7-1, assigned address 5
May 19 18:06:07 tocai /etc/hotplug/usb.agent: Setup usb-storage for USB product 951/1601/100
May 19 18:06:08 tocai devlabel: devlabel service started/restarted
-------------------------

The device seems recognized. A /sbin/lsusb gives:
-------------------------
Bus 001 Device 005: ID 0951:1601 Kingston Technology
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 Interface
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0951 Kingston Technology
idProduct 0x1601
bcdDevice 1.00
iManufacturer 1 Kingston
iProduct 2 DataTraveler II+
iSerial 3 5B511D0387DA
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 39
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
MaxPower 200mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type none
wMaxPacketSize 512
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type none
wMaxPacketSize 512
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 64
bInterval 4
Language IDs: (length=4)
0409 English(US)
--------------------------

But I have no idea on how to get this stuff working... Any help would be greatly appreciated.
Many thanks in advance !

Guillaume
 
Old 05-19-2005, 04:17 PM   #2
guillaume31
LQ Newbie
 
Registered: Jul 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Note it works fine with my old Mandrake 9 on my laptop: just did: mount /dev/sda1 /mnt/floppy

So what's wrong with my destop under RH9????

Guillaume
 
Old 05-19-2005, 04:21 PM   #3
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Ubuntu Slackware
Posts: 1,028

Rep: Reputation: 42
Do you have the module usb-storage installed? Try the following thread and see whether you get better results.....
http://www.linuxquestions.org/questi...ht=mount+flash
 
Old 05-20-2005, 03:03 AM   #4
guillaume31
LQ Newbie
 
Registered: Jul 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Not working.

I've tried to do:

modprobe usb-storage
to add the line: /dev/sda1 /mnt/usbkey vfat user,noauto,umask=0 0 0
in /etc/fstab
Then mkdir /mnt/usbkey

and: mount /mnt/usbkey

Which gives me the same result:
mount: /dev/sda1 is not a valid block device

...

Guillaume
 
Old 05-23-2005, 11:47 AM   #5
guillaume31
LQ Newbie
 
Registered: Jul 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Recompilation of the kernel

I think I'll have to recompile the kernel with SCSI support. I've been convinced by the webpage: http://www.fredshome.org/Linux/UnoMas/ (see output of cat /proc/scsi/scsi below)

The only thing is that I've never done this (compilation of the kernel), so any advice and link to easy to use recipe to do it are welcome.
In particular, I was wondering if I can take advantage of that to update it, knowing that I'm running the version 2.4.20-8 with RH9. If so, which one to use? (see http://www.kernel.org/)

Many thanks in advance,
Guillaume

-------------------------
tocai:~> cat /proc/scsi/scsi
Attached devices:
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: HL-DT-ST Model: CD-RW GCE-8481B Rev: C102
Type: CD-ROM ANSI SCSI revision: 02
--------------------------
 
  


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
Auto-Mounting USB Flash Drive plehman Linux - Newbie 12 01-05-2009 09:41 AM
Problem mounting usb flash drive with 2.6.12.2 kernel dcdbutler Slackware 16 09-12-2005 07:48 PM
USB Flash Drive not Mounting Kentara Linux - Hardware 1 03-12-2005 08:59 AM
Mounting a USB Flash Drive Garibaldi3489 Slackware 3 01-04-2005 09:09 PM
Trouble mounting usb flash drive alpha1906 Slackware 6 08-20-2004 02:59 PM


All times are GMT -5. The time now is 04:43 AM.

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