I have a 16GB USB flash drive that somehow got corrupted to the point in which even fdisk -l can't find it (I get a one-line error message saying: "Unable to open /dev/sdc")
However, it is being attached, being assigned /dev/sdc as dmesg shows:
usb 1-7: new high speed USB device using ehci_hcd and address 69
usb 1-7: New USB device found, idVendor=048d, idProduct=1167
usb 1-7: New USB device strings: Mfr=0, Product=0, SerialNumber=0
usb 1-7: configuration #1 chosen from 1 choice
scsi68 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 69
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi 68:0:0:0: Direct-Access XXXXXXXX U167CONTROLLER 0.00 PQ: 0 ANSI: 2
sd 68:0:0:0: Attached scsi generic sg3 type 0
sd 68:0:0:0: [sdc] Attached SCSI removable disk
I verified it using ls -l /sys/block | grep -vE 'loop|ram' as well:
lrwxrwxrwx. 1 root root 0 Mar 13 04:50 sda -> ../devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda
lrwxrwxrwx. 1 root root 0 Mar 13 14:42 sdb -> ../devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host67/target67:0:0/67: 0:0:0/block/sdb
lrwxrwxrwx. 1 root root 0 Mar 13 21:20 sdc -> ../devices/pci0000:00/0000:00:1d.7/usb1/1-7/1-7:1.0/host68/target68:0:0/68: 0:0:0/block/sdc
lrwxrwxrwx. 1 root root 0 Mar 13 04:50 sr0 -> ../devices/pci0000:00/0000:00:1f.2/host1/target1:0:0/1:0:0:0/block/sr0
But when I issue od -N 128 /dev/sdc I receive this single-line error message:
od: /dev/sdc: No medium found
I don't need the data on that USB flash drive, I only need to know if there is a way to make it format-able (then reformat it) again.
Is this possible? If so, how do I go about this?
Update: I just tried:
dd if=/dev/zero of=/dev/sdc1 bs=1M count=6000 conv=fsync
And got:
dd: writing `/dev/sdc1': No space left on device
1000+0 records in
999+0 records out
1047941120 bytes (1.0 GB) copied, 2.34859 s, 446 MB/s
Which tells the device is alive and kicking?
This is becoming interesting...
fdisk /dev/sdc? Do you get an error?fdisk /dev/sdcI get:Unable to open /dev/sdc.dmesgoutput along with the error fromfdisk? Can you read directly from the device using, e.g.,od -N 128 /dev/sdc? (If this works it should print a short hexdump.)dmesgoutput along with the error fromfdisk. When I issueod -N 128 /dev/sdcI receive this single-line error message:od: /dev/sdc: No medium found.fdiskandddas root, right?