Ubuntu 在我的计算机上启动需要很长时间。
我运行了检查并从 BIOS 中恢复坏扇区,结果显示有一个坏扇区。
我使用 gsmartcontrol 得到了类似的结果 结果
:
Error 407 [150] occurred at disk power-on lifetime: 9895 hours (412 days + 7 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER -- ST COUNT LBA_48 LH LM LL DV DC
-- -- -- == -- == == == -- -- -- -- --
40 -- 51 00 00 00 00 21 ed b0 08 e1 00 Error: UNC at LBA = 0x21edb008 = 569225224
Commands leading to the command that caused the error were:
CR FEATR COUNT LBA_48 LH LM LL DV DC Powered_Up_Time Command/Feature_Name
-- == -- == -- == == == -- -- -- -- -- --------------- --------------------
42 00 21 00 00 00 00 21 ed b0 09 e0 00 04:30:13.060 READ VERIFY SECTOR(S) EXT
42 00 21 00 00 00 00 21 ed b0 09 e0 00 04:30:09.082 READ VERIFY SECTOR(S) EXT
42 00 21 00 00 00 00 21 ed b0 09 e0 00 04:30:05.103 READ VERIFY SECTOR(S) EXT
42 00 21 00 00 00 00 21 ed b0 09 e0 00 04:30:01.125 READ VERIFY SECTOR(S) EXT
42 00 21 00 00 00 00 21 ed b0 09 e0 00 04:29:57.147 READ VERIFY SECTOR(S) EXT
此处的坏扇区是 569225224。
我尝试过:
sudo hdparm --yes-i-know-what-i-am-doing --write-sector 569225224 /dev/sda
有人能帮我修复坏扇区或者至少将其不再使用吗?
提前致谢!
答案1
您可以使用坏块命令,但它仅与某些文件系统兼容。
sudo badblocks -v /dev/sda10 > badsectors.txt
------------ 专门针对 ext2/ext3/ext4 文件系统 ------------
sudo e2fsck -l badsectors.txt /dev/sda10
或 ------------ 对于其他文件系统 ------------
sudo fsck -l badsectors.txt /dev/sda10