Bug 56971

Summary: e2fsck in repair mode does not understand LABEL=
Product: [Retired] Red Hat Linux Reporter: Kjetil T. Homme <kjetilho>
Component: e2fsprogsAssignee: Florian La Roche <laroche>
Status: CLOSED NOTABUG QA Contact: Aaron Brown <abrown>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-04-07 19:03:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kjetil T. Homme 2001-12-01 17:06:58 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.78 [en] (X11; U; Linux 2.4.9-13smp i686)

Description of problem:
If e2fsck needs to be run manually in rc.sysinit, you have to remember
where your filesystems are :-)  It does not understand the LABEL=foo
syntax.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
0. Use labels for your ext2 filesystems in /etc/fstab
1. crash your system horribly
2. reboot, wait for e2fsck to fail automatic recovery
3. try typing e2fsck LABEL=mm
4. look futilely in /etc/fstab
5. tear out your hair trying to remember on which disk and slice
   the filesystem is. :-)


Actual Results:  Since it is in repair mode, I didn't write down the actual
error
message, sorry.  It has happened to me in both RH 7.1 and 7.2.

Expected Results:  It should've done an fsck on /dev/hdg5 (see?  now I
know! :)


Additional info:

This is not a duplicate of 35980.
$ rpm -q e2fsprogs
e2fsprogs-1.23-2
$ rpm -q initscripts
initscripts-6.40-1

Comment 1 Kjetil T. Homme 2002-04-04 00:34:35 UTC
In Skipjack, the problem in repair mode seems to be fixed, but now it doesn't
work in multiuser mode:

# grep mm /proc/mounts
/dev/hdg5 /mm ext3 rw 0 0
# grep mm /etc/fstab
LABEL=mm                /mm                     ext3    defaults        1 2
# umount /mm
# e2fsck LABEL=mm
e2fsck 1.27 (8-Mar-2002)
e2fsck: No such file or directory while trying to open LABEL=mm
# rpm -q e2fsprogs
e2fsprogs-1.27-1

Comment 2 Kjetil T. Homme 2002-04-07 19:03:13 UTC
Doh!  e2fsck doesn't understand LABEL=foo, but the fsck wrapper does.  My apologies.

Comment 3 Florian La Roche 2002-04-08 12:35:02 UTC
The wrapper should be ok.

Thanks,

Florian La Roche