* [9front] [PATCH] Doc contribution: CWFS with WORM on a separate drive
@ 2021-06-22 5:47 Lorenzo Bivens
2021-06-22 12:07 ` Sigrid Solveig Haflínudóttir
0 siblings, 1 reply; 2+ messages in thread
From: Lorenzo Bivens @ 2021-06-22 5:47 UTC (permalink / raw)
To: 9front
Hi!
I have put together a few notes on how to setup cwfs with the cache and worm on separate disks.
I think it could be a reasonable addition to the cwfs page of the docs page.
Patch inline below. Feedback is quite welcomed!
--- /tmp/docs.9front.org/.git/fs/object/a35de70a4d9d04e8af37ec5fd729cf6d9bf98230/tree/cwfs.md
+++ 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 a 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. (please report results)
+
+Note that the instructions won't work unless you have read them first
+
+### Initialize the disks
+For this examble sd00 will be our cache drive, sd01 will be our WORM
+
+Assuming your drives are new, for a MBR partitioning scheme, you want to first
+create a MBR partition table. (see end note if using 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
+
+ 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
+
+The steps to make this layout work on GPT partitioned drives should be similar,
+skipping the mbr initialization, and using disk/edisk instead of fdisk.
+
+### 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [9front] [PATCH] Doc contribution: CWFS with WORM on a separate drive
2021-06-22 5:47 [9front] [PATCH] Doc contribution: CWFS with WORM on a separate drive Lorenzo Bivens
@ 2021-06-22 12:07 ` Sigrid Solveig Haflínudóttir
0 siblings, 0 replies; 2+ messages in thread
From: Sigrid Solveig HaflÃnudóttir @ 2021-06-22 12:07 UTC (permalink / raw)
To: 9front
Merged with a few stylistic changes and rearrangements, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-23 10:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-22 5:47 [9front] [PATCH] Doc contribution: CWFS with WORM on a separate drive Lorenzo Bivens
2021-06-22 12:07 ` Sigrid Solveig Haflínudóttir
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).