Ext4
Appearance
Ext4 is a widely used journaling filesystem for Linux.
Usage
In NixOS, Ext4 can be specified when formatting partitions during installation. For example:
# mkfs.ext4 /dev/sdX1
And configured in your system configuration like so:
❄︎ /etc/nixos/configuration.nix
fileSystems."/".device = "/dev/disk/by-uuid/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
fileSystems."/".fsType = "ext4";
Replace the UUID or device path with your actual partition identifier.
Tools
Some common tools that are installed by default on NixOS for working with the Ext4 filesystem as part of the e2fsprogs
package:
e2fsck
: check and repair the file systemtune2fs
: adjust tunable file system parametersresize2fs
: file system resizer