From owner-freebsd-geom@FreeBSD.ORG Tue Dec 29 00:43:11 2009 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF0BD106568B for ; Tue, 29 Dec 2009 00:43:11 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (smtp2.utsp.utwente.nl [130.89.2.9]) by mx1.freebsd.org (Postfix) with ESMTP id 98E088FC16 for ; Tue, 29 Dec 2009 00:43:13 +0000 (UTC) Received: from nox.student.utwente.nl (nox.student.utwente.nl [130.89.165.91]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id nBT0BHec011443; Tue, 29 Dec 2009 01:11:17 +0100 From: Pieter de Goeje To: freebsd-stable@freebsd.org Date: Tue, 29 Dec 2009 01:11:17 +0100 User-Agent: KMail/1.9.10 References: <4B391265.5080908@borderworlds.dk> In-Reply-To: <4B391265.5080908@borderworlds.dk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200912290111.17781.pieter@degoeje.nl> Cc: Christian Laursen , freebsd-geom@freebsd.org Subject: Re: A script that modifies /etc/fstab to mount devices via glabel X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Dec 2009 00:43:12 -0000 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 instead of using dumpfs though. - Pieter