http://bald.cat

adding extra space

As an example, to keep ports compartmentalized; mount an external drive under /usr/ports, as it is conveniently empty initially - and all work done by the package manager is contained within this subtree.

VBoxManage createmedium disk \
	   --filename ~/workbook/share/virtual-machines/$VM/ports.vdi \
	   --size 10000
VBoxManage storageattach $VM \
	   --storagectl "SATA Controller" \
	   --port 1 \
	   --device 0 \
	   --type hdd \
	   --medium ~/workbook/share/virtual-machines/$VM/ports.vdi
fdisk /dev/sdb
mkfs.ext4 /dev/sdb1
mount /dev/sdb1 /usr/ports/

detach

VBoxManage storageattach $VM \
	   --storagectl "SATA Controller" \
	   --port 1 \
	   --device 0 \
	   --type hdd \
	   --medium none

2018 - Élő László hello at bald dot cat