Bug 47525 - rc.sysinit fsck's ext3 / filesystems
Summary: rc.sysinit fsck's ext3 / filesystems
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 6.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-07-05 21:39 UTC by Joshua Jensen
Modified: 2014-03-17 02:21 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-07-06 02:48:24 UTC
Embargoed:


Attachments (Terms of Use)

Description Joshua Jensen 2001-07-05 21:39:17 UTC
rc.sysinit nullifies the advantage of journalling in ext3 root partitions,
as it runs an fsck against root.  Not the end of the world, but if the "/"
partition is big, it takes a while, and users feel that they're not getting
their moneys worth from ext3.  Is their some ext3 detection that can be
done so as to tell the fsck portion of rc.sysinit to to a test check that
*doesn't* fix everything (so that the journal can)?

Thanks,

Joshua Jensen
joshua

Comment 1 Bill Nottingham 2001-07-06 02:48:20 UTC
AFAIK, e2fsck does the right thing (skips fsck on ext3 unless it's needed.)

What e2fsprogs do you have installed?

Comment 2 Stephen Tweedie 2001-07-06 09:36:42 UTC
The current behaviour is correct.  The initscripts _must_ call fsck for ext3
filesystems.  If the filesystem has an error on it, or if it has exceeded its
maximum time between fscks (which you can set via tune2fs), e2fsck will do a
full run on the filesystem.  But if not, fsck will just recover the journal and
will not do a full check, so you get the right behaviour.

If you are getting a full fsck on your root filesystem every time, then there's
something else wrong --- probably it is only being mounted as ext2.  Try a

    cat /proc/mounts

to verify what the kernel thinks the root filesystem is.  If you change the root
filesystem type to ext3 in /etc/fstab, you still need to rerun mkinitrd to cause
it to be remounted as ext3 on the next boot, otherwise you'll still be mounting
root as ext2 and you'll get the fsck-on-reboot that you described.


Note You need to log in before you can comment on or make changes to this bug.