Linux disk and file system management (4) _ viewing and modifying file system attributes

Source: Internet
Author: User

Linux disk and file system management (4) _ viewing and modifying file system attributes
File System attribute viewing and adjustment tool: e2label command: sets the file system volume Label to avoid formatting and modifying the e2label device name [Label]

# View the partition volume label [root @ localhost ~] # E2label/dev/sdb1mytest # modify the partition volume label [root @ localhost ~] # E2label/dev/sdb1 'labelnew' [root @ localhost ~] # E2label/dev/sdb1labelNew

 

Tune2fs command: display the attributes of the ext file system or modify its attribute Syntax: tune2fs [option] device name parameter:-l: display information in the super block-j: convert the ext2 File System to the ext3 file system and add the journal-L 'label': Like e2label, partition volume label-m #: Adjust the percentage of management space reserved for the Administrator-O: enable or disable file system attributes [^] feature [,...] -o: enable or disable the default mount option of the file system [^] mount-option [,...] man tune2fs:
[Root @ localhost ~] # Tune2fs-l/dev/sdb1tune2fs 1.42.9 (28-Dec-2013) Filesystem volume name: labelNew -------> volume 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 expose flags: signed_directory_hash Default mount options: user_xattr acl ----> Default mount Option Filesystem state: cleanErrors behavior: ContinueFilesystem OS type: LinuxInode count: 65536 Block count: 262144 Reserved block count: 13107 Free blocks: 249189 Free inodes: 65524 First block: 0 Block size: 4096 Fragment size: 4096 Group descriptor size: 64 Reserved GDT blocks: 127 Blocks per group: 32768 Fragments per group: 32768 Inodes per group: 8192 Inode blocks per group: 512 Flex block group size: 16 Filesystem created: Tue Sep 15 05:53:15 2015 Last mount time: tue Sep 15 17:07:02 2015 Last write time: Tue Sep 15 17:59:21 2015 Mount count: 9 Maximum mount count:-1 Last checked: Tue Sep 15 05:53:15 2015 Check interval: 0 (<none>) Lifetime writes: 49 MBReserved blocks uid: 0 (user root) Reserved B Locks gid: 0 (group root) First inode: 11 Inode size: 256 Required extra isize: 28 Desired extra isize: 28 Journal inode: 8 Default directory hash: half_md4Directory Hash Seed: 45da449e-ad33-4a49-9660-1469a94cc2f8Journal backup: inode blocks # modify the default Mount Option: Enable journal_data [root @ localhost ~] # Tune2fs-o journal_data/dev/sdb1tune2fs 1.42.9 (28-Dec-2013) [root @ localhost ~] # 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 parameter:-h: show only super block information;-B: show bad block information-x: example of displaying detailed group information:
[Root @ localhost ~] # Dumpe2fs-x/dev/sdb1dumpe2fs 1.42.9 (28-Dec-2013) Filesystem volume name: labelNew... super block information... journal start: 0 Group 0: (Blocks 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 least (+ 161) 28521 free blocks, 8180 free inodes, 2 directories, 8180 unused inodes Free blocks: 0x0000008e-0x00000090, 0x00000099-0x000000a0, Invalid Free inodes: 0x0000000d-0x00002000... group information...

 


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.