我在联想 Thinkpad X1 平板电脑上运行 Ubuntu 20.04.1 LTS。安装时我选择了加密选项。
我现在正尝试从 Ubuntu 安装盘实时启动,以便重新调整 Ubuntu 分区的大小。但是,插入 USB 后,我看不到从 USB 启动的选项。最初我的想法是 Grub 已配置为忽略它,因此我更新了/etc/default/grub
,现在内容如下:
/ cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
我现在至少在启动时看到了 Grub 菜单,但没有安装磁盘的条目。我不确定为什么我的引导加载程序看不到它——当我退出到联想 UEFI 时,它做将 USB 显示为可启动选项。但是,每当我从联想的 UEFI 中选择该选项时,它都会启动到我现有的磁盘上的 Ubuntu 安装。
我不太清楚接下来该怎么做。我对联想 UEFI 和 Ubuntu 默认的 GRUB2 安装之间的交互不太了解。我也不知道 Cryptsetup 是否会让事情变得复杂。