Wieder was gelernt

Partition sizes

Tags: linux debian ubuntu filesystems partitions disk
2020-11-29

A freshly installed minimal Debian 12 system (no extra /boot):

root@wyrm:~# df -h
Filesystem               Size  Used Avail Use% Mounted on
udev                     1.9G     0  1.9G   0% /dev
tmpfs                    392M  640K  391M   1% /run
/dev/mapper/vgroot-root  919M  106M  750M  13% /
/dev/mapper/vgroot-usr   1.8G  1.5G  275M  85% /usr
tmpfs                    2.0G     0  2.0G   0% /dev/shm
tmpfs                    5.0M     0  5.0M   0% /run/lock
/dev/mapper/vgroot-home  1.8G   64K  1.7G   1% /home
/dev/mapper/vgroot-var   1.8G  186M  1.6G  11% /var
tmpfs                    392M     0  392M   0% /run/user/0
tmpfs                    392M     0  392M   0% /run/user/1000

The combined /+/boot looks fine, /usr is a bit small, should probably be 3GB.

A freshly installed minimal Debian 10 system:

root@scram:~/.ssh# df -h
Filesystem               Size  Used Avail Use% Mounted on
udev                     2.0G     0  2.0G   0% /dev
tmpfs                    395M  5.4M  390M   2% /run
/dev/mapper/vgroot-root  922M  6.1M  852M   1% /
/dev/mapper/vgroot-usr   1.8G 1016M  716M  59% /usr
tmpfs                    2.0G     0  2.0G   0% /dev/shm
tmpfs                    5.0M     0  5.0M   0% /run/lock
tmpfs                    2.0G     0  2.0G   0% /sys/fs/cgroup
/dev/sda1                922M   84M  775M  10% /boot
/dev/mapper/vgroot-var   1.8G  161M  1.6G  10% /var
/dev/mapper/vgroot-home  922M  2.4M  856M   1% /home
tmpfs                    395M     0  395M   0% /run/user/0
tmpfs                    395M     0  395M   0% /run/user/1000
root@scram:~/.ssh# df -hi
Filesystem              Inodes IUsed IFree IUse% Mounted on
udev                      490K   386  490K    1% /dev
tmpfs                     494K   528  493K    1% /run
/dev/mapper/vgroot-root    60K  1.1K   59K    2% /
/dev/mapper/vgroot-usr    120K   33K   87K   28% /usr
tmpfs                     494K     1  494K    1% /dev/shm
tmpfs                     494K     3  494K    1% /run/lock
tmpfs                     494K    17  494K    1% /sys/fs/cgroup
/dev/sda1                  60K   343   60K    1% /boot
/dev/mapper/vgroot-var    120K  1.9K  118K    2% /var
/dev/mapper/vgroot-home    60K    18   60K    1% /home
tmpfs                     494K     4  494K    1% /run/user/0
tmpfs                     494K     4  494K    1% /run/user/1000
root@scram:~/.ssh#

A freshly installed default Ubuntu 22.04 system:

root@qualle:~/.ssh# df -h
Filesystem                       Size  Used Avail Use% Mounted on
tmpfs                            393M  1.1M  392M   1% /run
/dev/mapper/vg0-root             3.9G  131M  3.6G   4% /
/dev/disk/by-id/dm-uuid-LVM-...  3.9G  2.2G  1.5G  59% /usr
tmpfs                            2.0G     0  2.0G   0% /dev/shm
tmpfs                            5.0M     0  5.0M   0% /run/lock
/dev/mapper/vg0-var              3.9G  423M  3.3G  12% /var
/dev/mapper/vg0-home             2.0G   56K  1.8G   1% /home
tmpfs                            393M  4.0K  393M   1% /run/user/1000
root@qualle:~/.ssh# df -hi
Filesystem                      Inodes IUsed IFree IUse% Mounted on
tmpfs                             491K   804  490K    1% /run
/dev/mapper/vg0-root              256K  1.9K  255K    1% /
/dev/disk/by-id/dm-uuid-LVM-...   256K   74K  183K   29% /usr
tmpfs                             491K     1  491K    1% /dev/shm
tmpfs                             491K     3  491K    1% /run/lock
/dev/mapper/vg0-var               256K  3.6K  253K    2% /var
/dev/mapper/vg0-home              128K    21  128K    1% /home
tmpfs                              99K    25   99K    1% /run/user/1000

/ is oversized, 1 GB should be enough. /usr is ok (but 3 GB might suffice)