1 |
On Friday 04 Jan 2013 19:12:18 Nikos Chantziaras wrote: |
2 |
> On 04/01/13 18:32, Mick wrote: |
3 |
> > I was trying to zero out a USB stick and at some point it seems to have |
4 |
> > locked itself up. By that I mean that for all intends and purposes I |
5 |
> > cannot write to it in any conceivable way. |
6 |
> |
7 |
> Can you elaborate on that? Do you get any error messages from dd or in |
8 |
> dmesg? |
9 |
|
10 |
dd if=/dev/zero of=/mnt/iso/bigfile.txt bs=512 |
11 |
dd: writing ‘/mnt/iso/bigfile.txt’: Input/output error |
12 |
376705+0 records in |
13 |
376704+0 records out |
14 |
192872448 bytes (193 MB) copied, 1.01944 s, 189 MB/s |
15 |
|
16 |
rm /mnt/iso/bigfile.txt |
17 |
rm: cannot remove ‘/mnt/iso/bigfile.txt’: Read-only file system |
18 |
|
19 |
|
20 |
The output of mount: |
21 |
|
22 |
/dev/sdb1 on /mnt/iso type vfat (rw) |
23 |
|
24 |
(was mounted rw as root just in case). |
25 |
|
26 |
|
27 |
This is what dmesg shows: |
28 |
|
29 |
hub 2-1:1.0: state 7 ports 8 chg 0000 evt 0002 |
30 |
hub 2-1:1.0: port 1, status 0101, change 0001, 12 Mb/s |
31 |
hub 2-1:1.0: debounce: port 1: total 100ms stable 100ms status 0x101 |
32 |
hub 2-1:1.0: port 1 not reset yet, waiting 10ms |
33 |
usb 2-1.1: new high-speed USB device number 8 using ehci_hcd |
34 |
hub 2-1:1.0: port 1 not reset yet, waiting 10ms |
35 |
usb 2-1.1: default language 0x0409 |
36 |
usb 2-1.1: udev 8, busnum 2, minor = 135 |
37 |
usb 2-1.1: New USB device found, idVendor=1307, idProduct=0163 |
38 |
usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 |
39 |
usb 2-1.1: Product: USB Mass Storage Device |
40 |
usb 2-1.1: Manufacturer: USBest Technology |
41 |
usb 2-1.1: SerialNumber: 08032204c2f5fd |
42 |
usb 2-1.1: usb_probe_device |
43 |
usb 2-1.1: configuration #1 chosen from 1 choice |
44 |
usb 2-1.1: adding 2-1.1:1.0 (config #1, interface 0) |
45 |
usb-storage 2-1.1:1.0: usb_probe_interface |
46 |
usb-storage 2-1.1:1.0: usb_probe_interface - got id |
47 |
scsi10 : usb-storage 2-1.1:1.0 |
48 |
scsi 10:0:0:0: Direct-Access Ut163 USB2FlashStorage 0.00 PQ: 0 ANSI: 2 |
49 |
sd 10:0:0:0: Attached scsi generic sg2 type 0 |
50 |
sd 10:0:0:0: [sdb] 1974271 512-byte logical blocks: (1.01 GB/963 MiB) |
51 |
sd 10:0:0:0: [sdb] Write Protect is off |
52 |
sd 10:0:0:0: [sdb] Mode Sense: 00 00 00 00 |
53 |
sd 10:0:0:0: [sdb] Asking for cache data failed |
54 |
sd 10:0:0:0: [sdb] Assuming drive cache: write through |
55 |
sd 10:0:0:0: [sdb] Asking for cache data failed |
56 |
sd 10:0:0:0: [sdb] Assuming drive cache: write through |
57 |
sdb: sdb1 |
58 |
sd 10:0:0:0: [sdb] Asking for cache data failed |
59 |
sd 10:0:0:0: [sdb] Assuming drive cache: write through |
60 |
sd 10:0:0:0: [sdb] Attached SCSI removable disk |
61 |
|
62 |
|
63 |
I can't recall the hdparm errors (run it on a different box) but if important |
64 |
I can get these for you. |
65 |
|
66 |
Thanks. |
67 |
-- |
68 |
Regards, |
69 |
Mick |