查看linux文件系统块大小的实现方法_Linux

在linux系统上,可以用命令tune2fs ,测试如下

[root@localhost test10g]# tune2fs -help
tune2fs 1.35 (28-Feb-2004)
tune2fs: invalid option -- h
Usage: tune2fs [-c max-mounts-count] [-e errors-behavior] [-g group]
    [-i interval[d|m|w]] [-j] [-J journal-options]
    [-l] [-s sparse-flag] [-m reserved-blocks-percent]
    [-o [^]mount-options[,...]] [-r reserved-blocks-count]
    [-u user] [-C mount-count] [-L volume-label] [-M last-mounted-dir]
    [-O [^]feature[,...]] [-T last-check-time] [-U UUID] device
[root@localhost test10g]# df
Filesystem      1K-blocks   Used Available Use% Mounted on
/dev/sda2       8776068  7576504  753764 91% /
/dev/sda1        497829   16303  455824  4% /boot
none          517300     0  517300  0% /dev/shm
/dev/sda5       1035660   96452  886600 10% /tmp
[root@localhost test10g]# tune2fs -l /dev/sda1|grep Block
Block count:       514048
Block size:        1024
Blocks per group:     8192
[root@localhost test10g]# tune2fs -l /dev/sda2|grep Block
Block count:       2229018
Block size:        4096
Blocks per group:     32768

上面Block size即为块大小。

在WINDOWS系统上,可以用命令fsutil来查看,测试如下:

C:\Documents and Settings\ct2>fsutil --help
--help 是无效参数。
---- 支持的命令 ----

behavior    控制文件系统行为
dirty      管理卷的被损坏的位数
file      文件特定命令
fsinfo     文件系统信息
hardlink    硬链接管理
objectid    对象 ID 管理
quota      配额管理
reparsepoint  重分析点管理
sparse     稀疏文件控制
usn       USN 管理
volume     卷管理

C:\Documents and Settings\ct2>fsutil fsinfo ntfsinfo c:

NTFS 卷序列号 :    0x72ccb5f2ccb5b129
版本 :             3.1
区数量 :         0x0000000008ff8235
簇总数 :         0x00000000011ff046
可用簇 :         0x0000000000547b73
保留总数 :         0x0000000000000050
每个扇区字节数 :        512
每个簇字节数 :        4096
每个 FileRecord 段的字节数  : 1024
每个 FileRecord 段的簇数 : 0
Mft 有效数据长度 :      0x0000000009cac000
Mft 起始 Lcn :         0x00000000000c4df6
Mft2 起始 Lcn :         0x00000000008ff823
Mft 区域起始 :         0x0000000001067920
Mft 区域结尾  :         0x000000000108ce60

上面簇字节数既为块大小。

注:第二扩展文件系统(second Extended Filesystem,Ext2)。 Ext3(third Extended Filesystem)

man fs
    ext2  is the high performance disk filesystem used by Linux for fixed
       disks  as  well as removable media.  The second extended
       filesystem was designed as an extension of the extended file
       system (ext).  ext2 offers the best performance (in terms of
       speed and CPU usage) of the filesystems supported under Linux.
    ext3  is a journaling version of the ext2 filesystem. It is easy to
       switch back and forth between ext2 and ext3.
    ext3  is a journaling version of the ext2 filesystem. ext3 offers the
       most complete set of journaling options  available  among
       journaling filesystems.

以上就是小编为大家带来的查看linux文件系统块大小的实现方法全部内容了,希望大家多多支持~

以上是小编为您精心准备的的内容,在的博客、问答、公众号、人物、课程等栏目也有的相关内容,欢迎继续使用右上角搜索按钮进行搜索linux
查看系统盘大小
linux 查看系统盘大小、linux查看系统大小、linux文件系统实现、linux文件系统的实现、linux系统设计与实现,以便于您获取更多的相关知识。

时间: 2024-08-03 17:52:19

查看linux文件系统块大小的实现方法_Linux的相关文章

如何查看window文件系统块大小

 在window7下有一个工具,可以用来查看操作系统的块大小--fsutil,这个工具也可以运行在window2000的平台上;因此给了我们很大的便利性. 输入fsutil fsinfoo ntfsinfo c: 查看C信息: 每个簇的字节数便是文件系统的块的大小即4kb.这个大小可以在磁盘分区或格式化石自定义,通过format工具可以查看不同文件系统可以使用的块大小. <喎�"http://www.2cto.com/kf/ware/vc/" target="_blan

linux查看文件系统块大小与内存页大小的简单方法_Linux

一:查看文件系统块大小 sudo /sbin/tune2fs -l /dev/sda1|grep "Block size" 需要注意到系统可能有多个盘多个文件系统,可通过df命令查看 数值单位是字节,如图示: 二:查看内存页大小 getconf PAGESIZE 数值单位是字节,如图示: 以上就是小编为大家带来的linux查看文件系统块大小与内存页大小的简单方法全部内容了,希望大家多多支持~ 以上是小编为您精心准备的的内容,在的博客.问答.公众号.人物.课程等栏目也有的相关内容,欢迎继

查看Linux磁盘空间大小

一.df 命令: df 是来自于coreutils 软件包,系统安装时,就自带的:我们通过这个命令可以查看磁盘的使用情况以及文件系统被挂载的位置: 举例: [root@localhost beinan]# df -lh Filesystem 容量 已用 可用 已用% 挂载点 /dev/hda8 11G 6.0G 4.4G 58% / /dev/shm 236M 0 236M 0% /dev/shm /dev/sda1 56G 22G 35G 39% /mnt/sda1 我们从中可以看到,系统安装

解决linux下vim中文乱码的方法_Linux

Vim编码的详细介绍 Vim和所有的流行文本编辑器一样,Vim 可以很好的编辑各种字符编码的文件,这当然包括 UCS-2.UTF-8 等流行的 Unicode 编码方式. Vim 有四个跟字符编码方式有关的选项,encoding.fileencoding.fileencodings.termencoding (这些选项可能的取值请参考 Vim 在线帮助  :help encoding-names),它们的意义如下:     1.encoding: Vim 内部使用的字符编码方式,包括 Vim 的

linux中配置pptp服务器配置的方法_Linux

1.验证内核是否加载了MPPE模块: modprobe ppp-compress-18 && echo MPPE is ok 2.安装所需的软件包: yum -y install ppp wget ftp://rpmfind.net/linux/epel/7/x86_64/p/pptpd-1.4.0-2.el7.x86_64.rpm rpm -ivh pptpd-1.4.0-2.el7.x86_64.rpm 3.配置PPP和PPTP的配置文件: grep ^[^#] /etc/ppp/op

centos下yum搭建安装linux+apache+mysql+php环境的方法_Linux

一.脚本YUM源安装: 1.yum install wget #安装下载工具wget 2.wget http://www.atomicorp.com/installers/atomic #下载atomic yum源,配置CentOS 6.5第三方yum源 3. sh ./atomic #脚本执行 4. yum check-update #更新yum软件包 二.163yum源的安装 1.进入yum源配置目录 cd /etc/yum.repos.d 2.备份系统自带的yum源 mv CentOS-B

linux查看cpu是否支持64位的方法_Linux

查看cpuinfo中是否有lm,如果有lm表示支持64位,lm的意思是long mode,具体命令如下: 复制代码 代码如下: cat /proc/cpuinfo  | grep flags 检查输出里面是否有 lm 字符或 复制代码 代码如下: cat /proc/cpuinfo  | grep flags | grep lm | wc -l 输出结果大于 0 表示支持64位

linux下用cron定时执行任务的方法_Linux

名称 : crontab 使用权限 : 所有使用者 使用方式 : crontab file [-u user]-用指定的文件替代目前的crontab. crontab-[-u user]-用标准输入替代目前的crontab. crontab-1[user]-列出用户目前的crontab. crontab-e[user]-编辑用户目前的crontab. crontab-d[user]-删除用户目前的crontab. crontab-c dir- 指定crontab的目录. crontab文件的格式

详解Linux中文乱码问题终极解决方法_Linux

初入linux的程序员们,经常会受到乱码的问候.可谓"始乱终弃".因为乱码,并且最终放弃了linux的不在少数.好吧,言归正传,下面来看一下linux乱码的具体解决办法吧. 方法一: 修改/root/.bash_profile文件,增加export LANG=zh_CN.GB18030 该文件在用户目录下,对于其他用户,也必须相应修改该文件. 使用该方法时putty能显示中文,但桌面系统是英文,而且所有的网页中文显示还是乱码 方法二: 修改/etc/sysconfig/i18n文件