Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Oct 2009 00:58:44 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Manolis Kiagias <sonicy@otenet.gr>
Cc:        PJ <af.gourmet@videotron.ca>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: GEOM label clarification
Message-ID:  <20091017005844.77c28cc1.freebsd@edvax.de>
In-Reply-To: <4AD8E909.2040804@otenet.gr>
References:  <4AD8B65C.9020603@videotron.ca> <4AD8B9A9.7030306@otenet.gr> <4AD8C62C.2060009@videotron.ca> <4AD8C7B9.8030108@otenet.gr> <4AD8D387.3060101@videotron.ca> <4AD8E909.2040804@otenet.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 17 Oct 2009 00:43:37 +0300, Manolis Kiagias <sonicy@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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091017005844.77c28cc1.freebsd>