Difference between revisions of "Grow the system partition"

From securityrouter.org, an OpenBSD-based firewall
Jump to: navigation, search
Line 1: Line 1:
 
Depending on which disk image the system was installed from, the system partiton can be of difference size. For example, the standard disk images of version 6.1 and earlier had 445 MB system partitions. The system partition of version 6.2 is 840 MB. For some tasks, such as installing packages or running <tt>syspatch</tt>, you might have to grow the system partition.
 
Depending on which disk image the system was installed from, the system partiton can be of difference size. For example, the standard disk images of version 6.1 and earlier had 445 MB system partitions. The system partition of version 6.2 is 840 MB. For some tasks, such as installing packages or running <tt>syspatch</tt>, you might have to grow the system partition.
  
 +
# If you're using a hypervisor/virtualisation, begin by growing the virtual disk
 
# Connect to the console ([[Serial_console|serial]], video or virtual)  
 
# Connect to the console ([[Serial_console|serial]], video or virtual)  
 
# Reboot (possibly by disconnecting the power)
 
# Reboot (possibly by disconnecting the power)
Line 15: Line 16:
 
#* <tt>fsck babebabebabebabe.e</tt>
 
#* <tt>fsck babebabebabebabe.e</tt>
 
#* <tt>reboot</tt>
 
#* <tt>reboot</tt>
 +
# After the reboot, the system (root) partition should be larger

Revision as of 14:13, 29 March 2018

Depending on which disk image the system was installed from, the system partiton can be of difference size. For example, the standard disk images of version 6.1 and earlier had 445 MB system partitions. The system partition of version 6.2 is 840 MB. For some tasks, such as installing packages or running syspatch, you might have to grow the system partition.

  1. If you're using a hypervisor/virtualisation, begin by growing the virtual disk
  2. Connect to the console (serial, video or virtual)
  3. Reboot (possibly by disconnecting the power)
  4. When you see Press 'f' for update and recovery firmware, do so (press 'F')
  5. At the prompt, run shell
  6. If you want to change the keyboard layout, run kbd XX (where "XX" is the keyboard layout, such as "sv" for Swedish)
  7. At the shell prompt, run:
    • echo "d f\nw\nq" | disklabel -E babebabebabebabe
    • echo "b\n\n*\nw\nq" | disklabel -E babebabebabebabe
    • echo "m e\n\n*\n\nw\nq" | disklabel -E babebabebabebabe
    • cp /mnt3/sbin/growfs /tmp
    • umount /mnt3
    • /tmp/growfs babebabebabebabe.e
    • fsck babebabebabebabe.e
    • reboot
  8. After the reboot, the system (root) partition should be larger