我正在使用 iPXE 安装 Ubuntu 16.04 并尝试使用预置创建 GPT 分区,如下所示:
d-i partman-basicfilesystems/choose_label string gpt
d-i partman-basicfilesystems/default_label string gpt
d-i partman-partitioning/choose_label string gpt
d-i partman-partitioning/default_label string gpt
d-i partman/choose_label string gpt
d-i partman/default_label string gpt
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/confirm boolean true
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
d-i partman-auto/expert_recipe string \
boot-root :: \
1 1 1 free \
$gptonly{ } \
$primary{ } \
$bios_boot{ } \
method{ biosgrub } \
. \
1024 100% 1000000000 ext4 \
$gptonly{ } \
$primary{ } \
$bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
.
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman-basicfilesystems/no_swap boolean false
d-i debian-installer/add-kernel-opts string nomodeset quiet console=ttyS1,115200n8 console=tty0 elevator=deadline nomodeset
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
安装按预期正常完成,但安装完成后系统无法启动。我尝试了不同的食谱选项,即:
boot-root :: \
1 1 1 free \
$gptonly{ } \
$primary{ } \
$bios_boot{ } \
method{ biosgrub } \
. \
200 2 200 ext3 \
$gptonly{ } \
$primary{ } \
$bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext3 } \
mountpoint{ /boot } \
. \
1024 100% 1000000000 ext4 \
$primary{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
.
安装中断并出现错误,没有定义根文件系统!我通过调整分区大小或使用可启动标志等尝试了许多其他选项,结果相同,系统无法启动或安装过程中出现根文件系统错误。我在过去的三天里对此进行了研究,并且看到并尝试了许多建议的解决方案,但没有成功!如果安装成功,我启动了一张 Live Ubuntu CD,它会显示以下内容:
~$ sudo fdisk -l
.....
.....
.....
Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: xxxx (replaced real value for simplicity)
Device Start End Sectors Size Type
/dev/sda1 2048 4094 2048 1M BIOS boot
/dev/sda2 4096 488396799 488392704 232.9G Linux filesystem
.....
.....
.....
有了这个食谱:
boot-root :: \
1 1 1 free \
$gptonly{ } \
$primary{ } \
$bios_boot{ } \
method{ biosgrub } \
. \
1024 1024 1000000000 ext4 \
$primary{ } \
$bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
.
它看起来正确,但无法启动!有人可以给我提示吗!谢谢