File Systems - Paiet/Tech-Journal-for-Everything GitHub Wiki
- Determine your filesystem
/etc/fstab
mount
lsblk
- EXT[2,3,4]
- EXTended File System
- Default file system for Debian/Ubuntu
- EXT3 is the most common Linux file system
- Stable and well supported
- Uses bitmapping which can be inefficient
- Introduced support for journaling
- Convert ext2 to ext3
- Enables journaling
tune2fs -j /dev/sdb1
- EXT4 is an update to EXT3
- Increases file and volume sizes
- Uses extents instead of bitmapping
- Fully incorporates journaling
mkfs.ext4 /dev/sdb1
- XFS
- EXtents File System
- Default file system for RHEL/CentOS/Fedora
- Successor to EXT
- Increases supported file system sizes
- Incorporates journaling
- File system can grow, but cannot shrink
mkfs.xfs /dev/sdb1
- BTRFS
- B-TRee File System
- Currently in preview
- Massive file system sizes
- Incorporates journaling and a number of other features
- Integrated LVM
- Not supported in production
mkfs.btrfs /dev/sdb1
- May need to install tools
yum install btrfs-progs
apt install btrfs-tools
Red Hat Certified Maximums
| File System | Maximum File Size | Maximum Volume Size | |-------------|-------------------|---------------------| | EXT3 | 2TB | 16TB | | EXT4 | 16TB | 50TB (1EB) | | XFS | 500TB (8EB) | 500TB (16EB) | | BTRFS | (8EB) | (16EB) |