磁盘的检查:
tune2fs -l /dev/sda5 (对/dev/sda5 进行检查)
理解下面每一行的意思:
[email protected]:~$ fdisk -l /dev/sd sda sda1 sda2 sda3 sda5 sda6 sda7 sdb sdb1 [email protected]:~$ tune2fs -l /dev/sda5 tune2fs 1.42.9 (4-Feb-2014) tune2fs: 权限不够 当尝试打开 /dev/sda5 时 找不到有效的文件系统超级块. [email protected]:~$ sudo tune2fs -l /dev/sda5 [sudo] password for machine: tune2fs 1.42.9 (4-Feb-2014) Filesystem volume name: <none> //卷标 (相当于Windows下的D盘的重命名的名字) Last mounted on: / Filesystem UUID: edd2b532-1560-4804-ab08-509ffee13b50 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: user_xattr acl Filesystem state: clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 625856 Block count: 2499840 Reserved block count: 124992 Free blocks: 1172007 Free inodes: 429995 First block: 0 Block size: 4096 Fragment size: 4096 Reserved GDT blocks: 610 Blocks per group: 32768 Fragments per group: 32768 Inodes per group: 8128 Inode blocks per group: 508 Filesystem created: Wed May 17 20:56:03 2017 Last mount time: Sun May 21 00:12:14 2017 Last write time: Sun May 21 00:12:12 2017 Mount count: 10 Maximum mount count: -1 Last checked: Wed May 17 20:56:03 2017 Check interval: 0 (<none>) Lifetime writes: 13 GB Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 256 Required extra isize: 28 Desired extra isize: 28 Journal inode: 8 First orphan inode: 333696 Default directory hash: half_md4 Directory Hash Seed: 538aa3cd-eb59-4f51-b7b8-a253efa149b8 Journal backup: inode blocks [email protected]:~$
磁盘参数的修改:
//修改卷标方法
命令:tune2fs (查看要修改的参数)
命令:tune2fs -l /dev/sda5 (修改之后查看修改成功没有)
[email protected]:~$ tune2fs tune2fs 1.42.9 (4-Feb-2014) Usage: tune2fs [-c max_mounts_count] [-e errors_behavior] [-g group] [-i interval[d|m|w]] [-j] [-J journal_options] [-l] [-m reserved_blocks_percent] [-o [^]mount_options[,...]] [-p mmp_update_interval] [-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 ] device [email protected]:~$ sudo tune2fs -L xx /dev/sda5 tune2fs 1.42.9 (4-Feb-2014) [email protected]:~$ sudo tune2fs -l /dev/sda5 tune2fs 1.42.9 (4-Feb-2014) Filesystem volume name: xx Last mounted on: / Filesystem UUID: edd2b532-1560-4804-ab08-509ffee13b50 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 ...... ..... .... ... .. .
代码
时间: 2024-11-05 09:51:37