Когда я использую Pendrive с Ubuntu, он иногда отключается. Я посмотрел в системном журнале и обнаружил I/O error, dev sdb, sector 31159048
, поэтому я полагаю, что это плохой сектор. Как я могу это исправить?
Вот полный журнал того, что происходит:
Dec 12 09:14:04 puff kernel: [18790.617487] sd 8:0:0:0: [sdb] Attached SCSI removable disk
... and after a while, during a file transfer:
Dec 12 09:15:34 puff kernel: [18880.708328] usb 1-1.5: USB disconnect, device number 9
Dec 12 09:15:34 puff kernel: [18880.718691] sd 8:0:0:0: [sdb] Unhandled error code
Dec 12 09:15:34 puff kernel: [18880.718707] sd 8:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
Dec 12 09:15:34 puff kernel: [18880.718709] sd 8:0:0:0: [sdb] CDB: Write(10): 2a 00 01 db 73 08 00 00 f0 00
Dec 12 09:15:34 puff kernel: [18880.718714] end_request: I/O error, dev sdb, sector 31159048
Dec 12 09:15:34 puff kernel: [18880.719247] sd 8:0:0:0: [sdb] Unhandled error code
Dec 12 09:15:34 puff kernel: [18880.719249] sd 8:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
Dec 12 09:15:34 puff kernel: [18880.719250] sd 8:0:0:0: [sdb] CDB: Write(10): 2a 00 01 db 73 f8 00 00 f0 00
Dec 12 09:15:34 puff kernel: [18880.719254] end_request: I/O error, dev sdb, sector 31159288
Dec 12 09:15:35 puff kernel: [18881.010913] usb 1-1.5: new high-speed USB device number 10 using ehci_hcd
Dec 12 09:15:35 puff kernel: [18881.205915] scsi9 : usb-storage 1-1.5:1.0
Dec 12 09:15:35 puff mtp-probe: checking bus 1, device 10: "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5"
Dec 12 09:15:35 puff mtp-probe: bus: 1, device: 10 was not an MTP device
Dec 12 09:15:37 puff kernel: [18883.039242] scsi 9:0:0:0: Direct-Access JetFlash Transcend 16GB 1100 PQ: 0 ANSI: 0 CCS
Dec 12 09:15:37 puff kernel: [18883.040027] sd 9:0:0:0: Attached scsi generic sg1 type 0
Dec 12 09:15:37 puff kernel: [18883.040601] sd 9:0:0:0: [sdb] 31703040 512-byte logical blocks: (16.2 GB/15.1 GiB)
Dec 12 09:15:37 puff kernel: [18883.042215] sd 9:0:0:0: [sdb] Write Protect is off
Dec 12 09:15:37 puff kernel: [18883.042219] sd 9:0:0:0: [sdb] Mode Sense: 43 00 00 00
Dec 12 09:15:37 puff kernel: [18883.042934] sd 9:0:0:0: [sdb] No Caching mode page present
Dec 12 09:15:37 puff kernel: [18883.042938] sd 9:0:0:0: [sdb] Assuming drive cache: write through
Dec 12 09:15:37 puff kernel: [18883.045835] sd 9:0:0:0: [sdb] No Caching mode page present
Dec 12 09:15:37 puff kernel: [18883.045838] sd 9:0:0:0: [sdb] Assuming drive cache: write through
Dec 12 09:15:37 puff kernel: [18883.046834] sdb: sdb1
Dec 12 09:15:37 puff kernel: [18883.049582] sd 9:0:0:0: [sdb] No Caching mode page present
Dec 12 09:15:37 puff kernel: [18883.049587] sd 9:0:0:0: [sdb] Assuming drive cache: write through
Dec 12 09:15:37 puff kernel: [18883.049591] sd 9:0:0:0: [sdb] Attached SCSI removable disk