From owner-freebsd-fs@freebsd.org Fri Jul 27 06:08:08 2018 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6BA1B1061E66 for ; Fri, 27 Jul 2018 06:08:08 +0000 (UTC) (envelope-from warlock@phouka1.phouka.net) Received: from phouka1.phouka.net (phouka1.phouka.net [107.170.196.116]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "phouka.net", Issuer "Go Daddy Secure Certificate Authority - G2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id EA8B386BDE for ; Fri, 27 Jul 2018 06:08:07 +0000 (UTC) (envelope-from warlock@phouka1.phouka.net) Received: from phouka1.phouka.net (localhost [127.0.0.1]) by phouka1.phouka.net (8.15.2/8.15.2) with ESMTPS id w6R66jSn054687 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 26 Jul 2018 23:06:45 -0700 (PDT) (envelope-from warlock@phouka1.phouka.net) Received: (from warlock@localhost) by phouka1.phouka.net (8.15.2/8.15.2/Submit) id w6R66jdn054686 for freebsd-fs@freebsd.org; Thu, 26 Jul 2018 23:06:45 -0700 (PDT) (envelope-from warlock) Date: Thu, 26 Jul 2018 23:06:44 -0700 From: John Kennedy To: freebsd-fs@freebsd.org Subject: Re: Mounting from zfs:zroot/ROOT/default failed with error 6 Message-ID: <20180727060644.GE75644@phouka1.phouka.net> References: <20180724012745.GB75644@phouka1.phouka.net> <3596ef16-da50-b26c-b7fd-724ca020cba2@FreeBSD.org> <20180726043937.GC75644@phouka1.phouka.net> <20180727031859.GD75644@phouka1.phouka.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180727031859.GD75644@phouka1.phouka.net> User-Agent: Mutt/1.10.0 (2018-05-17) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jul 2018 06:08:08 -0000 On Thu, Jul 26, 2018 at 08:18:59PM -0700, John Kennedy wrote: > ... If I add opensolaris, sort of progress: > > Root mount waiting for: usbus0 > Mounting from zfs:zroot/ROOT/default failed with error 6; retrying for 3 more seconds > Mounting from zfs:zroot/ROOT/default failed with error 6 > > Not only that, it looks like it gets me in a non-writing mode: > > ZFS WARNING: Unable to open diskid/DISK-73180AA8s2 for writing (error=1). > > ... If I start up with "boot -v", I see some new messages: > > GEOM_PART: partition 1 on (mmcsd0, MBR) is not aligned to 4194304 bytes > GEOM_PART: partition 1 on (diskid/DISK-73180AAB, MBR) is not aligned to 4194304 bytes > > Those alternate about 5 times inbetween the second-by-second "error 6" countdown. > > I'm going to rebuild it with that partition aligned and see what happens. Fixing the partition alignment gets rid of that message, but doesn't get the system to boot. I grabbed FreeBSD-12.0-CURRENT-arm64-aarch64-RPI3-20180726-r336739.img and then rebuilt with that. That has issues: devfs didn't enumerate things like /dev/msdosfs ethernet (ue0) isn't showing up as a device (just lo0) (kldload ums fixed that) umodem.ko didn't find depedency (ucom.ko) On a plus, it didn't hang. Even though it was exported and destroyed, a previous incarnation of zroot is cursing me. So, have to wipe the card and reburn tomorrow. An edited /var/log/messages after boot: ... FreeBSD 12.0-CURRENT #0 r336739: Thu Jul 26 18:05:26 UTC 2018 root@releng3.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64 ... Preloaded elf kernel "/boot/kernel/kernel" at 0xffff000001786000. Preloaded elf module "/boot/kernel/umodem.ko" at 0xffff00000178f068. Preloaded elf module "/boot/kernel/opensolaris.ko" at 0xffff00000178f880. Preloaded elf module "/boot/kernel/zfs.ko" at 0xffff00000178ffa0. KLD file umodem.ko is missing dependencies ... bcm283x_dwcotg0: mem 0x7e980000-0x7e98ffff,0x7e006000-0x7e006fff irq 43,44 on simplebus0 usbus0 on bcm283x_dwcotg0 ... usbus0: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 mmcsd0: 64GB at mmc0 50.0MHz/4bit/65535-block GEOM: new disk mmcsd0 Root mount waiting for: usbus0 ugen0.2: at usbus0 uhub1: on usbus0 Root mount waiting for: usbus0 ugen0.3: at usbus0 uhub2: on usbus0 Root mount waiting for: usbus0 Root mount waiting for: usbus0 ugen0.4: at usbus0 ugen0.5: at usbus0 ukbd0: on usbus0 ... Mounting from zfs:zroot/ROOT/default failed with error 6; retrying for 3 more seconds Mounting from zfs:zroot/ROOT/default failed with error 6; retrying for 2 more seconds Mounting from zfs:zroot/ROOT/default failed with error 6; retrying for 1 more second Mounting from zfs:zroot/ROOT/default failed with error 6. Loader variables: vfs.root.mountfrom=zfs:zroot/ROOT/default Manual root filesystem specification: : [options] Mount using filesystem and with the specified (optional) option list. eg. ufs:/dev/da0s1a zfs:tank cd9660:/dev/cd0 ro (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /) ? List valid disk boot devices . Yield 1 second (for background tasks) Abort manual input mountroot> Trying to mount root from ufs:/dev/ufs/uroot []... Warning: no time-of-day clock registered, system time will not be set accurately start_init: trying /sbin/init ZFS WARNING: Unable to open diskid/DISK-73180AABs2 for writing (error=1). ...