[lug] fsck question

Hugh Brown hugh at math.byu.edu
Thu Aug 9 11:11:08 MDT 2007


gordongoldin at aim.com wrote:
> fsck question:
> 
> a) fsck seems to run way too fast to have really done a check.? Always worried about things that seem too easy? :-)
> b) And it remembers the last name the partition was mounted as.? Just curious about that.
> 
> I have a 200gig drive with 140 gig of files.? It is ext2
> 
> I mounted it by hand as /dev/sdb1 /home1, no entry in fstab.
> 
> I umounted it, checked mtab to make sure, ran fsck:
> cursor returned immediately - no difference if I specified ext2 or not - and it noted it had checked /home1
> 
> [root at jdialog home]# fsck -CV /dev/sdb1
> fsck 1.39 (29-May-2006)
> [/sbin/fsck.ext2 (1) -- /dev/sdb1] fsck.ext2 -C0 /dev/sdb1 
> e2fsck 1.39 (29-May-2006)
> /home1: clean, 1452367/24428544 files, 34242875/48839600 blocks
> 
>

In the case of ext2 w/ journal, fsck will apply the journal and call it 
good unless the "superblock indicates that further checking is required 
(man page)"  I suspect it may just check the superblock in the ext2 w/ 
no journal case.

Use -f to force the check.

Hugh



More information about the LUG mailing list