Red Hat/CentOS ext4 cannot format large partitions, centosext4

Source: Internet
Author: User

Red Hat/CentOS ext4 cannot format large partitions, centosext4

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:

[Root @ localhost ~] # 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

 

[Root @ localhost ~] # 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.


[Root @ localhost ~] # 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


In linux, the format of a mobile hard disk formatted with mkfsext4 is invalid. You cannot change the file format.

What about partitions? When configuring a partition table, what type of partition file system is selected? Fdisk-l check

For example, you can perform operations on/dev/sda as follows:
Fdisk/dev/sda
P (print the partition table of this disk)
L (list supported file system types)

Partition formatting in ext4 format cannot be displayed on windows

Cannot be used. It needs to be initialized and formatted.
Sorry, I am wrong. The premise you wrote is formatting. This can be used. I think you have mounted it !!!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.