From owner-freebsd-questions@FreeBSD.ORG Fri Feb 22 10:54:02 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 137533B4 for ; Fri, 22 Feb 2013 10:54:02 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-we0-x235.google.com (mail-we0-x235.google.com [IPv6:2a00:1450:400c:c03::235]) by mx1.freebsd.org (Postfix) with ESMTP id 9EF92720 for ; Fri, 22 Feb 2013 10:54:01 +0000 (UTC) Received: by mail-we0-f181.google.com with SMTP id t44so404700wey.26 for ; Fri, 22 Feb 2013 02:54:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=9WbVK6oZdGV74KR9YxDXs4/BfH/HbT3WMrx+Aub/o5o=; b=yqIZ2pvi6xE7PBuTcaddEqPWsG6TSHjyeyxTNkMlhdviNZA78ErRzm3mboJd3EVI7i YTqFdCrcXvpfmNUII543Yo7tUB/rGYzZcMdG4m/K5xBDJhK/vpC0TkOiIQ7Ar1Sm0BuT XRvfx2oRbsjyvmEY0RbX8Alw8U2EYCPJNCjcFjj2c8m8kGpdEXZyC4mRFLfaMqPQAtYd Labw21MCRujCP6JiSVVucAJZ/ozyosGvOZkxeLnyRqdKlKXhDWDGsgSwvhoxXhKI0vJ/ 4dio9w7kPAmWRvb473LqJHLBtbI468aRy/USgka5buZMeePqK5W14Y2GHdF8MnyeSOOU x33g== MIME-Version: 1.0 X-Received: by 10.180.83.135 with SMTP id q7mr2426730wiy.19.1361530436021; Fri, 22 Feb 2013 02:53:56 -0800 (PST) Received: by 10.194.60.147 with HTTP; Fri, 22 Feb 2013 02:53:55 -0800 (PST) In-Reply-To: References: Date: Fri, 22 Feb 2013 11:53:55 +0100 Message-ID: Subject: Re: Root on zfs (stable9) - how to make it bootable From: David Demelier To: uki Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2013 10:54:02 -0000 There are a lot of example in gpart(8) man page. You should use it I think you should do something like gpart bootcode -b /boot/pmbr ada0 gpart bootcode -p /boot/gptzfsboot -i 1 ada0 (The second assume that you have a freebsd-boot as first index in ada0) Cheers, 2013/2/22 uki > Hi, > > I want to install freebsd9 (stable) on zfs root, unfortunately my bios > is unable to recognize GPT discs. > I'm using MBR disc, with BSD slice (on mbr index 4) containing > freebsd-zfs filesystem. > > I've no idea how to make it bootable, I've tried using: > > zpool export sys > dd if=3D/boot/zfsboot of=3D/dev/ada0s4 count=3D1 > dd if=3D/boot/zfsboot of=3D/dev/ada0s4a skip=3D1 seek=3D1024 > zpool import sys > > > When I select F4 (slice with zfs) whilst booting the computer just turns > off. > How do I make it boot? Do I need freebsd-boot slice? > > I have set bootfs property on pool, and added vfs.root.mountfrom to > loader.conf. > > > Cheers, > =C5=81ukasz Gruner > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" --=20 Demelier David