From owner-freebsd-current@freebsd.org Tue Sep 15 09:31:58 2015 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 A4DEBA03F8C; Tue, 15 Sep 2015 09:31:58 +0000 (UTC) (envelope-from stefanogarzarella@gmail.com) Received: from mail-lb0-x236.google.com (mail-lb0-x236.google.com [IPv6:2a00:1450:4010:c04::236]) (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 4AF311DAE; Tue, 15 Sep 2015 09:31:58 +0000 (UTC) (envelope-from stefanogarzarella@gmail.com) Received: by lbpo4 with SMTP id o4so81675623lbp.2; Tue, 15 Sep 2015 02:31:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:cc:content-type; bh=qcjGr6tjlEnsnmw78+wJ8ySHMzv8JXAzGcgUZjqYB1s=; b=Mjcn3nZ3gZUaeyHDO1LZ5ftHfGSPn6QdG1Ys8ZZHUgcfuSwdHN99NauFG/xEFJZNzB OKzDN2LiDMq46BQp7YUnpTyBLzKkxzCQV1jo0W24KgVG7TyA6YT14/hP8zm/U5eDIs4/ O+xm4A6WuvszTu1Dn6oSOC2G9BNn+lc+nwjDY+6dhquOT9nYim/oQkMfQVDBfaEhCErZ wPnXst/eNA2QejfKFO9BhArLed2yflaWhPHI9NyumVbREaN96Sj3+oIFfTingPBhtC2G 1qqYMTYci8HFTVoWxcY6Jtyiai8pPtDujKiTuZEFcfCtPpKi58kAhTjYdJvElOIwURHR kfdw== X-Received: by 10.112.172.165 with SMTP id bd5mr3691058lbc.51.1442309516308; Tue, 15 Sep 2015 02:31:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.137.85 with HTTP; Tue, 15 Sep 2015 02:31:36 -0700 (PDT) From: Stefano Garzarella Date: Tue, 15 Sep 2015 11:31:36 +0200 Message-ID: Subject: nanoBSD boot problem (on USB stick or as a HD) To: freebsd-current , freebsd-hackers@freebsd.org Cc: Luigi Rizzo Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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: Tue, 15 Sep 2015 09:31:58 -0000 Hi all, I created a nanoBSD image for my gsoc project (ptnetmap on bhyve). I would like to boot this image on USB stick or in the hypervisor as a HD. I have some problem because if I set NANO_DRIVE="da0" (for USB boot) in the nanoBSD configuration file, the boot from USB stick works well, but when I try to boot the same image in the hypervisor as a HD, I have the following mountroot error: Trying to mount root from ufs:/dev/da0s1a [ro]... mountroot: waiting for device /dev/da0s1a ... Mounting from ufs:/dev/da0s1a failed with error 19. Loader variables: vfs.root.mountfrom=ufs:/dev/da0s1a vfs.root.mountfrom.options=ro mountroot> At this point I need to manually specify "ufs:/dev/ad0s1a" to properly mount the root. Can you help me? There is some tricks to avoid this mountroot error? Thanks, Stefano Garzarella