我有一个双引导系统(Ubuntu18.04和Windows 10),它有4个主分区--系统保留分区( boot )、windows分区、ubuntu分区(包含/boot、/root、/home等)和ubuntu的交换分区。我想要创建另一个分区(用于在windows和ubuntu之间共享),因此我需要将ubuntu和交换分区转换为逻辑分区。我使用了修复部件(使用这),但是在重新启动时,我得到了grub救援提示。虽然我能够通过引导到活动CD并将分区更改为主分区来恢复,但我仍然希望将分区更改为逻辑分区,并且仍然有一个正常工作的系统。
我在这里需要做什么?
的更多信息
是的,当我将分区转换为逻辑分区时,UUID确实会更改。在对补丁进行编辑之后,当我重新加载get以查看分区信息时,我根本就得不到分区的UUID。当我试图获得有关分区的其他信息时,我也会得到这个错误:
对于/dev/sda5 5(带有Ubuntu、boot等的以前的主分区):
e2label: No such file or directory while trying to open /dev/sda5
Couldn't find valid filesystem superblock.
tune2fs 1.44.1 (24-Mar-2018)
tune2fs: No such file or directory while trying to open /dev/sda5
Couldn't find valid filesystem superblock.
Couldn't find valid filesystem superblock.
dumpe2fs 1.44.1 (24-Mar-2018)
dumpe2fs: No such file or directory while trying to open /dev/sda5
Unable to read the contents of this file system!
Because of this some operations may be unavailable.
The cause might be a missing software package.
The following list of software packages is required for ext4 file system support: e2fsprogs v1.41+.编辑2:这里:“请注意,/boot目录必须位于GRUB支持的文件系统上。并非所有的文件系统都是如此。第1.5阶段的功能是开始使用/boot文件系统中的第2阶段文件驱动程序执行,并加载所需的驱动程序。这意味着GRUB2的第2阶段可以位于标准的EXT文件系统上,但不能位于逻辑卷上。因此,第2阶段文件的标准位置在/boot文件系统中,特别是/boot/grub2。”
这似乎意味着我不能转换为/boot的逻辑分区?
发布于 2018-10-31 17:13:02
Grub需要在Linux分区的/boot文件夹中找到一些文件。如果您将此分区从主分区更改为逻辑分区,则必须重新安装Grub到它,再次找到它们。您可以使用开机修理或手动执行:https://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd
https://askubuntu.com/questions/1088968
复制相似问题