Tune2fs
Jump to navigation
Jump to search
↑ https://linux.die.net/man/8/tune2fs
tune2fs[1] used to show or modify file system parameters on ext4 filesystems
- To modify ext4 for metadata checksums
tune2fs -O metadata_csum - To disable ext4 metadata checksum:
tune2fs -O ^metadata_csum
Show file system characteristics, use -l to show contents of superblock
# tune2fs -l /path/to/device # tune2fs -l /dev/sda25 # tune2fs -l /dev/[[cciss]]/c1d1p1 # tune2fs -l /dev/VG_NAME/LV_NAME # tune2fs -l /dev/mapper/dm-path-name
tune2fs tune2fs 1.44.1 (24-Mar-2018) Usage: tune2fs [-c max_mounts_count] [-e errors_behavior] [-f] [-g group] [-i interval[d|m|w]] [-j] [-J journal_options] [-l] [-m reserved_blocks_percent] [-o [^]mount_options[,...]] [-r reserved_blocks_count] [-u user] [-C mount_count] [-L volume_label] [-M last_mounted_dir] [-O [^]feature[,...]] [-Q quota_options] [-E extended-option[,...]] [-T last_check_time] [-U UUID] [-I new_inode_size] [-z undo_file] device
Change reservation percentage[edit]
tune2fs -l /path/to/device | egrep "Reserved block count|Block size" tune2fs -m 0 /path/to/device
Filesystem state: clean Filesystem state: clean with errors FS Error count: 61
First error time: Wed Dec 11 15:40:41 2019 First error function: htree_dirblock_to_tree First error line #: 994 First error inode #: 2 First error block #: 0 Last error time: Sun Dec 15 12:36:44 2019 Last error function: ext4_find_entry Last error line #: 1465 Last error inode #: 2 Last error block #: 0
Related terms[edit]
See also[edit]
tune2fs, Reservation percentage,dumpe2fsdu, du -hs, Disk space usage,df,ls,tree,find,docker system df,journalctl --disk-usage, No space left on device, ENOSPC,sar -F,growpart,resize2fs, ncdu, duf, dua-cli, macOS disk space- file, File system, directory,
touch,mkdir,ls,lntruncate,fallocate,split,stat, inode, File descriptor, superblock, block size (blockdev),fuser,lsof,scrub,chattr, ulimit (nofiles),cp,mv,file (command),mkfifo,chmod - File systems: clustered file system,
tune2fsmkfs.ext4,superblock, e2fsck,resize2fs,mount,df,umount, UUID,fstab
Advertising: