命令:
fsck -n
举例:
[root@linux115 etc]# fsck -n
fsck from util-linux-ng 2.17.2
e2fsck 1.41.12 (17-May-2010)
警告! /dev/mapper/vg_linux115-lv_root已挂载.
Warning: skipping journal recovery because doing a read-only filesystem check.
/dev/mapper/vg_linux115-lv_root contains a file system with errors, 强制检查.
第一步: 检查inode,块,和大小
Inodes that were part of a corrupted orphan linked list found. 处理? 否
Inode 11291 was part of the inode list. 已忽略.
Inode 11291 is in use, but has dtime set. 处理? 否
Inode 11291, i_size is 4096, 应为 40960. 处理? 否
第二步: 检查目录结构
第3步: 检查目录连接性
Pass 4: Checking reference counts
第5步: 检查簇概要信息
Free 块s count wrong (3863063, counted=3845638).
处理? 否
Free inodes count wrong (1134202, counted=1132152).
处理? 否
/dev/mapper/vg_linux115-lv_root: ********** 警告: 文件系统上仍有错误 **********
/dev/mapper/vg_linux115-lv_root: 214838/1349040 files (0.1% non-contiguous), 1529321/5392384 blocks
[root@linux115 etc]#