Amber
deepin
2023-03-15 21:08 /dev/sdb3是/home分区
Reply Like 0 View the author
/dev/sdb3是/home分区

我在按照https://www.yuque.com/pzm9012/ct5ume/ihc99w手动重装GRUB时发现挂载efi分区时报错如图

我在按照https://www.yuque.com/pzm9012/ct5ume/ihc99w手动重装GRUB时发现挂载efi分区时报错如图
分区类型是fat32吗
用grub-customizer试一下
我用deepin live cd的boot-repair修复不好,用Ubuntu安装boot-repair就成功了
分区类型是fat32吗
是的,efi分区是fat32
用grub-customizer试一下
试过了,加载的时候软件就没反应了,卡死
我用deepin live cd的boot-repair修复不好,用Ubuntu安装boot-repair就成功了
哈哈,这样吗?好奇怪哦
在grub下修复好累,用live cd 启动,mount挂载系统盘硬盘,指定/boot目录,指定/boot/grub目录路径,然后sudo update-grub
Popular Events
More
如题,继昨天的修复引导,今天我在PE用Disk Genuis又重新搞了一个ESP分区,然后我就想用boot-repair修复一下引导,结果修复失败了,大家知道这是什么问题吗?
boot-repair-4ppa200 [20230315_0459]
============================= Boot Repair Summary ==============================
mount -t ntfs-3g -o remove_hiberfile /dev/sda2 /mnt/boot-sav/sda2
BTRFS detected on sda1
ls sda1:
mount /dev/sda1 /mnt/boot-sav/sda1/
MOUNTCODE=32
os-prober before @ subvol mount:
/dev/sdb2:Deepin 20.8 (20.8):Deepin:linux
mount -t ntfs-3g -o remove_hiberfile /dev/sda2 /mnt/boot-sav/sda2
BTRFS detected on sda1
ls sda1:
mount /dev/sda1 /mnt/boot-sav/sda1/
MOUNTCODE=32
os-prober before @ subvol mount:
/dev/sdb2:Deepin 20.8 (20.8):Deepin:linux
mount -t ntfs-3g -o remove_hiberfile /dev/sda2 /mnt/boot-sav/sda2
BTRFS detected on sda1
ls sda1:
mount /dev/sda1 /mnt/boot-sav/sda1/
MOUNTCODE=0
os-prober before @ subvol mount:
/dev/sdb2:Deepin 20.8 (20.8):Deepin:linux
Default settings: ______________________________________________________________
The default repair of the Boot-Repair utility would purge (in order to fix packages) and reinstall the grub2 of
sdb2 into the MBR of sdb.
Grub-efi would not be selected by default because legacy Windows detected.
Additional repair would be performed: unhide-bootmenu-10s win-legacy-basic-fix
Blockers in case of suggested repair: __________________________________________
GPT detected. Please create a BIOS-Boot partition (>1MB, unformatted filesystem, bios_grub flag). This can be performed via tools such as Gparted. Then try again.
Alternatively, you can retry after activating the [Separate /boot/efi partition:] option.
Confirmation request before suggested repair: __________________________________
LegacyWindows detected. The boot of your PC is in EFI mode. You may want to retry after changing it to BIOS-compatibility/CSM/Legacy mode.
Are you sure you want to continue anyway?
Final advice in case of suggested repair: ______________________________________
Please do not forget to make your BIOS boot on sdb (ATA ZHITAI SC001 Act) disk!
Please set your BIOS in Legacy mode in order to start your Deepin 20.8 (20.8), then type command [sudo update-grub] in order to add the Windows entry to your GRUB menu.
User settings: _________________________________________________________________
grub-probe:错误: cannot find a GRUB drive for /dev/sdc2. Check your device.map.
ntfs-3g-mount: mount failed: 设备或资源忙
grub-probe:错误: cannot find a GRUB drive for /dev/sdc2. Check your device.map.
grub-probe:错误: cannot find a GRUB drive for /dev/sdc2. Check your device.map.
ntfs-3g-mount: mount failed: 设备或资源忙
grub-probe:错误: cannot find a GRUB drive for /dev/sdc2. Check your device.map.
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/5.18.17-amd64-desktop-community-hwe/modules.dep.bin'
modprobe: FATAL: Module efivars not found in directory /lib/modules/5.18.17-amd64-desktop-community-hwe
The settings chosen by the user will reinstall the grub-efi of
sdb2,
using the following options: sdb5/boot/efi
Additional repair will be performed: unhide-bootmenu-10s win-legacy-basic-fix use-standard-efi-file
/boot/efi added in sdb2/fstab
Quantity of real Windows: 1
umount: /mnt/boot-sav/sdb5: not mounted.
Mount sdb5 on /mnt/boot-sav/sdb2/boot/efi
mount: /mnt/boot-sav/sdb2/boot/efi: wrong fs type, bad option, bad superblock on /dev/sdb5, missing codepage or helper program, or other error.
dmesg(1) may have more information after failed mount system call.
ls: 无法访问'/mnt/boot-sav/sdb2/boot/efi/efi': 没有那个文件或目录
No sdb2/boot/efi/efi/ ubuntu/mint folder
Unhide GRUB boot menu in sdb2/etc/default/grub
======================== Reinstall the grub-efi of sdb2 ========================
chroot /mnt/boot-sav/sdb2 grub-install --version
grub-install (GRUB) 2.04.25-18
chroot /mnt/boot-sav/sdb2 modprobe efivars
chroot /mnt/boot-sav/sdb2 efibootmgr -v before grub install
BootCurrent: 0009
Timeout: 0 seconds
BootOrder: 0002,000A,0009,000B,0000
Boot0000* deepin VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0002* Hard Drive BBS(HD,,0x0)..GO..NO........o.Z.E.E.K.S.Y.S. .S.S.D. .1.2.0.G....................A...........................>..Gd-.;.A..MQ..L.0.2.7.1.2.0.8.0.0.A.0.0.4.7. .9. . . . ........BO..NO........o.Z.H.I.T.A.I. .S.C.0.0.1. .A.c.t.i.v.e. .5.1.2.G.B. .S.S.D....................A...........................>..Gd-.;.A..MQ..L.T.Z.1.B.1.5.K.2.2.A.0.2.3.4.D.0.P.L. . ........BO
Boot0009* UEFI: Netac OnlyDisk PMAP HD(2,MBR,0x553dc479,0x767800,0x10000)/File(EFIBOOTBOOTX64.EFI)..BO
Boot000A* Unknown Device BBS(USB,,0x0)..GO..NO........i.N.e.t.a.c. .O.n.l.y.D.i.s.k. .P.M.A.P....................A.......................<..Gd-.;.A..MQ..L.N.e.t.a.c. .O.n.l.y.D.i.s.k. .P.M.A.P........BO
Boot000B* UEFI: ZHITAI SC001 Active 512GB SSD PciRoot(0x0)/Pci(0x11,0x0)/Sata(1,65535,0)/HD(5,GPT,e95a3dcd-8ae7-42c9-a239-b356562299e1,0x1c804000,0x96000)..BO
chroot /mnt/boot-sav/sdb2 uname -r
5.18.17-amd64-desktop-community-hwe
chroot /mnt/boot-sav/sdb2 grub-install --efi-directory=/boot/efi --target=x86_64-efi
get rootb uuid error: failed to get "rootb" uuid
Installing for x86_64-efi platform.
grub-install: error: /boot/efi doesn't look like an EFI partition.
Exit code: 1
Error: no grub*.efi generated for Deepin 20.8 (20.8). 请将此信息报告至 boot.repair@gmail.com
chroot /mnt/boot-sav/sdb2 /sbin/grub-install --efi-directory=/boot/efi --target=x86_64-efi --recheck
get rootb uuid error: failed to get "rootb" uuid
Installing for x86_64-efi platform.
/sbin/grub-install: error: /boot/efi doesn't look like an EFI partition.
chroot /mnt/boot-sav/sdb2 /sbin/grub-install --efi-directory=/boot/efi --target=x86_64-efi --no-nvram
get rootb uuid error: failed to get "rootb" uuid
Installing for x86_64-efi platform.
/sbin/grub-install: error: /boot/efi doesn't look like an EFI partition.
--no-nvram exit code: 1 请将此信息报告至 boot.repair@gmail.com
chroot /mnt/boot-sav/sdb2 efibootmgr -v after grub install
BootCurrent: 0009
Timeout: 0 seconds
BootOrder: 0002,000A,0009,000B,0000
Boot0000* deepin VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0002* Hard Drive BBS(HD,,0x0)..GO..NO........o.Z.E.E.K.S.Y.S. .S.S.D. .1.2.0.G....................A...........................>..Gd-.;.A..MQ..L.0.2.7.1.2.0.8.0.0.A.0.0.4.7. .9. . . . ........BO..NO........o.Z.H.I.T.A.I. .S.C.0.0.1. .A.c.t.i.v.e. .5.1.2.G.B. .S.S.D....................A...........................>..Gd-.;.A..MQ..L.T.Z.1.B.1.5.K.2.2.A.0.2.3.4.D.0.P.L. . ........BO
Boot0009* UEFI: Netac OnlyDisk PMAP HD(2,MBR,0x553dc479,0x767800,0x10000)/File(EFIBOOTBOOTX64.EFI)..BO
Boot000A* Unknown Device BBS(USB,,0x0)..GO..NO........i.N.e.t.a.c. .O.n.l.y.D.i.s.k. .P.M.A.P....................A.......................<..Gd-.;.A..MQ..L.N.e.t.a.c. .O.n.l.y.D.i.s.k. .P.M.A.P........BO
Boot000B* UEFI: ZHITAI SC001 Active 512GB SSD PciRoot(0x0)/Pci(0x11,0x0)/Sata(1,65535,0)/HD(5,GPT,e95a3dcd-8ae7-42c9-a239-b356562299e1,0x1c804000,0x96000)..BO
Warning: NVram was not modified.
chroot /mnt/boot-sav/sdb2 update-grub
get rootb uuid error: failed to get "rootb" uuid
Generating grub configuration file ...
Found theme: /boot/grub/themes/deepin-fallback/theme.txt
Found background image: /boot/grub/themes/deepin-fallback/background.jpg
Found linux image: /boot/vmlinuz-5.18.17-amd64-desktop-community-hwe
Found initrd image: /boot/initrd.img-5.18.17-amd64-desktop-community-hwe
grub-probe: error: cannot find a GRUB drive for /dev/sdc2. Check your device.map.
umount: /mnt/boot-sav/sdb2/boot/efi: not mounted.
ntfs-3g-mount: mount failed: 设备或资源忙
grub-probe:错误: cannot find a GRUB drive for /dev/sdc2. Check your device.map.
Unhide GRUB boot menu in sdb2/boot/grub/grub.cfg
修复过程中出现一个错误。
Error detected in grub_mkconfig. 请将此信息报告至 boot.repair@gmail.com
现在您可以重新启动计算机。
Please do not forget to make your UEFI firmware boot on the Deepin 20.8 (20.8) entry (sdb5 file) !
Please set your BIOS in Legacy mode in order to start your Deepin 20.8 (20.8), then type command [sudo update-grub] in order to add the Windows entry to your GRUB menu.
============================ Boot Info After Repair ============================
=> No boot loader is installed in the MBR of /dev/sda.
=> No boot loader is installed in the MBR of /dev/sdb.
=> Grub2 (v2.00) is installed in the MBR of /dev/sdc and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (,2)/grub. It also embeds following components:
sda1: __________________________________________________________________________
sda2: __________________________________________________________________________
ntfs-3g-mount: mount failed: 设备或资源忙
sdb1: __________________________________________________________________________
sdb2: __________________________________________________________________________
sdb3: __________________________________________________________________________
sdb4: __________________________________________________________________________
sdb5: __________________________________________________________________________
sdb6: __________________________________________________________________________
sdc1: __________________________________________________________________________
sdc2: __________________________________________________________________________
================================ 2 OS detected =================================
OS#1: Deepin 20.8 (20.8) on sdb2
OS#2: Windows 8 or 10 on sdb1
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: Advanced Micro Devices, Inc. [AMD/ATI] from Advanced Micro Devices, Inc. [AMD/ATI]
Live-session OS is Deepin 64-bit (Deepin 20.8, apricot, x86_64)
===================================== UEFI =====================================
BIOS/UEFI firmware: 4.6.5(4.6) from American Megatrends Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled - This system doesn't support Secure Boot.
BootCurrent: 0009
Timeout: 0 seconds
BootOrder: 0002,000A,0009,000B,0000
Boot0000* deepin VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0002* Hard Drive BBS(HD,,0x0)..GO..NO........o.Z.E.E.K.S.Y.S. .S.S.D. .1.2.0.G....................A...........................>..Gd-.;.A..MQ..L.0.2.7.1.2.0.8.0.0.A.0.0.4.7. .9. . . . ........BO..NO........o.Z.H.I.T.A.I. .S.C.0.0.1. .A.c.t.i.v.e. .5.1.2.G.B. .S.S.D....................A...........................>..Gd-.;.A..MQ..L.T.Z.1.B.1.5.K.2.2.A.0.2.3.4.D.0.P.L. . ........BO
Boot0009* UEFI: Netac OnlyDisk PMAP HD(2,MBR,0x553dc479,0x767800,0x10000)/File(\EFI\BOOT\BOOTX64.EFI)..BO
Boot000A* Unknown Device BBS(USB,,0x0)..GO..NO........i.N.e.t.a.c. .O.n.l.y.D.i.s.k. .P.M.A.P....................A.......................<..Gd-.;.A..MQ..L.N.e.t.a.c. .O.n.l.y.D.i.s.k. .P.M.A.P........BO
Boot000B* UEFI: ZHITAI SC001 Active 512GB SSD PciRoot(0x0)/Pci(0x11,0x0)/Sata(1,65535,0)/HD(5,GPT,e95a3dcd-8ae7-42c9-a239-b356562299e1,0x1c804000,0x96000)..BO
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sdb : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, has-win, 2048 sectors * 512 bytes
sda : is-GPT, no-BIOSboot, has-noESP, not-usb, not-mmc, no-os, no-wind, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
sdb2 : is-os, 64, apt-get, signed grub-efi , grub2, grub-install, grubenv-ok, update-grub, farbios
sdb5 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sdb3 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sdb1 : is-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sdb6 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda2 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
Partitions info (2/3): _________________________________________________________
sdb2 : isnotESP, fstab-has-bad-efi, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sdb5 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sdb3 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sdb1 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, no-bmgr, notwinboot
sdb6 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda2 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda1 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
sdb2 : not--sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sdb
sdb5 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sdb
sdb3 : maybesepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sdb
sdb1 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sdb
sdb6 : maybesepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sdb
sda2 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda1 : maybesepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
fdisk -l (filtered): ___________________________________________________________
Disk sdb: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk identifier: 0323426C-B3CC-4004-9510-E4FC0D807719
Start End Sectors Size Type
sdb1 4096 125833215 125829120 60G Microsoft basic data
sdb2 125833216 251666431 125833216 60G Microsoft basic data
sdb3 251666432 461385727 209719296 100G unknown
sdb4 461385728 478167039 16781312 8G unknown
sdb5 478167040 478781439 614400 300M EFI System
sdb6 478781440 1000212479 521431040 248.6G unknown
Disk sda: 111.79 GiB, 120034123776 bytes, 234441648 sectors
Disk identifier: 5CF823AA-2C3E-4C1D-8B56-C8BF9DC370CD
Start End Sectors Size Type
sda1 2048 41945714 41943667 20G unknown
sda2 41945720 234438655 192492936 91.8G Microsoft basic data
Disk sdc: 3.73 GiB, 4008706048 bytes, 7829504 sectors
Disk identifier: 0x553dc479
Boot Start End Sectors Size Id Type
sdc1 * 2048 7763967 7761920 3.7G 7 HPFS/NTFS/exFAT
sdc2 7763968 7829503 65536 32M ef EFI (FAT-12/16/32)
Disk dm-0: 2.24 GiB, 2405969920 bytes, 4699160 sectors
parted -lm (filtered): _________________________________________________________
sda:120GB:scsi:512:512:gpt:ATA ZEEKSYS SSD 120G:;
1:1049kB:21.5GB:21.5GB:btrfs:Basic data partition:;
2:21.5GB:120GB:98.6GB:ntfs:Basic data partition:msftdata;
sdb:512GB:scsi:512:512:gpt:ATA ZHITAI SC001 Act:;
1:2097kB:64.4GB:64.4GB:ntfs:Linux data partition:msftdata;
2:64.4GB:129GB:64.4GB:ext4:Basic data partition:msftdata;
3:129GB:236GB:107GB:ext4:Linux data partition:;
4:236GB:245GB:8592MB:linux-swap(v1):Linux swap partition:;
5:245GB:245GB:315MB:fat32:EFI system partition:boot, esp;
6:245GB:512GB:267GB:ext4:Basic data partition:;
sdc:4009MB:scsi:512:512:msdos:Netac OnlyDisk:;
1:1049kB:3975MB:3974MB:::boot;
2:3975MB:4009MB:33.6MB:fat16::esp;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 btrfs 452e073b-7b19-40b5-a6ab-e14f6d6ad276 f0933b06-8b51-4ff1-a2d9-1b3a03858c77 软件 Basic data partition
└─sda2 ntfs EA003E74003E4839 e1f2a238-8600-4a78-a3ae-e763601509e5 杂项 Basic data partition
sdb
├─sdb1 ntfs 35089ED617FCC57B 92869888-ebf6-4299-9b3b-4e4c9447bed6 Linux data partition
├─sdb2 ext4 09ab1521-a90a-481b-8a92-e8dc11564343 2637238a-8772-42c9-b543-17f96a3d01ab Basic data partition
├─sdb3 ext4 f1a3d4ad-ccec-4d90-bfcc-af6417d12925 c55b136a-8884-4cdd-8047-7e8571bf2757 Linux data partition
├─sdb4 swap 779dc17a-be43-411b-a1b7-55cebbe95658 154403cd-83c9-42c8-991d-0beacc664782 Linux swap partition
├─sdb5 vfat B374-BEE4 e95a3dcd-8ae7-42c9-a239-b356562299e1 EFI system partition
└─sdb6 ext4 1309fc4a-02f7-774e-9985-6b30c25493a8 f04360a5-99ff-11ed-80cd-d48eddf6bb74 Games Basic data partition
sdc
├─sdc1 exfat E46C-E437 553dc479-01 Ventoy
└─sdc2 iso9660 2022-12-18-20-55-09-00 DEEPIN LIVE CD FULL
Mount points (filtered): _______________________________________________________
/dev/mapper/ventoy 0 100% /run/live/medium
/dev/mapper/ventoy 0 100% /usr/lib/live/mount/medium
/dev/sda1 1.6G 91% /mnt/boot-sav/sda1
/dev/sdb1 35.8G 40% /mnt/boot-sav/sdb1
/dev/sdb2 39.8G 27% /mnt/boot-sav/sdb2
/dev/sdb3 82.4G 11% /mnt/boot-sav/sdb3
/dev/sdb6 67.2G 67% /mnt/boot-sav/sdb6
overlay 3.6G 6% /
Mount options (filtered): ______________________________________________________
/dev/mapper/ventoy iso9660 ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8
/dev/mapper/ventoy iso9660 ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8
/dev/sda1 btrfs rw,relatime,ssd,space_cache,subvolid=5,subvol=/
/dev/sdb1 fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sdb2 ext4 rw,relatime
/dev/sdb3 ext4 rw,relatime
/dev/sdb6 ext4 rw,relatime
====================== sdb2/boot/grub/grub.cfg (filtered) ======================
Deepin 20.8 GNU/Linux 09ab1521-a90a-481b-8a92-e8dc11564343
Deepin 20.8 GNU/Linux, with Linux 5.18.17-amd64-desktop-community-hwe 09ab1521-a90a-481b-8a92-e8dc11564343
END /etc/grub.d/30_os-prober
END /etc/grub.d/30_uefi-firmware
========================== sdb2/etc/fstab (filtered) ===========================
UUID=09ab1521-a90a-481b-8a92-e8dc11564343 / ext4 rw,relatime 0 1
UUID=f1a3d4ad-ccec-4d90-bfcc-af6417d12925 /home ext4 rw,relatime 0 2
UUID=779dc17a-be43-411b-a1b7-55cebbe95658 none swap defaults,pri=-2 0 0
UUID=B374-BEE4 /boot/efi vfat defaults 0 1
======================= sdb2/etc/default/grub (filtered) =======================
DEEPIN_GFXMODE_DETECT=1
GRUB_BACKGROUND=/boot/grub/themes/deepin-fallback/background.jpg
GRUB_CMDLINE_LINUX_DEFAULT="splash quiet "
GRUB_DEFAULT=0
GRUB_DISTRIBUTOR="
/usr/bin/lsb_release -d -s 2>/dev/null || echo UOS 20"GRUB_GFXMODE=1920x1080,1680x1050,1280x1024,1440x900,1280x960,1360x768,1280x800,1280x720,1024x768,auto
GRUB_THEME=/boot/grub/themes/deepin-fallback/theme.txt
GRUB_TIMEOUT=10
GRUB_DISABLE_OS_PROBER=false
==================== sdb2: Location of files loaded by Grub ====================
60.001956940 = 64.426610688 boot/grub/grub.cfg 1
91.885124207 = 98.660900864 boot/vmlinuz-5.18.17-amd64-desktop-community-hwe 2
90.822261810 = 97.519661056 boot/initrd.img-5.18.17-amd64-desktop-community-hwe 5
===================== sdb2: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 14425 Jul 19 2022 10_linux
-rwxr-xr-x 1 root root 5611 Oct 13 06:07 11_deepin_ab_recovery
-rwxr-xr-x 1 root root 13726 Jul 19 2022 20_linux_xen
-rwxr-xr-x 1 root root 12273 Jul 19 2022 30_os-prober
-rwxr-xr-x 1 root root 1549 Jul 19 2022 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Jul 19 2022 40_custom
-rwxr-xr-x 1 root root 216 Jul 19 2022 41_custom
==================== sdb2/etc/grub.d/11_deepin_ab_recovery =====================
#!/bin/sh
quiet_boot="0"
. "$pkgdatadir/grub-mkconfig_lib"
export TEXTDOMAIN=grub
export TEXTDOMAINDIR="${datarootdir}/locale"
CLASS="--class gnu-linux --class gnu --class os"
if [ -z "$DEEPIN_AB_RECOVERY_BACKUP_UUID" ]; then
exit 0
fi
GRUB_DEVICE=$DEEPIN_AB_RECOVERY_BACKUP_DEVICE
GRUB_DEVICE_UUID=$DEEPIN_AB_RECOVERY_BACKUP_UUID
boot_device_id=$GRUB_DEVICE_UUID
LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}
linux_entry ()
{
title="$1"
version="$2"
args="$3"
if [ -z "$boot_device_id" ]; then
boot_device_id="(grub_get_device_id "{GRUB_DEVICE}")"
fi
echo "menuentry '(echo "title" | grub_quote)' {CLASS} \$menuentry_id_option 'gnulinux-simple-boot_device_id' {" | sed "s/^/$submenu_indentation/"
if [ "$quick_boot" = 1 ]; then
echo " recordfail" | sed "s/^/$submenu_indentation/"
fi
Use ELILO's generic "efifb" when it's known to be available.
FIXME: We need an interface to select vesafb in case efifb can't be used.
arch=
uname -mif [ x"$arch" = x"mips64" ]; then
need_boot=1
fi
if [ "xGRUB_GFXPAYLOAD_LINUX" = x ] && [ "arch" != "aarch64" ] ; then
echo " load_video" | sed "s/^/$submenu_indentation/"
else
if [ "xGRUB_GFXPAYLOAD_LINUX" != xtext ] && [ "arch" != "aarch64" ] ; then
echo " load_video" | sed "s/^/$submenu_indentation/"
fi
fi
if ([ "xGRUB_GFXPAYLOAD_LINUX" != x ] || [ "gfxpayload_dynamic" = 1 ]); then
echo " gfxmode $linux_gfx_mode" | sed "s/^/$submenu_indentation/"
fi
echo " insmod gzio" | sed "s/^/$submenu_indentation/"
echo " if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi" | sed "s/^/$submenu_indentation/"
if [ x$dirname = x/ ]; then
if [ -z "${prepare_root_cache}" ]; then
prepare_root_cache="(prepare_grub_to_access_device {GRUB_DEVICE} | grub_add_tab)"
fi
printf '%s\n' "{prepare_root_cache}" | sed "s/^/submenu_indentation/"
else
if [ -z "${prepare_boot_cache}" ]; then
prepare_boot_cache="(prepare_grub_to_access_device {GRUB_DEVICE_BOOT} | grub_add_tab)"
fi
printf '%s\n' "{prepare_boot_cache}" | sed "s/^/submenu_indentation/"
fi
if [ x"$quiet_boot" = x0 ]; then
message="(gettext_printf "Loading Linux %s ..." {version})"
sed "s/^/$submenu_indentation/" << EOF
echo '(echo "message" | grub_quote)'
EOF
fi
if test -d /sys/firmware/efi && test -e "${linux}.efi.signed"; then
sed "s/^/$submenu_indentation/" << EOF
linux {rel_dirname}/{basename}.efi.signed root={linux_root_device_thisversion} ro {args}
EOF
else
sed "s/^/$submenu_indentation/" << EOF
linux {rel_dirname}/{basename} root={linux_root_device_thisversion} ro {args}
EOF
fi
if test -n "${initrd}" ; then
TRANSLATORS: ramdisk isn't identifier. Should be translated.
if [ x"$quiet_boot" = x0 ]; then
message="$(gettext_printf "Loading initial ramdisk ...")"
sed "s/^/$submenu_indentation/" << EOF
echo '(echo "message" | grub_quote)'
EOF
fi
sed "s/^/$submenu_indentation/" << EOF
initrd {rel_dirname}/{initrd}
EOF
fi
if [ x"$dtbo" = x1 ]; then
if [ x"$quiet_boot" = x0 ]; then
message="$(gettext_printf "Loading device tree image ...")"
sed "s/^/$submenu_indentation/" << EOF
echo '(echo "message" | grub_quote)'
EOF
fi
sed "s/^/$submenu_indentation/" << EOF
devicetree ${dtbo_rel_dirname}/dtbo.img
EOF
fi
if [ x"$need_boot" = x1 ]; then
echo " boot" |sed "s/^/$submenu_indentation/"
fi
sed "s/^/$submenu_indentation/" << EOF
}
EOF
}
machine=
uname -mcase "x$machine" in
xi?86 | xx86_64)
list=
for i in /boot/vmlinuz-* /vmlinuz-* /boot/kernel-* ; do
if grub_file_is_not_garbage "i" ; then list="list $i" ; fi
done ;;
)
list=
for i in /boot/vmlinuz- /boot/vmlinux-* /vmlinuz-* /vmlinux-* /boot/kernel-* ; do
if grub_file_is_not_garbage "i" ; then list="list $i" ; fi
done ;;
esac
disable locale if arch is mips or arm
case "x$machine" in
xmips*)
export LC_ALL=C
;;
xaarch*)
export LC_ALL=C
;;
esac
prepare_boot_cache=
prepare_root_cache=
title_correction_code=
linux="$DEEPIN_AB_RECOVERY_LINUX"
initrd="$DEEPIN_AB_RECOVERY_INITRD"
basename=
basename $linuxdirname=
dirname $linuxboot_dirname=
dirname $dirnameversion=
echo $basename | sed -e "s,^[^0-9]*-,,g"alt_version=
echo $version | sed -e "s,\.old$,,g"linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
config=
for i in "{boot_dirname}/config-{version}" "{boot_dirname}/config-{alt_version}" "/etc/kernels/kernel-config-${version}" ; do
if test -e "${i}" ; then
config="${i}"
break
fi
done
initramfs=
if test -n "${config}" ; then
initramfs=
grep CONFIG_INITRAMFS_SOURCE= "${config}" | cut -f2 -d= | tr -d \"fi
if test -n "${initrd}" ; then
gettext_printf "Found initrd image: %s\n" "{dirname}/{initrd}" >&2
elif test -z "${initramfs}" ; then
"UUID=" and "ZFS=" magic is parsed by initrd or initramfs. Since there's
no initrd or builtin initramfs, it can't work here.
linux_root_device_thisversion=${GRUB_DEVICE}
fi
dtbo_dirname=
dirname $dirnamerel_dirname=
make_system_path_relative_to_its_root $dirnamedtbo_rel_dirname=
make_system_path_relative_to_its_root $dtbo_dirnamebackup_time=(date '+%Y/%-m/%-d %T' -d @DEEPIN_AB_RECOVERY_BACKUP_TIME)
menu_entry=(printf "(gettext -d deepin-ab-recovery 'Roll back to %s (%s)')" "DEEPIN_AB_RECOVERY_OS_DESC" "backup_time")
if test -e "$dtbo_dirname/dtbo.img"; then
dtbo=1
fi
linux_entry "menu_entry" "{version}" "{GRUB_CMDLINE_LINUX} {GRUB_CMDLINE_LINUX_DEFAULT}"
====================== sdc2/boot/grub/grub.cfg (filtered) ======================
Deepin Live CD with kernel 5.18.17 desktop
Deepin Live CD with kernel 5.18.17 desktop (Safe graphics)
==================== sdc2: Location of files loaded by Grub ====================