码迷,mamicode.com
首页 > 其他好文 > 详细

指令篇:磁盘检查和参数的修改___tune2fs

时间:2017-05-21 09:54:02      阅读:488      评论:0      收藏:0      [点我收藏+]

标签:tune2fs   win   mic   over   windows   splay   seed   director   rect   

磁盘的检查:   

  tune2fs -l /dev/sda5    (对/dev/sda5 进行检查)

  理解下面每一行的意思:

machine@machine-virtual-machine:~$ fdisk -l /dev/sd
sda   sda1  sda2  sda3  sda5  sda6  sda7  sdb   sdb1  
machine@machine-virtual-machine:~$ tune2fs -l /dev/sda5
tune2fs 1.42.9 (4-Feb-2014)
tune2fs: 权限不够 当尝试打开 /dev/sda5 时
找不到有效的文件系统超级块.
machine@machine-virtual-machine:~$ 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
machine@machine-virtual-machine:~$ 

磁盘参数的修改:

  //修改卷标方法

  命令:tune2fs     (查看要修改的参数) 

  命令:tune2fs -l /dev/sda5  (修改之后查看修改成功没有)

技术分享
machine@machine-virtual-machine:~$ 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
machine@machine-virtual-machine:~$ sudo tune2fs -L xx /dev/sda5
tune2fs 1.42.9 (4-Feb-2014)
machine@machine-virtual-machine:~$ 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
......
.....
....
...    
..    
.
代码

 

指令篇:磁盘检查和参数的修改___tune2fs

标签:tune2fs   win   mic   over   windows   splay   seed   director   rect   

原文地址:http://www.cnblogs.com/l75790/p/6883807.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!