Skip site navigation (1)Skip section navigation (2)
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>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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.  Say:
>
>  - Start into single user
>  - tunefs -L root /
>  - reboot into single user <--- reboot required after tuning /
>  - mount -u /; mount -a
>  - vi /etc/fstab and change "/dev/ad0a" to "/dev/ufs/root"
>  - umount -a
>  - tunefs -L other partitions
>  - mount -a
>  - vi /etc/fstab and change the rest
>  - reboot

If you use the UFS ID label instead you don't need to reboot because you 
don't modify the superblock :)

You can find the ID with..
line=`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)

-- 
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

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (FreeBSD)

iD8DBQBLKEQ+5ZPcIHs/zowRAloIAKClIxPMFso1vdD2gHRur2aguelQrwCeKgcp
yOQcTGJ357WdGPvy2Bi0Ge0=
=xykH
-----END PGP SIGNATURE-----
help

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