![无法扩大 LUKS 文件系统](https://linux22.com/image/1612343/%E6%97%A0%E6%B3%95%E6%89%A9%E5%A4%A7%20LUKS%20%E6%96%87%E4%BB%B6%E7%B3%BB%E7%BB%9F.png)
我使用 GParted 将 LUKS 分区从 2.7TB 扩大到 3.7TB。lsblk
现在fdisk -l
显示所需的大小,但df -h
仍然显示 2.7TB,而且我只能将尽可能多的内容写入磁盘。resize2fs
并e2fsck
没有帮助。
以下是lsblk
、fdisk
和的选定输出df
。
$ lsblk
sda 8:0 0 3.7T 0 disk
└─sda2 8:2 0 3.7T 0 part
└─luks-006fb82a-e5ad-46a7-944c-3b3ccb2bb23e
253:3 0 3.7T 0 crypt /mnt/data
# fdisk -l
Disk /dev/sda: 3.65 TiB, 4000787030016 bytes, 7814037168 sectors
Disk model: ST4000DM000-1F21
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: A2153689-78CA-4630-8E8B-980041E2BC44
Device Start End Sectors Size Type
/dev/sda2 2048 7814033407 7814031360 3.7T Linux filesystem
Disk /dev/mapper/luks-006fb82a-e5ad-46a7-944c-3b3ccb2bb23e: 3.65 TiB, 4000779862016 bytes, 7814023168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
$ df -h
/dev/dm-3 2.7T 1.6T 1.1T 60% /mnt/data
除了完全重新格式化硬盘之外我还能做什么吗?