Dual-boot with common ZFS

Eric McCorkle eric at metricspace.net
Sat Dec 27 16:44:25 UTC 2014


It looks like I'm going to have to install Linux on my laptop for a while because of lack of driver support (haswell graphics).  However, I thought of an idea and wanted to see if anyone has done something similar.

I have a pure-ZFS setup, with a GPT.  I was wondering if it might be possible to use the same ZFS volume to hold both a Linux and a FreeBSD installation.  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, would 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.

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 could do with virtualization layers as well.

Has anyone attempted such a setup, and if so, what were your experiences?


More information about the freebsd-hackers mailing list