- Documentation
Elastic Compute Service
Elastic Compute Service
Troubleshooting
Operating system issue
Linux operating system issue
How do I resolve the issue where the ext4 file system of a GPT partition cannot exceed 16 TiB when I resize the file system with resize2fs in Ubuntu 16.04?
Linux operating system issue
How do I resolve the issue where the ext4 file system of a GPT partition cannot exceed 16 TiB when I resize the file system with resize2fs in Ubuntu 16.04?
How do I resolve the issue where the ext4 file system of a GPT partition cannot exceed 16 TiB when I resize the file system with resize2fs in Ubuntu 16.04?
After I expand the data volume of an instance running Ubuntu 16.04, the following error occurs when I use the resize2fs tool to expand the ext4 file system of its GPT partition to more than 16 TiB.
This issue arises because the built-in resize2fs tool in the Ubuntu 16.04 operating system is outdated. It does not support operations on file systems larger than 16 TiB.
You need to upgrade the resize2fs tool to a version not lower than 1.43.0.
In the example provided in this topic, version 1.47.1 is downloaded.
-
- In the directory where the e2fsprogs file is located, execute the following command to decompress the file.
- Execute the following command to enter the e2fsprogs directory.
tip
Replace e2fsprogs-1.47.1 with the actual directory name.
- Execute the following command to generate the Makefile.
- After you complete the previous compilation, compile the e2fsprogs source code and install the new version of the resize2fs tool.
- Execute the following command to view the version of the resize2fs tool.
- If the following output is displayed, version 1.47.1 of the resize2fs tool is installed as expected.
-
- Execute the following command to convert the file system to 64-bit format.
tip
Replace /dev/vdb1 with the actual partition to be expanded.
-
- Execute the following command to expand the file system.
tip
Replace /dev/vdb1 with the actual partition to be expanded.
-
Last updated: 2025.11.11 11:40:19