Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Dec 2009 01:11:17 +0100
From:      Pieter de Goeje <pieter@degoeje.nl>
To:        freebsd-stable@freebsd.org
Cc:        Christian Laursen <xi@borderworlds.dk>, freebsd-geom@freebsd.org
Subject:   Re: A script that modifies /etc/fstab to mount devices via glabel
Message-ID:  <200912290111.17781.pieter@degoeje.nl>
In-Reply-To: <4B391265.5080908@borderworlds.dk>
References:  <4B391265.5080908@borderworlds.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 28 December 2009 21:17:41 Christian Laursen wrote:
> Hi there,
>
> I wrote a script that modifies fstab so that UFS filesystems are mounted
> via their UFS IDs and swap partitions are labeled with glabel in order
> to access them that way.
>
> It works for me on at least FreeBSD 7.2 and 8.0. Use at your own risk.
>
> For swap devices it is neccesary to label the device in order to
> recognize it later and that requires that swap is turned off briefly.
>
> The script requires perl to run.
>
> The script is here:
> http://borderworlds.dk/utils/fstab-glabel.pl
>
> Feel free to use it if you find it useful.

Works as advertised, thank you!

It is probably faster to extract the label from glabel status -s <node> 
instead of using dumpfs though.

- Pieter



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