查看linux文件系統(tǒng)塊大小的實(shí)現(xiàn)方法
在linux系統(tǒng)上,可以用命令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系統(tǒng)上,可以用命令fsutil來查看,測試如下:
C:\Documents and Settings\ct2>fsutil --help
--help 是無效參數(shù)。
---- 支持的命令 ----
behavior 控制文件系統(tǒng)行為 dirty 管理卷的被損壞的位數(shù) file 文件特定命令 fsinfo 文件系統(tǒng)信息 hardlink 硬鏈接管理 objectid 對象 ID 管理 quota 配額管理 reparsepoint 重分析點(diǎn)管理 sparse 稀疏文件控制 usn USN 管理 volume 卷管理 C:\Documents and Settings\ct2>fsutil fsinfo ntfsinfo c: NTFS 卷序列號 : 0x72ccb5f2ccb5b129 版本 : 3.1 區(qū)數(shù)量 : 0x0000000008ff8235 簇總數(shù) : 0x00000000011ff046 可用簇 : 0x0000000000547b73 保留總數(shù) : 0x0000000000000050 每個扇區(qū)字節(jié)數(shù) : 512 每個簇字節(jié)數(shù) : 4096 每個 FileRecord 段的字節(jié)數(shù) : 1024 每個 FileRecord 段的簇數(shù) : 0 Mft 有效數(shù)據(jù)長度 : 0x0000000009cac000 Mft 起始 Lcn : 0x00000000000c4df6 Mft2 起始 Lcn : 0x00000000008ff823 Mft 區(qū)域起始 : 0x0000000001067920 Mft 區(qū)域結(jié)尾 : 0x000000000108ce60
上面簇字節(jié)數(shù)既為塊大小。
注:第二擴(kuò)展文件系統(tǒng)(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.
以上就是小編為大家?guī)淼牟榭磍inux文件系統(tǒng)塊大小的實(shí)現(xiàn)方法全部內(nèi)容了,希望大家多多支持腳本之家~
- Linux du命令查看文件夾大小并按降序排列
- Linux系統(tǒng)下如何查看及修改文件讀寫權(quán)限
- linux下使用 du查看某個文件或目錄占用磁盤空間的大小方法
- linux 查看文件的屬性(ls,lsattr,file,stat)實(shí)例詳解
- Linux下查看進(jìn)程打開的文件句柄數(shù)和如何修改方法
- Linux中du-查看文件夾大小并按大小進(jìn)行排序詳解
- Linux 下目錄文件權(quán)限(命令)的查看和修改
- linux查看文件系統(tǒng)塊大小與內(nèi)存頁大小的簡單方法
- Linux中如何查看已掛載的文件系統(tǒng)類型詳解
- 在Linux上識別同樣內(nèi)容的文件詳解
相關(guān)文章
使用vs2019進(jìn)行Linux遠(yuǎn)程開發(fā)的方法步驟
這篇文章主要介紹了使用vs2019進(jìn)行Linux遠(yuǎn)程開發(fā)的方法步驟,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2020-01-01詳解為新版Apache服務(wù)器開啟HTTP/2支持的方法
這篇文章主要介紹了在Apache服務(wù)器中開啟HTTP/2的方法,HTTP/2被稱為未來的新HTTP協(xié)議,需要的朋友可以參考下2015-12-12詳解linux系統(tǒng)目錄sys,tmp,usr,var!
在本篇文章里小編給大家詳解了關(guān)于linux系統(tǒng)目錄,sys,tmp,usr,var!的相關(guān)知識點(diǎn)內(nèi)容,有興趣的朋友們參考下。2019-06-06CentOS7 LNMP+phpmyadmin環(huán)境搭建 第三篇phpmyadmin安裝
這篇文章主要介紹了CentOS7 LNMP+phpmyadmin環(huán)境搭建,第三篇phpmyadmin安裝,具有一定的參考價值,感興趣的小伙伴們可以參考一下2017-07-07