当作为系统和非系统磁盘检查时,FSCK显示不同的结果

时间:2011-10-03 06:57:08

标签: linux ubuntu disk

我遇到UBUNTU 10.04文件系统的问题,当安装驱动器并使用FSCK作为系统驱动器进行检查以及其他系统驱动器检查时,会报告不同的结果:

sudo fsck /dev/sdb1
fsck from util-linux-ng 2.17.2
e2fsck 1.41.11 (14-Mar-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

   57217 inodes used (24.81%)
      42 non-contiguous files (0.1%)
      65 non-contiguous directories (0.1%)
         # of inodes with ind/dind/tind blocks: 0/0/0
         Extent depth histogram: 50910/20
  293868 blocks used (31.88%)
       0 bad blocks
       1 large file

   43327 regular files
    7242 directories
      59 character device files
      26 block device files
       0 fifos
     509 links
    6549 symbolic links (6187 fast symbolic links)
       5 sockets
--------
   57717 files

sudo fsck -n -t ext4 /dev/sda1     
fsck from util-linux-ng 2.17.2
e2fsck 1.41.11 (14-Mar-2010)
Warning!  /dev/sda1 is mounted.
Warning: skipping journal recovery because doing a read-only filesystem check.
/dev/sda1 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Free blocks count wrong (628134, counted=628213).
Fix? no

Free inodes count wrong (173391, counted=173379).
Fix? no


/dev/sda1: ********** WARNING: Filesystem still has errors **********

/dev/sda1: 57217/230608 files (0.1% non-contiguous), 293722/921856 blocks

每当驱动器作为系统/启动驱动器安装时,运行fsck(检查不修复)显示INODE和BLOCK计数错误,但从另一个系统磁盘检查同一驱动器报告它没问题。

有什么想法吗?

1 个答案:

答案 0 :(得分:1)

这应该是在SuperUser或ServerFault,而不是StackOverflow,但无论如何:

您只能fsck -n以只读方式挂载的文件系统。虽然文件系统以读写方式挂载,但在完全卸载或恢复日志之前它将不一致。重要的信息是

Warning: skipping journal recovery because doing a read-only filesystem check.