[SOLVED] Re: labelling root file system (RELENG_8)

nickolasbug at gmail.com nickolasbug at gmail.com
Thu Jun 9 07:37:30 UTC 2011


2011/6/8 Matthias Andree <matthias.andree at gmx.de>:
> Am 08.06.2011 15:11, schrieb nickolasbug at gmail.com:
>> 1. Change your root fstab record to /dev/ada0s4a (not label!), reboot
>> to single mode and try to re-label partition.
>
> Indeed not mounting from the label was (apparently) the key to solve
> this.  Thank you.
>
> In fact the successful procedure was:
>
> - from boot menu, escape to loader prompt
> - set vfs.root.mountfrom=ufs:/dev/ada0s4a
> - boot -s
> - tunefs -L mylabel /dev/ada0s4a
> - mount -a
> - edit /etc/fstab to use /dev/ufs/mylabel as device for /
> - shutdown -r now
>

Right, you cannot re-label partition because you've mount filesystem
through label device. So this device is already in use and re-labeling
would destroy label device.


-----
wbr,
Nickolas


More information about the freebsd-stable mailing list