From df36e827dfe3f0995a1da179609b7d4a38b3ddb5 Mon Sep 17 00:00:00 2001 From: "kts of kettek (Tyger)" Date: Thu, 9 Aug 2018 05:14:10 -0700 Subject: [PATCH] Add TL;DR to ZFS, remove Preface --- .../zfs-macos-arch-linux-dual-boot.qwk | 26 ++++++++++++++++--- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/wiki/articles/zfs-macos-arch-linux-dual-boot.qwk b/wiki/articles/zfs-macos-arch-linux-dual-boot.qwk index fdf16f7..e3c86f4 100644 --- a/wiki/articles/zfs-macos-arch-linux-dual-boot.qwk +++ b/wiki/articles/zfs-macos-arch-linux-dual-boot.qwk @@ -1,12 +1,30 @@ [[toc]] -# Preface -Having had some failed system updates on my MacBook Pro5,5 that caused Mac OS to be nigh unusable, I decided to swap out the original 500GB HDD for a much smaller -- but much faster -- 128GB SSD I had on hand. +# TL;DR +After installing [OpenZFS on OS X](https://openzfsonosx.org/): -Although this is certainly a size constraint, I keep majority of my large data elsewhere and can easily access them via remote sharing or various web interfaces, so it is a moot point. +```console +Mac:~ user$ sudo zpool create +Mac:~ user$ sudo zfs create /Users +Mac:~ user$ sudo zfs set com.apple.mimic_hfs=on /Users +Mac:~ user$ sudo mv /Users /Users.bak +Mac:~ user$ sudo zfs set mountpoint=/Users /Users +Mac:~ user$ sudo mv /Users.bak/* /Users/ +``` + +Download and install [ZFSLoadCheck](https://github.com/alexwasserman/ZFSLoadCheck), ensuring you issue `sudo touch /Users/.zfsloadcheck`. + +Then presuming Linux has already been set up with [ZFS on Linux](https://zfsonlinux.org/): + +```console +user@Linux:~$ sudo zpool import -d +user@Linux:~$ sudo zpool cachefile=/etc/zfs/zpool.cache +``` + +Now just set your Linux user to use the same UID:GUID as Mac OS and set */etc/passwd* to point to */Users/<user>*. # The Notion -The original idea was to have three major partitions: Mac OS High Sierra, Arch Linux, and a shared partition that would store my user/home directory. The reason for this is that I primarily do cross-platform development and would like my two preferred operating systems to be available during travel. +The idea was to have three major partitions: Mac OS High Sierra, Arch Linux, and a shared partition that would store my user/home directory. The reason for this is that I primarily do cross-platform development and would like my two preferred operating systems to be available during travel. The initial setup and install -- which took some time due to learning how to setup rEFInd and much fury at the more modern Disk Utility.app's insane pie chart partitioning system -- used HFS+ for High Sierra, ext4 for Arch, and HFS+ for the shared partition.