Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4909

Raspberry Pi OS • Re: Booting from zfs root

$
0
0
Answering my own question, I managed to get ZFS root working with Raspberry Pi OS Bookworm Lite using a variation on https://gist.github.com/kgadek/ccea12fe ... c90857f5a2. Actually I went through it line by line so I understood what it was doing, typing (some of) the commands as I went. Seems to work. The basic procedure is:

1. Get Raspberry Pi OS installed on another drive, i.e. not the one you will use for ZFS root, then add ZFS to the running OS once booted.
2. Partition the soon-to-be-ZFS-root drive as MBR, with a FAT32 boot partition, and another partition to hold the ZFS root pool.
3. Set up the zpool and child datasets.
4. Copy things over.
5. Power off.
6. Remove the non-ZFS drive.
7. Power back on.

Note: I do NOT use ZFS encryption, so just ignored those bits in the above gist.

Also note: DO NOT PUT SWAP ON ZFS as suggested in the above gist since this can lead to lockups under heavy load. Instead, put swap in it's own partition.

Statistics: Posted by andrum99 — Mon Aug 05, 2024 10:19 am



Viewing all articles
Browse latest Browse all 4909

Trending Articles