fsck
让我们首先修复您的文件系统...
fsck -f /dev/sda10
fsck
如果有错误,请重复该命令reboot
NCQ
然后我们停止 NCQ 错误...
本机命令队列 (NCQ) 是串行 ATA 协议的扩展,允许硬盘驱动器在内部优化执行接收到的读取和写入命令的顺序。
Edit sudo -H gedit /etc/default/grub
and change the following line to include this extra parameter (ignore any warning messages). Then do sudo update-grub
to write the changes to disk. Reboot
. Monitor hangs, and watch /var/log/syslog
or dmesg
for continued error messages.
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash libata.force=noncq"
bad blocking
Then we test for bad blocks on the disk...
Note: do NOT abort a bad block scan!
Note: do NOT bad block a SSD
Note: backup your important files FIRST!
Note: this will take many hours
Note: you may have a pending HDD failure
Boot to a Ubuntu Live DVD/USB in “Try Ubuntu” mode.
In terminal
...
sudo fdisk -l
# identify all "Linux Filesystem" partitions
sudo e2fsck -fcky /dev/sdXX
# read-only test
or
sudo e2fsck -fccky /dev/sdXX
# non-destructive read/write test (recommended)
-k 很重要,因为它保存了之前的坏块表,并将任何新的坏块添加到该表中。如果没有 -k,您将丢失所有先前的坏块信息。
-fccky 参数...
-f Force checking even if the file system seems clean.
-c This option causes e2fsck to use badblocks(8) program to do a
read-only scan of the device in order to find any bad blocks.
If any bad blocks are found, they are added to the bad block
inode to prevent them from being allocated to a file or direc‐
tory. If this option is specified twice, then the bad block
scan will be done using a non-destructive read-write test.
-k When combined with the -c option, any existing bad blocks in the
bad blocks list are preserved, and any new bad blocks found by
running badblocks(8) will be added to the existing bad blocks
list.
-y Assume an answer of `yes' to all questions; allows e2fsck to be
used non-interactively. This option may not be specified at the
same time as the -n or -p options.
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句