From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 27 17:54:17 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 03F064F6 for ; Sat, 27 Dec 2014 17:54:17 +0000 (UTC) Received: from mx1.scaleengine.net (beauharnois2.bhs1.scaleengine.net [142.4.218.15]) by mx1.freebsd.org (Postfix) with ESMTP id B8DE26487F for ; Sat, 27 Dec 2014 17:54:16 +0000 (UTC) Received: from [192.168.1.2] (Seawolf.HML3.ScaleEngine.net [209.51.186.28]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id BF68F89EF8 for ; Sat, 27 Dec 2014 17:54:15 +0000 (UTC) Message-ID: <549EF25D.8010303@freebsd.org> Date: Sat, 27 Dec 2014 12:54:37 -0500 From: Allan Jude User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: Dual-boot with common ZFS References: <4A40BFDA-ABE9-4AB5-947F-C11343B9630B@metricspace.net> In-Reply-To: <4A40BFDA-ABE9-4AB5-947F-C11343B9630B@metricspace.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tVc7g4BcfuIuDpmGDdihbpjxSqO9IW3qQ" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Dec 2014 17:54:17 -0000 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--