use of label in fstab
Paul Hide
paul.hide at gmail.com
Mon Sep 11 15:08:11 UTC 2006
Date: Mon, 11 Sep 2006 10:10:47 -0300
From: Derek Broughton <news at pointerstop.ca>
Subject: Re: use of label in fstab
To: ubuntu-users at lists.ubuntu.com
Message-ID: <nr3gt3-br6.ln1 at news.pointerstop.ca>
Content-Type: text/plain; charset=us-ascii
Paul Hide wrote:
> I used e2label to label a partition on a sata disk /dev/sda1 with the
> > label ublinux edited fstab to contain:
> > label=ublinux / ext3 defaults,errors=remount-ro 0 1
> > and this booted correctly.
> > I made another partition /dev/sda5 and used e2label to label it dyndata,
> > formatted it, made the directory /dydtest and then added another line to
> > fstab:
> > label=ublinux / ext3 defaults,errors=remount-ro 0 1
> > label=dyndata /dyntest ext3 defaults,errors=remount-ro 0 1
> > On bootup now, the first partition mounts correctly, but the second
> gives
> > the following error message from fsck.ext3: Unable to resolve
> > 'label=dyndata'.
> > Does anyone have any thoughts.
> >
>
> On 9/11/06, Paul Hide <paul.hide at gmail.com> wrote:
> > Hi Derek - I don't think I should be replying direct to you,
>
> I'll take that as implicit permission, then, to redirect this back to the
> list :-)
>
> > but rather to
> > the mailing list, so that the sequence of mails is properly
> > threaded/indented, but, I don't know how to do that. I got your reply
> > via a digest, does that make it impossible?
>
> That might make it impossible to properly thread (though I suspect if you
> set your digest option to "mime", it will be just like replying to a
> normal
> email), but replying to the list from a text digest is as easy as replying
> to me. Just reply to the list address and be sure to trim! Another
> option
> is to use a newsreader. I get the list via
> nntp://news.gmane.org/gmane.linux.ubuntu.user (I hope I have the URL
> right).
>
> > The partition is mountable. After the error I give root's password and
> do
> > the following:
> > ~# mount -L dyndata /dyntest
> > Following this:
> > ~# mount
> > shows /dev/sda5 on /dyntest
>
> Then I think I see your problem. In fstab:
>
> label=dyndata /dyntest ext3 defaults,errors=remount-ro 0 1
>
> That last digit should be 2. ONLY your root partition should be mounted
> in
> pass 1. I don't generally mount by label & I don't use ext filesystems,
> so
> I can't be certain, but if it mounts fine after boot time, but not
> _during_
> boot, I think that has to be the problem.
>
> > Paul Hide
>
> I had brief hopes that you were the leader of the fabulous (and much
> missed)
> Payola$, but you spell your name wrong :-)
> --
> derek
Strangely, I had exactly the same thought about the 1 and 2. I did exactly
as you suggest, but it did not work.
Then because I knew that it should work and because of the capital L in
mount (completely illogical) I tried:
LABEL= in capitals in fstab and to my astonishment with that single change
of case it now all works correctly.
Sorry to disappoint you, but Payola$ means nothing to me.
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060911/9167776e/attachment.html>
More information about the ubuntu-users
mailing list