EXT3 Cheatsheet
#
EXT3 is the third extended file system used in Linux, known for its journaling capabilities which enhance data integrity.
File System Creation
#
Command/Option | Example | Description |
---|
mkfs.ext3 | mkfs.ext3 /dev/sdX1 | Create an EXT3 file system on a partition |
mkfs.ext3 -L label /dev/sdX1 | mkfs.ext3 -L mylabel /dev/sdX1 | Create an EXT3 file system with a volume label |
File System Checking and Repair
#
Command/Option | Example | Description |
---|
fsck.ext3 | fsck.ext3 /dev/sdX1 | Check and repair an EXT3 file system |
fsck.ext3 -f /dev/sdX1 | fsck.ext3 -f /dev/sdX1 | Force check of the file system |
Mounting and Unmounting
#
Command/Option | Example | Description |
---|
mount | mount -t ext3 /dev/sdX1 /mnt | Mount an EXT3 file system to a directory |
umount | umount /mnt | Unmount the file system |
Command/Option | Example | Description |
---|
tune2fs | tune2fs -l /dev/sdX1 | Display detailed file system information |
tune2fs -m 1 /dev/sdX1 | tune2fs -m 1 /dev/sdX1 | Set reserved block percentage to 1% |
File System Management
#
Command/Option | Example | Description |
---|
e2label | e2label /dev/sdX1 mylabel | Change the volume label of an EXT3 file system |
resize2fs | resize2fs /dev/sdX1 10G | Resize the EXT3 file system to 10 GB |
Journaling Options
#
Command/Option | Example | Description |
---|
tune2fs -j | tune2fs -j /dev/sdX1 | Add journaling to an EXT2 file system to convert it to EXT3 |
tune2fs -O ^has_journal /dev/sdX1 | tune2fs -O ^has_journal /dev/sdX1 | Remove journaling from an EXT3 file system |
File System Integrity
#
Command/Option | Example | Description |
---|
dumpe2fs | dumpe2fs /dev/sdX1 | Dump file system information |
e2fsck | e2fsck -f /dev/sdX1 | Check and repair file system |
This cheatsheet covers essential EXT3 commands and options to help you manage and maintain EXT3 file systems effectively.