From owner-freebsd-stable@FreeBSD.ORG Wed Dec 16 02:21:55 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 747E8106566B for ; Wed, 16 Dec 2009 02:21:55 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id CEA7B8FC19 for ; Wed, 16 Dec 2009 02:21:54 +0000 (UTC) Received: from inchoate.gsoft.com.au ([203.31.81.30]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id nBG2LqOv009107 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 16 Dec 2009 12:51:52 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-stable@freebsd.org Date: Wed, 16 Dec 2009 12:51:49 +1030 User-Agent: KMail/1.9.10 References: <4B2802AE.9090107@kernel32.de> <20091216000803.GA39686@osiris.mauzo.dyndns.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart54825586.urIJEOToG2"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200912161251.50660.doconnor@gsoft.com.au> X-Spam-Score: -3.228 () ALL_TRUSTED,BAYES_00,SUBJECT_FUZZY_TION X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: xcllnt@mac.com Subject: Re: update to 8.0-RELEASE --> partition gone X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Dec 2009 02:21:55 -0000 --nextPart54825586.urIJEOToG2 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wed, 16 Dec 2009, Xin LI wrote: > My $0.02: what about labelling them, say, tunefs -L on UFS > partitions, and glabel for swap, then change corresponding entry in > fstab. =C2=A0Say: > > =C2=A0- Start into single user > =C2=A0- tunefs -L root / > =C2=A0- reboot into single user <--- reboot required after tuning / > =C2=A0- mount -u /; mount -a > =C2=A0- vi /etc/fstab and change "/dev/ad0a" to "/dev/ufs/root" > =C2=A0- umount -a > =C2=A0- tunefs -L other partitions > =C2=A0- mount -a > =C2=A0- vi /etc/fstab and change the rest > =C2=A0- reboot If you use the UFS ID label instead you don't need to reboot because you=20 don't modify the superblock :) You can find the ID with.. line=3D`dumpfs 2> /dev/null $1 | head | grep superblock\ location` # dumpfs doesn't print leading 0s echo $line | sed -nEe 's/superblock location.*id.*\[ (.*)(.*)\ ]/printf %0x= $((0x\1 << 32 | 0x\2))/p' (in an sh like shell) =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart54825586.urIJEOToG2 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iD8DBQBLKEQ+5ZPcIHs/zowRAloIAKClIxPMFso1vdD2gHRur2aguelQrwCeKgcp yOQcTGJ357WdGPvy2Bi0Ge0= =xykH -----END PGP SIGNATURE----- --nextPart54825586.urIJEOToG2--