Ext4: Difference between revisions
Appearance
create ext4 page |
m →Usage: remove a space from <syntaxhighlight> block that causes rendering a blank line |
||
| Line 5: | Line 5: | ||
In NixOS, Ext4 can be specified when formatting partitions during installation. For example: | In NixOS, Ext4 can be specified when formatting partitions during installation. For example: | ||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
# mkfs.ext4 /dev/sdX1 | # mkfs.ext4 /dev/sdX1 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 13:35, 19 July 2026
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