Causes of deepin
system efi
boot loss
Enter BOIS
to restore the settings to the default settings, the resulting linux
boot is lost, and windows
the boot is normal.
Handling method
- Use
deepin
the systemISO
in the boot disk creation tools makedeepin
the systemU
disk boot disk; U
Start with the disk, wait to enter the system installation interface, press theCtrl+Alt+F1
enter command and press the interface- Use
efibootmgr
commands to viewefi
startup information
╰─$ efibootmgr
BootCurrent: 0001
Timeout: 2 seconds
BootOrder: 0001,0000,0010,0011,0012,0013,0014,0018,0019,001A,001B,001C,001D,001E,001F,0020,0021
Boot0000* Windows Boot Manager
Boot0010 Setup
Boot0011 Boot Menu
Boot0012 Diagnostic Splash Screen
Boot0013 Lenovo Diagnostics
Boot0014 Regulatory Information
Boot0015 Startup Interrupt Menu
Boot0016 Rescue and Recovery
Boot0017 MEBx Hot Key
Boot0018* USB CD
Boot0019* USB FDD
Boot001A* NVMe0
Boot001B* NVMe1
Boot001C* ATA HDD0
Boot001D* ATA HDD1
Boot001E* USB HDD
Boot001F* PXE BOOT
Boot0020 Other CD
Boot0021 Other HDD
Boot0022* IDER BOOT CDROM
Boot0023* IDER BOOT Floppy
Boot0024* ATA HDD
Boot0025* ATAPI CD
- Find the system startup file, each system will
EFI
create its own startup file in the partition.
╰─$ sudo fdisk -l
Disk /dev/nvme0n1: 477 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: KXG6AZNV512G TOSHIBA
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: 47E51627-924E-456B-9A6B-EBF1164A2625
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 534527 532480 260M EFI System #EFI 分区
/dev/nvme0n1p2 534528 567295 32768 16M Microsoft reserved
/dev/nvme0n1p3 567296 102873087 102305792 48.8G Microsoft basic data
/dev/nvme0n1p4 102873088 312588287 209715200 100G Microsoft basic data
/dev/nvme0n1p5 998166528 1000214527 2048000 1000M Windows recovery environment
/dev/nvme0n1p6 312588288 404246527 91658240 43.7G Linux filesystem
/dev/nvme0n1p7 404246528 998164479 593917952 283.2G Linux filesystem
Partition table entries are not in disk order.
- Mount
EFI
partition
sudo mount /dev/nvme0n1p1 /mnt/ #挂载EFI分区到/mnt目录
- Enter the EFI partition
cd /mnt/EFI
- View
EFI
the contents of each directory
╰─$ ll *
Boot:
总用量 4.0M
-rwxr-xr-x 1 root root 1.2M Feb 28 2020 bootx64.efi
-rwxr-xr-x 1 root root 1.5M Feb 28 2020 bootx64.efi-1582906065.bak
-rwxr-xr-x 1 root root 117 Feb 28 2020 grub.cfg
-rwxr-xr-x 1 root root 1.1M Feb 28 2020 grubx64.efi
-rwxr-xr-x 1 root root 372K May 14 2015 LenovoBT.EFI
-rwxr-xr-x 1 root root 1.5K Jun 18 2012 License.txt
-rwxr-xr-x 1 root root 74 Aug 6 2012 ReadMe.txt
deepin:
总用量 3.4M
-rwxr-xr-x 1 root root 71K Aug 25 23:35 fbx64.efi
-rwxr-xr-x 1 root root 117 Aug 25 23:35 grub.cfg
-rwxr-xr-x 1 root root 1.1M Aug 25 23:35 grubx64.efi
-rwxr-xr-x 1 root root 1.2M Aug 25 23:35 mmx64.efi
-rwxr-xr-x 1 root root 1.2M Aug 25 23:35 shimx64.efi
Microsoft:
总用量 12K
drwxr-xr-x 40 root root 8.0K Apr 2 2019 Boot
drwxr-xr-x 2 root root 4.0K Apr 2 2019 Recovery
ubuntu:
总用量 1.1M
-rwxr-xr-x 1 root root 117 Feb 28 2020 grub.cfg
-rwxr-xr-x 1 root root 1.1M Feb 28 2020 grubx64.efi
- Add
Deepin
startup item
sudo efibootmgr -c -w -L "Deepin" -d /dev/nvme0n1p6 -p 1 -l \\EFI\\deepin\\grubx64.efi
Mine is Deepin
installed in/dev/nvme0n1p6
- Command to delete startup items
sudo efibootmgr -b 0001 -B #删除刚才添加的Deepin启动项,对应的编号为0001
Reference address Use efibootmgr to manage UEFI boot items and add missing boot items