fsck doesn't like LABEL= in fstab

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Tue Oct 9 15:44:19 UTC 2007


On Mon, Oct 08, 2007 at 09:28:56PM -0400, Giles Orr wrote:
> What with my hard drive adventures recently, I decided it was time to
> muck with my /etc/fstab some so that USB devices would start showing
> up at coherent mount points.  I thought the right method would be
> using "UUID=..." statements in fstab, but then I found "LABEL=..."
> which seemed more practical.  However, I've had the same issue with
> both: on boot, fsck tries to check the UUID or LABEL devices (which
> are generally not connected), despite "noauto" params, and then stalls
> the boot process suggesting I go fix it.  Here's the
> /var/log/fsck/checkfs :
> 
> Log of fsck -C -V -R -A -a
> Mon Oct  8 17:04:22 2007
> 
> fsck 1.40.2 (12-Jul-2007)
> Checking all file systems.
> [/sbin/fsck.ext3 (1) -- /fc] fsck.ext3 -a -C0 /dev/hda1
> /: clean, 178437/1310720 files, 932982/2620595 blocks
> [/sbin/fsck.ext3 (1) -- /mnt/vantec1] fsck.ext3 -a -C0 LABEL=Vantec01
> fsck.ext3: Unable to resolve 'LABEL=Vantec01'
> [/sbin/fsck.ext3 (1) -- /mnt/vantec2] fsck.ext3 -a -C0 LABEL=Vantec02
> fsck.ext3: Unable to resolve 'LABEL=Vantec02'
> fsck died with exit status 8
> 
> The corresponding lines in /etc/fstab :
> 
> /dev/hda1       /fc             ext3    defaults,noauto  0       2
> LABEL=Vantec01 /mnt/vantec1 ext3 user,noauto 0 2
> LABEL=Vantec02 /mnt/vantec2 ext3 user,noauto 0 2

The last column controls fsck on boot.  Set it to 0 if you don't want
fsck run at boot on those drives.

> So what's the problem here?  If I use "/dev/sda1" instead of
> "LABEL=Vantec01" fsck ignores the statement because it says "noauto"
> (see below) but change it to "LABEL=..." or "UUID=..." and I have a
> fairly nasty issue.  Although writing this did make me notice that /fc
> is "noauto" and gets checked.  But I have other lines:
> 
> /dev/sda1       /mnt/usba      auto    user,noauto,noatime      0      0
> /dev/sdb1       /mnt/usbb      auto    user,noauto,noatime      0      0
> 
> Which are ignored.  I'm a bit confused.

Those have 0 in the last column, which is why they are ignored.

--
Len Sorensen
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list