linux 系统盘在线修复

hiyang
  • 226

dmesg

系统盘没有做raid,每天都有4~5条报错,加起来共有108个扇区有问题?

[21692888.877926] blk_update_request: critical target error, dev sda, sector 1399656992
[21692891.828266] sd 0:0:0:0: [sda] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[21692891.828282] sd 0:0:0:0: [sda] Sense Key : Hardware Error [current]
[21692891.828291] sd 0:0:0:0: [sda] Add. Sense: No defect spare location available
[21692891.828298] sd 0:0:0:0: [sda] CDB: Read(10) 28 00 53 6d 12 20 00 00 08 00
[21692891.828305] blk_update_request: critical target error, dev sda, sector 1399656993
[21692894.761638] sd 0:0:0:0: [sda] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[21692894.761657] sd 0:0:0:0: [sda] Sense Key : Hardware Error [current]
[21692894.761665] sd 0:0:0:0: [sda] Add. Sense: No defect spare location available
[21692894.761672] sd 0:0:0:0: [sda] CDB: Read(10) 28 00 53 6d 12 20 00 00 08 00
[21692894.761679] blk_update_request: critical target error, dev sda, sector 1399656992

如何在线修复

1 用这个命令badblocks -s -v -o /root/badblocks.log /dev/sda可以检测坏块,但是直接对系统盘执行这个命令会不会对系统有影响,还有这个命令要执行多久?

2 如何修复这个系统盘,还是只能更换系统盘?

3 如何将系统盘迁移到另一块盘,达到更换系统盘的目的?

回复
阅读 173
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
你知道吗?

宣传栏