The RedHat/centos 6.5 e2fsprogs version is earlier than 1.41.12, so you cannot create a file system larger than 16 TB.
Download the latest e2fsprogs, compile and install it
Ftp://ftp.ntu.edu.tw/linux/kernel/people/tytso/e2fsprogs/
Tar zxvf e2fsprogs-1.42.10.tar.gz
CD e2fsprogs-1.42.10
Mkdir build
CD build/
../Configure
Make
Make install
Mke2fs-O 64bit, has_journal, extents, huge_file, flex_bg, uninit_bg, dir_nlink, extra_isize-I 4194304/dev/sda1
Mount/dev/sda1/mnt
Common Faults:
[[Email protected] ~] # Mount/dev/sda1/mnt/
Mount: Wrong FS type, bad option, bad superblock on/dev/sda1,
Missing codePage or Helper Program, or other error
In some cases useful info is found in syslog-try
Dmesg | tail or so
[[Email protected] ~] # Mkfs. ext4/dev/sda1
Mke2fs 1.41.12 (17-may-2010)
Mkfs. ext4: size of device/dev/sda1 too big to be expressed in 32 bits
Using a blocksize of 4096.
[[Email protected] ~] # Mkfs. ext4-B 8192
Warning: blocksize 8192 not usable on most systems.
Mke2fs 1.41.12 (17-may-2010)
Mkfs. ext4: 8192-byte blocks too big for system (max 4096)
Proceed anyway? (Y, n) y
Warning: 8192-byte blocks too big for system (max 4096), forced to continue
Filesystem label =
OS type: Linux
Block size = 8192 (log = 3)
Fragment size = 8192 (log = 3)
Stride = 0 blocks, stripe width = 0 blocks
1464926208 inodes, 2929459075 Blocks
146472953 blocks (5.00%) reserved for the Super User
First data block = 0
Maximum filesystem blocks = 4311218176
44706 block groups
65528 blocks per group, 65528 fragments per group
32768 inodes per group
Superblock backups stored on blocks:
65528,196 584, 327640,458 696, 589752,163 8200, 1769256,321 0872,
5307768,819 1000, 15923304,224 76104, 40955000,477 69912, 143309736,
157332728,204 775000, 429929208,102 3875000, 1101329096,128 9787624
Red Hat/centos ext4 cannot format large partitions