指令篇:磁盘检查和参数的修改___tune2fs
Posted panda-lk
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了指令篇:磁盘检查和参数的修改___tune2fs相关的知识,希望对你有一定的参考价值。
磁盘的检查:
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 (修改之后查看修改成功没有)
代码
以上是关于指令篇:磁盘检查和参数的修改___tune2fs的主要内容,如果未能解决你的问题,请参考以下文章
指令篇:文件内容的查看和修改___cattacheadtailnlmoreodtouchumaskchatterlsatter(上接第一篇)
指令篇:文件系统的挂载和卸载命令___mountumount
大数据学习之_01_Linux学习_02_组管理和权限管理+定时任务调度+linux磁盘分区挂载+linux的网络配置+进程管理(重点)+软件包管理+大厂面试题+感悟分享+资料附录