红帽/CentOS ext4无法格式化大分区

Posted mfmdaoyou

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了红帽/CentOS ext4无法格式化大分区相关的知识,希望对你有一定的参考价值。

红帽/CentOS 6.5的e2fsprogs版本号为1.41.12较低。无法创建16TB以上的文件系统

下载最新的e2fsprogs,编译安装
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

 

常见故障表现:

[[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, 196584, 327640, 458696, 589752, 1638200, 1769256, 3210872,
 5307768, 8191000, 15923304, 22476104, 40955000, 47769912, 143309736,
 157332728, 204775000, 429929208, 1023875000, 1101329096, 1289787624








































以上是关于红帽/CentOS ext4无法格式化大分区的主要内容,如果未能解决你的问题,请参考以下文章

CentOS挂载mount: unknown filesystem type ‘ext4‘错误

CentOS挂载mount: unknown filesystem type ‘ext4‘错误

CentOS下ext4、vfat文件系统创建、修改

磁盘超过2T无法用fdisk分区的问题

centos 5.5版本中添加ext4格式

红帽6.5挂载超过16TB的磁盘分区