shithub: docs.9front.org

Download patch

ref: b587901ee46c276115092b737a01664139e5abd0
parent: f640e375613eb8df64849f259ddd278101d6f0bc
author: kvik <kvik@a-b.xyz>
date: Thu Apr 1 18:48:07 EDT 2021

How to add a drive to your cwfs WORM cwfs.md

--- a/cwfs.md
+++ b/cwfs.md
@@ -51,3 +51,39 @@
 Make sure to "ream" the new partition at the next step.
 
 Complete the rest of the installation, reboot. That is all.
+
+Adding A drive to the worm
+--------------------------
+
+On long living installations or ones that hold a lot of larger files
+you may want to add a drive to WORM when it starts to fill up.
+
+First, format the disk, if you are adding to a current install
+you probably want one large `plan9` partition containing a single `fsworm`
+partition:
+
+	disk/mbr -m /386/mbr /dev/sdD0/data # If your using gpt I can't help you here
+	disk/fdisk -a /dev/sdD0/data # disk/edisk for gpt
+	# this will partition all unpartitioned space as a plan9 partition,
+	# if it looks correct type w to save and then q to quit
+	disk/prep -a fsworm /dev/sdD0/plan9
+	# this will create an fsworm partition w and q if it looks correct
+
+Now reboot the computer and at bootargs start cwfs with -c to enter
+configuration console. At the console enter a new configuration which
+includes the newly created `fsworm` partition.
+Note that device names are likely to be different in your case.
+
+	config: filsys main c(/dev/sdC0/fscache)((/dev/sdC0/fsworm)(/dev/sdD0/fsworm))
+	config: filsys dump o
+	config: end
+
+After exiting the console the system should boot with the new partition
+added to the WORM. Run:
+
+	con -C /srv/cwfs.cmd
+	statw
+
+to confirm. `wsize * 16000` is the size of your WORM.
+
+No refunds