打印

请问如何查看block的大小?

请问如何查看block的大小?

我的系统是fedora 7 ,请问如何查看block的大小,是用df命令么?
运行df -P命令结果如下:
文件系统           1024-blocks      Used Available Capacity 挂载点
/dev/sda9             11103224   4057764   6472344      39% /
/dev/sda7               101086     17249     78618      18% /boot
tmpfs                   224972         0    224972       0% /dev/shm
/dev/sda1             10255464   7537800   2717664      74% /mnt/winC
/dev/sda5             31455236  31172800    282436     100% /mnt/winD
/dev/sda6             26218048  25782796    435252      99% /mnt/winE
===================================
难道说 1024byte=1block么?还是...

第一次发帖问问题,谢谢大家捧场阿~~呵呵

TOP

如果是ext2/3

使用 例子:

tune2fs -l /dev/sda1

TOP

bash: tune2fs: command not found
=============这个是怎么回事哦

TOP

不会吧。以root用户执行吗?在这里

which tune2fs
/sbin/tune2fs

TOP

tune2fs 1.35 (28-Feb-2004)
Filesystem volume name:   /boot
Last mounted on:          <not available>
Filesystem UUID:          2e3fc13d-9a6d-4187-b538-b9ecec98febf
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype n                                                                                                  eeds_recovery sparse_super
Default mount options:    (none)
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              26104
Block count:              104388
Reserved block count:     5219
Free blocks:              87994
Free inodes:              26065
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:       Thu Sep 13 17:36:00 2007
Last mount time:          Mon Oct 22 09:50:38 2007
Last write time:          Mon Oct 22 09:50:38 2007
Mount count:              16
Maximum mount count:      -1
Last checked:             Thu Sep 13 17:36:00 2007
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:      81caff0a-8531-4753-b3b0-2abecd8b16a8
Journal backup:           inode blocks

这个分区100M。

TOP

是用root登录的啊,但好像都找不到tune2fs的路径

我记得我安装的时候什么选项都选上的啊
=======================
[root@localhost hyseee]# which tune2fs
/usr/bin/which: no tune2fs in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/home/hyseee/bin)

TOP

怎么没人来回答啊

TOP

回复 #4 lfree 的帖子

OK

TOP

学习下.
欢迎大家到我的小站http://www.oralife.cn,一起学习关于LINUX AIX ORACLE的一些知识
ORACLE技术群:44425882
QQ;859358
MSN: bosonmaster@live.com

TOP


感谢一直以来您对我们的支持!
当前时区 GMT+8, 现在时间是 2008-12-2 19:29 京ICP证060528 号

Designed By 17DST