Date: Wed, 16 Dec 2009 12:51:49 +1030 From: "Daniel O'Connor" <doconnor@gsoft.com.au> To: freebsd-stable@freebsd.org Cc: xcllnt@mac.com Subject: Re: update to 8.0-RELEASE --> partition gone Message-ID: <200912161251.50660.doconnor@gsoft.com.au> In-Reply-To: <a78074950912151642q4922cad8r9fef1aed71a6c941@mail.gmail.com> References: <4B2802AE.9090107@kernel32.de> <20091216000803.GA39686@osiris.mauzo.dyndns.org> <a78074950912151642q4922cad8r9fef1aed71a6c941@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912161251.50660.doconnor>