如何将分区/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(2021 年 12 月 30 日)。文件系统的长度已经是 1174779 (4k) 块。没事做!

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

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

2 :从 4589 到 180577...

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

这是当我尝试调整分区大小时发生的情况:

https://ibb.co/5My7q7s

我既无法调整 sdf4 的大小,也无法在未分配的空间上创建新的 ext4 分区:(

https://ibb.co/FqskSSh

https://ibb.co/3k8dnYZ

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

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?

相关内容