正在检查您的磁盘驱动器是否有错误?

正在检查您的磁盘驱动器是否有错误?

每次登录我的 Ubuntu 操作系统时我都会收到这条消息。

消息“正在检查您的磁盘驱动器是否有错误。这将需要一些时间。”

随后出现此消息“正在检查.. 3%”进度。

按 C 取消。

我的磁盘出了什么问题?所有 Ubuntu 操作系统都这样吗?有什么问题吗?

答案1

每隔一段时间(大约 30 次重启后),系统就会检查您的硬盘。这是正常现象。这并不意味着您的硬盘有问题,这只是系统例行检查,以确保一切正常。

如果你这样做,man fstab其中有一部分讨论了 fstab 文件的第六个字段/etc/fstab其中写道:

   The  sixth field, (fs_passno), is used by the fsck(8) program to deter‐
   mine the order in which filesystem checks are done at reboot time.  The
   root  filesystem  should  be specified with a fs_passno of 1, and other
   filesystems should have a fs_passno of 2.  Filesystems within  a  drive
   will  be checked sequentially, but filesystems on different drives will
   be checked at the same time to utilize  parallelism  available  in  the
   hardware.   If  the sixth field is not present or zero, a value of zero
   is returned and fsck will assume that the filesystem does not  need  to
   be checked.

fstab 中的字段是(如果您执行nano /etc/fstab):

      Field 1        Field 2     Field 3  Field 4       Field 5   Field 6 
   <file system> <mount point>   <type>  <options>       <dump>  <pass>

答案2

我解决了我的问题,它和 Silambarasan 的问题一样:几天前,突然出现这种情况:每次启动 Ubuntu 时,我都会收到“正在检查您的磁盘驱动器是否有错误,这可能需要一些时间”——确实如此,至少 10 分钟。非常烦人。最后我注意到,每次关机时,就在机器关闭之前,屏幕上都会短暂重复以下消息:“无法写入”“管道损坏”。

所以这就是为什么它在每次启动时都会检查:每次关机时都会出现问题。我在 Google 上搜索了“管道损坏”,有人建议通过执行“sudo apt-get -f install”来修复它,这会告诉我 /var/lib/dpkg/status 中存在错误。我执行了该命令,但没有提到任何错误。它说:

升级了 0 个,新安装了 0 个,删除了 0 个,并且未升级 569 个。

自从安装 Ubuntu 以来,我一直不允许任何更新。一切都运行良好,那为什么要打乱计划呢?但现在看来这可能是问题所在,所以我进行了更新。我使用的是 Ubuntu 10.04,因此执行以下操作:

  • 系统 > 管理 > 更新管理器
  • 单击“检查”按钮以确保包信息尽可能最新。
  • 单击安装更新按钮。

瞧!当我打开 Ubuntu 时,我不再收到“正在检查您的磁盘驱动器...”的消息。Susan Anderson 12-8-12

相关内容