我正在尝试Ubuntu 20.04.5 LTS
通过执行以下操作来升级我的 Ubuntu Server 版本 () do-release-upgrade
。
运行之后失败,显示:
EFI System Partition (ESP) not usable
Your EFI System Partition (ESP) is not mounted at /boot/efi. Please
ensure that it is properly configured and try again.
这是我的/etc/fstab
:
# / was on /dev/ubuntu-vg/ubuntu-lv during curtin installation
/dev/disk/by-uuid/fce9091c-1e98-46b8-900c-4ab2c4234600 / ext4 defaults 0 0
# /boot was on /dev/nvme1n1p2 during curtin installation
/dev/disk/by-uuid/14a2bceb-25dc-4da3-bbc8-fbe2f5d7ccdc /boot ext4 defaults 0 0
# /boot/efi was on /dev/nvme1n1p1 during curtin installation
/dev/disk/by-uuid/DC7B-C686 /boot/efi vfat umask=0077 0 1
/swap.img none swap sw 0 0
# SSD and HDD
UUID=72e391af-077d-4646-9fa0-82fd665deced /mnt/ssd auto defaults 0 1
# NAS Directories
//<redacted_ip>/Backups /mnt/nas/Backups cifs credentials=/etc/samba/nas_passwd_file,rw,uid=1000 0 0
//<redacted_ip>/docker /mnt/nas/docker cifs credentials=/etc/samba/nas_passwd_file,rw,uid=1000 0 0
//<redacted_ip>/Drive /mnt/nas/Drive cifs credentials=/etc/samba/nas_passwd_file,rw,uid=1000 0 0
//<redacted_ip>/Streaming /mnt/nas/Streaming cifs credentials=/etc/samba/nas_passwd_file,rw,uid=1000 0 0
//<redacted_ip>/Syncthing /mnt/nas/Syncthing cifs credentials=/etc/samba/nas_passwd_file,rw,uid=1000 0 0
//<redacted_ip>/Mount/drive-colab /mnt/ssd/docker/jupyter/data/drive cifs credentials=/etc/samba/nas_passwd_file,rw,uid=1000 0 0
运行sudo mount -a
无错误。
ls /boot
返回结果,但不包含/boot/efi
并ls /boot/efi
失败ls: cannot access '/boot/efi': No such file or directory
运行sudo mount /boot/efi
失败mount: /boot/efi: mount point does not exist.
sudo parted
这是>的输出print all
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/ubuntu--vg-ubuntu--lv: 254GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
1 0.00B 254GB 254GB ext4
Model: Samsung SSD 970 EVO Plus 2TB (nvme)
Disk /dev/nvme0n1: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
1 0.00B 2000GB 2000GB ext4
Model: WDC PC SN730 SDBQNTY-256G-1001 (nvme)
Disk /dev/nvme1n1: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 538MB 537MB fat32 boot, esp
2 538MB 1612MB 1074MB ext4
3 1612MB 256GB 254GB
我能看到的唯一奇怪的事情是启动标志应该打开/dev/nvme1n1p2
并且它确实打开了/dev/nvme1n1p1
。
这是输出sudo blkid /dev/nvme1n1p1
:/dev/nvme1n1p1: UUID="DC7B-C686" TYPE="vfat" PARTUUID="5ef73bc6-4a1d-45fe-84b4-5466799d68f9"
这是输出sudo blkid /dev/nvme1n1p2
:/dev/nvme1n1p2: UUID="14a2bceb-25dc-4da3-bbc8-fbe2f5d7ccdc" TYPE="ext4" PARTUUID="1c5014c8-63ed-453b-95e4-394b11bb0ed2"
关于如何正确安装 ESP(/boot/efi
)的任何想法,以便我可以升级我的操作系统。
提前致谢!
答案1
sudo mount /boot/efi
是不正确的。
尝试sudo mount /dev/nvme1n1p1 /boot/efi
另外,/boot 中是否有一个名为 efi 的空目录可以挂载?如果没有,请创建一个。
cd /boot && sudo mkdir efi/
(根据您的评论)