Bug 440155 - fsck.ext3: Unable to resolve 'LABEL=
Summary: fsck.ext3: Unable to resolve 'LABEL=
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: e2fsprogs
Version: 5.1
Hardware: i686
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Eric Sandeen
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-04-01 22:33 UTC by Larry Dillon
Modified: 2011-01-26 22:55 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-26 20:46:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
/var/log/messages (1.81 MB, text/plain)
2008-10-10 21:36 UTC, Matěj Cepl
no flags Details
/var/log/dmesg (37.65 KB, text/plain)
2008-10-10 21:36 UTC, Matěj Cepl
no flags Details
output of tune2fs -l /dev/sda1 (1.51 KB, text/plain)
2008-10-10 21:38 UTC, Matěj Cepl
no flags Details

Description Larry Dillon 2008-04-01 22:33:45 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.12) Gecko/20080208 CentOS/1.5.0.12-0.10.el4.centos Firefox/1.5.0.12 pango-text

Description of problem:
fsck cannot find disks.

I added, fdisk'd, formatted and label'd four new disks, added mount points and edited /etc/fstab.  I mounted them OK.  Upon reboot I got this error on each disk:

fsck.ext3: Unable to resolve 'LABEL= (etc)

for each disk.

I found a work-around be setting the "fsck order" to 0 (zero) in /etc/fstab
I had also tried the /dev/sda1 ..etc. method to no avail.



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


How reproducible:
Always


Steps to Reproduce:
1.install and label disks
2.edit /etc/fstab
3.reboot

Actual Results:
fsck.ext3: Unable to resolve 'LABEL=

Expected Results:
disks should mount without error.
If I comment out the disks in /etc/fstab, boot normally, un-comment-out the disks and do a "mount -a" everything works fine.  The problem lies with fsck during boot.

Additional info:
search google for:  fsck.ext3: Unable to resolve 'LABEL=
and you'll get many hits so it may be an up-stream problem.

Comment 1 Eric Sandeen 2008-04-01 23:05:31 UTC
Would you mind attaching or pasting in your fstab, just so there's no ambiguity
about your setup?  (if mount points or device names are sensitive, /dev/XXX &
/mnt/XXXX is fine of course)

I did a very quick test with FSTAB_FILE=/tmp/fstab which looked like:

[root@host tmp]# cat fstab
LABEL=FSFILE1		/mnt/fsfile1		ext3	defaults	1 1
LABEL=FSFILE2		/mnt/fsfile2		ext3	defaults	1 2

where FSFILE1 and FSFILE2 were on loopback devices, labeled as shown, and:

[root@host tmp]# fsck -V -T -A -a
Checking all file systems.
[/sbin/fsck.ext3 (1) -- /mnt/fsfile1] fsck.ext3 -a /dev/loop1 
FSFILE1: clean, 11/8192 files, 5548/32768 blocks
[/sbin/fsck.ext3 (1) -- /mnt/fsfile2] fsck.ext3 -a /dev/loop2 
FSFILE2: clean, 11/8192 files, 5548/32768 blocks

worked... I'll try setting the host up so it actually looks for more labels at
boot to try to more closely recreate your setup.

Comment 2 Eric Sandeen 2008-04-09 15:13:15 UTC
Could you please provide your fstab details?

Thanks,
-Eric

Comment 3 Erik P. Olsen 2008-08-08 18:39:14 UTC
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/usr              /usr                    ext3    defaults        1 2
LABEL=/tmp              /tmp                    ext3    defaults        1 2
LABEL=/var              /var                    ext3    defaults        1 2
LABEL=/home             /home                   ext3    defaults        1 2
LABEL=/boot             /boot                   ext3    defaults        1 2
LABEL=/VMware           /VMware                 ext3    defaults        1 2
LABEL=/downloads        /downloads              ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
LABEL=SWAP-sdbs         swap                    swap    defaults        0 0

The two partitions /VMware and /downloads were created after system generation, duely formated and labeled. However, they were not found at boot time and the boot process did tI can confirm this bug after the description. I am on Fedora 8, kernel 2.6.23.1-42.fc8. My fstab looks like:

LABerminated. This did not happen with Fedora 7. If I change the two line to specify UUID= as only change then the partitions are found, but partitions surface on the desktop as were they mounted by hand which also did not happen with Fedora 7.

Comment 4 Eric Sandeen 2008-08-08 19:10:27 UTC
That last comment seems a bit garbled, can you re-post?

"My fstab looks like:

LABerminated."

etc.

Comment 5 Erik P. Olsen 2008-08-08 22:49:13 UTC
Strange, this is what I thought I sent (and I've also added a few words):

I can confirm this bug after the description. I am on Fedora 8, kernel 2.6.23.1-42.fc8. My fstab looks like:

LABEL=/                 /                       ext3    defaults        1 1
LABEL=/usr              /usr                    ext3    defaults        1 2
LABEL=/tmp              /tmp                    ext3    defaults        1 2
LABEL=/var              /var                    ext3    defaults        1 2
LABEL=/home             /home                   ext3    defaults        1 2
LABEL=/boot             /boot                   ext3    defaults        1 2
LABEL=/VMware           /VMware                 ext3    defaults        1 2
LABEL=/downloads        /downloads              ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
LABEL=SWAP-sdbs         swap                    swap    defaults        0 0


The two partitions /VMware and /downloads were created after system generation, duely formated and labeled. However, they were not found at boot time and the boot process terminated as described by Larry. This did not happen with Fedora 7. If I change the two line to specify UUID= as only change then the partitions are found, but the two partitions surface on the desktop as were they mounted by hand which also did not happen with Fedora 7.

Comment 6 Eric Sandeen 2008-08-23 04:48:39 UTC
are /VMware and /downloads on different storage (different controller, perhaps) than the other items?

After the system is booted, does blkid find the labels?

[root@host ~]# blkid -t LABEL="/boot"
/dev/sda1: LABEL="/boot" UUID="f377b339-xxxx-xxxx-xxxx-b0284dd3af8b" TYPE="ext3" SEC_TYPE="ext2"

Comment 7 Erik P. Olsen 2008-08-23 05:29:14 UTC
They are indeed on a different disk which is slave to the other disk where the other partitions are located.

[root@epohost ~]# blkid -t LABEL=/VMware
[root@epohost ~]# blkid -t LABEL=/boot
/dev/sda1: LABEL="/boot" UUID="6a2df546-7223-4efb-b3d5-c2410bf67b17" SEC_TYPE="ext2" TYPE="ext3"

Comment 8 Eric Sandeen 2008-08-23 05:55:58 UTC
Interesting... does e2label /dev/<device> on the device you expect to be labeled as "/VMware" give you the right thing?  Just to be sure the label is there.

And/or, does blkid /dev/<device> behave as expected?

Comment 9 Eric Sandeen 2008-08-23 05:59:35 UTC
oh, and what is the device that holds the /VMware label?  (as shown in /proc/partitions?)

Comment 10 Erik P. Olsen 2008-08-23 07:24:46 UTC
Something seems strange here. I'll check the whole matter once again and maybe I'll have to change some of my comments. It may take a couple of days because I won't be home for the week-end.

Comment 11 Matěj Cepl 2008-10-10 21:36:12 UTC
Created attachment 320062 [details]
/var/log/messages

Eric, I get something which looks pretty similar when upgrading to kernel-2.6.27-1.fc10.i686 (the one with the ext4dev/ext4 confusion, but I don't it should be related) and e2fsprogs-1.41.2-2.fc10.i386, fsck -A crashed with the same error message and whole startup broke in that moment. The only solution for me was to edit /etc/fstab and replace LABEL=boot with /dev/sda1. Then everything works pretty well. However, a strange thing is that other partition (actually LVM logical volume) with LABEL= is perfectly recognized.

Neither blkid nor blkid /dev/sda1 knows anything about this partition and neither of these commands shows anything about it. tune2fs -l and e2label are happy and show the label without any problems.

This is my /etc/fstab (the only difference against the state when the boot broke is the result of sed -e 's/LABEL=boot/\/dev\/sda1/'):

#
# /etc/fstab
# Created by anaconda on Thu Oct  2 11:33:49 2008
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or vol_id(8) for more info
#
LABEL=root              /          ext4    defaults        1 1
/dev/sda1               /boot      ext3    defaults        1 2
/dev/mapper/home        /home      ext3    defaults        1 1
tmpfs                   /tmp       tmpfs   defaults        0 0
devpts                  /dev/pts   devpts  gid=5,mode=620  0 0
sysfs                   /sys       sysfs   defaults        0 0
proc                    /proc      proc    defaults        0 0
/dev/vg00/lvSwap        swap       swap    defaults        0 0

Comment 12 Matěj Cepl 2008-10-10 21:36:44 UTC
Created attachment 320063 [details]
/var/log/dmesg

Comment 13 Matěj Cepl 2008-10-10 21:38:50 UTC
Created attachment 320064 [details]
output of tune2fs -l /dev/sda1

Comment 14 Eric Sandeen 2008-10-10 21:48:51 UTC
Matej, does "blkid /dev/sda1" show the right thing?

How about just "blkid" by itself, is sda1 in the list?

Thanks,
-Eric

Comment 15 Matěj Cepl 2008-10-12 11:40:31 UTC
quoting comment 11:
> Neither blkid nor blkid /dev/sda1 knows anything about this partition and
> neither of these commands shows anything about it.

Comment 16 Eric Sandeen 2008-10-14 15:13:06 UTC
Ok, Matej's problem seems to be that he had the test_fs flag set on an ext3 fs and blkid is not coping.  I'll fix that, but it's unlikely that it's the original reporter's problem.

Comment 17 Eric Sandeen 2009-03-09 22:43:34 UTC
(In reply to comment #10)
> Something seems strange here. I'll check the whole matter once again and maybe
> I'll have to change some of my comments. It may take a couple of days because I
> won't be home for the week-end.  

Did you decide whether anything was "strange?"  I don't want to keep this open if there was just some problem on your end.

Thanks,
-Eric

Comment 18 Gerrit Slomma 2009-05-22 22:21:29 UTC
I had the same problem in RHEL 5.3 when updating from 2.6.18-128.el5 to 2.6.18-128.1.x.el5 when having a CIFS-mountpoint (in fact a samba-share) in my /etc/fstab. Purging this mountpoint out of the /etc/fstab did the trick for me.
The mountpoint when in the /etc/fstab also surfaced out of nowhere onto my user-desktop and now naturally is gone.

Comment 19 Eric Sandeen 2011-01-26 20:46:34 UTC
Needinfo was never answered; if you can provide more info please open.


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