[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Deletion of files from usb-key



Haines Brown wrote:
Christian Jaeger <christian@jaeger.mine.nu> writes:

For making really sure you get to a clean state, I'd use this
sequence (not tested as typed, but should work; unlike the previous
suggestion of writing one sector with dd, this wipes the whole
stick, so really make sure that this is ok for you and that /dev/sdd
*is* your stick):

Plug stick in, but do not mount it (or umount it again if it has
been automounted).

# cat /dev/zero > /dev/sdd
(it will probably print an error when it reaches the end of the
device, that's ok)

Interesting! The command just hangs. In my kernel log:

Nov  8 16:04:02 teufel kernel:
         sd 30:0:0:0: Device not ready: <6>: Current: sense key: Not Ready
Nov 8 16:04:02 teufel kernel: <<vendor>> ASC=0x80 ASCQ=0x0ASC=0x80 ASCQ=0x0 Nov 8 16:04:02 teufel kernel: end_request: I/O error, dev sdd, sector 0 Nov 8 16:04:02 teufel kernel: Buffer I/O error on device sdd, logical block 0 Nov 8 16:04:02 teufel kernel: lost page write due to I/O error on sdd Nov 8 16:04:02 teufel kernel: Buffer I/O error on device sdd, logical block 1 Nov 8 16:04:02 teufel kernel: lost page write due to I/O error on sdd Nov 8 16:04:02 teufel kernel: Buffer I/O error on device sdd, logical block 2 Nov 8 16:04:02 teufel kernel: lost page write due to I/O error on sdd
...

This goes on to block 9, and then repeats. It's almost as if there
were some kind of physical damage. I'm not sure how to get the Sense
Key error number, as that might help, although the advice generally
relates to SCSI disks.
When I try:
$ lsusb -v -D /dev/sdd
        Cannot open /dev/sdd

When I plug in the usb-key, the kernel log sayw:

Nov 8 16:41:21 teufel kernel: usb 1-2.2: reset high speed USB device using ehci_hcd and address 34 Nov 8 16:41:21 teufel kernel: sd 30:0:0:0: Device not ready: <6>: Current: sense key: Not Ready
Nov  8 16:41:21 teufel kernel:
             <<vendor>> ASC=0x80 ASCQ=0x0ASC=0x80 ASCQ=0x0
Nov 8 16:41:21 teufel kernel: end_request: I/O error, dev sdd, sector 109928 Nov 8 16:41:21 teufel kernel: printk: 113 messages suppressed. Nov 8 16:41:21 teufel kernel: Buffer I/O error on device sdd, logical block 13741
...


It appears that your usb key is dead. :(

--
Raj Kiran Grandhi



Reply to: