Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 May 2017 16:19:45 +0200
From:      Fabian Keil <freebsd-listen@fabiankeil.de>
To:        Eduardo Lemos de Sa <eduardo.lemosdesa@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Trying to boot from a zfs external disk
Message-ID:  <20170530161945.6ef8f3de@fabiankeil.de>
In-Reply-To: <CA%2BnjGksM6gjyZuf3z5VA%2BCAb%2BrKVL0rZC9L5bSi_TXhz89jc2g@mail.gmail.com>
References:  <CA%2BnjGksM6gjyZuf3z5VA%2BCAb%2BrKVL0rZC9L5bSi_TXhz89jc2g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/is7rX+0zDPZshmstIs41yXa
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Eduardo Lemos de Sa <eduardo.lemosdesa@gmail.com> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170530161945.6ef8f3de>