如果我的硬盘上有一个坏扇区,会不会有问题?

Jon*_*man 0 badblocks

硬盘截图的SMART数据

我已经有一段时间了这个错误。使用安全吗?

hey*_*ema 5

这是坏块硬盘的正确方法......

注意:不要中止坏块扫描!

注意:不要坏块 SSD

注意:首先备份您的重要文件!

注意:这将需要很多小时

注意:您可能有待处理的 HDD 故障

在“Try Ubuntu”模式下启动到 Ubuntu Live DVD/USB。

terminal...

sudo fdisk -l # 识别所有“Linux 文件系统”分区

sudo e2fsck -fcky /dev/sdXX # 只读测试

或者

sudo e2fsck -fccky /dev/sdXX# 无损读/写测试(推荐)

-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.
Run Code Online (Sandbox Code Playgroud)