我将称为启动区域的分区移动到磁盘末尾,因此我可以使用 Rescue Linux(在 USB 闪存驱动器上运行的 Linux)中的 GParted 扩展另一个分区,但它给了我这个错误。
ntfsresize -i -f -v '/dev/sda5' 00:00:00 (ERROR)
ntfsresize v2021.8.22 (libntfs-3g)
Failed to read last sector (999991): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
or it was not setup correctly (e.g. by not using mdadm --build ...),
or a wrong device is tried to be mounted,
or the partition table is corrupt (partition is smaller than NTFS),
or the NTFS boot sector is corrupt (NTFS size is not valid).
ERROR(22): Opening '/dev/sda5' as NTFS failed: Invalid argument
The device '/dev/sda5' doesn't have a valid NTFS.
Maybe you selected the wrong partition? Or the whole disk instead of a
partition (e.g. /dev/hda, not /dev/hda1)? This error might also occur
if the disk was incorrectly repartitioned (see the ntfsresize FAQ).