This FAQ explains how to create additional partitions for OpenBSD. Some experience with OpenBSD is required to succesfully add a partitions. Specific knowledge of file editing is required to configure the VPS to automatically boot the partition.Note: If not mentioned, a command is always followed by an enter. First you will have to create a partition:
- First make sure that you are logged in as root, if you are not then use this command "su -". Start disklabel with the command 'disklabel -E wd0' wd0 stands for your harddisk.
- Start with entering new boundaries by pressing 'b'. Press enter when you run into Starting Sector and subsequently submit '*'. With this last command the boundaries will be set to cover your entire disk.
- We have cleared space for the new partition. Submit, 'a' to create the partition.
- A driveletter will be proposed. You can either accept the proposal by pressing enter ot choose a driveletter that is still free. Either way, remember this letter as you will need it later on. For this FAQ we will use 'x'.
- You will now run into three default settings. You will have to accept all three propositions by pressing enter three times in a row.
- To finalize the all the changes you made in the previous steps, press 'w'. Close disklabel with 'q'.
- Now its time to create a new filesystem on your partition. Use the following command 'newfs wd0X'. Replace X with the driveletter you chose in step 4.
- Subsequently the filesystem has to be placed in a map. This map first needs to be created. Use command 'mkdir /transip' to createw a map. You can replace transip with any name you would like.
- Next you need to mount the new filesystem to the existing filesystem. Use this command 'mount /dev/wd0x /transip'. Replace transip with the mapname you chose in step 8.
- Place the new filesystem in '/etc/fstab' to make sure that the partition is autmatically booted after a reboot. If do not do this, you will need to execute the command from step 9 every time your VPS is rebooted.