查看linux檔案系統塊大小的實現方法_Linux

來源:互聯網
上載者:User

在linux系統上,可以用命令tune2fs ,測試如下

[root@localhost test10g]# tune2fs -helptune2fs 1.35 (28-Feb-2004)tune2fs: invalid option -- hUsage: 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]# dfFilesystem      1K-blocks   Used Available Use% Mounted on/dev/sda2       8776068  7576504  753764 91% //dev/sda1        497829   16303  455824  4% /bootnone          517300     0  517300  0% /dev/shm/dev/sda5       1035660   96452  886600 10% /tmp[root@localhost test10g]# tune2fs -l /dev/sda1|grep BlockBlock count:       514048Block size:        1024      Blocks per group:     8192[root@localhost test10g]# tune2fs -l /dev/sda2|grep BlockBlock count:       2229018Block size:        4096Blocks per group:     32768

上面Block size即為塊大小。

在WINDOWS系統上,可以用命令fsutil來查看,測試如下:

C:\Documents and Settings\ct2>fsutil --help
--help 是無效參數。
---- 支援的命令 ----

behavior    控制檔案系統行為dirty      管理卷的被損壞的位元file      檔案特定命令fsinfo     檔案系統資訊hardlink    永久連結管理objectid    物件識別碼 管理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 段的簇數 : 0Mft 有效資料長度 :      0x0000000009cac000Mft 起始 Lcn :         0x00000000000c4df6Mft2 起始 Lcn :         0x00000000008ff823Mft 地區起始 :         0x0000000001067920Mft 地區結尾  :         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檔案系統塊大小的實現方法全部內容了,希望大家多多支援雲棲社區~

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.