shithub: wiki.9front.org

Download patch

ref: 05923b4301e65e7ed47a95b871d02a943f383865
parent: a35de70a4d9d04e8af37ec5fd729cf6d9bf98230
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue Jun 22 08:06:20 EDT 2021

cwfs: cwfs with worm on a separate drive (thanks izaki)

--- a/cwfs.md
+++ b/cwfs.md
@@ -87,3 +87,43 @@
 to confirm. `wsize * 16000` is the size of your WORM.
 
 No refunds
+
+CWFS with WORM on a separate drive
+----------------------------------
+
+### What you do is what you get
+
+These instructions assume you want to set up CWFS on two drives - one
+containing the cache filesystem, and the other containing the WORM.
+
+This process has been tested on MBR installations, but should be
+extrapolable to GPT as well with minor changes (see end note if using
+GPT, please report the results).
+
+### Initialize the disks
+
+For this example `sd00` will be the cache drive, `sd01` will be the
+WORM.
+
+Assuming your drives are new, for a MBR partitioning scheme, you want
+to first create a MBR partition table (skip in case of GPT):
+
+	disk/mbr -a /386/mbr /dev/sd00/data 
+	disk/mbr -a /386/mbr /dev/sd01/data
+
+You need to add a `plan9` partition to both disks, otherwise the
+installer will not see them (use `disk/edisk` in case of GPT):
+
+	disk/fdisk -baw /dev/sd00/data disk/fdisk -baw /dev/sd01/data
+
+Now it is time to subdivide the plan9 partitions on both disks.  We
+will then subpartition the cache, and worm disks
+
+	disk/prep -bw -a^(9fat nvram other fscache) /dev/sd00/plan9
+	disk/prep -bw -a fsworm /dev/sd01/plan9
+
+### Finally
+
+Start your installation as usual: select `cwfs64x` as your filesystem,
+skip partdisk and prepdisk.  When going through the `mountfs` step,
+make sure to point to the right partitions on each function.