首页 » 系统相关 » 查看操作系统块大小

查看操作系统块大小

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即为块大小。

打赏

目前这篇文章有10条评论(Rss)评论关闭。

  1. Colby Beandoin | #1
    2011-12-21 at 07:53

    Yups, its so realistic.Thanks for your great post.

  2. Landon Dongo | #2
    2011-12-18 at 12:20

    Aw, this was a really quality post. In theory I’d like to write like this too – taking time and real effort to make a good article… but what can I say… I procrastinate alot and never seem to get something done.

  3. App For Android | #3
    2011-12-03 at 15:11

    An intriguing communicating is designer comment. I suppose that you should write much on this matter, it might not be a sacred refer but generally grouping are not sufficiency to verbalise on such topics. To the next. Cheers like your 查看操作系统块大小 | ANBOB.