[root@dywHome2 ~]# ls -il total 8 28710 -rw-r--r-- 1 root root 2939 Feb 2 2008 col.txt 28675 drwx------ 2 root root 1024 Dec 27 2007 drakx/ 29195 -rwxr-xr-x 1 root root 11 Jan 28 2008 echoname* 34854 drwxr-xr-x 4 root root 1024 Sep 4 13:24 test/ 34941 drwxr-xr-x 2 root root 1024 Sep 3 21:12 test1/ 28674 drwx------ 5 root root 1024 Sep 5 08:10 tmp/
1 Gbytes = 1024 x 1024 Kbytes inode 個數 = 1024 x 1024 Kbytes / 8 Kbytes = 131072, inode 大小 = 131072 x 128 bytes = 16 Mbytes。
1 個 inode block 個數 = 100 Kbytes / 4 Kbytes = 25。
[root@linux ~]# dumpe2fs /dev/hda1 Filesystem volume name: / Filesystem state: clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 1537088 Block count: 1536207 Free blocks: 735609 Free inodes: 1393089 First block: 0 Block size: 4096 Filesystem created: Sat Jun 25 16:21:13 2005 Last mount time: Sat Jul 16 23:45:04 2005 Last write time: Sat Jul 16 23:45:04 2005 Last checked: Sat Jun 25 16:21:13 2005 First inode: 11 Inode size: 128 Journal inode: 8 Group 0: (Blocks 0-32767) Primary superblock at 0, Group descriptors at 1-1 Reserved GDT blocks at 2-376 Block bitmap at 377 (+377), Inode bitmap at 378 (+378) Inode table at 379-1400 (+379) 0 free blocks, 32424 free inodes, 11 directories Free blocks: Free inodes: 281-32704 Group 1: (Blocks 32768-65535) Backup superblock at 32768, Group descriptors at 32769-32769 Reserved GDT blocks at 32770-33144 Block bitmap at 33145 (+377), Inode bitmap at 33146 (+378) Inode table at 33147-34168 (+379) 18 free blocks, 24394 free inodes, 349 directories Free blocks: 37882-37886, 38263-38275 Free inodes: 38084-38147, 39283-39343, 41135, 41141-65408 ### 以下省略 ###
[root@dywOffice ~]# ls /lib/modules/2.6.12-12mdksmp/kernel/fs
adfs/ coda/ isofs/ nfs/ smbfs/
affs/ efs/ jbd/ nfs_common/ squashfs/
afs/ exportfs/ jffs/ nfsd/ supermount/
autofs4/ ext3/ jffs2/ nls/ sysv/
befs/ fat/ jfs/ ntfs/ udf/
bfs/ freevxfs/ lockd/ qnx4/ ufs/
binfmt_aout.ko.gz hfs/ minix/ quota_v1.ko.gz vfat/
binfmt_misc.ko.gz hfsplus/ msdos/ reiserfs/ xfs/
cifs/ hpfs/ ncpfs/ romfs/
[root@dywOffice ~]# cat /proc/filesystems
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev sockfs
nodev pipefs
nodev futexfs
nodev tmpfs
nodev inotifyfs
nodev eventpollfs
nodev devpts
ext2
cramfs
nodev ramfs
nodev devfs
nodev mqueue
ext3
nodev usbfs
nodev supermount
nodev binfmt_misc
vfat
練習題
/lib/modules/`uname -r`/kernel/fs
/proc/filesystems