File System Properties View and adjustment tools:
e2label Command : Set the file system volume label to avoid formatting changes to the volume label
E2label device name [Label]
#查看分区卷标 [[email protected] ~]# e2label/dev/sdb1mytest# Modify the partition volume label [[email protected] ~]# e2label/dev/sdb1 ' labelnew ' [email Protected] ~]# e2label/dev/sdb1labelnew
tune2fs Command : Displays the properties of the Ext series file system or modifies its properties
Syntax: TUNE2FS [option] Device name
Parameters:
-L: Show information in Super block
-J: Convert ext2 file system to ext3 file system, join Journal
-l ' label ': Similar to E2label, partition label
-M #: Adjust the percentage of administrative space reserved for administrators
-O: File System Properties start or close
[^]feature[,...]
-O: File system default mount option enabled or closed
[^]mount-option[,...]
Man tune2fs View detailed parameters
Example:
[[email protected] ~]# tune2fs -l /dev/sdb1tune2fs 1.42.9 (28-Dec-2013) filesystem volume name: labelnew -------> Label last mounted on: /mnt/test3 -----> mount point filesystem uuid: e238f3ae-863c-473e-a1ca-35b1e0a69de2Filesystem magic number: 0xef53filesystem revision #: 1 (Dynamic) filesystem features: has_journal ext_attr resize_inode Dir_index filetype needs_recovery extent 64bit flex_bg sparse_super large_ file huge_file uninit_bg dir_nlink extra_isizefilesystem flags: signed_directory_hash Default mount options: user_xattr acl ----> Default mount Options filesystem state: cleanerrors behavior: continuefilesystem os type: linuxinode count: 65536Block count: 262144Reserved block count: 13107Free blocks: 249189Free inodes: 65524First block: 0Block size: 4096fragment size:&nbSp; 4096group descriptor size: 64reserved gdt blocks: 127blocks per group: 32768Fragments per group: 32768Inodes per group: 8192inode blocks per group: 512flex block group size: 16Filesystem created: Tue Sep 15 05:53:15 2015last mount time: Tue Sep 15 17:07:02 2015Last write time: Tue Sep 15 17:59:21 2015Mount count: &Nbsp; 9maximum mount count: -1last checked: Tue Sep 15 05:53:15 2015check interval: 0 (<none>) lifetime writes: 49 MBReserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) first inode: 11Inode size: 256required extra isize: 28desired extra isize: 28journal inode: 8default directory hash: half_ md4directory hash seed: 45da449e-ad33-4a49-9660-1469a94cc2f8journal backup: inode blocks# Modify default mount options: Enable Journal_data[[email protected] ~]# tune2fs -o journal_data /dev/sdb1tune2fs 1.42.9 (28-dec-2013) [[email protected] ~]# Tune2fs -l /dev/sdb1 .... Default mount options: journal_data user_xattr acl ....
dumpe2fs command : Display EXT2/EXT3/EXT4 file System Information
Syntax: dumpe2fs [option] DEVICE
Parameters:
-H: Displays only the Super block information;
-B: Show bad block information
-X: Show detailed group information
Example:
[[email protected] ~]# dumpe2fs -x /dev/sdb1dumpe2fs 1.42.9 (28-Dec-2013) filesystem volume name: labelnew...super block information ... Journal start: 0group 0: (BLOCKS&NBSP;0X00000000-0X00007FFF) [itable_zeroed] checksum 0xba41, unused inodes 8180 primary superblock at 0x00000000, group descriptors at 0x00000001-0x00000001 Reserved GDT blocks at 0x00000002-0x00000080 block bitmap at 0x00000081 (+129), Inode bitmap at 0x00000091 (+145) Inode table at 0x000000a1-0x000002a0 (+161 ) 28521 free blocks, 8180 free inodes, 2 directories, 8180 unused inodes free blocks: 0x0000008e-0x00000090, 0x00000099-0x000000a0, 0x000010a2-0x00007fff free inodes: 0x0000000d-0x00002000 ... Group information ...
If there is any mistake, please correct me!
Thank you!
Linux disk and File System Management (4) _ File System Properties View modifications