如何将分区 /dev/sdf4 的空间扩展到 SD 卡的末尾?resize2fs 和 gparted 都无法正常工作

如何将分区 /dev/sdf4 的空间扩展到 SD 卡的末尾?resize2fs 和 gparted 都无法正常工作

我想调整安装在我的 Ubuntu 22.04 发行版上的 SD 卡上的 /dev/sdf4 分区的大小。我尝试使用两种方法完成此任务:

  1. 使用命令 resizefs,但失败了:

mario@Z390-AORUS-PRO-DEST:/media/ziomario/Elements/Backup/ChromeBook# resize2fs /dev/sdf4 resize2fs 1.46.5 (30-Dec-2021)。文件系统长度已达 1174779 (4k) 个块。无需执行任何操作!

  1. 我尝试过使用 gparted,但也失败了。这是我所做的:

1这是我想要扩展的分区...

2从 4589 到 180577...

3...如您所见,它询问我是否要继续使用当前设置。如果我说“是”,它不会调整分区大小。如果我说“否”,它将调整分区大小并修复您看到的错误,但是当我将 SD 卡插入上网本时,安装在 SD 卡上的 ubuntu 将无法启动。

这是我在终端上看到的日志消息:

mario@Z390-AORUS-PRO-DEST:/media/ziomario/Elements/Backup/ChromeBook# gparted /dev/sdf
GParted 1.3.1
configuration --enable-libparted-dmraid --enable-online-resize
libparted 3.4
Not all of the space available to /dev/sdf appears to be used, you can fix the GPT to use all of the space (an extra 369821696 blocks) or continue with the current setting? 
Not all of the space available to /dev/sdf appears to be used, you can fix the GPT to use all of the space (an extra 369821696 blocks) or continue with the current setting? 

** (gpartedbin:44337): WARNING **: 20:16:57.049: invalid substitution "%s" in fmt string "percorso: %1 (%s)"
Not all of the space available to /dev/sdf appears to be used, you can fix the GPT to use all of the space (an extra 369821696 blocks) or continue with the current setting? 
Unable to satisfy all constraints on the partition.
Not all of the space available to /dev/sdf appears to be used, you can fix the GPT to use all of the space (an extra 369821696 blocks) or continue with the current setting? 
Not all of the space available to /dev/sdf appears to be used, you can fix the GPT to use all of the space (an extra 369821696 blocks) or continue with the current setting? 
Not all of the space available to /dev/sdf appears to be used, you can fix the GPT to use all of the space (an extra 369821696 blocks) or continue with the current setting?

相关内容