我有一个 12TB 的 ext4 分区,我想将其扩展到 18TB。我已将新磁盘添加到 RAID,之后我想重新调整分区大小以占用这个新空间。我开始扩展分区,但过程失败,因为 ext4 无法处理大于 16TB 的分区。
问题是,现在当我打开 gparted 时,gparted 显示分区的大小为 18TB,但我在 Nautilus 窗口中只能看到 12TB。
我怎样才能回滚 gparted 操作的效果以使两个大小彼此一致?
gparted错误的输出:
GParted 0.12.1 --enable-libparted-dmraid
Libparted 2.3
Grow /dev/sda1 from 12.73 TiB to 18.19 TiB 00:25:00 ( ERROR )
calibrate /dev/sda1 00:00:00 ( SUCCESS )
path: /dev/sda1
start: 2,048
end: 27,341,617,151
size: 27,341,615,104 (12.73 TiB)
check file system on /dev/sda1 for errors and (if possible) fix them 00:12:46 ( SUCCESS )
e2fsck -f -y -v /dev/sda1
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
3170078 inodes used (0.74%, out of 427212800)
187157 non-contiguous files (5.9%)
439 non-contiguous directories (0.0%)
# of inodes with ind/dind/tind blocks: 0/0/0
Extent depth histogram: 3167183/2814/2
3159801838 blocks used (92.45%, out of 3417701888)
0 bad blocks
187 large files
3057556 regular files
112442 directories
0 character device files
0 block device files
0 fifos
0 links
71 symbolic links (71 fast symbolic links)
0 sockets
------------
3170069 files
e2fsck 1.42.5 (29-Jul-2012)
grow partition from 12.73 TiB to 18.19 TiB 00:00:00 ( SUCCESS )
old start: 2,048
old end: 27,341,617,151
old size: 27,341,615,104 (12.73 TiB)
new start: 2,048
new end: 39,059,453,951
new size: 39,059,451,904 (18.19 TiB)
check file system on /dev/sda1 for errors and (if possible) fix them 00:12:14 ( SUCCESS )
e2fsck -f -y -v /dev/sda1
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
3170078 inodes used (0.74%, out of 427212800)
187157 non-contiguous files (5.9%)
439 non-contiguous directories (0.0%)
# of inodes with ind/dind/tind blocks: 0/0/0
Extent depth histogram: 3167183/2814/2
3159801838 blocks used (92.45%, out of 3417701888)
0 bad blocks
187 large files
3057556 regular files
112442 directories
0 character device files
0 block device files
0 fifos
0 links
71 symbolic links (71 fast symbolic links)
0 sockets
------------
3170069 files
e2fsck 1.42.5 (29-Jul-2012)
grow file system to fill the partition 00:00:00 ( ERROR )
resize2fs /dev/sda1
resize2fs 1.42.5 (29-Jul-2012)
resize2fs: New size too large to be expressed in 32 bits
========================================
谢谢
答案1
您可以尝试使用命令行实用程序 gdisk 将 GPT 分区重新设置为以下值(起始:2,048,结束:27,341,617,151)。起始值和结束值来自您提供的 gparted_details.htm 日志文件。