Filesystems
Alpine Linux supports a number of filesystems.
Filesystem Tools
Alpine has multiple storage media formatting packages available. Different packages/programs are used to format different types of filesystems.
- btrfs-progs - For Btrfs
- dosfstools - For FAT12/FAT16/FAT32
- e2fsprogs - For ext3/ext4
- f2fs-tools - For F2FS
- jfsutils - For JFS
- ntfs-3g - For NTFS (Note: ntfs-3g is a FUSE driver)
- xfsprogs - For XFS
Formatting Partitions
Whenever a partition is created, the partition must be formatted first before using it. Depending on the filesystem to be used, the necessary formatting tool for the filesystem must be installed first. The various formatting tools like mkfs.ext4
, mkfs.vfat
, mkfs.btrfs
are part of file system tools dosfstools, e2fsprogs, btrfs-progs. Install the filesystem tools first, if not done already.
The following examples show how to use the formatting tools for different filesystems:
e2fsprogs
ext4 is the default filesystem in Alpine Linux.
# mkfs.ext4 /dev/sdaXY
btrfs-progs
# mkfs.btrfs /dev/sdaXY
dosfstools
# mkfs.vfat /dev/sdaXY
f2fs-tools
# mkfs.f2fs /dev/sdaXY
For creating partitions refer Manual partitioning