当 Linux 机器以运行级别 N 5 启动时,对磁盘进行 fsck

当 Linux 机器以运行级别 N 5 启动时,对磁盘进行 fsck

我们有一台 Linux 机器,我们按照以下方式进行磁盘修复

umount /grid/sde
fsck.ext4 /dev/sde
e2fsck 1.42.9 (28-Dec-2013)
/dev/sde: clean, 103867/1310720 files, 4725204/5242880 blocks
this not was from single user mode , the machine was up with multi user mode

运行级别 N 5 所以问题是

从运行级别 N 5 运行 fsck 可以吗?

答案1

只要您不需要磁盘上的数据,就可以在运行级别 5 中运行 fsck。必须卸载文件系统才能运行 fsck。如果文件系统已安装,则您无法运行 fsck。

fsck 之后,您可以再次挂载文件系统(假设未发现错误)并继续使用它。

相关内容