use of label in fstab

Derek Broughton news at pointerstop.ca
Sun Sep 10 14:37:43 UTC 2006


Tod Merley wrote:

> On 9/10/06, Paul Hide <paul.hide at gmail.com> 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.
 
> You can, I believe, only boot onto a primary partition.
> 
This wouldn't seem to be relevant to Paul's situation (and I'm not sure it's
even true, anymore, though I haven't tested it).  He's still booting to
the "ublinux" partition.  He just can't mount /dev/sda5 via label.  

So what happens if you try mounting /dev/sda5 on /dyntest?

# mount -t ext3 /dev/sda5 /dyntest

Perhaps the problem is that it really isn't mountable.
-- 
derek





More information about the ubuntu-users mailing list