Add TL;DR to ZFS, remove Preface

master
kts of kettek (Tyger) 2018-08-09 05:14:10 -07:00
parent 3d57c9f380
commit df36e827df
1 changed files with 22 additions and 4 deletions

View File

@ -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 <POOL> <DEVICE>
Mac:~ user$ sudo zfs create <POOL>/Users
Mac:~ user$ sudo zfs set com.apple.mimic_hfs=on <POOL>/Users
Mac:~ user$ sudo mv /Users /Users.bak
Mac:~ user$ sudo zfs set mountpoint=/Users <POOL>/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 <DEVICE> <POOL>
user@Linux:~$ sudo zpool cachefile=/etc/zfs/zpool.cache <POOL>
```
Now just set your Linux user to use the same UID:GUID as Mac OS and set */etc/passwd* to point to */Users/&lt;user&gt;*.
# 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.