天天看点

linux下查看块大小

[root@localhost ~]# tune2fs -l /dev/sda1

tune2fs 1.39 (29-May-2006)

Filesystem volume name:   /boot

Last mounted on:          <not available>

Filesystem UUID:          b6bbfdcc-6fc2-42b6-9585-19790e22c951

Filesystem magic number:  0xEF53

Filesystem revision #:    1 (dynamic)

Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super

Default mount options:    user_xattr acl

Filesystem state:         clean

Errors behavior:          Continue

Filesystem OS type:       Linux

Inode count:              32128

Block count:              128488

Reserved block count:     6424

Free blocks:              113011

Free inodes:              32093

First block:              1

Block size:               1024

Fragment size:            1024

Reserved GDT blocks:      256

Blocks per group:         8192

Fragments per group:      8192

Inodes per group:         2008

Inode blocks per group:   251

Filesystem created:       Fri Sep 17 18:33:57 2010

Last mount time:          Fri Sep 17 14:30:30 2010

Last write time:          Fri Sep 17 14:30:30 2010

Mount count:              5

Maximum mount count:      -1

Last checked:             Fri Sep 17 18:33:57 2010

Check interval:           0 (<none>)

Reserved blocks uid:      0 (user root)

Reserved blocks gid:      0 (group root)

First inode:              11

Inode size:               128

Journal inode:            8

Default directory hash:   tea

Directory Hash Seed:      414fec59-16a9-459a-8c84-b405e8c1678e

Journal backup:           inode blocks

几个常用的参数

-c:表示文件系统在mount次数达到设定后,需要运行fsck检查文件系统。

-i:文件系统的检查间隔时间。系统在达到时间间隔时,自动检查文件系统。

-l:显示文件系统的参数的详细信息。

-j:转换为ext3文件系统。

-m: 设置保留的空间百分比

-o: 设置默认加载参数

-I 设置自检天数

查看os系统页的大小

[root@localhost ~]# getconf PAGESIZE

4096

getconf命令是将系统配置变量值写入标准输出。

getconf  -a   查看可显示的系统设置值

继续阅读