LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-08-2006, 03:30 AM   #1
djsunny
LQ Newbie
 
Registered: Apr 2006
Location: Pakistan
Distribution: RedHat
Posts: 5

Rep: Reputation: 0
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 09:52 PM.
 
Old 04-08-2006, 02:14 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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 02:19 PM.
 
Old 04-08-2006, 09:17 PM   #3
djsunny
LQ Newbie
 
Registered: Apr 2006
Location: Pakistan
Distribution: RedHat
Posts: 5

Original Poster
Rep: Reputation: 0
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))
 
Old 04-09-2006, 01:21 PM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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.
 
Old 04-09-2006, 09:45 PM   #5
djsunny
LQ Newbie
 
Registered: Apr 2006
Location: Pakistan
Distribution: RedHat
Posts: 5

Original Poster
Rep: Reputation: 0
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...
 
Old 04-09-2006, 09:50 PM   #6
djsunny
LQ Newbie
 
Registered: Apr 2006
Location: Pakistan
Distribution: RedHat
Posts: 5

Original Poster
Rep: Reputation: 0
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...
 
Old 04-09-2006, 09:51 PM   #7
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
not sure but shouldn't it be /dev/sda1 in the mount command?
 
Old 04-09-2006, 09:57 PM   #8
djsunny
LQ Newbie
 
Registered: Apr 2006
Location: Pakistan
Distribution: RedHat
Posts: 5

Original Poster
Rep: Reputation: 0
You're right but the thing is no sda or sdb or sda1 or sdb1 present !!!!!!!!
 
Old 04-10-2006, 07:42 AM   #9
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
After you load the usb-storage module and have plugged the device try to run:
Code:
/etc/rc.d/rc.udev
to create the devices

*EDIT*
It worked for me with a friend's stick

Last edited by perfect_circle; 04-10-2006 at 07:44 AM.
 
  


Reply



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
[FC4] USB Stick unmounts itself every 30 seconds, cannot put data onit polemon Linux - Newbie 2 07-24-2005 11:34 PM
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 11:12 AM
Installing Linux from a USB stick Mathiasdm Linux - Distributions 6 10-24-2004 02:43 PM
Installing USB Key / Drive / Stick - there must be an easier way! microsnot Linux - Newbie 1 09-04-2004 02:21 AM
copying/moving stalls when moving a lot of data to a usb stick =X¥®µ§= Linux - Hardware 10 07-30-2004 05:29 AM

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

All times are GMT -5. The time now is 09:37 PM.

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