From owner-freebsd-questions@FreeBSD.ORG Tue Aug 17 16:50:34 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9CF7D10656A8 for ; Tue, 17 Aug 2010 16:50:34 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr2.xs4all.nl (smtp-vbr2.xs4all.nl [194.109.24.22]) by mx1.freebsd.org (Postfix) with ESMTP id 315EC8FC28 for ; Tue, 17 Aug 2010 16:50:33 +0000 (UTC) Received: from slackbox.erewhon.net (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr2.xs4all.nl (8.13.8/8.13.8) with ESMTP id o7HGoRJH079502; Tue, 17 Aug 2010 18:50:27 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id 60FDDBAB6; Tue, 17 Aug 2010 18:50:27 +0200 (CEST) Date: Tue, 17 Aug 2010 18:50:27 +0200 From: Roland Smith To: Dick Hoogendijk Message-ID: <20100817165027.GA57865@slackbox.erewhon.net> References: <4C669668.5040906@nagual.nl> <19558.60756.860555.968721@gargle.gargle.HOWL> <4C66F542.6090501@nagual.nl> <19559.15997.480750.380264@gargle.gargle.HOWL> <4C6835B9.7000900@nagual.nl> <1281947758890646500@nagual.nl> <20100816181432.GA66710@slackbox.erewhon.net> <4C6A5104.4040103@nagual.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UlVJffcvxoiEqYs2" Content-Disposition: inline In-Reply-To: <4C6A5104.4040103@nagual.nl> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: ZFS not usable on FreeBSD-8.1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2010 16:50:34 -0000 --UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 17, 2010 at 11:06:12AM +0200, Dick Hoogendijk wrote: > On 16-8-2010 20:14, Roland Smith wrote: > > It could be that newfs is overwriting the partition table. > > Can you post the output of 'gpart show' and 'bsdlabels1= '? > westmark# gpart show ad8 > =3D> 63 976773105 ad8 MBR (466G) > 63 976773105 1 freebsd [active] (466G) >=20 > westmark# bsdlabel ad8s1 > # /dev/ad8s1: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 2097152 0 4.2BSD 0 0 0 > b: 12582912 2097152 swap > c: 976773105 0 unused 0 0 # "raw" part,= =20 > don't edit > d: 16777216 14680064 4.2BSD 0 0 0 > e: 41943040 31457280 4.2BSD 0 0 0 > f: 903372785 73400320 4.2BSD 0 0 0 > westmark# Ok. That looks good. =20 > I dumped/restored the system to ad8 yesterday and booted from it. > The system *did* boot but (alas) the /dev/ads1a(f) slices were mounted.= =20 > So, the system loaded the *old* root partitions (from the first drive).= =20 > After googling and reading I think I need *boot0cfg* but I'm a bit scary= =20 > to ruin my new boot (ad8) drive. :-) You can use either boot0cfg or fdisk. The first option gives you the splash screen with the menu choice between normal booting, single user etc. You can install this with 'boot0cfg -B ad8'. The boot block installed by 'fdisk -B ad8' does not give you the menu, but gives you a boot prompt which defaults= to normal booting after a couple of seconds. You can still boot into single mo= de with the boot prompt. Both methods only affect the boot block, they do not change the slice table. > So, what is the exact syntax to make my system not only boot from ad8,=20 > but also mount the /deb/ad8s1 slice as root slice? * Install one of the boot blocks, as mentioned above. * Check with 'fdisk ad8' if the first slice is active. If not, run=20 'fdisk -a ad8'. * You'll need to change /etc/fstab on ad8s1a! Best do this before rebooting. It's easier. :-) * Make sure that /boot/ is there and populated on ad8s1a! Then you can re-boot, and make ad8 the first device to boot from in the BIOS. From that point on, according to boot(8), it should work. Good luck! Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --UlVJffcvxoiEqYs2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkxqvdMACgkQEnfvsMMhpyWHNQCfTcanZ+X6dvG2iaagzKGrfzay zmsAniglT6HN9TJFm7Dj/bbv9Ibhl/d5 =HbUW -----END PGP SIGNATURE----- --UlVJffcvxoiEqYs2--