use of label in fstab
Derek Broughton
news at pointerstop.ca
Mon Sep 11 13:10:47 UTC 2006
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
More information about the ubuntu-users
mailing list