Bug 121946 - fsck during boot: no progress
Summary: fsck during boot: no progress
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Final
Hardware: Other All
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Hannes Reinecke
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-10 12:14 UTC by Michal Svec
Modified: 2006-10-16 14:28 UTC (History)
2 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Svec 2005-10-10 12:14:09 UTC
There's no progress during fsck which is run during boot (missing -C?), but only
during the first one (probably /), the next fsck is with progress.
Comment 1 Dr. Werner Fink 2005-10-10 12:35:27 UTC
/etc/init.d/boot.rootfsck:

        #
        # If we use a serial console, don't use the fsck progress bar
        #
        FSCK_PROGRESSBAR="-V"
        [ -x /sbin/showconsole ] && [ "`/sbin/showconsole`" = "/dev/tty1" ] &&
FSCK_PROGRESSBAR="-C"

[...]
                    echo "Checking root file system..."
                    fsck $FSCK_PROGRESSBAR -a $FSCK_FORCE $ROOTFS_BLKDEV

If your file system supports this and you're not running the boot
on a serial console you'll see a progress bar.
Comment 2 Michal Svec 2005-10-16 18:36:25 UTC
I have seen that code, of course, have you tried that? It seems like something initrd related, that first fsck without progress is probably even before init starts.
Comment 3 Michal Svec 2005-10-17 09:22:02 UTC
If I'm correct, something like the code in comment #1 seems to be missing in /sbin/initrd.
Comment 4 Hannes Reinecke 2005-12-19 09:53:48 UTC
That is correct. However, I'm a bit loath to add a program to the initrd just to get a nice display. Especially as only ext2 / ext3 support such a thing.

You're right about the '-V', of course.
I'll be adding the option '-V' to Preview3.
Comment 5 Michal Svec 2005-12-19 10:33:26 UTC
Well, as ext2/ext3 are the most used filesystems in Linux, I'd say it'd be good. IMHO having the user wait for 10 minutes without any progress is not nice. Andreas?

BTW how about other FSes, xfs, jfs, etc?
Comment 6 Andreas Jaeger 2005-12-19 10:46:34 UTC
We need to have something here so that the users is informed about what's going on.
Comment 7 Michal Svec 2006-09-19 12:29:03 UTC
The issue is still present.

If you pass the maximum mount count, the rootfs is checked during boot. But unlike all other fses which are checked later (and with progress), root is checked early, without any progress. With nowadays disk sizes user could wait significantly long time, which is really ugly.

I suggest two things:
  1. Add '-C' to fsck args
  2. Ask the user if he wants to skip fsck this boot (with some timeout).
Comment 8 Christian Boltz 2006-09-23 21:42:43 UTC
# grep fsck boot.crypto
            fsck -a -t $filesys $loopdev

-> fsck of encrypted filesystems also lacks the progress bar

BTW: I like both suggestions from comment #7 ;-)
Comment 9 Hannes Reinecke 2006-09-26 13:27:48 UTC
Added '-C' to fsck flags in mkinitrd. Afraid we can't do the second suggestion from comment #7 as we don't necessary have a keyboard (USB modules are not loaded by default).
Someone should convince gregkh to leave the USB BIOS emulation running until the USB drivers are loaded; then we can do this.
Comment 10 Michal Svec 2006-09-26 13:37:20 UTC
OK, thanks, will ask Greg what we could do about this.

Rudi, you might want to also fix this in boot.crypto (aaa_base),
see comment #8.
Comment 11 Olaf Hering 2006-09-26 16:42:04 UTC
-C is bad. check boot.rootfsck for the correct fix.
If in doubt, try it with 9600 serial console on a 42TB ext2 array.
Comment 12 Hannes Reinecke 2006-10-16 14:28:21 UTC
Ok, did so. New mkinitrd rpm submitted for autobuild.