GEOM label clarification

Polytropon freebsd at edvax.de
Fri Oct 16 22:58:48 UTC 2009


On Sat, 17 Oct 2009 00:43:37 +0300, Manolis Kiagias <sonicy at 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, ...


More information about the freebsd-questions mailing list