LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Pen drive not detected ubuntu (https://www.linuxquestions.org/questions/debian-26/pen-drive-not-detected-ubuntu-722016/)

gauravdott 04-27-2009 11:06 AM

Pen drive not detected ubuntu
 
I am using a 4 Gb pen drive on my system and ubuntu is not detecting it. I believe the culprit here is windows which corrupted it when i lended the pen drive to a friend and he may have not safely remove it. Anyway i tried :

Code:

sudo fdisk -l
but ubuntu fails to show my pendrive their too.

Here is the output for
Code:

dmesg | tail -100
Code:

[  726.104340] FAT: Directory bread(block 15280) failed
[  726.104348] FAT: Directory bread(block 15281) failed
[  726.104355] FAT: Directory bread(block 15282) failed
[  726.104362] FAT: Directory bread(block 15283) failed
[  726.104369] FAT: Directory bread(block 15284) failed
[  726.104376] FAT: Directory bread(block 15285) failed
[  726.104382] FAT: Directory bread(block 15286) failed
[  726.104389] FAT: Directory bread(block 15287) failed
[ 1431.727268] usb 3-6: new high speed USB device using ehci_hcd and address 9
[ 1431.862132] usb 3-6: string descriptor 0 read error: -71
[ 1431.864623] usb 3-6: string descriptor 0 read error: -71
[ 1431.867118] usb 3-6: string descriptor 0 read error: -71
[ 1431.867269] usb 3-6: configuration #1 chosen from 1 choice
[ 1431.868989] scsi11 : SCSI emulation for USB Mass Storage devices
[ 1431.869751] usb-storage: device found at 9
[ 1431.869755] usb-storage: waiting for device to settle before scanning
[ 1436.854471] usb-storage: device scan complete
[ 1436.855318] scsi: unknown device type 31
[ 1436.855325] scsi 11:0:0:0: No Device                                        PQ: 7 ANSI: 7
[ 1436.856168] scsi 11:0:0:0: Attached scsi generic sg1 type 31
[ 1567.343608] FAT: Directory bread(block 15280) failed
[ 1567.343624] FAT: Directory bread(block 15281) failed
[ 1567.343632] FAT: Directory bread(block 15282) failed
[ 1567.343639] FAT: Directory bread(block 15283) failed
[ 1567.343646] FAT: Directory bread(block 15284) failed
[ 1567.343654] FAT: Directory bread(block 15285) failed
[ 1567.343661] FAT: Directory bread(block 15286) failed
[ 1567.343668] FAT: Directory bread(block 15287) failed
[ 1567.884385] FAT: Directory bread(block 15280) failed
[ 1567.884401] FAT: Directory bread(block 15281) failed
[ 1567.884409] FAT: Directory bread(block 15282) failed
[ 1567.884416] FAT: Directory bread(block 15283) failed
[ 1567.884424] FAT: Directory bread(block 15284) failed
[ 1567.884431] FAT: Directory bread(block 15285) failed
[ 1567.884438] FAT: Directory bread(block 15286) failed
[ 1567.884445] FAT: Directory bread(block 15287) failed
[ 1620.670898] FAT: Directory bread(block 15280) failed
[ 1620.670914] FAT: Directory bread(block 15281) failed
[ 1620.670923] FAT: Directory bread(block 15282) failed
[ 1620.670930] FAT: Directory bread(block 15283) failed
[ 1620.670937] FAT: Directory bread(block 15284) failed
[ 1620.670944] FAT: Directory bread(block 15285) failed
[ 1620.670951] FAT: Directory bread(block 15286) failed
[ 1620.670958] FAT: Directory bread(block 15287) failed
[ 1620.671005] FAT: Directory bread(block 15280) failed
[ 1620.671013] FAT: Directory bread(block 15281) failed
[ 1620.671020] FAT: Directory bread(block 15282) failed
[ 1620.671027] FAT: Directory bread(block 15283) failed
[ 1620.671034] FAT: Directory bread(block 15284) failed
[ 1620.671041] FAT: Directory bread(block 15285) failed
[ 1620.671047] FAT: Directory bread(block 15286) failed
[ 1620.671054] FAT: Directory bread(block 15287) failed
[ 1622.824523] usb 3-5: USB disconnect, address 8
[ 1624.086323] usb 3-6: USB disconnect, address 9
[ 1625.855953] usb 3-5: new high speed USB device using ehci_hcd and address 10
[ 1625.990123] usb 3-5: string descriptor 0 read error: -71
[ 1625.991989] usb 3-5: string descriptor 0 read error: -71
[ 1625.993859] usb 3-5: string descriptor 0 read error: -71
[ 1625.994004] usb 3-5: configuration #1 chosen from 1 choice
[ 1626.021146] scsi12 : SCSI emulation for USB Mass Storage devices
[ 1626.047612] usb-storage: device found at 10
[ 1626.047618] usb-storage: waiting for device to settle before scanning
[ 1631.034964] usb-storage: device scan complete
[ 1631.035868] scsi: unknown device type 31
[ 1631.035874] scsi 12:0:0:0: No Device                                        PQ: 7 ANSI: 7
[ 1631.036669] scsi 12:0:0:0: Attached scsi generic sg0 type 31
[ 1649.137903] usb 3-5: USB disconnect, address 10
[ 1649.407866] usb 3-5: new high speed USB device using ehci_hcd and address 11
[ 3506.385881] usb 3-5: new high speed USB device using ehci_hcd and address 12
[ 3506.520051] usb 3-5: string descriptor 0 read error: -71
[ 3506.521920] usb 3-5: string descriptor 0 read error: -71
[ 3506.523793] usb 3-5: string descriptor 0 read error: -71
[ 3506.523943] usb 3-5: configuration #1 chosen from 1 choice
[ 3506.551462] scsi13 : SCSI emulation for USB Mass Storage devices
[ 3506.577722] usb-storage: device found at 12
[ 3506.577729] usb-storage: waiting for device to settle before scanning
[ 3511.564893] usb-storage: device scan complete
[ 3511.565488] scsi: unknown device type 31
[ 3511.565494] scsi 13:0:0:0: No Device                                        PQ: 7 ANSI: 7
[ 3511.566102] scsi 13:0:0:0: Attached scsi generic sg0 type 31
[ 3566.090015] eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[ 3566.091933] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 3568.317587] usb 3-5: USB disconnect, address 12
[ 3576.115960] eth0: no IPv6 routers present
[ 3579.998065] usb 3-2: new high speed USB device using ehci_hcd and address 13
[ 3580.132157] usb 3-2: string descriptor 0 read error: -71
[ 3580.134025] usb 3-2: string descriptor 0 read error: -71
[ 3580.135893] usb 3-2: string descriptor 0 read error: -71
[ 3580.136039] usb 3-2: configuration #1 chosen from 1 choice
[ 3580.163573] scsi14 : SCSI emulation for USB Mass Storage devices
[ 3580.189754] usb-storage: device found at 13
[ 3580.189761] usb-storage: waiting for device to settle before scanning
[ 3585.177121] usb-storage: device scan complete
[ 3585.177999] scsi: unknown device type 31
[ 3585.178005] scsi 14:0:0:0: No Device                                        PQ: 7 ANSI: 7
[ 3585.178928] scsi 14:0:0:0: Attached scsi generic sg0 type 31
[ 3631.579752] eth0: link down
[ 3632.942617] eth0: link up, 10Mbps, half-duplex, lpa 0x0000
[ 3666.698844] eth0: link up, 10Mbps, half-duplex, lpa 0x0000
[ 3677.535745] eth0: no IPv6 routers present

I think it may help, i don't know what's the reason. please help

Thanks

Gaurav

tredegar 04-27-2009 03:49 PM

Your pendrive is "broken", for whatever reason.

Repartition and reformat it, and all should be well - You can reuse it.

Next time choose "Remove device" (Windows) or "Safely Remove" (linux) before it is unplugged

Lee_Ball 04-27-2009 04:07 PM

I have to agree, it certainly sounds like its broken. Do you have access to a Windows PC at all? You could try an fsck.vfat on the drive but you might not get anywhere with that. If that doesn't work try a scandisk or chkdsk from Windows if you can.

Hope your drive still works.

gauravdott 04-29-2009 12:33 PM

I tried it on a windows pc but it still does not detects it.
How can i reformat it??

Please Help

Thanks

Gaurav

Lee_Ball 04-29-2009 04:13 PM

Sounds like its damaged beyond repair. If it doesn't show up in Windows Device Manager and nothing in Linux either.

Failing that, check the Windows Event Viewer for errors, I'd expect to see disk errors.

I had a USB fail on me, light just pulsated but nothing happened, to make sure no'one could take any data off it I microwaved it for 30 seconds. :)

gauravdott 04-30-2009 09:28 AM

It seems that the only way is it's replacement. Anyway i will do that

Thanks

dibi58 05-08-2009 04:13 PM

Quote:

Originally Posted by Lee_Ball (Post 3525116)
Sounds like its damaged beyond repair. If it doesn't show up in Windows Device Manager and nothing in Linux either.

Failing that, check the Windows Event Viewer for errors, I'd expect to see disk errors.

I had a USB fail on me, light just pulsated but nothing happened, to make sure no'one could take any data off it I microwaved it for 30 seconds. :)

what about fdisk /dev/sg0

delete every partition

create a linux partition

mkfs /dev/sd0

mount /dev/sd0 /mnt

if it does not work, try to boot from a puppy live-CD, see if you can format it from there

otherwise, not sure about the microwave, but for sure a barbecue or a hammer will do

gauravdott 05-09-2009 02:44 AM

/dev/sg0 just hangs
 
fdisk /dev/sg0 just don't shows any output after inserting my so called pen drive.

What to do?

dibi58 05-10-2009 02:31 AM

Quote:

Originally Posted by gauravdott (Post 3535255)
fdisk /dev/sg0 just don't shows any output after inserting my so called pen drive.

What to do?

try (from root):
modprobe uhci_hcd

Ok, now I would check inserting the drive with and without protection, if it has one, and after setting the protection, try with the long list of tools and forensic tools, one by one, maybe you get lucky:

dd
gpart
rdd
foremost
sleuthkit/autopsy
ddrescue
lde
magicrescue
pcopy
recover
gddrescue

... there are for sure more, google it ...

If none of those works, I would try to see it with some live-CD, try some like PLACK, Knoppix STD and Helix. I found several times that something unreadable on two or more systems, would become readable on another one, at least enough to get an "image" of it with dd and/or to reformat it. It happened to me on a DVD burned on fedora, that became visible once after rebooting about ten times, so I had a chance to copy out of there the things I needed, before trashing it.

Also, try some other architectures, maybe school or friends may have a sparc or a PPC mac, to see at least if you can format it. Recently I had a problem with a disk, that failed to be visible on windows, and neither OSX nor linux x86 could see it. Solaris sparc could see it with pages of geometry errors, so I formatted it there, and now is running ok on the sparc (it still complains about the geometry error but it works).

After you try enough of live CD's and systems, you can either pay a bunch of money to a forensic laboratory, if it is worth it, or safely destroy with a heavy hammer or a hot barbecue or gas torch.

wish you luck ...

:)

krzysz00 05-10-2009 02:57 PM

dude, this is the debian forum. If you have ubuntu questions go to Ubuntu Forums or some place like that.

Lee_Ball 05-11-2009 02:35 AM

Quote:

Originally Posted by krzysz00 (Post 3536339)
dude, this is the debian forum. If you have ubuntu questions go to Ubuntu Forums or some place like that.

This is hardly a specific Ubuntu question though so I think its perfectly fine here.


All times are GMT -5. The time now is 08:59 AM.