Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Dec 2014 12:54:37 -0500
From:      Allan Jude <allanjude@freebsd.org>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Dual-boot with common ZFS
Message-ID:  <549EF25D.8010303@freebsd.org>
In-Reply-To: <4A40BFDA-ABE9-4AB5-947F-C11343B9630B@metricspace.net>
References:  <4A40BFDA-ABE9-4AB5-947F-C11343B9630B@metricspace.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--tVc7g4BcfuIuDpmGDdihbpjxSqO9IW3qQ
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 2014-12-27 11:44, Eric McCorkle wrote:
> It looks like I'm going to have to install Linux on my laptop for a whi=
le because of lack of driver support (haswell graphics).  However, I thou=
ght of an idea and wanted to see if anyone has done something similar.
>=20
> I have a pure-ZFS setup, with a GPT.  I was wondering if it might be po=
ssible to use the same ZFS volume to hold both a Linux and a FreeBSD inst=
allation.  At least on the surface, it seems like you ought to be able to=
 create separate file systems for each OS.  The real trick, I think, woul=
d be in finding the right boot/loader.conf arguments to point the kernels=
 at the correct root, and the the right flags for ZFS mount to mount the =
other file systems correctly.
>=20
> I can think of several things you could do with this scheme, among them=
 being Linux-to-FreeBSD driver porting.  There's probably things you coul=
d do with virtualization layers as well.
>=20
> Has anyone attempted such a setup, and if so, what were your experience=
s?
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.o=
rg"
>=20

I have not attempted such a setup, but if I was going to, I'd probably
use the GRUB boot loader, like PCBSD does.

Then you can use their ZFS drivers, and specify the location of the
kernel (on different ZFS datasets), and what dataset to mount as root etc=
=2E

Basically, ZFS boot environments, where you have 1 that is FreeBSD and 1
that is Linux.

Your biggest issue with doing this with an existing ZFS install, is that
you may have used ZFS features that are too new for Linux to support
them. You might have to start over with a pool created with some of the
feature flags turned off (or create the pool under Linux, and don't
upgrade it on FreeBSD).

--=20
Allan Jude


--tVc7g4BcfuIuDpmGDdihbpjxSqO9IW3qQ
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQIcBAEBAgAGBQJUnvJgAAoJEJrBFpNRJZKfY5oP/345uXwPm205ecM3WN7J9rWD
NdoptHDMuxoICScN66m6eMsum72t6i/hzB7MI1vWRwwzplZ8kqyVy1Jx3jfJIgTg
JjmtE/aaiZol8gxYfi/d6SLSjSZyqYyyUVelydkiSzag+hMwLP/R9lQ++sKtiw9x
AjYPaZmvyA+6Emri08hEoL1elrsqyBOBGTCk1BW5F00UE16LbRYLo1Ok9/KRAafr
xSTf/IqGEwuGHDnhAh7zBw72b9vAtMzjUK4UpHHjzrzSfuiARUa28nYQrt3tVHB6
qg71cOybn2lhlZtW9NudHARNF8uePD8Yc9AjGNMvDvfJLIvWOKZT2aK8x5MqeD4A
/AsrePjSFv35joJ3NGsiewXmqj7Ke2xG0PVXoGLX0UcoEY/jgG8yeodGlfeRM+AB
GrhgIWx5P+zPmeIjI7K+wafZ5yfe0HzOQEs5Z9wwjD4hAcxO8D0h2yS7x7K04xFg
XJdCgO9wK6op7vjaCgsu4XIfGLPpBBJhvZn8MpoldjuAE9T3a14i4InEzFmmMASx
5ayBdGGdXRccYWnQPbSJBEP2fXXCpEc9Ralj0R0QfBP9QyjVDIbZJNXeCHdY2An7
2PW4HDZgCbs1Jn5//XSl3f57aRzdjWGW3/7UptaPwLx5Zi6rXwY8pF+wnYcJMNAq
ku877FBJKsmhh4SM1/8J
=O7Xn
-----END PGP SIGNATURE-----

--tVc7g4BcfuIuDpmGDdihbpjxSqO9IW3qQ--



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