By the following question:
Is there some universally recommended Reserved block count (for root) for large Ext4 drives?
I specifically mean the following:
Let us consider (almost) everyone has a rather large root drive (partition) nowadays.
Let us consider for example 2TB drive with a 1.8TiB root partition, meaning the whole drive is used, except for the 1st boot partition.
Further, let us assume only I have access to this computer and that I have direct access to HW, and OS.
As an addition I have set in GRUB:
GRUB_CMDLINE_LINUX_DEFAULT="rootflags=data=journal"
, the particular documentation I did not manage to find, feel free to add it here.
To put all this into a working example, here is my NVMe drive in my laptop:
# fdisk -l /dev/nvme0n1
Disk /dev/nvme0n1: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: Samsung SSD 970 EVO Plus 2TB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 989573D5-37E7-437A-B680-9410F7234A94
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 194559 192512 94M EFI System
/dev/nvme0n1p2 194560 3907028991 3906834432 1.8T Linux filesystem
The 2nd partition /dev/nvme0n1p2
is of Ext4 filesystem type, and here is the full list of values considering it:
# tune2fs -l /dev/nvme0n1p2
tune2fs 1.46.5 (30-Dec-2021)
Filesystem volume name: <none>
Last mounted on: /
Filesystem UUID: f1fc7345-be7a-4c6b-9559-fc6e2d445bfa
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent 64bit flex_bg sparse_super large_file huge_file dir_nlink extra_isize metadata_csum
Filesystem flags: signed_directory_hash
Default mount options: user_xattr acl
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 122093568
Block count: 488354304
Reserved block count: 20068825
Free blocks: 388970513
Free inodes: 121209636
First block: 0
Block size: 4096
Fragment size: 4096
Group descriptor size: 64
Reserved GDT blocks: 817
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8192
Inode blocks per group: 512
Flex block group size: 16
Filesystem created: Sat Jun 16 11:26:24 2018
Last mount time: Thu Oct 26 09:14:38 2023
Last write time: Thu Oct 26 09:14:38 2023
Mount count: 102
Maximum mount count: -1
Last checked: Tue Sep 26 03:05:31 2023
Check interval: 0 (<none>)
Lifetime writes: 43 TB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 32
Desired extra isize: 32
Journal inode: 8
First orphan inode: 134214
Default directory hash: half_md4
Directory Hash Seed: 48360d76-0cfb-4aed-892e-a8f3a30dd794
Journal backup: inode blocks
Checksum type: crc32c
Checksum: 0x58d12a63
I would like to evaluate if I need some reserved root space, and if yes, how much. I would like this question not to be opinion-based, so if you decide to add an answer please include some references, thank you.
0
. – Artem S. Tashkinov Oct 29 '23 at 15:02