By default systemd limits the size of its journal to 4GB so on our 1TB drive that'd be quite a bit of space on the drive that can only be accessed by the root account. Fortunately the reserved space on a filesystem can be adjusted using tune2fs. From tune2fs' man page -
Code: Select all
-m reserved-blocks-percentage
Set the percentage of the file system which may only be allocated
by privileged processes. Reserving some number of file system
blocks for use by privileged processes is done to avoid file sys‐
tem fragmentation, and to allow system daemons, such as sys‐
logd(8), to continue to function correctly after non-privileged
processes are prevented from writing to the file system. Nor‐
mally, the default percentage of reserved blocks is 5%.
Code: Select all
wizard@laptop 15:09:14 $ sudo tune2fs -m 1 /dev/nvme0n1p2
[sudo] password for wizard:
tune2fs 1.47.2 (1-Jan-2025)
Setting reserved blocks percentage to 1% (1249047 blocks)
wizard@laptop 15:09:30 $
For non-root partitions there may not be need for reserved space at all - such as on my backup media so I can do
Code: Select all
wizard@server 15:12:10 $ sudo tune2fs -m 0 /dev/sda1
[sudo] password for wizard:
tune2fs 1.47.2 (1-Jan-2025)
Setting reserved blocks percentage to 0% (0 blocks)
wizard@server 15:12:38 $
Code: Select all
wizard@laptop 15:09:30 $ sudo tune2fs -l /dev/nvme0n1p2 | grep "Reserved block count\|Block size"
Reserved block count: 1249047
Block size: 4096
wizard@laptop 15:15:13 $
Hope this gives folks some ideas