On Friday 04 Jan 2013 19:12:18 Nikos Chantziaras wrote:
> On 04/01/13 18:32, Mick wrote:
> > I was trying to zero out a USB stick and at some point it seems to have
> > locked itself up.  By that I mean that for all intends and purposes I
> > cannot write to it in any conceivable way.
> 
> Can you elaborate on that?  Do you get any error messages from dd or in
> dmesg?

dd if=/dev/zero of=/mnt/iso/bigfile.txt bs=512
dd: writing ‘/mnt/iso/bigfile.txt’: Input/output error
376705+0 records in
376704+0 records out
192872448 bytes (193 MB) copied, 1.01944 s, 189 MB/s

rm /mnt/iso/bigfile.txt
rm: cannot remove ‘/mnt/iso/bigfile.txt’: Read-only file system


The output of mount:

/dev/sdb1 on /mnt/iso type vfat (rw)

(was mounted rw as root just in case).


This is what dmesg shows:

hub 2-1:1.0: state 7 ports 8 chg 0000 evt 0002
hub 2-1:1.0: port 1, status 0101, change 0001, 12 Mb/s
hub 2-1:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
hub 2-1:1.0: port 1 not reset yet, waiting 10ms
usb 2-1.1: new high-speed USB device number 8 using ehci_hcd
hub 2-1:1.0: port 1 not reset yet, waiting 10ms
usb 2-1.1: default language 0x0409
usb 2-1.1: udev 8, busnum 2, minor = 135
usb 2-1.1: New USB device found, idVendor=1307, idProduct=0163
usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1.1: Product: USB Mass Storage Device
usb 2-1.1: Manufacturer: USBest Technology
usb 2-1.1: SerialNumber: 08032204c2f5fd
usb 2-1.1: usb_probe_device
usb 2-1.1: configuration #1 chosen from 1 choice
usb 2-1.1: adding 2-1.1:1.0 (config #1, interface 0)
usb-storage 2-1.1:1.0: usb_probe_interface
usb-storage 2-1.1:1.0: usb_probe_interface - got id
scsi10 : usb-storage 2-1.1:1.0
scsi 10:0:0:0: Direct-Access     Ut163    USB2FlashStorage 0.00 PQ: 0 ANSI: 2
sd 10:0:0:0: Attached scsi generic sg2 type 0
sd 10:0:0:0: [sdb] 1974271 512-byte logical blocks: (1.01 GB/963 MiB)
sd 10:0:0:0: [sdb] Write Protect is off
sd 10:0:0:0: [sdb] Mode Sense: 00 00 00 00
sd 10:0:0:0: [sdb] Asking for cache data failed
sd 10:0:0:0: [sdb] Assuming drive cache: write through
sd 10:0:0:0: [sdb] Asking for cache data failed
sd 10:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 10:0:0:0: [sdb] Asking for cache data failed
sd 10:0:0:0: [sdb] Assuming drive cache: write through
sd 10:0:0:0: [sdb] Attached SCSI removable disk


I can't recall the hdparm errors (run it on a different box) but if important 
I can get these for you.

Thanks.
-- 
Regards,
Mick

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to