Linux - HardwareThis 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.
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.
Got myself a thumbdrive today and was expecting a problem or two, because I've read quite a bit about these things on these forums. I've tried the basics and read some other threads, but to no help.
I tried mounting sda through sdg, and 1-15 on each one pretty much. I have no other scsi drives on here so I would assume it'd just be sda Here's what I get.
Code:
root@floods[box]:/home/floods# mount -t vfat /dev/sda /mnt/usbstick/
mount: /dev/sda is not a valid block device
and I get the same thing when I try mounting it from the fstab.
Code:
root@floods[box]:/mnt# mount usbstick/
mount: /dev/sda is not a valid block device
root@floods[box]:/mnt#
Here's lsusb -vvv, only the part about the lexar drive though (to save space)
Code:
Bus 003 Device 007: ID 05dc:0080 Lexar Media, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x05dc Lexar Media, Inc.
idProduct 0x0080
bcdDevice 0.01
iManufacturer 1 LEXAR MEDIA
iProduct 2 JUMPDRIVE
iSerial 3 F259192121020
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
MaxPower 90mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 bytes 64 once
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 bytes 64 once
bInterval 0
Here's tail -s 3 -f /var/log/messages when I plug the drive in
Code:
Jul 31 00:36:00 floods[box] kernel: usb 3-2: USB disconnect, address 6
Jul 31 00:36:02 floods[box] kernel: usb 3-2: new full speed USB device using address 7
Jul 31 00:36:02 floods[box] kernel: scsi5 : SCSI emulation for USB Mass Storage devices
Jul 31 00:36:02 floods[box] scsi.agent[9269]: bogus sysfs DEVPATH=/devices/pci0000:00/0000:00:10.1/usb3/3-2/3-2:1.0/host5/5:0:0:0
Jul 31 00:36:02 floods[box] kernel: Vendor: LEXAR Model: JUMPDRIVE Rev: 1.20
Jul 31 00:36:02 floods[box] kernel: Type: Direct-Access ANSI SCSI revision: 02
Jul 31 00:36:03 floods[box] usbmgr[7475]: vendor:0x5dc product:0x80
Jul 31 00:36:03 floods[box] usbmgr[7475]: class:0x8 subclass:0x6 protocol:0x50
Jul 31 00:36:03 floods[box] usbmgr[7475]: USB device isn't matched the configuration
Now what bugs me about that part is the "bogus sysfs" portion, and the DEVPATH=/ is what I believed would be /dev/sda, but I'm not sure since I've yet to find anyone else post with that same message in /var/log/messages
It's not even directing it to /dev/sd*, which everything else I've read said it would list /dev/sd* somewhere in my /var/log/messages.
I think the usbmgr parts are from something I downloaded to try and get it working and just uninstalled, but it's still showing up. Not my problem right now though
I'm just lost on where to start!
Any pointers?
Much appreciated. especially if you even read all this and if you need any more information I'm willing to give it of course.
Thanks in advance!
going to try with devfs on and see what it gives, but haven't yet. will edit this post once I do.. mainly a bump
edit: tried devfs, nothing sd* was listed in /dev then, which was what I was afraid of. I've messed with my kernel a little more (took devfs off again, other things) and now I see this in dmesg..
Code:
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: LEXAR Model: JUMPDRIVE Rev: 1.20
Type: Direct-Access ANSI SCSI revision: 02
USB Mass Storage device found at 2
usbcore: registered new driver usb-storage
Try mounting it as /dev/sda1. You need to mount the partition, not the device itself. I had similar problems with my flash reader when I tried to get it working last week.
Try some other USB mass storage device, like a USB Hard disk. Mount that using the "-t auto" option on mount. If you can access this device, then remove it and connect your thumb-drive and try accessing it just like you did for the other USB storage device.
Note: If you are using a USB hard drive - make sure you have the proper kernel modules for the particular file system.
Well, I finally had some real free time and asked a friend. he repointed me in the direction of the scsi drivers in the kernel, which I had as modules. I changed them from modules and compiled them in and it worked like a charm.
Why is it that it wouldn't work as a module?
Anyways, it works now, so I'm happy.
Well, even after they were loaded I couldn't get it up.
I've had quite a few issues with modules not working on my newer 2.6 kernels, but with all the 2.4 kernels I rolled they worked fine.
I've moved on to FTP and IP masquerading, so now I have newer and bigger things to learn. Just need a router, but that may be for another post another day.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.