pendrive not detecting

Asked by kumar

hi, i have this 2 gb pendrive which was working fine till yesterday. i was transferring some data to the pendrive the system just become unresponsive. so, i had to shut down the system. when restarted it, it started behaving weirdly.. with pendrive attached, the system no longer starts, it just become unresponsive on the first screen.. Gparted also become unresponsive with the msg - 'scanning all devices.....' .. even fdisk -l just gives the details of internal harddrive and the cursor keeps blinking... dmesg | tail -100 gives following output..

[ 4111.100070] usb 1-1: reset high speed USB device using ehci_hcd and address 7
[ 4142.100085] usb 1-1: reset high speed USB device using ehci_hcd and address 7
[ 4173.100083] usb 1-1: reset high speed USB device using ehci_hcd and address 7
[ 4204.100080] usb 1-1: reset high speed USB device using ehci_hcd and address 7
[ 4205.408075] usb 1-1: reset high speed USB device using ehci_hcd and address 7
[ 4205.540880] sd 5:0:0:0: [sdb] Unhandled error code
[ 4205.540890] sd 5:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 4205.540900] sd 5:0:0:0: [sdb] CDB: Read(10): 28 00 00 00 00 00 00 00 08 00
[ 4205.540927] end_request: I/O error, dev sdb, sector 0
[ 4205.540938] Buffer I/O error on device sdb, logical block 0
[ 4205.684083] usb 1-1: reset high speed USB device using ehci_hcd and address 7
[ 4205.827166] usb 1-1: device firmware changed
[ 4205.827225] usb 1-1: USB disconnect, address 7
[ 4205.827313] sd 5:0:0:0: [sdb] Unhandled error code
[ 4205.827320] sd 5:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 4205.827330] sd 5:0:0:0: [sdb] CDB: Read(10): 28 00 00 00 00 00 00 00 08 00
[ 4205.827357] end_request: I/O error, dev sdb, sector 0
[ 4205.827367] Buffer I/O error on device sdb, logical block 0
[ 4205.827486] ldm_validate_partition_table(): Disk read failed.
[ 4205.827559] Dev sdb: unable to read RDB block 0
[ 4205.827672] unable to read partition table
[ 4205.833791] sd 5:0:0:0: [sdb] Attached SCSI removable disk
[ 4205.902580] hub 1-0:1.0: unable to enumerate USB device on port 1
[ 4206.292070] usb 2-1: new full speed USB device using uhci_hcd and address 3
[ 4206.416074] usb 2-1: device descriptor read/64, error -71
[ 4207.052060] usb 2-1: device not accepting address 3, error -71
[ 4207.164070] usb 2-1: new full speed USB device using uhci_hcd and address 4
[ 4207.284072] usb 2-1: device descriptor read/64, error -71
[ 4207.508072] usb 2-1: device descriptor read/64, error -71
[ 4207.724071] usb 2-1: new full speed USB device using uhci_hcd and address 5
[ 4208.140063] usb 2-1: device not accepting address 5, error -71
[ 4208.252062] usb 2-1: new full speed USB device using uhci_hcd and address 6
[ 4208.668067] usb 2-1: device not accepting address 6, error -71
[ 4208.668099] hub 2-0:1.0: unable to enumerate USB device on port 1
[ 4219.932077] usb 1-1: new high speed USB device using ehci_hcd and address 9
[ 4220.065828] usb 1-1: configuration #1 chosen from 1 choice
[ 4220.066841] scsi6 : SCSI emulation for USB Mass Storage devices
[ 4220.067165] usb-storage: device found at 9
[ 4220.067171] usb-storage: waiting for device to settle before scanning
[ 4225.067685] usb-storage: device scan complete
[ 4225.068639] scsi 6:0:0:0: Direct-Access Ut165 USB2FlashStorage 0.00 PQ: 0 ANSI: 2
[ 4225.071953] sd 6:0:0:0: Attached scsi generic sg2 type 0
[ 4225.076807] sd 6:0:0:0: [sdb] 3948544 512-byte logical blocks: (2.02 GB/1.88 GiB)
[ 4225.077359] sd 6:0:0:0: [sdb] Write Protect is off
[ 4225.077364] sd 6:0:0:0: [sdb] Mode Sense: 00 00 00 00
[ 4225.077368] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 4225.080839] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 4225.080849] sdb:
[ 4248.867392] usb 1-1: USB disconnect, address 9
[ 4248.867556] sd 6:0:0:0: [sdb] Unhandled error code
[ 4248.867563] sd 6:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 4248.867573] sd 6:0:0:0: [sdb] CDB: Read(10): 28 00 00 00 00 00 00 00 08 00
[ 4248.867600] end_request: I/O error, dev sdb, sector 0
[ 4248.867610] Buffer I/O error on device sdb, logical block 0
[ 4248.868947] sd 6:0:0:0: [sdb] Unhandled error code
[ 4248.868956] sd 6:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[ 4248.868966] sd 6:0:0:0: [sdb] CDB: Read(10): 28 00 00 00 00 00 00 00 08 00
[ 4248.868993] end_request: I/O error, dev sdb, sector 0
[ 4248.869031] Buffer I/O error on device sdb, logical block 0
[ 4248.870622] ldm_validate_partition_table(): Disk read failed.
[ 4248.870700] Dev sdb: unable to read RDB block 0
[ 4248.870999] unable to read partition table
[ 4248.873417] sd 6:0:0:0: [sdb] Attached SCSI removable disk
[ 4313.268079] usb 1-1: new high speed USB device using ehci_hcd and address 10
[ 4313.401871] usb 1-1: configuration #1 chosen from 1 choice
[ 4313.402901] scsi7 : SCSI emulation for USB Mass Storage devices
[ 4313.403223] usb-storage: device found at 10
[ 4313.403230] usb-storage: waiting for device to settle before scanning
[ 4318.400371] usb-storage: device scan complete
[ 4318.401069] scsi 7:0:0:0: Direct-Access Ut165 USB2FlashStorage 0.00 PQ: 0 ANSI: 2
[ 4318.402132] sd 7:0:0:0: Attached scsi generic sg2 type 0
[ 4318.413930] sd 7:0:0:0: [sdb] 3948544 512-byte logical blocks: (2.02 GB/1.88 GiB)
[ 4318.414661] sd 7:0:0:0: [sdb] Write Protect is off
[ 4318.414671] sd 7:0:0:0: [sdb] Mode Sense: 00 00 00 00
[ 4318.414679] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[ 4318.418644] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[ 4318.418653] sdb:
[ 4349.100099] usb 1-1: reset high speed USB device using ehci_hcd and address 10
[ 4380.101060] usb 1-1: reset high speed USB device using ehci_hcd and address 10
[ 4405.850140] wlan0: direct probe to AP 00:14:6c:e6:d4:a3 (try 1)
[ 4406.048063] wlan0: direct probe to AP 00:14:6c:e6:d4:a3 (try 2)
[ 4406.248074] wlan0: direct probe to AP 00:14:6c:e6:d4:a3 (try 3)
[ 4406.250341] wlan0: direct probe responded
[ 4406.250350] wlan0: authenticate with AP 00:14:6c:e6:d4:a3 (try 1)
[ 4406.252395] wlan0: authenticated
[ 4406.252441] wlan0: associate with AP 00:14:6c:e6:d4:a3 (try 1)
[ 4406.258520] wlan0: RX AssocResp from 00:14:6c:e6:d4:a3 (capab=0x11 status=0 aid=3)
[ 4406.258529] wlan0: associated
[ 4406.260314] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 4411.100081] usb 1-1: reset high speed USB device using ehci_hcd and address 10
[ 4416.720046] wlan0: no IPv6 routers present
[ 4442.100083] usb 1-1: reset high speed USB device using ehci_hcd and address 10
[ 4473.100078] usb 1-1: reset high speed USB device using ehci_hcd and address 10
[ 4504.101077] usb 1-1: reset high speed USB device using ehci_hcd and address 10
[ 4504.233725] sd 7:0:0:0: [sdb] Unhandled error code
[ 4504.233735] sd 7:0:0:0: [sdb] Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK
[ 4504.233745] sd 7:0:0:0: [sdb] CDB: Read(10): 28 00 00 00 00 00 00 00 08 00
[ 4504.233772] end_request: I/O error, dev sdb, sector 0
[ 4504.233784] Buffer I/O error on device sdb, logical block 0
[ 4535.101071] usb 1-1: reset high speed USB device using ehci_hcd and address 10

lsusb gives the following output which confirms that the pendrive is detected at the harddrive level...

Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0a5c:2101 Broadcom Corp. A-Link BlueUsbA2 Bluetooth
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 010: ID 1307:0165 Transcend Information, Inc. 2GB/4GB Flash Drive
Bus 001 Device 002: ID 0c45:624f Microdia PC Camera (SN9C201 + OV9650)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

please help me with this... thanks..

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Sounds like the sudden power loss has damaged the data. I suggest you use fsck on the partition to see if it can be fixed. You may have to restore the data from backup after wiping the device of all partitions. Hopefully the fsck will fix things, you may need to use testdisk to create a partition table on the device but not format it, may make the data appear.

Revision history for this message
kumar (dsk1984) said :
#2

Hi, I already have a backup of the data, so thats not a concern.. can you tell me commands in a bit detail... I have tried "sudo fsck /dev/sdb" and got the output..

fsck from util-linux-ng 2.17.2
e2fsck 1.41.11 (14-Mar-2010)
fsck.ext2: No medium found while trying to open /dev/sdb

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>

.......
filesystem on the pendrive should be fat32... thanks...

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

then use:

sudo fsck.vfat -a /dev/sdb

should be ok. FAT32 is very weak and not robust at all but is most compatible with more systems. NTFS can be written and read in Ubuntu and is very robust.

Revision history for this message
kumar (dsk1984) said :
#4

I used "sudo fsck.vfat -a /dev/sdb" and after a long pause got the output...

dosfsck 3.0.7, 24 Dec 2009, FAT32, LFN

Read 512 bytes at 0:Input/output error

what does this mean? thanks...

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Can you help with this problem?

Provide an answer of your own, or ask kumar for more information if necessary.

To post a message you must log in.