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.
|
|
04-08-2006, 04:30 AM
|
#1
|
LQ Newbie
Registered: Apr 2006
Location: Pakistan
Distribution: RedHat
Posts: 5
Rep:
|
Problem installing USB Data Stick
It's been a long time I used linux; I switched over to Solaris but now I'm having some problem with my x86 system. I have a flash disk drive of Kingston (512 MB). The issue is described in detail:
"lsmod" says:
Code:
Module Size Used by Not tainted
nls_iso8859-1 3516 3 (autoclean)
nls_cp437 5116 3 (autoclean)
vfat 13004 3 (autoclean)
fat 38808 0 (autoclean) [vfat]
i810_audio 27720 0 (autoclean)
ac97_codec 13640 0 (autoclean) [i810_audio]
soundcore 6404 2 (autoclean) [i810_audio]
parport_pc 19076 1 (autoclean)
lp 8996 0 (autoclean)
parport 37056 1 (autoclean) [parport_pc lp]
autofs 13268 1 (autoclean)
e100 60644 0
ipt_REJECT 3928 6 (autoclean)
iptable_filter 2412 1 (autoclean)
ip_tables 15096 2 [ipt_REJECT iptable_filter]
sg 36524 0 (autoclean)
sr_mod 18136 0 (autoclean)
ide-scsi 12208 0
scsi_mod 107160 3 [sg sr_mod ide-scsi]
ide-cd 35708 0
cdrom 33728 0 [sr_mod ide-cd]
keybdev 2944 0 (unused)
"modprobe usb-storage"
Code:
# lsmod
Module Size Used by Not tainted
usb-storage 69332 0 (unused)
nls_iso8859-1 3516 3 (autoclean)
nls_cp437 5116 3 (autoclean)
vfat 13004 3 (autoclean)
fat 38808 0 (autoclean) [vfat]
i810_audio 27720 0 (autoclean)
ac97_codec 13640 0 (autoclean) [i810_audio]
soundcore 6404 2 (autoclean) [i810_audio]
parport_pc 19076 1 (autoclean)
lp 8996 0 (autoclean)
parport 37056 1 (autoclean) [parport_pc lp]
autofs 13268 1 (autoclean)
e100 60644 0
ipt_REJECT 3928 6 (autoclean)
iptable_filter 2412 1 (autoclean)
ip_tables 15096 2 [ipt_REJECT iptable_filter]
sg 36524 0 (autoclean)
sr_mod 18136 0 (autoclean)
ide-scsi 12208 0
scsi_mod 107160 3 [usb-storage sg sr_mod ide-scsi]
ide-cd 35708 0
cdrom 33728 0 [sr_mod ide-cd]
keybdev 2944 0 (unused)
mousedev 5492 1
hid 22148 0 (unused)
input 5856 0 [keybdev mousedev hid]
usb-uhci 26348 0 (unused)
usbcore 78784 1 [usb-storage hid usb-uhci]
ext3 70784 2
jbd 51892 2 [ext3]
After it;
"/var/log/messages" says:
Code:
Apr 8 12:29:00 localhost gconfd (root-2718): Exiting
Apr 8 12:29:27 localhost gconfd (root-2741): starting (version 2.2.0), pid 2741 user 'root'
Apr 8 12:29:27 localhost gconfd (root-2741): Resolved address "xml:readonly:/etc/gconf/gconf.xml.mandatory" to a read-only config source at position 0
Apr 8 12:29:27 localhost gconfd (root-2741): Resolved address "xml:readwrite:/root/.gconf" to a writable config source at position 1
Apr 8 12:29:27 localhost gconfd (root-2741): Resolved address "xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only config source at position 2
Apr 8 12:31:27 localhost gconfd (root-2741): GConf server is not in use, shutting down.
Apr 8 12:31:27 localhost gconfd (root-2741): Exiting
Apr 8 12:35:56 localhost kernel: Initializing USB Mass Storage driver...
Apr 8 12:35:56 localhost kernel: usb.c: registered new driver usb-storage
Apr 8 12:35:56 localhost kernel: USB Mass Storage support registered.
Now When I plugin my USB Flash Disk (Kingston DataTraveler2.0 512 MB);
I type again "tail /var/log/messages" which says:
Code:
Apr 8 12:39:33 localhost kernel: hub.c: new USB device 00:1f.2-1, assigned address 2
Apr 8 12:39:33 localhost kernel: usb-uhci.c: interrupt, status 2, frame# 1121
Apr 8 12:39:34 localhost kernel: usb_control/bulk_msg: timeout
Apr 8 12:39:34 localhost kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Apr 8 12:39:34 localhost kernel: hub.c: already running port 1 disabled by hub (EMI?), re-enabling...
Apr 8 12:39:34 localhost kernel: usb.c: USB disconnect on device 00:1f.2-1 address 2
Apr 8 12:39:34 localhost devlabel: devlabel service started/restarted
Apr 8 12:39:37 localhost /etc/hotplug/usb.agent: ... no modules for USB product 930/6533/100
Apr 8 12:39:37 localhost kernel: hub.c: Cannot enable port 1 of hub 1, disabling port.
Apr 8 12:39:37 localhost kernel: hub.c: Maybe the USB cable is bad?
Okay Now I change the port of my FlashDisk; and type again "tail /var/log/messages" which says:
Code:
Apr 8 12:39:34 localhost kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Apr 8 12:39:34 localhost kernel: hub.c: already running port 1 disabled by hub (EMI?), re-enabling...
Apr 8 12:39:34 localhost kernel: usb.c: USB disconnect on device 00:1f.2-1 address 2
Apr 8 12:39:34 localhost devlabel: devlabel service started/restarted
Apr 8 12:39:37 localhost /etc/hotplug/usb.agent: ... no modules for USB product 930/6533/100
Apr 8 12:39:37 localhost kernel: hub.c: Cannot enable port 1 of hub 1, disabling port.
Apr 8 12:39:37 localhost kernel: hub.c: Maybe the USB cable is bad?
Apr 8 12:42:25 localhost kernel: hub.c: new USB device 00:1f.4-2, assigned address 2
Apr 8 12:42:28 localhost /etc/hotplug/usb.agent: Setup usb-storage for USB product 930/6533/100
Apr 8 12:42:28 localhost devlabel: devlabel service started/restarted
"cat /proc/scsi/usb-storage-0/1" says:
Code:
Host scsi1: usb-storage
Vendor: Unknown
Product: DataTraveler 2.0
Serial Number: 0A40626122423933
Protocol: Transparent SCSI
Transport: Bulk
GUID: 093065330a40626122423933
Attached: Yes
I tried every possible thing but I'm unable to mount my USB Disk and why should I be able when I don't get the support!
Please tell me what should I do??
Last edited by djsunny; 04-09-2006 at 10:52 PM.
|
|
|
04-08-2006, 03:14 PM
|
#2
|
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
|
What is the output of 'lsusb' (try adding -v or -vv switch)? Can you disable USB hotplug? It would be helpful to isolate whether the hotplug system or the basic USB system is the problem. When you say 'change the port of my FlashDisk', I assume you mean that you plugged it into a different USB connector, correct? Has this device worked correctly on another system, or on this hardware under any other OS?
Note, please post your program outputs in a [CODE] box. It will remain in a fixed-point font that way, and be much easier for everyone to read.
--- rod.
Last edited by theNbomr; 04-08-2006 at 03:19 PM.
|
|
|
04-08-2006, 10:17 PM
|
#3
|
LQ Newbie
Registered: Apr 2006
Location: Pakistan
Distribution: RedHat
Posts: 5
Original Poster
Rep:
|
Yes by changing the port I mean connecting my flashdisk into another port; as far as the working of the port & device is concerned, both work great under MS-Windows. I'm on dual boot.
"#lsusb -v" says:
Code:
Bus 002 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.00
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0000
idProduct 0x0000
bcdDevice 0.00
iManufacturer 0
iProduct 2 USB UHCI Root Hub
iSerial 1 ef80
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x40
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 8
bInterval 255
Language IDs: (length=4)
0000 (null)((null))
Bus 001 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.00
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0000
idProduct 0x0000
bcdDevice 0.00
iManufacturer 0
iProduct 2 USB UHCI Root Hub
iSerial 1 ef40
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x40
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 8
bInterval 255
Language IDs: (length=4)
0000 (null)((null))
Bus 002 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.00
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0000
idProduct 0x0000
bcdDevice 0.00
iManufacturer 0
iProduct 2 USB UHCI Root Hub
iSerial 1 ef80
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x40
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 8
bInterval 255
Language IDs: (length=4)
0000 (null)((null))
Bus 001 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.00
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0000
idProduct 0x0000
bcdDevice 0.00
iManufacturer 0
iProduct 2 USB UHCI Root Hub
iSerial 1 ef40
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x40
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 8
bInterval 255
Language IDs: (length=4)
0000 (null)((null))
|
|
|
04-09-2006, 02:21 PM
|
#4
|
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
|
Uh, okay, I guess I should have specified; was the Flash disk plugged into the USB connctor when you did the lsusb? If yes, it looks like there must be a driver level problem with your USB drivers. The only devices that are showing up are the USB controller, itself. If no, plug in the flash disk, and repeat. If the flash disk shows up, it should be obvious.
When you said "couldn't mount", what exactly happened when you tried to run 'mount'
With the flash disk plugged into the 'second' port, do you see, using fdisk, anything in /dev/sda (or /dev/sdb, if you already have a SCSI or SATA disk)? If there is a filesystem, did you attemp to mount it as the proper type? As far as I know, most of these devices come preformatted with a Windows compatible filesystem, like fat32.
--- rod.
|
|
|
04-09-2006, 10:45 PM
|
#5
|
LQ Newbie
Registered: Apr 2006
Location: Pakistan
Distribution: RedHat
Posts: 5
Original Poster
Rep:
|
yes! flash disk was plugged in before "lsusb". When I tried to mount everytime I got a message like "bad block device" or "no special device present" after writing:
mount -t vfat <serial #> /dev/sda /mnt/usbstick
I even tried editing the fstab but I wonder what should I mention there now :| like defining the mount point is not a tough job but what should mount point get started with I mean what drive should it access..
I don't have any SATA or SCSI over this system! This flash disk comes already formatted with FAT filesystem. (Not FAT32)
As I already mentioned
"cat /proc/scsi/usb-storage-0/1" says:
Code:
Host scsi1: usb-storage
Vendor: Unknown
Product: DataTraveler 2.0
Serial Number: 0A40626122423933
Protocol: Transparent SCSI
Transport: Bulk
GUID: 093065330a40626122423933
Attached: Yes
Moreover at the packing wrapper of this flash disk drive it was written that "compatible with MAC, LINUX, WINDOWS ALL VERSIONS".
(Kingston DataTraveler 2.0 USB Flash Drive 512 MB)
Please tell me if there is something possible and if you need any other information...
|
|
|
04-09-2006, 10:50 PM
|
#6
|
LQ Newbie
Registered: Apr 2006
Location: Pakistan
Distribution: RedHat
Posts: 5
Original Poster
Rep:
|
yes! flash disk was plugged in before " lsusb". When I tried to mount everytime I got a message like "no special device present" after writing:
mount -t vfat <serial #> /dev/sda /mnt/usbstick
I even tried editing the fstab but I wonder what should I mention there now :| like defining the mount point is not a tough job but what should mount point get started with I mean what drive should it access..
I don't have any SATA or SCSI over this system! This flash disk comes already formatted with FAT filesystem. (Not FAT32)
As I already mentioned
"cat /proc/scsi/usb-storage-0/1" says:
Code:
Host scsi1: usb-storage
Vendor: Unknown
Product: DataTraveler 2.0
Serial Number: 0A40626122423933
Protocol: Transparent SCSI
Transport: Bulk
GUID: 093065330a40626122423933
Attached: Yes
Moreover at the packing wrapper of this flash disk drive it was written that "compatible with MAC, LINUX, WINDOWS ALL VERSIONS".
(Kingston DataTraveler 2.0 USB Flash Drive 512 MB)
Please tell me if there is something possible and if you need any other information...
|
|
|
04-09-2006, 10:51 PM
|
#7
|
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783
Rep:
|
not sure but shouldn't it be /dev/sda1 in the mount command?
|
|
|
04-09-2006, 10:57 PM
|
#8
|
LQ Newbie
Registered: Apr 2006
Location: Pakistan
Distribution: RedHat
Posts: 5
Original Poster
Rep:
|
You're right but the thing is no sda or sdb or sda1 or sdb1 present !!!!!!!!
|
|
|
04-10-2006, 08:42 AM
|
#9
|
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783
Rep:
|
After you load the usb-storage module and have plugged the device try to run:
to create the devices
*EDIT*
It worked for me with a friend's stick
Last edited by perfect_circle; 04-10-2006 at 08:44 AM.
|
|
|
All times are GMT -5. The time now is 08:30 AM.
|
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
|
|