![为什么我的外部驱动器变成只读模式?](https://linux22.com/image/1378263/%E4%B8%BA%E4%BB%80%E4%B9%88%E6%88%91%E7%9A%84%E5%A4%96%E9%83%A8%E9%A9%B1%E5%8A%A8%E5%99%A8%E5%8F%98%E6%88%90%E5%8F%AA%E8%AF%BB%E6%A8%A1%E5%BC%8F%EF%BC%9F.png)
我有这个 HDD(很新,4 个月了),我将其格式化为 ext3(我的路由器支持 ext3,不支持 ext4),然后我开始从旧驱动器复制所有数据(1TB 数据)。
过了一会儿(很多时候,它至少复制了 65% 的数据),我收到一个错误,并将文件系统置于只读模式。
是什么导致了这个问题?以下是 dmesg 输出 (sdd1 - /mnt/mymedia):
sdd: sdd1
sd 8:0:0:0: [sdd] 732558336 4096-byte logical blocks: (3.00 TB/2.72 TiB)
sd 8:0:0:0: [sdd] No Caching mode page present
sd 8:0:0:0: [sdd] Assuming drive cache: write through
sd 8:0:0:0: [sdd] Attached SCSI disk
ses 8:0:0:1: Attached Enclosure device
sd 8:0:0:0: [sdd] 732558336 4096-byte logical blocks: (3.00 TB/2.72 TiB)
sd 8:0:0:0: [sdd] No Caching mode page present
sd 8:0:0:0: [sdd] Assuming drive cache: write through
sdd:
kjournald starting. Commit interval 5 seconds
EXT3-fs (sdd1): using internal journal
EXT3-fs (sdd1): mounted filesystem with writeback data mode
usb 4-1.2: USB disconnect, device number 3
sd 8:0:0:0: [sdd] Unhandled error code
sd 8:0:0:0: [sdd]
Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
sd 8:0:0:0: [sdd] CDB:
Write(10): 2a 00 19 62 65 b4 00 00 1e 00
end_request: I/O error, dev sdd, sector 3407031712
Buffer I/O error on device sdd1, logical block 425878708
lost page write due to I/O error on sdd1
Buffer I/O error on device sdd1, logical block 425878709
lost page write due to I/O error on sdd1
Buffer I/O error on device sdd1, logical block 425878710
lost page write due to I/O error on sdd1
Buffer I/O error on device sdd1, logical block 425878711
lost page write due to I/O error on sdd1
Buffer I/O error on device sdd1, logical block 425878712
lost page write due to I/O error on sdd1
Buffer I/O error on device sdd1, logical block 425878713
lost page write due to I/O error on sdd1
Buffer I/O error on device sdd1, logical block 425878714
lost page write due to I/O error on sdd1
Buffer I/O error on device sdd1, logical block 425878715
lost page write due to I/O error on sdd1
Buffer I/O error on device sdd1, logical block 425878716
lost page write due to I/O error on sdd1
Buffer I/O error on device sdd1, logical block 425878717
lost page write due to I/O error on sdd1
sd 8:0:0:0: [sdd] Unhandled error code
sd 8:0:0:0: [sdd]
Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
sd 8:0:0:0: [sdd] CDB:
Write(10): 2a 00 19 62 65 d2 00 00 1e 00
end_request: I/O error, dev sdd, sector 3407031952
Aborting journal on device sdd1.
EXT3-fs (sdd1): error in ext3_new_blocks: Journal has aborted
JBD: Error -5 detected when updating journal superblock for sdd1.
EXT3-fs (sdd1): I/O error while writing superblock
EXT3-fs (sdd1): error: ext3_journal_start_sb: Detected aborted journal
EXT3-fs (sdd1): error: remounting filesystem read-only
EXT3-fs (sdd1): error in ext3_orphan_add: Journal has aborted
usb 4-1.2: new high-speed USB device number 5 using ehci-pci
usb 4-1.2: New USB device found, idVendor=1058, idProduct=1140
usb 4-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=5
usb 4-1.2: Product: My Book 1140
usb 4-1.2: Manufacturer: Western Digital
usb 4-1.2: SerialNumber: 574D43315433333236383738
scsi9 : usb-storage 4-1.2:1.0
scsi 9:0:0:0: Direct-Access WD My Book 1140 1022 PQ: 0 ANSI: 6
scsi 9:0:0:1: Enclosure WD SES Device 1022 PQ: 0 ANSI: 6
sd 9:0:0:0: Attached scsi generic sg4 type 0
ses 9:0:0:1: Attached Enclosure device
ses 9:0:0:1: Attached scsi generic sg5 type 13
sd 9:0:0:0: [sde] 732558336 4096-byte logical blocks: (3.00 TB/2.72 TiB)
sd 9:0:0:0: [sde] Write Protect is off
sd 9:0:0:0: [sde] Mode Sense: 47 00 10 08
sd 9:0:0:0: [sde] No Caching mode page present
sd 9:0:0:0: [sde] Assuming drive cache: write through
sd 9:0:0:0: [sde] 732558336 4096-byte logical blocks: (3.00 TB/2.72 TiB)
sd 9:0:0:0: [sde] No Caching mode page present
sd 9:0:0:0: [sde] Assuming drive cache: write through
sde: sde1
sd 9:0:0:0: [sde] 732558336 4096-byte logical blocks: (3.00 TB/2.72 TiB)
sd 9:0:0:0: [sde] No Caching mode page present
sd 9:0:0:0: [sde] Assuming drive cache: write through
sd 9:0:0:0: [sde] Attached SCSI disk
EXT3-fs error (device sdd1): ext3_find_entry: reading directory #2 offset 0
usb 4-1.2: USB disconnect, device number 5
usb 4-1.2: new high-speed USB device number 6 using ehci-pci
usb 4-1.2: New USB device found, idVendor=1058, idProduct=1140
usb 4-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=5
usb 4-1.2: Product: My Book 1140
usb 4-1.2: Manufacturer: Western Digital
usb 4-1.2: SerialNumber: 574D43315433333236383738
scsi10 : usb-storage 4-1.2:1.0
scsi 10:0:0:0: Direct-Access WD My Book 1140 1022 PQ: 0 ANSI: 6
scsi 10:0:0:1: Enclosure WD SES Device 1022 PQ: 0 ANSI: 6
sd 10:0:0:0: Attached scsi generic sg4 type 0
ses 10:0:0:1: Attached Enclosure device
ses 10:0:0:1: Attached scsi generic sg5 type 13
sd 10:0:0:0: [sde] 732558336 4096-byte logical blocks: (3.00 TB/2.72 TiB)
sd 10:0:0:0: [sde] Write Protect is off
sd 10:0:0:0: [sde] Mode Sense: 47 00 10 08
sd 10:0:0:0: [sde] No Caching mode page present
sd 10:0:0:0: [sde] Assuming drive cache: write through
sd 10:0:0:0: [sde] 732558336 4096-byte logical blocks: (3.00 TB/2.72 TiB)
sd 10:0:0:0: [sde] No Caching mode page present
sd 10:0:0:0: [sde] Assuming drive cache: write through
sde: sde1
sd 10:0:0:0: [sde] 732558336 4096-byte logical blocks: (3.00 TB/2.72 TiB)
sd 10:0:0:0: [sde] No Caching mode page present
sd 10:0:0:0: [sde] Assuming drive cache: write through
sd 10:0:0:0: [sde] Attached SCSI disk
usb 4-1.2: USB disconnect, device number 6
usb 4-1.2: new high-speed USB device number 7 using ehci-pci
usb 4-1.2: New USB device found, idVendor=1058, idProduct=1140
usb 4-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=5
usb 4-1.2: Product: My Book 1140
usb 4-1.2: Manufacturer: Western Digital
usb 4-1.2: SerialNumber: 574D43315433333236383738
scsi11 : usb-storage 4-1.2:1.0
scsi 11:0:0:0: Direct-Access WD My Book 1140 1022 PQ: 0 ANSI: 6
scsi 11:0:0:1: Enclosure WD SES Device 1022 PQ: 0 ANSI: 6
sd 11:0:0:0: Attached scsi generic sg4 type 0
ses 11:0:0:1: Attached Enclosure device
ses 11:0:0:1: Attached scsi generic sg5 type 13
sd 11:0:0:0: [sde] 732558336 4096-byte logical blocks: (3.00 TB/2.72 TiB)
sd 11:0:0:0: [sde] Write Protect is off
sd 11:0:0:0: [sde] Mode Sense: 47 00 10 08
sd 11:0:0:0: [sde] No Caching mode page present
sd 11:0:0:0: [sde] Assuming drive cache: write through
sd 11:0:0:0: [sde] 732558336 4096-byte logical blocks: (3.00 TB/2.72 TiB)
sd 11:0:0:0: [sde] No Caching mode page present
sd 11:0:0:0: [sde] Assuming drive cache: write through
sde: sde1
sd 11:0:0:0: [sde] 732558336 4096-byte logical blocks: (3.00 TB/2.72 TiB)
sd 11:0:0:0: [sde] No Caching mode page present
sd 11:0:0:0: [sde] Assuming drive cache: write through
sd 11:0:0:0: [sde] Attached SCSI disk
EXT3-fs (sdd1): error: ext3_put_super: Couldn't clean up the journal
usb 4-1.2: USB disconnect, device number 7
usb 3-1.2: USB disconnect, device number 3
usb 4-1.2: new high-speed USB device number 8 using ehci-pci
usb 4-1.2: New USB device found, idVendor=1058, idProduct=1140
usb 4-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=5
usb 4-1.2: Product: My Book 1140
usb 4-1.2: Manufacturer: Western Digital
usb 4-1.2: SerialNumber: 574D43315433333236383738
scsi12 : usb-storage 4-1.2:1.0
scsi 12:0:0:0: Direct-Access WD My Book 1140 1022 PQ: 0 ANSI: 6
scsi 12:0:0:1: Enclosure WD SES Device 1022 PQ: 0 ANSI: 6
sd 12:0:0:0: Attached scsi generic sg3 type 0
ses 12:0:0:1: Attached Enclosure device
ses 12:0:0:1: Attached scsi generic sg4 type 13
sd 12:0:0:0: [sdc] 732558336 4096-byte logical blocks: (3.00 TB/2.72 TiB)
sd 12:0:0:0: [sdc] Write Protect is off
sd 12:0:0:0: [sdc] Mode Sense: 47 00 10 08
sd 12:0:0:0: [sdc] No Caching mode page present
sd 12:0:0:0: [sdc] Assuming drive cache: write through
sd 12:0:0:0: [sdc] 732558336 4096-byte logical blocks: (3.00 TB/2.72 TiB)
sd 12:0:0:0: [sdc] No Caching mode page present
sd 12:0:0:0: [sdc] Assuming drive cache: write through
sdc: sdc1
sd 12:0:0:0: [sdc] 732558336 4096-byte logical blocks: (3.00 TB/2.72 TiB)
sd 12:0:0:0: [sdc] No Caching mode page present
sd 12:0:0:0: [sdc] Assuming drive cache: write through
sd 12:0:0:0: [sdc] Attached SCSI disk
usb 4-1.2: USB disconnect, device number 8
sd 12:0:0:0: [sdc] Unhandled error code
sd 12:0:0:0: [sdc]
Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
sd 12:0:0:0: [sdc] CDB:
Write(10): 2a 00 06 87 82 a6 00 00 1e 00
end_request: I/O error, dev sdc, sector 876352816
quiet_error: 50 callbacks suppressed
Buffer I/O error on device sdc1, logical block 109543846
lost page write due to I/O error on sdc1
Buffer I/O error on device sdc1, logical block 109543847
lost page write due to I/O error on sdc1
Buffer I/O error on device sdc1, logical block 109543848
lost page write due to I/O error on sdc1
Buffer I/O error on device sdc1, logical block 109543849
lost page write due to I/O error on sdc1
Buffer I/O error on device sdc1, logical block 109543850
lost page write due to I/O error on sdc1
Buffer I/O error on device sdc1, logical block 109543851
lost page write due to I/O error on sdc1
Buffer I/O error on device sdc1, logical block 109543852
lost page write due to I/O error on sdc1
Buffer I/O error on device sdc1, logical block 109543853
lost page write due to I/O error on sdc1
Buffer I/O error on device sdc1, logical block 109543854
lost page write due to I/O error on sdc1
Buffer I/O error on device sdc1, logical block 109543855
lost page write due to I/O error on sdc1
sd 12:0:0:0: [sdc] Unhandled error code
sd 12:0:0:0: [sdc]
Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
sd 12:0:0:0: [sdc] CDB:
Write(10): 2a 00 06 87 82 c4 00 00 1e 00
end_request: I/O error, dev sdc, sector 876353056
usb 4-1.2: new high-speed USB device number 9 using ehci-pci
usb 4-1.2: New USB device found, idVendor=1058, idProduct=1140
usb 4-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=5
usb 4-1.2: Product: My Book 1140
usb 4-1.2: Manufacturer: Western Digital
usb 4-1.2: SerialNumber: 574D43315433333236383738
scsi13 : usb-storage 4-1.2:1.0
scsi 13:0:0:0: Direct-Access WD My Book 1140 1022 PQ: 0 ANSI: 6
scsi 13:0:0:1: Enclosure WD SES Device 1022 PQ: 0 ANSI: 6
sd 13:0:0:0: Attached scsi generic sg3 type 0
ses 13:0:0:1: Attached Enclosure device
ses 13:0:0:1: Attached scsi generic sg4 type 13
sd 13:0:0:0: [sdc] 732558336 4096-byte logical blocks: (3.00 TB/2.72 TiB)
sd 13:0:0:0: [sdc] Write Protect is off
sd 13:0:0:0: [sdc] Mode Sense: 47 00 10 08
sd 13:0:0:0: [sdc] No Caching mode page present
sd 13:0:0:0: [sdc] Assuming drive cache: write through
sd 13:0:0:0: [sdc] 732558336 4096-byte logical blocks: (3.00 TB/2.72 TiB)
sd 13:0:0:0: [sdc] No Caching mode page present
sd 13:0:0:0: [sdc] Assuming drive cache: write through
sdc: sdc1
sd 13:0:0:0: [sdc] 732558336 4096-byte logical blocks: (3.00 TB/2.72 TiB)
sd 13:0:0:0: [sdc] No Caching mode page present
sd 13:0:0:0: [sdc] Assuming drive cache: write through
sd 13:0:0:0: [sdc] Attached SCSI disk
usb 4-1.2: USB disconnect, device number 9
我应该启动 RMA 吗?或者这只是 Ext3 错误或类似的东西?请注意,在开始复制文件之前,我已经进行了固件升级(无论如何,固件升级都没问题)。
硬盘是西部数据My Book
这些文件是通过 cp -uR 复制的
答案1
看起来是 GPT 问题。
基本上,并非所有软件都正确支持 GPT(我使用的是 Debian Wheezy,硬盘有 ext3 分区)。特别是,坏块无法正确找到 2 TB 限制之后的坏块,因此对于这样的事情它并不可靠(它发现了 800 GB 的坏块)。
HD Scan 工作正常(在 Windows 上,这次使用 ntfs 分区进行测试),我还用随机数据写入了整个硬盘并运行读取测试,工作正常。
我运行了 WD DataGuard,它通过了所有测试(没有发现坏块),基本上看起来像是一个活着的硬盘。我只能祈祷它无论如何都不是一个有故障的驱动器。
因此,检查 GPT,因为大多数软件不能正确支持它(我需要 gparted 才能正确格式化它),KDE 磁盘实用程序无法将 3TB 驱动器格式化为 GPT(但是可以将 2TB 驱动器格式化为 gpt),您可以找到它:这是一个已知的错误。