Re: use of label in fstab



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@xxxxxxxxx> 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


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: [SLE] Mounting Frenzy
    ... > partition in fstab, so it doesn't mount automatically. ... > thing up on first install and I never needed to alter it again? ...
    (SuSE)
  • Re: Disk Label Problem
    ... The disks are different sizes. ... > partition and the third to mount at /usr then when writing the changes ... this generated an error that it couldn't write label. ...
    (freebsd-questions)
  • Problems mounting by label
    ... Using the latter defeats the purpose however, since I want eventually to mount things to a different mount point depending on their label. ... The data for partition 1 is: ... I also used glabel to try to get a label on it, but couldn't see how I could use the glabel information for mounting. ...
    (freebsd-questions)
  • Re: not Re: yum exclude?
    ... > mount new /home ... Add an fstab line something like this for the new disk. ... The above is important because a partition label can cause confusion. ... When all is right in /home remove /oldhome you can recover the space. ...
    (Fedora)
  • Re: use of label in fstab
    ... use of label in fstab ... > I made another partition /dev/sda5 and used e2label to label it dyndata, ... I don't generally mount by label & I don't use ext filesystems, ...
    (Ubuntu)