From owner-freebsd-fs@FreeBSD.ORG Wed Nov 19 22:35:28 2008 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F7641065670 for ; Wed, 19 Nov 2008 22:35:28 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.175]) by mx1.freebsd.org (Postfix) with ESMTP id 54C9B8FC19 for ; Wed, 19 Nov 2008 22:35:28 +0000 (UTC) (envelope-from olivier@gid0.org) Received: by wf-out-1314.google.com with SMTP id 24so186173wfg.7 for ; Wed, 19 Nov 2008 14:35:27 -0800 (PST) Received: by 10.143.4.16 with SMTP id g16mr768126wfi.124.1227132729114; Wed, 19 Nov 2008 14:12:09 -0800 (PST) Received: by 10.142.179.14 with HTTP; Wed, 19 Nov 2008 14:12:09 -0800 (PST) Message-ID: <367b2c980811191412h5e0af470k165b37edc2fc5853@mail.gmail.com> Date: Wed, 19 Nov 2008 23:12:09 +0100 From: "Olivier SMEDTS" To: freebsd-fs@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: ZFSBoot try and bsdlabel bootstrap code X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2008 22:35:28 -0000 Hello, I want to boot off a ZFS pool (version 13) on an USB stick for testing purposes. But I'm stuck with the bsdlabel bootstrap code size... I'm using a 2 hours old CURRENT. # kldload usb2_storage_mass # kldload zfs # dd if=/dev/zero of=/dev/da0 bs=512 count=32 # fdisk -BI da0 # dd if=/dev/zero of=/dev/da0s1 bs=512 count=32 # bsdlabel -wB -b /boot/zfsboot da0s1 bsdlabel: boot code /boot/zfsboot is wrong size Is what I'm trying to do with bsdlabel wrong ? I previously tried with the default bootstrap code but I had an (expected) "boot: Not ufs" error at boot. PS : I'm not subscribed to this list. Cheers, Olivier -- 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."