暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

查看操作系统块大小

原创 Anbob 2010-11-30
541
red hat 5 el    linux:
[root@orazhang ~]# tune2fs
tune2fs 1.39 (29-May-2006)
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@orazhang ~]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda7             49594196  40280688   6753552  86% /
/dev/sda6               101086     12282     83585  13% /boot
tmpfs                   965812         0    965812   0% /dev/shm
/dev/sda9             30755832   1675864  27517652   6% /soft
/dev/hda               4139170   4139170         0 100% /var/smb/cdrom
[root@orazhang ~]# tune2fs -l /dev/sda9|grep Block
Block count:              7811598
Block size:               4096
Blocks per group:         32768
4096块大小,
windows xp:
c:>fsutil fsinfo ntfsinfo c:
NTFS 卷序列号 :       0x7404624004620608
版本 :                         3.1
区数量 :                  0x0000000003b856ad
簇总数 :                  0x0000000000770ad5
可用簇  :                  0x000000000059dc7d
保留总数 :                  0x0000000000000000
每个扇区字节数  :               512
每个簇字节数 :               4096
每个 FileRecord 段的字节数    : 1024
每个 FileRecord 段的簇数 : 0
Mft 有效数据长度 :           0x0000000002ac8000
Mft 起始 Lcn  :                  0x00000000000c0000
Mft2 起始 Lcn :                  0x00000000003b856a
Mft 区域起始 :                  0x00000000000c2ac0
Mft 区域结尾   :                  0x00000000001ae160
族大小就是
HPUX OS:
block大小默认为1K
/usr/include/sys/param.h 文件里有个DEV_BSIZE
Solaris:
用命令fstyp,测试如下:
bash-2.05# fstyp -v /dev/rdsk/c0t2d0s0 |more
ufs
magic   11954   format  dynamic time    Mon Nov  4 17:46:05 2002
sblkno  16      cblkno  24      iblkno  28      dblkno  408
sbsize  2048    cgsize  4096    cgoffset 160    cgmask  0xfffffff0
ncg     697     size    17827200        blocks  17553949
bsize   4096    shift   12      mask    0xfffff000
fsize   1024    shift   10      mask    0xfffffc00
frag    4       shift   2       fsbtodb 1
minfree 1%      maxbpg  1024    optim   time
maxcontig 256   rotdelay 0ms    rps     120
csaddr  408     cssize  11264   shift   8       mask    0xffffff00
ntrak   10      nsect   320     spc     3200    ncyl    11142
cpg     16      bpg     6400    fpg     25600   ipg     3040
nindir  1024    inopb   32      nspf    2
nbfree  4388485 ndir    2       nifree  2118876 nffree  4
cgrotor 0       fmod    0       ronly   0       logbno  0
上面sbsize即为块大小。
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论