OpenBSD 6.x Diskusage
How much Disk is used with Default Partitioning
puffy66# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/sd0a 1005M 96.1M 858M 10% /
/dev/sd0k 9.6G 2.0K 9.1G 0% /home
/dev/sd0d 1.8G 12.0K 1.7G 0% /tmp
/dev/sd0f 2.5G 955M 1.4G 39% /usr
/dev/sd0g 1005M 202M 752M 21% /usr/X11R6
/dev/sd0h 4.2G 218K 3.9G 0% /usr/local
/dev/sd0j 5.8G 2.0K 5.5G 0% /usr/obj
/dev/sd0i 1.7G 2.0K 1.6G 0% /usr/src
/dev/sd0e 2.8G 5.9M 2.7G 0% /var
Example with 32 GB
puffy66# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/sd0a 3.9G 96.1M 3.6G 3% /
/dev/sd0g 7.8G 2.0K 7.4G 0% /home
/dev/sd0d 2.0G 12.0K 1.9G 0% /tmp
/dev/sd0f 7.9G 1.1G 6.4G 15% /usr
/dev/sd0e 7.9G 5.9M 7.5G 0% /var
Partition Proposal for 16GB
/dev/sd0a 2G /
/dev/sd0b 1G swap
/dev/sd0d 1G /tmp
/dev/sd0e 4G /var
/dev/sd0f 4G /usr
/dev/sd0g 4G /home
Partition Proposal for 20GB
/dev/sd0a 2G /
/dev/sd0b 1G swap
/dev/sd0d 1G /tmp
/dev/sd0e 6G /var
/dev/sd0f 6G /usr
/dev/sd0g 4G /home
Partition Proposal for 32GB
/dev/sd0a 4G /
/dev/sd0b 2G swap
/dev/sd0d 2G /tmp
/dev/sd0e 8G /var
/dev/sd0f 8G /usr
/dev/sd0g 8G /home
Partition Proposal for 64GB
/dev/sd0a 4G /
/dev/sd0b 2G swap
/dev/sd0d 2G /tmp
/dev/sd0e 8G /var
/dev/sd0f 8G /usr
/dev/sd0g 8G /home
/dev/sd0h 32G /data
Templates APU 16GB
cat << 'EOF' > autodisklabel
/ 2G
swap 0.5G
/tmp 1G
/usr 4G
/var 4G
/home 4G
EOF
Templates APU 120GB
cat << 'EOF' > autodisklabel
/ 4G
swap 4G
/tmp 4G
/usr 8G
/var 8G
/home 16G
/data 64G
EOF
Quick and Dirty APU 120GB
a 4G /root
a 4G swap
a 4G /tmp
a 8G /usr
a 8G /home
a * /var
-> which results in:
apu-120GB# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/sd0a 3.9G 75.0M 3.6G 2% /
/dev/sd0f 7.8G 2.0K 7.4G 0% /home
/dev/sd0d 3.9G 16.0K 3.7G 0% /tmp
/dev/sd0e 7.8G 1.2G 6.1G 17% /usr
/dev/sd0g 81.1G 7.0M 77.1G 0% /var
Any Comments ?
sha256: 8b0fa0f79f422c4d4ed8eb1ee67cda1d67470ff8aec34f18bb7715b6ea4291f0