Advertisement
Guest User

Untitled

a guest
Sep 30th, 2022
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.12 KB | None | 0 0
  1. boot-repair-4ppa200 [20220928_1739]
  2.  
  3. ============================= Boot Repair Summary ==============================
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10. Recommended repair: ____________________________________________________________
  11.  
  12. The default repair of the Boot-Repair utility will reinstall the grub-efi of
  13. sda2,
  14. using the following options: sda1/boot/efi
  15. Additional repair will be performed: unhide-bootmenu-10s use-standard-efi-file
  16.  
  17.  
  18. Mount sda1 on /mnt/boot-sav/sda2/boot/efi
  19.  
  20. Unhide GRUB boot menu in sda2/etc/default/grub
  21.  
  22. ======================== Reinstall the grub-efi of sda2 ========================
  23.  
  24. chroot /mnt/boot-sav/sda2 grub-install --version
  25. grub-install (GRUB) 2.06-2ubuntu7
  26. chroot /mnt/boot-sav/sda2 modprobe efivars
  27.  
  28. chroot /mnt/boot-sav/sda2 efibootmgr -v before grub install
  29. BootCurrent: 0003
  30. Timeout: 1 seconds
  31. BootOrder: 0003,0004
  32. Boot0003* UEFI: TOSHIBA TransMemory 1.00 PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(2,GPT,9240a165-d190-4ab6-8a12-46dc207b42ee,0x71e8a0,0x2130)..BO
  33. Boot0004* UEFI: ST2000DM001-1ER164 HD(1,GPT,6e36ceb7-098c-4cc8-b560-6553039b3ed5,0x800,0x100000)/File(EFIbootbootx64.efi)..BO
  34.  
  35. chroot /mnt/boot-sav/sda2 uname -r
  36. 5.15.0-43-generic
  37.  
  38. chroot /mnt/boot-sav/sda2 grub-install --efi-directory=/boot/efi --target=x86_64-efi
  39. Installing for x86_64-efi platform.
  40. grub-install: warning: EFI variables cannot be set on this system.
  41. grub-install: warning: You will have to complete the GRUB setup manually.
  42. Installation finished. No error reported.
  43. df /dev/sda1
  44. mv /mnt/boot-sav/sda2/boot/efi/EFI/Boot/bootx64.efi /mnt/boot-sav/sda2/boot/efi/EFI/Boot/bkpbootx64.efi
  45. cp /mnt/boot-sav/sda2/boot/efi/efi/ubuntu/grubx64.efi /mnt/boot-sav/sda2/boot/efi/EFI/Boot/bootx64.efi
  46.  
  47. chroot /mnt/boot-sav/sda2 grub-install --efi-directory=/boot/efi --target=x86_64-efi
  48. Installing for x86_64-efi platform.
  49. grub-install: warning: EFI variables cannot be set on this system.
  50. grub-install: warning: You will have to complete the GRUB setup manually.
  51. Installation finished. No error reported.
  52.  
  53. chroot /mnt/boot-sav/sda2 efibootmgr -v after grub install
  54. BootCurrent: 0003
  55. Timeout: 1 seconds
  56. BootOrder: 0003,0004
  57. Boot0003* UEFI: TOSHIBA TransMemory 1.00 PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(2,GPT,9240a165-d190-4ab6-8a12-46dc207b42ee,0x71e8a0,0x2130)..BO
  58. Boot0004* UEFI: ST2000DM001-1ER164 HD(1,GPT,6e36ceb7-098c-4cc8-b560-6553039b3ed5,0x800,0x100000)/File(EFIbootbootx64.efi)..BO
  59. Error: NVram is locked (Ubuntu not found in efibootmgr). Please report this message to [email protected]
  60.  
  61. chroot /mnt/boot-sav/sda2 update-grub
  62. Sourcing file `/etc/default/grub'
  63. Sourcing file `/etc/default/grub.d/init-select.cfg'
  64. Generating grub configuration file ...
  65. Found linux image: /boot/vmlinuz-5.15.0-43-generic
  66. Found initrd image: /boot/initrd.img-5.15.0-43-generic
  67. Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
  68. Warning: os-prober will be executed to detect other bootable partitions.
  69. Its output will be used to detect bootable binaries on them and create new boot entries.
  70.  
  71. Unhide GRUB boot menu in sda1/boot/grub/grub.cfg
  72.  
  73. Unhide GRUB boot menu in sda2/boot/grub/grub.cfg
  74.  
  75. An error occurred during the repair.
  76. Error: NVram is locked (Ubuntu not found in efibootmgr). Please report this message to [email protected]
  77.  
  78. Locked-NVram detected.
  79.  
  80.  
  81. ============================ Boot Info After Repair ============================
  82.  
  83. => No boot loader is installed in the MBR of /dev/sda.
  84.  
  85. sda1: __________________________________________________________________________
  86.  
  87. File system: vfat
  88. Boot sector type: FAT32
  89. Boot sector info: No errors found in the Boot Parameter Block.
  90. Operating System:
  91. Boot files: /boot/grub/grub.cfg /efi/BOOT/bkpbootx64.efi
  92. /efi/BOOT/bootx64.efi /efi/BOOT/fbx64.efi
  93. /efi/BOOT/mmx64.efi /efi/ubuntu/grubx64.efi
  94. /efi/ubuntu/mmx64.efi /efi/ubuntu/shimx64.efi
  95. /efi/ubuntu/grub.cfg
  96.  
  97. sda2: __________________________________________________________________________
  98.  
  99. File system: ext4
  100. Boot sector type: -
  101. Boot sector info:
  102. Operating System: Ubuntu 22.04.1 LTS
  103. Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
  104.  
  105. sdb: ___________________________________________________________________________
  106.  
  107. File system: iso9660
  108. Boot sector type: Grub2 (v1.99-2.00)
  109. Boot sector info: Grub2 (v1.99-2.00) is installed in the boot sector of
  110. sdb and looks at sector 0 of the same hard drive for
  111. core.img, but core.img can not be found at this
  112. location.
  113. Mounting failed: mount: /mnt/BootInfo/FD/sdb: /dev/sdb already mounted or mount point busy.
  114.  
  115.  
  116. ================================ 1 OS detected =================================
  117.  
  118. OS#1: Ubuntu 22.04.1 LTS on sda2
  119.  
  120. ================================ Host/Hardware =================================
  121.  
  122. CPU architecture: 64-bit
  123. Video: GM107 [GeForce GTX 745] EFI VGA from NVIDIA Corporation
  124. Live-session OS is Ubuntu 64-bit (Ubuntu 22.04.1 LTS, jammy, x86_64)
  125.  
  126. ===================================== UEFI =====================================
  127.  
  128. BIOS/UEFI firmware: 2.9.1(2.9) from Dell Inc.
  129. The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
  130. SecureBoot disabled - SecureBoot disabled - Please report this message to [email protected].
  131. BootCurrent: 0003
  132. Timeout: 1 seconds
  133. BootOrder: 0003,0004
  134. Boot0003* UEFI: TOSHIBA TransMemory 1.00 PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(2,GPT,9240a165-d190-4ab6-8a12-46dc207b42ee,0x71e8a0,0x2130)..BO
  135. Boot0004* UEFI: ST2000DM001-1ER164 HD(1,GPT,6e36ceb7-098c-4cc8-b560-6553039b3ed5,0x800,0x100000)/File(EFI\boot\bootx64.efi)..BO
  136.  
  137. 728124f6ec8e22fbdbe7034812c81b95 sda1/BOOT/bkpbootx64.efi
  138. 728124f6ec8e22fbdbe7034812c81b95 sda1/BOOT/bootx64.efi
  139. c152ec201c37b6e97bbc2207e49d1271 sda1/BOOT/fbx64.efi
  140. fdafb5eece6caeccb788c946a28e6872 sda1/BOOT/mmx64.efi
  141. f62c28d9b477b6a1a7b1c991b2b6637d sda1/ubuntu/grubx64.efi
  142. fdafb5eece6caeccb788c946a28e6872 sda1/ubuntu/mmx64.efi
  143. 728124f6ec8e22fbdbe7034812c81b95 sda1/ubuntu/shimx64.efi
  144.  
  145. ============================= Drive/Partition Info =============================
  146.  
  147. Disks info: ____________________________________________________________________
  148.  
  149. sda : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, no-wind, 2048 sectors * 512 bytes
  150.  
  151. Partitions info (1/3): _________________________________________________________
  152.  
  153. sda1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
  154. sda2 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, farbios
  155.  
  156. Partitions info (2/3): _________________________________________________________
  157.  
  158. sda1 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
  159. sda2 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
  160.  
  161. Partitions info (3/3): _________________________________________________________
  162.  
  163. sda1 : not--sepboot, no-kernel, part-has-no-fstab, not-sep-usr, emptyusr, part-has-no-fstab, no--grub.d, sda
  164. sda2 : not--sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sda
  165.  
  166. fdisk -l (filtered): ___________________________________________________________
  167.  
  168. Disk sda: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
  169. Disk identifier: 8FC54452-237A-4FD6-AEB2-F60798384C2E
  170. Start End Sectors Size Type
  171. sda1 2048 1050623 1048576 512M EFI System
  172. sda2 1050624 3907028991 3905978368 1.8T Linux filesystem
  173. Disk sdb: 14.45 GiB, 15512174592 bytes, 30297216 sectors
  174. Disk identifier: 9240A165-D190-4AB6-8A10-46DC207B42EE
  175. Start End Sectors Size Type
  176. sdb1 64 7465119 7465056 3.6G Microsoft basic data
  177. sdb2 7465120 7473615 8496 4.1M EFI System
  178. sdb3 7473616 7474215 600 300K Microsoft basic data
  179. sdb4 7475200 30297152 22821953 10.9G Linux filesystem
  180.  
  181. parted -lm (filtered): _________________________________________________________
  182.  
  183. sda:2000GB:scsi:512:4096:gpt:ATA ST2000DM001-1ER1:;
  184. 1:1049kB:538MB:537MB:fat32:EFI System Partition:boot, esp;
  185. 2:538MB:2000GB:2000GB:ext4::;
  186. sdb:15.5GB:scsi:512:512:gpt:TOSHIBA TransMemory:;
  187. 1:32.8kB:3822MB:3822MB::ISO9660:hidden, msftdata;
  188. 2:3822MB:3826MB:4350kB::Appended2:boot, esp;
  189. 3:3826MB:3827MB:307kB::Gap1:hidden, msftdata;
  190. 4:3827MB:15.5GB:11.7GB:ext4::;
  191.  
  192. blkid (filtered): ______________________________________________________________
  193.  
  194. NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
  195. sda
  196. ├─sda1 vfat 2D07-0F0A 6e36ceb7-098c-4cc8-b560-6553039b3ed5 EFI System Partition
  197. └─sda2 ext4 13a13321-ecea-4856-9bef-ea5ab90ebc89 551cac8b-81d5-4d99-bca9-e7a71ffcbf46
  198. sdb iso9660 2022-08-10-16-21-45-00 Ubuntu 22.04.1 LTS amd64
  199. ├─sdb1 iso9660 2022-08-10-16-21-45-00 9240a165-d190-4ab6-8a11-46dc207b42ee Ubuntu 22.04.1 LTS amd64 ISO9660
  200. ├─sdb2 vfat 8D6C-A9F8 9240a165-d190-4ab6-8a12-46dc207b42ee ESP Appended2
  201. ├─sdb3 9240a165-d190-4ab6-8a13-46dc207b42ee Gap1
  202. └─sdb4 ext4 b00b3a99-bb71-4986-a92a-64949b27e2a4 5e6110a6-8851-1d4f-bcdf-7c9439f513f1 writable
  203. sdc
  204. sdd
  205. sde
  206. sdf
  207.  
  208. Mount points (filtered): _______________________________________________________
  209.  
  210. Avail Use% Mounted on
  211. /dev/disk/by-label/writable[/install-logs-2022-09-28.3/crash] 10G 0% /var/crash
  212. /dev/disk/by-label/writable[/install-logs-2022-09-28.3/log] 10G 0% /var/log
  213. /dev/sda1 498M 3% /mnt/boot-sav/sda1
  214. /dev/sda2 1.7T 1% /mnt/boot-sav/sda2
  215. /dev/sdb1 0 100% /cdrom
  216.  
  217. Mount options (filtered): ______________________________________________________
  218.  
  219. /dev/disk/by-label/writable[/install-logs-2022-09-28.3/crash] ext4 rw,relatime
  220. /dev/disk/by-label/writable[/install-logs-2022-09-28.3/log] ext4 rw,relatime
  221. /dev/sda1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
  222. /dev/sda2 ext4 rw,relatime
  223. /dev/sdb1 iso9660 ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8
  224.  
  225. ====================== sda1/boot/grub/grub.cfg (filtered) ======================
  226.  
  227. Ubuntu 22.04.1 LTS (22.04) (on sda2) 325f0e88-f20a-4350-9df0-ee8c57ecc455
  228. ### END /etc/grub.d/30_os-prober ###
  229. ### END /etc/grub.d/30_uefi-firmware ###
  230.  
  231. ===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================
  232.  
  233. search.fs_uuid 13a13321-ecea-4856-9bef-ea5ab90ebc89 root hd0,gpt2
  234. set prefix=($root)'/boot/grub'
  235. configfile $prefix/grub.cfg
  236.  
  237. ==================== sda1: Location of files loaded by Grub ====================
  238.  
  239. GiB - GB File Fragment(s)
  240. ?? = ?? boot/grub/grub.cfg 1
  241.  
  242. ====================== sda2/boot/grub/grub.cfg (filtered) ======================
  243.  
  244. Ubuntu 13a13321-ecea-4856-9bef-ea5ab90ebc89
  245. Ubuntu, with Linux 5.15.0-43-generic 13a13321-ecea-4856-9bef-ea5ab90ebc89
  246. ### END /etc/grub.d/30_os-prober ###
  247. ### END /etc/grub.d/30_uefi-firmware ###
  248.  
  249. ========================== sda2/etc/fstab (filtered) ===========================
  250.  
  251. # <file system> <mount point> <type> <options> <dump> <pass>
  252. # / was on /dev/sda2 during installation
  253. UUID=13a13321-ecea-4856-9bef-ea5ab90ebc89 / ext4 errors=remount-ro 0 1
  254. # /boot/efi was on /dev/sda1 during installation
  255. UUID=2D07-0F0A /boot/efi vfat umask=0077 0 1
  256. /swapfile none swap sw 0 0
  257.  
  258. ======================= sda2/etc/default/grub (filtered) =======================
  259.  
  260. GRUB_DEFAULT=0
  261. GRUB_TIMEOUT_STYLE=menu
  262. GRUB_TIMEOUT=10
  263. GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
  264. GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
  265. GRUB_CMDLINE_LINUX=""
  266. GRUB_DISABLE_OS_PROBER=false
  267.  
  268. ==================== sda2: Location of files loaded by Grub ====================
  269.  
  270. GiB - GB File Fragment(s)
  271. ?? = ?? boot/grub/grub.cfg 1
  272. 5.206615448 = 5.590560768 boot/vmlinuz 1
  273. 5.206615448 = 5.590560768 boot/vmlinuz-5.15.0-43-generic 1
  274. 8.741523743 = 9.386139648 boot/initrd.img 1
  275. 8.741523743 = 9.386139648 boot/initrd.img-5.15.0-43-generic 1
  276. 8.741523743 = 9.386139648 boot/initrd.img.old 1
  277.  
  278. ===================== sda2: ls -l /etc/grub.d/ (filtered) ======================
  279.  
  280. -rwxr-xr-x 1 root root 18683 Apr 15 21:50 10_linux
  281. -rwxr-xr-x 1 root root 43031 Apr 15 21:50 10_linux_zfs
  282. -rwxr-xr-x 1 root root 14180 Apr 15 21:50 20_linux_xen
  283. -rwxr-xr-x 1 root root 13369 Apr 15 21:50 30_os-prober
  284. -rwxr-xr-x 1 root root 1372 Apr 15 21:50 30_uefi-firmware
  285. -rwxr-xr-x 1 root root 700 Feb 19 2022 35_fwupd
  286. -rwxr-xr-x 1 root root 214 Apr 15 21:50 40_custom
  287. -rwxr-xr-x 1 root root 215 Apr 15 21:50 41_custom
  288.  
  289. =========================== sda2/etc/grub.d/35_fwupd ===========================
  290.  
  291. #! /bin/sh
  292. # SPDX-License-Identifier: LGPL-2.1+
  293. set -e
  294. [ -d ${pkgdatadir:?} ]
  295. # shellcheck source=/dev/null
  296. . "$pkgdatadir/grub-mkconfig_lib"
  297. if [ -f /var/lib/fwupd/uefi_capsule.conf ] &&
  298. ls /sys/firmware/efi/efivars/fwupd-*-0abba7dc-e516-4167-bbf5-4d9d1c739416 1>/dev/null 2>&1; then
  299. . /var/lib/fwupd/uefi_capsule.conf
  300. if [ "${EFI_PATH}" != "" ] && [ "${ESP}" != "" ]; then
  301. echo "Adding Linux Firmware Updater entry" >&2
  302. cat << EOF
  303. menuentry 'Linux Firmware Updater' \$menuentry_id_option 'fwupd' {
  304. EOF
  305. ${grub_probe:?}
  306. prepare_grub_to_access_device '`${grub_probe} --target=device \${ESP}` | sed -e "s/^/\t/"'
  307. cat << EOF
  308. chainloader ${EFI_PATH}
  309. }
  310. EOF
  311. fi
  312. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement