Tune2fs

From LQWiki
Jump to navigation Jump to search

Tune2fs allows you to view and set filesystem options for a specific ext2 or ext3 partition, for example the block size or the frequency of an fsck.

Example

tweedleburg:~ # tune2fs -l /dev/sda1                                                     
tune2fs 1.40.8 (13-Mar-2008)                                                             
Filesystem volume name:   <none>                                                         
Last mounted on:          <not available>                                                
Filesystem UUID:          a0bc0308-48b8-42fb-a1a9-c6de57d9be14                           
Filesystem magic number:  0xEF53                                                         
Filesystem revision #:    1 (dynamic)                                                    
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file
Filesystem flags:         signed_directory_hash
Default mount options:    (none)
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              61054976
Block count:              244190000
Reserved block count:     12209500
Free blocks:              129663954
Free inodes:              60352360
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      965
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Filesystem created:       Sun Jul  6 22:03:27 2008
Last mount time:          Tue Sep 30 11:25:51 2008
Last write time:          Tue Sep 30 11:25:51 2008
Mount count:              45
Maximum mount count:      -1
Last checked:             Sat Jul 12 09:24:26 2008
Check interval:           0 (<none>)
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               256
Journal inode:            8
First orphan inode:       6144419
Default directory hash:   tea
Directory Hash Seed:      e6ba3cfa-aa30-40d7-b085-b4e5533da108
Journal backup:           inode blocks

See also

  • stat - view parameters like block size for a mounted file system and more
  • man page