Lab activity
Filesystem Creation and Management
Learn how to create and manage ext4, XFS, and FAT32 filesystems, inspect filesystem information, tune ext4 parameters, and check filesystem health using Linux command-line tools.
Overview
In this lab, you will learn how to create and manage Linux filesystems using virtual disk image files. You will format disk images with ext4, XFS, and FAT32 filesystems, inspect filesystem metadata, modify ext4 labels and check settings, and perform filesystem health checks using appropriate Linux utilities. You will also mount filesystems, create test files, and examine disk space and inode usage.
Learning Outcomes
- Create virtual disk images and format them with ext4, XFS, and FAT32 filesystems.
- Set and modify filesystem labels and block sizes using
mkfs.ext4andtune2fs. - Inspect filesystem metadata using
dumpe2fs,tune2fs,xfs_info, andblkid. - Configure ext4 mount-count and time-based filesystem check intervals.
- Check ext4 filesystem health using
fsck.ext4ande2fsck. - Inspect XFS filesystem health using
xfs_repairin no-modify mode. - Mount and unmount filesystems and examine disk space and inode usage with
df.
Key Concepts
- Filesystem types: Understand the differences between ext4, XFS, and FAT32 and their common use cases.
- Filesystem creation: Use
mkfs.ext4,mkfs.xfs, andmkfs.vfatto format virtual disk images. - Filesystem tuning: Modify ext4 labels and configure filesystem check parameters with
tune2fs. - Filesystem integrity: Learn how to check filesystems and use non-modifying diagnostic options where appropriate.
- Mounting and usage: Mount disk images with loop devices, create files, and inspect space and inode consumption.
- Filesystem identification: Use
blkidto inspect filesystem types and UUIDs.
Why Needed?
- Filesystem creation and maintenance are essential Linux system administration skills.
- Understanding filesystem metadata and tuning helps administrators manage storage more effectively.
- Filesystem checks help identify potential issues and support routine maintenance.
- These practical tasks help build the hands-on skills needed for LFCS preparation and real-world Linux administration.