From owner-freebsd-current@FreeBSD.ORG Fri Feb 13 22:49:40 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 1AE881065705 for ; Fri, 13 Feb 2009 22:49:40 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-fx0-f16.google.com (mail-fx0-f16.google.com [209.85.220.16]) by mx1.freebsd.org (Postfix) with ESMTP id B04B98FC0C for ; Fri, 13 Feb 2009 22:49:39 +0000 (UTC) (envelope-from olivier@gid0.org) Received: by fxm9 with SMTP id 9so235307fxm.19 for ; Fri, 13 Feb 2009 14:49:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.122.15 with SMTP id j15mr2183913far.10.1234565378181; Fri, 13 Feb 2009 14:49:38 -0800 (PST) Date: Fri, 13 Feb 2009 23:49:38 +0100 Message-ID: <367b2c980902131449p19879021kdc574859ca67fc9a@mail.gmail.com> From: Olivier SMEDTS To: freebsd-current Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Can't boot on ZFS without GPT 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: Fri, 13 Feb 2009 22:49:40 -0000 Hello, I wasn't able to boot on a ZFS pool without using GPT slices. My MBR partitioned disk has a type 0xa5 (165) active slice "ad0s2". I tried the following : copy zfsboot # dd if=/boot/zfsboot of=/dev/ad0s2 count=1 # dd if=/boot/zfsboot of=/dev/ad0s2 skip=1 seek=1024 create pool and root filesystem # zpool create -o altroot=/mnt pool ad0s2 # zfs create pool/freebsd # zpool set bootfs=pool/freebsd pool install base system # cd /usr/src/ # make installworld DESTDIR=/mnt/freebsd/ # make installkernel DESTDIR=/mnt/freebsd/ # make distribution DESTDIR=/mnt/freebsd/ # cp /boot/zfs/zpool.cache /mnt/freebsd/boot/zfs/ # cp /boot/loader.conf /mnt/freebsd/boot/ # echo 'vfs.root.mountfrom="zfs:pool/freebsd"' >> /mnt/freebsd/boot/loader.conf # touch /mnt/freebsd/etc/fstab # cp /etc/rc.conf /mnt/freebsd/etc/ reboot... I also tried with a bsdlabel, created the pool on ad0s2a (fstype ZFS), still no luck... No problem with another disk and a GPT partition scheme. But I can't convert this one to GPT cause it's big and I don't have enough backup space. Anyone here having a working ZFS-only root with MBR slices, or more informations ? Thanks -- Olivier Smedts _ ASCII ribbon campaign ( ) e-mail: olivier@gid0.org - against HTML email & vCards X www: http://www.gid0.org - against proprietary attachments / \ "Il y a seulement 10 sortes de gens dans le monde : ceux qui comprennent le binaire, et ceux qui ne le comprennent pas."