From owner-freebsd-questions@freebsd.org Tue May 30 14:21:23 2017 Return-Path: Delivered-To: freebsd-questions@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 4F882B7E15E for ; Tue, 30 May 2017 14:21:23 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay05.ispgateway.de (smtprelay05.ispgateway.de [80.67.31.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1468E3B93 for ; Tue, 30 May 2017 14:21:22 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from [78.35.161.172] (helo=fabiankeil.de) by smtprelay05.ispgateway.de with esmtpsa (TLSv1.2:AES256-GCM-SHA384:256) (Exim 4.84) (envelope-from ) id 1dFi00-0004Yg-36; Tue, 30 May 2017 16:19:52 +0200 Date: Tue, 30 May 2017 16:19:45 +0200 From: Fabian Keil To: Eduardo Lemos de Sa Cc: freebsd-questions@freebsd.org Subject: Re: Trying to boot from a zfs external disk Message-ID: <20170530161945.6ef8f3de@fabiankeil.de> In-Reply-To: References: Reply-To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/is7rX+0zDPZshmstIs41yXa"; protocol="application/pgp-signature" X-Df-Sender: Nzc1MDY3 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 May 2017 14:21:23 -0000 --Sig_/is7rX+0zDPZshmstIs41yXa Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Eduardo Lemos de Sa wrote: > I installed FreeBSD-10.3-RELEASE in a internal hard disk (named, that > time, as ada0) in a zpool called zeeroot. Now, I move this hard disk to > a case (so, it is a external drive now) and it is recognized as da0. > When I tried to boot it, the process start normally but stopped at the > moment to mount partitions. Later, I used to solve problems like this > (in UFS/UFS2 file systems) booting in a live system (memory stick or CD) > and editing /etc/fstab, renaming devices. But now, there is only in > my /etc/fstab: >=20 > # Device Mountpoint FStype Options Dump Pass# > #/dev/ada0p2 none swap sw 0 0 > md99 none swap sw,file=3D/usr/swap0,late 0 = 0 >=20 > I read https://wiki.freebsd.org/ZFSQuickStartGuide and > https://wiki.illumos.org/display/illumos/ZFS, further FreeBSD Handbook. >=20 > In the two first, there is no mention about problems in boot stage using > zfs. >=20 > Further, I tried to find files under /etc/ called zfs.conf or zpool.conf > or other mentions to ada0 (grep -r -i ada0 *): nothing. In case of ZFS the root pool is specified in /boot/loader.conf with a line like: vfs.root.mountfrom=3D"zfs:tank" ZFS is supposed to figure out the location of the disk(s) itself. > Thus, I do not how can solve this mount booting problem. Please, could > you give some hint about? This bug could explain why booting fails when you use an external disk: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208882 Fabian --Sig_/is7rX+0zDPZshmstIs41yXa Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQTKUNd6H/m3+ByGULIFiohV/3dUnQUCWS1/gwAKCRAFiohV/3dU nSzvAKC4C8NQ5I4nDmWpAcQqIjmQChGDUwCgwi0Oyoo6R7B/DxTVcFy0ekEFUUo= =5KD0 -----END PGP SIGNATURE----- --Sig_/is7rX+0zDPZshmstIs41yXa--