[root@test1 ~]# umount /ext4/
[root@test1 ~]# mkfs.ext4 /dev/sdb
sdb sdb1 sdb2 sdb3 sdb4 sdb5 sdb6 sdb7
[root@test1 ~]# mkfs.ext4 /dev/sdb2
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
3278576 inodes, 13109040 blocks
655452 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
401 block groups
32768 blocks per group, 32768 fragments per group
8176 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424
Writing inode tables: done
Creating journal (32768 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@test1 ~]# tune2fs -l /dev/sdb2
tune2fs 1.41.12 (17-May-2010)
Filesystem volume name:
Last mounted on:
Filesystem UUID: 2b14ee13-d2bf-4928-8bc5-49c004a79f4b
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype extent flex_bg sparse_super large_file 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: 3278576
Block count: 13109040
Reserved block count: 655452
Free blocks: 12857228
Free inodes: 3278565
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 1020
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8176
Inode blocks per group: 511
Flex block group size: 16
Filesystem created: Wed May 7 11:12:08 2014
Last mount time: n/a
Last write time: Wed May 7 11:12:20 2014
Mount count: 0
Maximum mount count: 20
Last checked: Wed May 7 11:12:08 2014
Check interval: 15552000 (6 months)
Next check after: Mon Nov 3 11:12:08 2014
Lifetime writes: 933 MB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
Default directory hash: half_md4
Directory Hash Seed: 0ff44d76-fc7d-4b92-924b-6258a13c161e
Journal backup: inode blocks
[root@test1 ~]#
[root@test1 ~]# vi /etc/fstab
[root@test1 ~]#
[root@test1 ~]# mount /ext4
[root@test1 ~]# more /proc/mounts |grep sdb2
/dev/sdb2 /ext4 ext4 rw,relatime,barrier=1,data=ordered 0 0
[root@test1 ~]#