From owner-freebsd-current@freebsd.org Fri Oct 6 14:10:46 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 06B06E3826A for ; Fri, 6 Oct 2017 14:10:46 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x231.google.com (mail-io0-x231.google.com [IPv6:2607:f8b0:4001:c06::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C33611021 for ; Fri, 6 Oct 2017 14:10:45 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x231.google.com with SMTP id h66so16191656ioh.11 for ; Fri, 06 Oct 2017 07:10:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=9eV6uTNqoDXOBiZ6dKdrm2seMISfP8veOfx7StTohrg=; b=VEENXX3accyp6BfHfCOtD51QbiJ1MdBc8FHbI+uqaprZ9K9ZNgHtU2yHiWt0DOvIVz GTxQBSCUeq4BCg2m8yO3E8zrkCbuNgzYEvj4brHyYbohXYMH8JJUP5F3QUSPr49sXc3f Rdx1KnTFztKegUezlZ2Zp0HnNM/nkKiZ/3JY18r5ieNNUPWc+D0tn6XeozgfYUT1jgUM bwYisJZ7O9JqqD+tz4xehGDJipOI9W37g4GVoP+sw691hWuZXcESo7W4CPJkro0+/6sa bUBTdTd/mZJ2+HoASeTtMsFUWBwvJ4l4sggWE2al5SMvPiyUcKwyAzscynsYdi13/A7P 5gIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=9eV6uTNqoDXOBiZ6dKdrm2seMISfP8veOfx7StTohrg=; b=b4h53UBbU54kbXrAtCF9d/3EJik2MGAkx6oZdFAw25H9wF708StjtUU6lGyoPzE05c KLN50WspqM1uc1iYIu4otjfUm47ubYC2D9CI/87AOqks61O0N7JLJjrVn9Bv7ylhJW2l i9GoZjUf9Sa/9IsrIVl7+ICVjMzWSJZinTluNvknQfTsk4Fhxgf93ooZNVLKWFyhLgTy DiF8a4njqD/lJ1JVynxMcx5Vcci2YF7oufLs4mHXXzVyMB5Puz+1+ihhVt/GnytVb60Y vt5+XY2vPqRSo9HTqMR7Ngc+h4HNkz4kYC82Bja0vrSYA4sFnC9pJcOUTWdXKy1htx4a 2PJA== X-Gm-Message-State: AMCzsaXfK8QHrWsSWMfS2OyCKEy9t80ahv7uG4ro+6NXrRF0QmnGwqt7 Lpx9EjNEVeB8AGiSdqLG86GHOmM++FzF5r9lF5yu3Q== X-Google-Smtp-Source: AOwi7QAuT8Gkgxj+PNKAKPbd08J3OKlbgtOs2oLZYsns0HJ7ihGTIpW2APaU922jfd/du3MPOGul8cRWsoPLvhaKOwE= X-Received: by 10.107.135.147 with SMTP id r19mr2714780ioi.26.1507299045036; Fri, 06 Oct 2017 07:10:45 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.94.130 with HTTP; Fri, 6 Oct 2017 07:10:44 -0700 (PDT) X-Originating-IP: [192.173.66.161] In-Reply-To: <20171006151008.04af417d@thor.intern.walstatt.dynvpn.de> References: <20171006151008.04af417d@thor.intern.walstatt.dynvpn.de> From: Warner Losh Date: Fri, 6 Oct 2017 07:10:44 -0700 X-Google-Sender-Auth: CY9xqc_XBmrJIUdu9h2lo-qRCYM Message-ID: Subject: Re: r324353: boot failure: failed with error 19 To: "O. Hartmann" Cc: FreeBSD CURRENT Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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, 06 Oct 2017 14:10:46 -0000 On Fri, Oct 6, 2017 at 6:10 AM, O. Hartmann wrote: > I run a small appliance on an APU from PCengines. This box is bootet via > SD card, the > image is created by a modified NanoBSD, which creates GPT/UEFI > partitioning and booting > images. > > That worked until two days ago (I do not track the revision numer) when I > wrote (via dd) > the last image out. Today, I tried to boot r324353 and it fails at tthe > boot loader: > > > mountroot: waiting for device /dev/ufs/dsks1a... > Mounting from ufs:/dev/ufs/dsks1a failed with error 19. > That's odd... But likely a race.... It could be that dd'ing the new partition, however, was made from an image that didn't have the proper ufs label. What's the rev of the last version that worked? Warner > I can proceed by manually issuing at the loader propmpt > > ufs:/dev/gpt/dsks1a > > and booting proceeds as expected. > > > Something seems wrong with the UFS labeling lately. > > The gpt layout looks like this: > > gpart show -l: > > =3D> 40 60751792 mmcsd0 GPT (29G) > 40 130 1 boot (65K) > 170 6 - free - (3.0K) > 176 2057288 2 dsks1a [bootme] (1.0G) > 2057464 2061725 3 dsks2a (1.0G) > 4119189 1048576 4 dsks3 (512M) > 5167765 55584067 - free - (27G) > > From dmesg. I can provide this last output: > > [...] > mmcsd0: 31GB at mmc0 > 50.0MHz/4bit/65535-block Trying to mount root from ufs:/dev/ufs/dsks1a > [ro]... > uhub0: 4 ports with 4 removable, self powered > Root mount waiting for: usbus1 > uhub1: 2 ports with 2 removable, self powered > Root mount waiting for: usbus1 > ugen1.2: at usbus1 > uhub2 on uhub1 > uhub2: o= n > usbus1 > uhub2: 4 ports with 4 removable, self powered > mountroot: waiting for device /dev/ufs/dsks1a... > Mounting from ufs:/dev/ufs/dsks1a failed with error 19. > > Loader variables: > vfs.root.mountfrom=3Dufs:/dev/ufs/dsks1a > vfs.root.mountfrom.options=3Dro > > 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/dsk1a\^[[D\^[[D\^[[D\^[= [Cs > []... > mountroot: waiting for device /dev/ufs/dsk1a\^[[D\^[[D\^[[D\^[[Cs... > random: unblocking device. > arc4random: no preloaded entropy cache > Mounting from ufs:/dev/ufs/dsk1a\^[[D\^[[D\^[[D\^[[Cs failed with error > 19. > > mountroot> Invalid file system specification. > > mountroot> Trying to mount root from ufs:/dev/gpt/dsks1a []... > arc4random: no preloaded entropy cache > GEOM_ELI: Device gpt/swap.eli created. > GEOM_ELI: Encryption: AES-XTS 128 > GEOM_ELI: Crypto: hardware > Link state changed to up > > [...] > > > Can someone look into this? > > Kind regards, > > Oliver > -- > O. Hartmann > > Ich widerspreche der Nutzung oder =C3=9Cbermittlung meiner Daten f=C3=BCr > Werbezwecke oder f=C3=BCr die Markt- oder Meinungsforschung (=C2=A7 28 Ab= s. 4 BDSG). >