From owner-freebsd-current@FreeBSD.ORG Sat Jul 11 02:11:07 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A04B7106566B for ; Sat, 11 Jul 2009 02:11:07 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-vw0-f172.google.com (mail-vw0-f172.google.com [209.85.212.172]) by mx1.freebsd.org (Postfix) with ESMTP id 568528FC16 for ; Sat, 11 Jul 2009 02:11:07 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by vwj2 with SMTP id 2so1057147vwj.3 for ; Fri, 10 Jul 2009 19:11:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=mdL5m/Cl2FD6rwXxUgn797sxsplwWPts928h/oQy3Nc=; b=syP7p82OnWQPJCHMCaPMvx2xz/K2/e8L79/B6HEt7FIiMb9cO8zbcE/3yDc5IiNJCK JIXQ/MdjwXhCGj9QsjN/A8mW+exh235euJTPZGUwAOcloBY2LhW3UoM03doKd19YSwOb 62ZCuwH1N50jK8139iVZ5wjCqbKwyjJjDMgUA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=nNaeKt+mReTBvpmCS0hTGxV1b92fQ6rLF4b0EImIQeYOrOJoktdBRVU+Oy/Mw9ZTP/ GmQxnIoJlsWj3GdHuHVe6vgfkwxVaV+OAF2nI3xVlfjUJcyoFClttXek6+iH7B1EV6Mn j/TCnw03XDE+t47/kgpz2X0I02T7O8R0Wizbc= MIME-Version: 1.0 Received: by 10.220.45.80 with SMTP id d16mr3855966vcf.93.1247278265201; Fri, 10 Jul 2009 19:11:05 -0700 (PDT) In-Reply-To: <20090710211809.GA84773@crodrigues.org> References: <790a9fff0907101159w495b644dge4a4bd81de0bda9b@mail.gmail.com> <20090710211809.GA84773@crodrigues.org> Date: Fri, 10 Jul 2009 21:11:05 -0500 Message-ID: <790a9fff0907101911y7143ed4bnbb050d78ebc21558@mail.gmail.com> From: Scot Hetzel To: Craig Rodrigues Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current Subject: Re: How to create ZFS on Root using MBR slices? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jul 2009 02:11:07 -0000 On Fri, Jul 10, 2009 at 4:18 PM, Craig Rodrigues wrote: > On Fri, Jul 10, 2009 at 01:59:32PM -0500, Scot Hetzel wrote: >> Is there anything wrong with the above install procedure for creating >> a ZFS Root MBR Slice install? > > There are some examples here: > > http://wiki.freebsd.org/ZFSOnRoot > > They are not *quite* what you did, i.e. > example 1 uses a UFS file system to contain /boot > example 2 uses GPT partitioning, not MBR > > Is the stuff there close at all to what you tried? > > -- > Craig Rodrigues > rodrigc@crodrigues.org > I originally had a UFS root, with ZFS /usr and I wanted to go for a complete ZFS solution, no UFS /boot. I was thinking of using the GPT partitioning, but didn't know how to convert my existing MBR drive to a GPT drive and still be able to tripple boot betweeen FreeBSD, Windows XP, and Quick Play. To create my steps to create a ZFS-Only MBR install, I used ideas presented from several sources: 1. ZFSOnRoot w/UFS Boot example 2. ZFS-Only System GPT example 3. FreeBSD root on ZFS http://74.125.155.132/search?q=cache:DzGFvHEH2NwJ:yds.coolrat.org/zfsboot.shtml+zfsboot+freebsd&cd=1&hl=en&ct=clnk&gl=us 4. Booting Freebsd from a root ZFS pool w/standard MBR and partition table http://www.clearchain.com/blog/posts/booting-freebsd-from-a-root-zfs-pool-using-a-standard-mbr-and-partition-table The only thing that wasn't clear is how to write the zfsboot to the drive. Do I need to write zfsboot to ad0, ad0s1, ad0s3? Do I need to skip the first 16 sectors on ad0s3 to save room for zfsboot? Scot