On Sat, 17 Oct 2009 00:43:37 +0300, Manolis Kiagias <son...@otenet.gr> wrote:
> Is this your normal '/' filesystem, and is it mounted?
> If it is reboot your system and select 'single user mode' from the
> loader.menu
> Then use glabel in the single user mode prompt.
> This will not work if you just 'shutdown now', you have to reboot into
> single user mode.

Isn't it sufficient to unmount any partitions and keep /
in -o ro mode, and then perform the glabel command, which
is obviously best done in single user mode?

        # shutdown now
        # umount /home /usr /var /tmp
        # mount -r /
        # glabel label rootfs /dev/ad0s1a
        # glabel label tmp /dev/ad0s1d
        # glabel label var /dev/ad0s1e
        # glabel label usr /dev/ad0s1f
        # glabel label home /dev/ad0s1g

For example like this?


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to