扇区 修复 linux,linux – 如何使用hdparm来修复挂起的扇区?
SMART正在說明我服務器硬盤上的一個待處理扇區.我已經閱讀了許多文章,建議使用hdparm“輕松”強制磁盤重新定位壞扇區,但我找不到正確的方法來使用它.
我的“smartctl”中的一些信息:
Error 95 occurred at disk power-on lifetime: 20184 hours (841 days + 0 hours)
When the command that caused the error occurred,the device was active or idle.
After command completion occurred,registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 00 d7 55 dd 02 Error: UNC at LBA = 0x02dd55d7 = 48059863
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 08 d6 55 dd e2 00 18d+05:13:42.421 READ DMA
27 00 00 00 00 00 e0 00 18d+05:13:42.392 READ NATIVE MAX ADDRESS EXT
ec 00 00 00 00 00 a0 02 18d+05:13:42.378 IDENTIFY DEVICE
ef 03 46 00 00 00 a0 02 18d+05:13:42.355 SET FEATURES [Set transfer mode]
27 00 00 00 00 00 e0 00 18d+05:13:42.327 READ NATIVE MAX ADDRESS EXT
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Completed: read failure 90% 20194 48059863
# 2 Short offline Completed without error 00% 15161 -
有了“糟糕的LBA”(48059863),我該如何使用hdparm?參數“–read-sector”和“–write-sector”應該具有哪種類型的地址?
如果我發出命令hdparm –read-sector 48095863 / dev / sda,它會讀取并轉儲數據.如果這個命令是正確的,我應該期待一個I / O錯誤,對嗎?
相反,它轉儲數據:
$./hdparm --read-sector 48059863 /dev/sda
/dev/sda:
reading sector 48059863: succeeded
4b50 5d1b 7563 a932 618d 1f81 4514 2343
8a16 3342 5e36 2591 3b4e 762a 4dd7 037f
6a32 6996 816f 573f eee1 bc24 eed4 206e
(...)
總結
以上是生活随笔為你收集整理的扇区 修复 linux,linux – 如何使用hdparm来修复挂起的扇区?的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python查看系统句柄数量_linux
- 下一篇: c汇编语言例题,汇编语言例题分析.doc