EXT3

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/OptionExampleDescription
mkfs.ext3mkfs.ext3 /dev/sdX1Create an EXT3 file system on a partition
mkfs.ext3 -L label /dev/sdX1mkfs.ext3 -L mylabel /dev/sdX1Create an EXT3 file system with a volume label

File System Checking and Repair #

Command/OptionExampleDescription
fsck.ext3fsck.ext3 /dev/sdX1Check and repair an EXT3 file system
fsck.ext3 -f /dev/sdX1fsck.ext3 -f /dev/sdX1Force check of the file system

Mounting and Unmounting #

Command/OptionExampleDescription
mountmount -t ext3 /dev/sdX1 /mntMount an EXT3 file system to a directory
umountumount /mntUnmount the file system

File System Information #

Command/OptionExampleDescription
tune2fstune2fs -l /dev/sdX1Display detailed file system information
tune2fs -m 1 /dev/sdX1tune2fs -m 1 /dev/sdX1Set reserved block percentage to 1%

File System Management #

Command/OptionExampleDescription
e2labele2label /dev/sdX1 mylabelChange the volume label of an EXT3 file system
resize2fsresize2fs /dev/sdX1 10GResize the EXT3 file system to 10 GB

Journaling Options #

Command/OptionExampleDescription
tune2fs -jtune2fs -j /dev/sdX1Add journaling to an EXT2 file system to convert it to EXT3
tune2fs -O ^has_journal /dev/sdX1tune2fs -O ^has_journal /dev/sdX1Remove journaling from an EXT3 file system

File System Integrity #

Command/OptionExampleDescription
dumpe2fsdumpe2fs /dev/sdX1Dump file system information
e2fscke2fsck -f /dev/sdX1Check and repair file system

This cheatsheet covers essential EXT3 commands and options to help you manage and maintain EXT3 file systems effectively.

Cheatsheet Website

Discover our extensive collection of cheatsheets covering various tools and technologies to streamline your workflow.