[root@wuqinfei wuqinfei]# mke2fs -t ext4 /dev/sdb1 mke2fs 1.41.12 (17-May-2010) Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) Stride=0 blocks, Stripe width=0 blocks 68272 inodes, 273072 blocks 13653 blocks (5.00%) reserved for the super user First data block=1 Maximum filesystem blocks=67633152 34 block groups 8192 blocks per group, 8192 fragments per group 2008 inodes per group Superblock backups stored on blocks: 8193, 24577, 40961, 57345, 73729, 204801, 221185 Writing inode tables: done Creating journal (8192 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 35 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@wuqinfei wuqinfei]# ls /dev/sdb* /dev/sdb /dev/sdb1 /dev/sdb2 /dev/sdb5 [root@wuqinfei wuqinfei]# mkfs.ext4 /dev/sdb5 mke2fs 1.41.12 (17-May-2010) Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) Stride=0 blocks, Stripe width=0 blocks 68272 inodes, 273072 blocks 13653 blocks (5.00%) reserved for the super user First data block=1 Maximum filesystem blocks=67633152 34 block groups 8192 blocks per group, 8192 fragments per group 2008 inodes per group Superblock backups stored on blocks: 8193, 24577, 40961, 57345, 73729, 204801, 221185 Writing inode tables: done Creating journal (8192 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 20 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@wuqinfei wuqinfei]# dumpe2fs /dev/sdb5 | less dumpe2fs 1.41.12 (17-May-2010) Filesystem volume name: <none> Last mounted on: <not available> Filesystem UUID: 73964815-f1c9-423c-907e-a3ebde980ba1 Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: has_journal ext_attr resize_inode dir_index filetype extent flex_bg sparse_super huge_file uninit_bg dir_nlink extra_isize Filesystem flags: signed_directory_hash Default mount options: (none) Filesystem state: clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 68272 Block count: 273072 Reserved block count: 13653 Free blocks: 254191 Free inodes: 68261 First block: 1 Block size: 1024 Fragment size: 1024 Reserved GDT blocks: 256 Blocks per group: 8192 Fragments per group: 8192
[root@wuqinfei wuqinfei]# e2label /dev/sdb1 [root@wuqinfei wuqinfei]# e2label /dev/sdb1 MYPARTITION [root@wuqinfei wuqinfei]# e2label /dev/sdb1 MYPARTITION