Advertisement
Guest User

Boot Repair 2021-07-06

a guest
Jul 6th, 2021
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.06 KB | None | 0 0
  1. boot-repair-4ppa125 [20210706_1757]
  2.  
  3. ============================== Boot Info Summary ===============================
  4.  
  5. => Windows 7/8/2012 is installed in the MBR of /dev/nvme0n1.
  6. => Windows 7/8/2012 is installed in the MBR of /dev/sda.
  7. => No boot loader is installed in the MBR of /dev/sdc.
  8.  
  9. nvme0n1p1: _____________________________________________________________________
  10.  
  11. File system:
  12. Boot sector type: -
  13. Boot sector info:
  14.  
  15. nvme0n1p2: _____________________________________________________________________
  16.  
  17. File system: ntfs
  18. Boot sector type: Windows 8/2012: NTFS
  19. Boot sector info: No errors found in the Boot Parameter Block.
  20. Operating System: Windows 8 or 10
  21. Boot files: /Windows/System32/winload.exe
  22.  
  23. nvme0n1p3: _____________________________________________________________________
  24.  
  25. File system: vfat
  26. Boot sector type: FAT32
  27. Boot sector info: According to the info in the boot sector, nvme0n1p3
  28. starts at sector 1819303936. But according to the info
  29. from fdisk, nvme0n1p3 starts at sector 1709330432.
  30. Operating System:
  31. Boot files: /efi/Boot/bootx64.efi /efi/Microsoft/Boot/bootmgfw.efi
  32. /efi/Microsoft/Boot/bootmgr.efi
  33. /efi/Microsoft/Boot/memtest.efi
  34.  
  35. nvme0n1p4: _____________________________________________________________________
  36.  
  37. File system: ext4
  38. Boot sector type: -
  39. Boot sector info:
  40. Operating System: Ubuntu 18.04.5 LTS
  41. Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
  42.  
  43. sda1: __________________________________________________________________________
  44.  
  45. File system:
  46. Boot sector type: -
  47. Boot sector info:
  48.  
  49. sda2: __________________________________________________________________________
  50.  
  51. File system: ntfs
  52. Boot sector type: Windows 8/2012: NTFS
  53. Boot sector info: No errors found in the Boot Parameter Block.
  54. Operating System:
  55. Boot files:
  56.  
  57. sdc1: __________________________________________________________________________
  58.  
  59. File system: vfat
  60. Boot sector type: -
  61. Boot sector info: No errors found in the Boot Parameter Block.
  62. Operating System:
  63. Boot files:
  64.  
  65. sdb: ___________________________________________________________________________
  66.  
  67. File system: iso9660
  68. Boot sector type: Unknown
  69. Boot sector info:
  70. Operating System:
  71. Boot files: /boot/grub/grub.cfg
  72.  
  73.  
  74. ================================ 2 OS detected =================================
  75.  
  76. OS#1: Ubuntu 18.04.5 LTS on nvme0n1p4
  77. OS#2: Windows 8 or 10 on nvme0n1p2
  78.  
  79. ============================ Architecture/Host Info ============================
  80.  
  81. CPU architecture: 64-bit
  82. Live-session OS is Ubuntu 64-bit (Boot-Repair-Disk 64bit 20200604, bionic, x86_64)
  83.  
  84.  
  85. ===================================== UEFI =====================================
  86.  
  87. BIOS is EFI-compatible, and is setup in EFI-mode for this live-session.
  88. SecureBoot disabled.
  89.  
  90. efibootmgr -v
  91. BootCurrent: 0005
  92. Timeout: 1 seconds
  93. BootOrder: 0005,0003,0001,0004
  94. Boot0000* Windows Boot Manager HD(3,GPT,45e23545-9a49-4bd6-bae9-0676c0a78d76,0x6c706000,0x100800)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
  95. Boot0001* Windows Boot Manager HD(3,GPT,d1740fbe-eb76-425b-88dd-ed822456d905,0x65e25000,0x100800)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)..BO
  96. Boot0003* UEFI: Generic-Multiple Reader 1.11, Partition 1 PciRoot(0x0)/Pci(0x1,0x2)/Pci(0x0,0x0)/USB(10,0)/USB(0,0)/HD(1,MBR,0x0,0x2000,0x39d2000)..BO
  97. Boot0004* UEFI: USB Flash Memory6.50 PciRoot(0x0)/Pci(0x1,0x2)/Pci(0x0,0x0)/USB(7,0)/CDROM(1,0x3c4,0x4d00)..BO
  98. Boot0005* UEFI: USB Flash Memory6.50, Partition 2 PciRoot(0x0)/Pci(0x1,0x2)/Pci(0x0,0x0)/USB(7,0)/HD(2,MBR,0x2c534026,0x3c4,0x1340)..BO
  99.  
  100. 21d11860807dda64c7ffa7b5aae65044 nvme0n1p3/Boot/bootx64.efi
  101. 21d11860807dda64c7ffa7b5aae65044 nvme0n1p3/Microsoft/Boot/bootmgfw.efi
  102. 8419000ecdb98d3e8e891bbd8f1e10e9 nvme0n1p3/Microsoft/Boot/bootmgr.efi
  103.  
  104.  
  105. ============================= Drive/Partition Info =============================
  106.  
  107. Disks info: ____________________________________________________________________
  108.  
  109. nvme0n1 : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, 2048 sectors * 512 bytes
  110. sda : is-GPT, no-BIOSboot, has-noESP, not-usb, not-mmc, no-os, 34 sectors * 512 bytes
  111. sdc : notGPT, no-BIOSboot, has-noESP, usb-disk, not-mmc, no-os, 2048 sectors * 512 bytes
  112.  
  113. Partitions info (1/3): _________________________________________________________
  114.  
  115. nvme0n1p2 : is-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
  116. nvme0n1p3 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
  117. nvme0n1p4 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, farbios
  118. sda2 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
  119. sdc1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
  120.  
  121. Partitions info (2/3): _________________________________________________________
  122.  
  123. nvme0n1p2 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, no-bmgr, notwinboot
  124. nvme0n1p3 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
  125. nvme0n1p4 : isnotESP, fstab-has-bad-efi, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
  126. sda2 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
  127. sdc1 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
  128.  
  129. Partitions info (3/3): _________________________________________________________
  130.  
  131. nvme0n1p2 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, nvme0n1
  132. nvme0n1p3 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, nvme0n1
  133. nvme0n1p4 : not-sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, customized, nvme0n1
  134. sda2 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
  135. sdc1 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sdc
  136.  
  137. fdisk -l (filtered): ___________________________________________________________
  138.  
  139. Disk nvme0n1: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
  140. Disk identifier: 6774AEB4-EE68-4941-9411-1520AE430536
  141. Start End Sectors Size Type
  142. nvme0n1p1 2048 34815 32768 16M Microsoft reserved
  143. nvme0n1p2 34816 1709330431 1709295616 815.1G Microsoft basic data
  144. nvme0n1p3 1709330432 1710381055 1050624 513M EFI System
  145. nvme0n1p4 1710381056 1953523711 243142656 116G Linux filesystem
  146. Disk sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
  147. Disk identifier: AF7743F4-83B0-4F22-B196-7DEFCD3D3B08
  148. Start End Sectors Size Type
  149. sda1 34 32767 32734 16M Microsoft reserved
  150. sda2 32768 976771071 976738304 465.8G Microsoft basic data
  151. Disk sdb: 953.5 MiB, 999816704 bytes, 1952767 sectors
  152. Disk identifier: 0x2c534026
  153. Boot Start End Sectors Size Id Type
  154. sdb1 * 0 1802239 1802240 880M 0 Empty
  155. sdb2 964 5891 4928 2.4M ef EFI (FAT-12/16/32)
  156. Disk sdc: 28.9 GiB, 31046238208 bytes, 60637184 sectors
  157. Disk identifier: 0x00000000
  158. Boot Start End Sectors Size Id Type
  159. sdc1 8192 60637183 60628992 28.9G c W95 FAT32 (LBA)
  160. Disk zram0: 499.4 MiB, 523644928 bytes, 127843 sectors
  161. Disk zram1: 499.4 MiB, 523644928 bytes, 127843 sectors
  162. Disk zram2: 499.4 MiB, 523644928 bytes, 127843 sectors
  163. Disk zram3: 499.4 MiB, 523644928 bytes, 127843 sectors
  164. Disk zram4: 499.4 MiB, 523644928 bytes, 127843 sectors
  165. Disk zram5: 499.4 MiB, 523644928 bytes, 127843 sectors
  166. Disk zram6: 499.4 MiB, 523644928 bytes, 127843 sectors
  167. Disk zram7: 499.4 MiB, 523644928 bytes, 127843 sectors
  168. Disk zram8: 499.4 MiB, 523644928 bytes, 127843 sectors
  169. Disk zram9: 499.4 MiB, 523644928 bytes, 127843 sectors
  170. Disk zram10: 499.4 MiB, 523644928 bytes, 127843 sectors
  171. Disk zram11: 499.4 MiB, 523644928 bytes, 127843 sectors
  172. Disk zram12: 499.4 MiB, 523644928 bytes, 127843 sectors
  173. Disk zram13: 499.4 MiB, 523644928 bytes, 127843 sectors
  174. Disk zram14: 499.4 MiB, 523644928 bytes, 127843 sectors
  175. Disk zram15: 499.4 MiB, 523644928 bytes, 127843 sectors
  176.  
  177. parted -lm (filtered): _________________________________________________________
  178.  
  179. sda:500GB:scsi:512:512:gpt:ATA WDC WD5000AAKX-2:;
  180. 1:17.4kB:16.8MB:16.8MB::Microsoft reserved partition:msftres;
  181. 2:16.8MB:500GB:500GB:ntfs:Basic data partition:msftdata;
  182. sdb:1000MB:scsi:512:512:msdos: USB Flash Memory:;
  183. 2:494kB:3017kB:2523kB:::esp;
  184. sdc:31.0GB:scsi:512:512:msdos:Generic- Multiple Reader:;
  185. 1:4194kB:31.0GB:31.0GB:fat32::lba;
  186. nvme0n1:1000GB:nvme:512:512:gpt:WDC WDS100T2B0C-00PXH0:;
  187. 1:1049kB:17.8MB:16.8MB::Microsoft reserved partition:msftres;
  188. 2:17.8MB:875GB:875GB:ntfs:Basic data partition:msftdata;
  189. 3:875GB:876GB:538MB:fat32::boot, esp;
  190. 4:876GB:1000GB:124GB:ext4::;
  191. zram5:524MB:unknown:4096:4096:loop:Unknown:;
  192. 1:0.00B:524MB:524MB:linux-swap(v1)::;
  193. zram11:524MB:unknown:4096:4096:loop:Unknown:;
  194. 1:0.00B:524MB:524MB:linux-swap(v1)::;
  195. zram3:524MB:unknown:4096:4096:loop:Unknown:;
  196. 1:0.00B:524MB:524MB:linux-swap(v1)::;
  197. zram1:524MB:unknown:4096:4096:loop:Unknown:;
  198. 1:0.00B:524MB:524MB:linux-swap(v1)::;
  199. zram8:524MB:unknown:4096:4096:loop:Unknown:;
  200. 1:0.00B:524MB:524MB:linux-swap(v1)::;
  201. zram14:524MB:unknown:4096:4096:loop:Unknown:;
  202. 1:0.00B:524MB:524MB:linux-swap(v1)::;
  203. zram6:524MB:unknown:4096:4096:loop:Unknown:;
  204. 1:0.00B:524MB:524MB:linux-swap(v1)::;
  205. zram12:524MB:unknown:4096:4096:loop:Unknown:;
  206. 1:0.00B:524MB:524MB:linux-swap(v1)::;
  207. zram4:524MB:unknown:4096:4096:loop:Unknown:;
  208. 1:0.00B:524MB:524MB:linux-swap(v1)::;
  209. zram10:524MB:unknown:4096:4096:loop:Unknown:;
  210. 1:0.00B:524MB:524MB:linux-swap(v1)::;
  211. zram2:524MB:unknown:4096:4096:loop:Unknown:;
  212. 1:0.00B:524MB:524MB:linux-swap(v1)::;
  213. zram0:524MB:unknown:4096:4096:loop:Unknown:;
  214. 1:0.00B:524MB:524MB:linux-swap(v1)::;
  215. zram9:524MB:unknown:4096:4096:loop:Unknown:;
  216. 1:0.00B:524MB:524MB:linux-swap(v1)::;
  217. zram15:524MB:unknown:4096:4096:loop:Unknown:;
  218. 1:0.00B:524MB:524MB:linux-swap(v1)::;
  219. zram7:524MB:unknown:4096:4096:loop:Unknown:;
  220. 1:0.00B:524MB:524MB:linux-swap(v1)::;
  221. zram13:524MB:unknown:4096:4096:loop:Unknown:;
  222. 1:0.00B:524MB:524MB:linux-swap(v1)::;
  223.  
  224. blkid (filtered): ______________________________________________________________
  225.  
  226. NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
  227. sda
  228. ├─sda1 ae88bc71-d0df-452c-b245-ac6d56a50af0 Microsoft reserved partition
  229. └─sda2 ntfs 66CA1E04CA1DD163 57d131d8-69c3-4cfd-9dc9-a7cfd9d21df2 Disk1 Basic data partition
  230. sdb iso9660 2020-06-13-00-42-55-00 Boot-Repair-Disk 64bit
  231. ├─sdb1 iso9660 2020-06-13-00-42-55-00 2c534026-01 Boot-Repair-Disk 64bit
  232. └─sdb2 vfat D055-8513 2c534026-02 Boot-Repair-Disk 64bit
  233. sdc
  234. └─sdc1 vfat 594C-0000 H4N_SD
  235. zram0
  236. zram1
  237. zram2
  238. zram3
  239. zram4
  240. zram5
  241. zram6
  242. zram7
  243. zram8
  244. zram9
  245. zram10
  246. zram11
  247. zram12
  248. zram13
  249. zram14
  250. zram15
  251. nvme0n1
  252. ├─nvme0n1p1 e946479e-7c56-4de7-8a08-a0caf9c1e0de Microsoft reserved partition
  253. ├─nvme0n1p2 ntfs EE88909F8890683B 928e3d97-0603-4071-b828-c0c703a88ca9 Basic data partition
  254. ├─nvme0n1p3 vfat B5E5-9ADC d1740fbe-eb76-425b-88dd-ed822456d905
  255. └─nvme0n1p4 ext4 da96356d-143e-439b-85a1-d082b31663f7 94911eea-191b-44b7-97a4-7c6366e2b7ec
  256.  
  257. df (filtered): _________________________________________________________________
  258.  
  259. Avail Use% Mounted on
  260. nvme0n1p2 783.2G 4% /mnt/boot-sav/nvme0n1p2
  261. nvme0n1p3 485.3M 5% /mnt/boot-sav/nvme0n1p3
  262. nvme0n1p4 59.1G 43% /mnt/boot-sav/nvme0n1p4
  263. sda2 85.8G 82% /mnt/boot-sav/sda2
  264. sdb 0 100% /cdrom
  265. sdc1 25.2G 13% /media/lubuntu/H4N_SD
  266.  
  267. Mount options: __________________________________________________________________
  268.  
  269. nvme0n1p2 ro,relatime,user_id=0,group_id=0,allow_other,blksize=4096
  270. nvme0n1p3 rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
  271. nvme0n1p4 rw,relatime
  272. sda2 rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
  273. sdb ro,noatime,nojoliet,check=s,map=n,blocksize=2048
  274. sdc1 rw,nosuid,nodev,relatime,uid=999,gid=999,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro
  275.  
  276. =================== nvme0n1p4/boot/grub/grub.cfg (filtered) ====================
  277.  
  278. Windows Boot Manager (on nvme0n1p2) osprober-efi-C4E8-7ED6
  279. ### END /etc/grub.d/30_os-prober_proxy ###
  280. Ubuntu da96356d-143e-439b-85a1-d082b31663f7
  281. System setup uefi-firmware
  282.  
  283. ======================== nvme0n1p4/etc/fstab (filtered) ========================
  284.  
  285. # <file system> <mount point> <type> <options> <dump> <pass>
  286. # / was on /dev/sda4 during installation
  287. UUID=da96356d-143e-439b-85a1-d082b31663f7 / ext4 errors=remount-ro 0 1
  288. # /boot/efi was on /dev/nvme0n1p2 during installation
  289. UUID=C4E8-7ED6 /boot/efi vfat umask=0077 0 1
  290. /swapfile none swap sw 0 0
  291. /swapfile swap swap defaults 0 0
  292.  
  293. ==================== nvme0n1p4/etc/default/grub (filtered) =====================
  294.  
  295. GRUB_DEFAULT="Windows Boot Manager (on /dev/nvme0n1p2)"
  296. GRUB_TIMEOUT_STYLE="hidden"
  297. GRUB_TIMEOUT=7
  298. GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
  299. GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
  300. GRUB_CMDLINE_LINUX=""
  301. GRUB_GFXMODE="1920x1080"
  302. export GRUB_COLOR_NORMAL="white/black"
  303. export GRUB_COLOR_HIGHLIGHT="cyan/black"
  304. ================= nvme0n1p4: Location of files loaded by Grub ==================
  305.  
  306. GiB - GB File Fragment(s)
  307. 854.641609192 = 917.664440320 boot/grub/grub.cfg 2
  308. 824.018608093 = 884.783243264 boot/vmlinuz-4.15.0-144-generic 1
  309. 843.182613373 = 905.360437248 boot/vmlinuz-4.15.0-147-generic 2
  310. 843.182613373 = 905.360437248 vmlinuz 2
  311. 824.018608093 = 884.783243264 vmlinuz.old 1
  312. 824.674777985 = 885.487800320 boot/initrd.img-4.15.0-144-generic 5
  313. 838.448238373 = 900.276940800 boot/initrd.img-4.15.0-147-generic 5
  314. 838.448238373 = 900.276940800 initrd.img 5
  315. 824.674777985 = 885.487800320 initrd.img.old 5
  316.  
  317. =================== nvme0n1p4: ls -l /etc/grub.d/ (filtered) ===================
  318.  
  319. -rwxr-xr-x 1 root root 698 May 25 06:36 10_linux_proxy
  320. -rwxr-xr-x 1 root root 202 May 25 06:36 30_os-prober_proxy
  321. -rwxr-xr-x 1 root root 698 May 25 06:36 31_linux_proxy
  322. -rwxr-xr-x 1 root root 11298 Jul 17 2018 32_linux_xen
  323. -rwxr-xr-x 1 root root 1992 Jan 28 2016 33_memtest86+
  324. -rwxr-xr-x 1 root root 202 May 25 06:36 34_os-prober_proxy
  325. -rwxr-xr-x 1 root root 1418 Jul 17 2018 35_uefi-firmware
  326. -rwxr-xr-x 1 root root 214 Jul 17 2018 40_custom
  327. -rwxr-xr-x 1 root root 216 Jul 17 2018 41_custom
  328. drwxr-xr-x 4 root root 4096 Feb 21 2020 backup
  329. drwxr-xr-x 2 root root 4096 Feb 21 2020 bin
  330. drwxr-xr-x 2 root root 4096 May 25 06:36 proxifiedScripts
  331.  
  332. ===================== nvme0n1p4/etc/grub.d/31_linux_proxy ======================
  333.  
  334. #!/bin/sh
  335. #THIS IS A GRUB PROXY SCRIPT
  336. '/etc/grub.d/proxifiedScripts/linux' | /etc/grub.d/bin/grubcfg_proxy "+'Ubuntu'~a3bb88a482e0bb61a68738a4d44603cf~
  337. -*
  338. -#text
  339. -'SUBMENU' as 'Advanced options for Ubuntu'{-'Advanced options for Ubuntu'/*, -'Advanced options for Ubuntu'/'Ubuntu, with Linux 4.15.0-143-generic'~d02ad9c4a43e34af165812af9fa7c6d9~, -'Advanced options for Ubuntu'/'Ubuntu, with Linux 4.15.0-143-generic (recovery mode)'~ae03109f35db40bff234504fdf997dd7~, -'Advanced options for Ubuntu'/'Ubuntu, with Linux 4.15.0-142-generic'~75a159db76232e4d8ee58c151febc056~, -'Advanced options for Ubuntu'/'Ubuntu, with Linux 4.15.0-142-generic (recovery mode)'~a63b22964d6064744c1edeab051076dd~}
  340. "
  341.  
  342. ====================== nvme0n1p4/etc/grub.d/32_linux_xen =======================
  343.  
  344. #! /bin/sh
  345. set -e
  346. # grub-mkconfig helper script.
  347. # Copyright (C) 2006,2007,2008,2009,2010 Free Software Foundation, Inc.
  348. #
  349. # GRUB is free software: you can redistribute it and/or modify
  350. # it under the terms of the GNU General Public License as published by
  351. # the Free Software Foundation, either version 3 of the License, or
  352. # (at your option) any later version.
  353. #
  354. # GRUB is distributed in the hope that it will be useful,
  355. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  356. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  357. # GNU General Public License for more details.
  358. #
  359. # You should have received a copy of the GNU General Public License
  360. # along with GRUB. If not, see <http://www.gnu.org/licenses/>.
  361. prefix="/usr"
  362. exec_prefix="/usr"
  363. datarootdir="/usr/share"
  364. . "$pkgdatadir/grub-mkconfig_lib"
  365. export TEXTDOMAIN=grub
  366. export TEXTDOMAINDIR="${datarootdir}/locale"
  367. CLASS="--class gnu-linux --class gnu --class os --class xen"
  368. SUPPORTED_INITS="sysvinit:/lib/sysvinit/init systemd:/lib/systemd/systemd upstart:/sbin/upstart"
  369. if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
  370. OS=GNU/Linux
  371. else
  372. OS="${GRUB_DISTRIBUTOR} GNU/Linux"
  373. CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
  374. fi
  375. # loop-AES arranges things so that /dev/loop/X can be our root device, but
  376. # the initrds that Linux uses don't like that.
  377. case ${GRUB_DEVICE} in
  378. /dev/loop/*|/dev/loop[0-9])
  379. GRUB_DEVICE=`losetup ${GRUB_DEVICE} | sed -e "s/^[^(]*(\([^)]\+\)).*/\1/"`
  380. # We can't cope with devices loop-mounted from files here.
  381. case ${GRUB_DEVICE} in
  382. /dev/*) ;;
  383. *) exit 0 ;;
  384. esac
  385. ;;
  386. esac
  387. # btrfs may reside on multiple devices. We cannot pass them as value of root= parameter
  388. # and mounting btrfs requires user space scanning, so force UUID in this case.
  389. if [ "x${GRUB_DEVICE_UUID}" = "x" ] || [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ] \
  390. || ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" \
  391. || ( test -e "${GRUB_DEVICE}" && uses_abstraction "${GRUB_DEVICE}" lvm ); then
  392. LINUX_ROOT_DEVICE=${GRUB_DEVICE}
  393. else
  394. LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}
  395. fi
  396. # Allow overriding GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT.
  397. if [ "${GRUB_CMDLINE_LINUX_XEN_REPLACE}" ]; then
  398. GRUB_CMDLINE_LINUX="${GRUB_CMDLINE_LINUX_XEN_REPLACE}"
  399. fi
  400. if [ "${GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT}" ]; then
  401. GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT}"
  402. fi
  403. case x"$GRUB_FS" in
  404. xbtrfs)
  405. rootsubvol="`make_system_path_relative_to_its_root /`"
  406. rootsubvol="${rootsubvol#/}"
  407. if [ "x${rootsubvol}" != x ]; then
  408. GRUB_CMDLINE_LINUX="rootflags=subvol=${rootsubvol} ${GRUB_CMDLINE_LINUX}"
  409. fi;;
  410. xzfs)
  411. rpool=`${grub_probe} --device ${GRUB_DEVICE} --target=fs_label 2>/dev/null || true`
  412. bootfs="`make_system_path_relative_to_its_root / | sed -e "s,@$,,"`"
  413. LINUX_ROOT_DEVICE="ZFS=${rpool}${bootfs}"
  414. ;;
  415. esac
  416. title_correction_code=
  417. linux_entry ()
  418. {
  419. os="$1"
  420. version="$2"
  421. xen_version="$3"
  422. type="$4"
  423. args="$5"
  424. xen_args="$6"
  425. if [ -z "$boot_device_id" ]; then
  426. boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
  427. fi
  428. if [ x$type != xsimple ] ; then
  429. if [ x$type = xrecovery ] ; then
  430. title="$(gettext_printf "%s, with Xen %s and Linux %s (%s)" "${os}" "${xen_version}" "${version}" "$(gettext "${GRUB_RECOVERY_TITLE}")")"
  431. elif [ "${type#init-}" != "$type" ] ; then
  432. title="$(gettext_printf "%s, with Xen %s and Linux %s (%s)" "${os}" "${xen_version}" "${version}" "${type#init-}")"
  433. else
  434. title="$(gettext_printf "%s, with Xen %s and Linux %s" "${os}" "${xen_version}" "${version}")"
  435. fi
  436. replacement_title="$(echo "Advanced options for ${OS}" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g')"
  437. if [ x"Xen ${xen_version}>$title" = x"$GRUB_ACTUAL_DEFAULT" ]; then
  438. quoted="$(echo "$GRUB_ACTUAL_DEFAULT" | grub_quote)"
  439. title_correction_code="${title_correction_code}if [ \"x\$default\" = '$quoted' ]; then default='$(echo "$replacement_title" | grub_quote)'; fi;"
  440. grub_warn "$(gettext_printf "Please don't use old title \`%s' for GRUB_DEFAULT, use \`%s' (for versions before 2.00) or \`%s' (for 2.00 or later)" "$GRUB_ACTUAL_DEFAULT" "$replacement_title" "gnulinux-advanced-$boot_device_id>gnulinux-$version-$type-$boot_device_id")"
  441. fi
  442. echo "menuentry '$(echo "$title" | grub_quote)' ${CLASS} \$menuentry_id_option 'xen-gnulinux-$version-$type-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
  443. else
  444. title="$(gettext_printf "%s, with Xen hypervisor" "${os}")"
  445. echo "menuentry '$(echo "$title" | grub_quote)' ${CLASS} \$menuentry_id_option 'xen-gnulinux-simple-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
  446. fi
  447. if [ x$type != xrecovery ] ; then
  448. save_default_entry | grub_add_tab | sed "s/^/$submenu_indentation/"
  449. fi
  450. if [ -z "${prepare_boot_cache}" ]; then
  451. prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | grub_add_tab)"
  452. fi
  453. printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/"
  454. xmessage="$(gettext_printf "Loading Xen %s ..." ${xen_version})"
  455. lmessage="$(gettext_printf "Loading Linux %s ..." ${version})"
  456. sed "s/^/$submenu_indentation/" << EOF
  457. echo '$(echo "$xmessage" | grub_quote)'
  458. if [ "\$grub_platform" = "pc" -o "\$grub_platform" = "" ]; then
  459. xen_rm_opts=
  460. else
  461. xen_rm_opts="no-real-mode edd=off"
  462. fi
  463. multiboot ${rel_xen_dirname}/${xen_basename} placeholder ${xen_args} \${xen_rm_opts}
  464. echo '$(echo "$lmessage" | grub_quote)'
  465. module ${rel_dirname}/${basename} placeholder root=${linux_root_device_thisversion} ro ${args}
  466. EOF
  467. if test -n "${initrd}" ; then
  468. # TRANSLATORS: ramdisk isn't identifier. Should be translated.
  469. message="$(gettext_printf "Loading initial ramdisk ...")"
  470. sed "s/^/$submenu_indentation/" << EOF
  471. echo '$(echo "$message" | grub_quote)'
  472. module --nounzip ${rel_dirname}/${initrd}
  473. EOF
  474. fi
  475. sed "s/^/$submenu_indentation/" << EOF
  476. }
  477. EOF
  478. }
  479. linux_list=
  480. for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* /boot/kernel-*; do
  481. if grub_file_is_not_garbage "$i"; then
  482. basename=$(basename $i)
  483. version=$(echo $basename | sed -e "s,^[^0-9]*-,,g")
  484. dirname=$(dirname $i)
  485. config=
  486. for j in "${dirname}/config-${version}" "${dirname}/config-${alt_version}" "/etc/kernels/kernel-config-${version}" ; do
  487. if test -e "${j}" ; then
  488. config="${j}"
  489. break
  490. fi
  491. done
  492. if (grep -qx "CONFIG_XEN_DOM0=y" "${config}" 2> /dev/null || grep -qx "CONFIG_XEN_PRIVILEGED_GUEST=y" "${config}" 2> /dev/null); then linux_list="$linux_list $i" ; fi
  493. fi
  494. done
  495. if [ "x${linux_list}" = "x" ] ; then
  496. exit 0
  497. fi
  498. file_is_not_sym () {
  499. case "$1" in
  500. */xen-syms-*)
  501. return 1;;
  502. *)
  503. return 0;;
  504. esac
  505. }
  506. xen_list=
  507. for i in /boot/xen*; do
  508. if grub_file_is_not_garbage "$i" && file_is_not_sym "$i" ; then xen_list="$xen_list $i" ; fi
  509. done
  510. prepare_boot_cache=
  511. boot_device_id=
  512. title_correction_code=
  513. machine=`uname -m`
  514. case "$machine" in
  515. i?86) GENKERNEL_ARCH="x86" ;;
  516. mips|mips64) GENKERNEL_ARCH="mips" ;;
  517. mipsel|mips64el) GENKERNEL_ARCH="mipsel" ;;
  518. arm*) GENKERNEL_ARCH="arm" ;;
  519. *) GENKERNEL_ARCH="$machine" ;;
  520. esac
  521. # Extra indentation to add to menu entries in a submenu. We're not in a submenu
  522. # yet, so it's empty. In a submenu it will be equal to '\t' (one tab).
  523. submenu_indentation=""
  524. is_top_level=true
  525. while [ "x${xen_list}" != "x" ] ; do
  526. list="${linux_list}"
  527. current_xen=`version_find_latest $xen_list`
  528. xen_basename=`basename ${current_xen}`
  529. xen_dirname=`dirname ${current_xen}`
  530. rel_xen_dirname=`make_system_path_relative_to_its_root $xen_dirname`
  531. xen_version=`echo $xen_basename | sed -e "s,.gz$,,g;s,^xen-,,g"`
  532. if [ -z "$boot_device_id" ]; then
  533. boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
  534. fi
  535. if [ "x$is_top_level" != xtrue ]; then
  536. echo " submenu '$(gettext_printf "Xen hypervisor, version %s" "${xen_version}" | grub_quote)' \$menuentry_id_option 'xen-hypervisor-$xen_version-$boot_device_id' {"
  537. fi
  538. while [ "x$list" != "x" ] ; do
  539. linux=`version_find_latest $list`
  540. gettext_printf "Found linux image: %s\n" "$linux" >&2
  541. basename=`basename $linux`
  542. dirname=`dirname $linux`
  543. rel_dirname=`make_system_path_relative_to_its_root $dirname`
  544. version=`echo $basename | sed -e "s,^[^0-9]*-,,g"`
  545. alt_version=`echo $version | sed -e "s,\.old$,,g"`
  546. linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
  547. initrd=
  548. for i in "initrd.img-${version}" "initrd-${version}.img" "initrd-${version}.gz" \
  549. "initrd-${version}" "initramfs-${version}.img" \
  550. "initrd.img-${alt_version}" "initrd-${alt_version}.img" \
  551. "initrd-${alt_version}" "initramfs-${alt_version}.img" \
  552. "initramfs-genkernel-${version}" \
  553. "initramfs-genkernel-${alt_version}" \
  554. "initramfs-genkernel-${GENKERNEL_ARCH}-${version}" \
  555. "initramfs-genkernel-${GENKERNEL_ARCH}-${alt_version}" ; do
  556. if test -e "${dirname}/${i}" ; then
  557. initrd="$i"
  558. break
  559. fi
  560. done
  561. if test -n "${initrd}" ; then
  562. gettext_printf "Found initrd image: %s\n" "${dirname}/${initrd}" >&2
  563. else
  564. # "UUID=" magic is parsed by initrds. Since there's no initrd, it can't work here.
  565. linux_root_device_thisversion=${GRUB_DEVICE}
  566. fi
  567. if [ "x$is_top_level" = xtrue ] && [ "x${GRUB_DISABLE_SUBMENU}" != xy ]; then
  568. linux_entry "${OS}" "${version}" "${xen_version}" simple \
  569. "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}"
  570. submenu_indentation="$grub_tab$grub_tab"
  571.  
  572. if [ -z "$boot_device_id" ]; then
  573. boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
  574. fi
  575. # TRANSLATORS: %s is replaced with an OS name
  576. echo "submenu '$(gettext_printf "Advanced options for %s (with Xen hypervisor)" "${OS}" | grub_quote)' \$menuentry_id_option 'gnulinux-advanced-$boot_device_id' {"
  577. echo " submenu '$(gettext_printf "Xen hypervisor, version %s" "${xen_version}" | grub_quote)' \$menuentry_id_option 'xen-hypervisor-$xen_version-$boot_device_id' {"
  578. is_top_level=false
  579. fi
  580. linux_entry "${OS}" "${version}" "${xen_version}" advanced \
  581. "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}"
  582. for supported_init in ${SUPPORTED_INITS}; do
  583. init_path="${supported_init#*:}"
  584. if [ -x "${init_path}" ] && [ "$(readlink -f /sbin/init)" != "$(readlink -f "${init_path}")" ]; then
  585. linux_entry "${OS}" "${version}" "${xen_version}" "init-${supported_init%%:*}" \
  586. "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT} init=${init_path}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}"
  587. fi
  588. done
  589. if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then
  590. linux_entry "${OS}" "${version}" "${xen_version}" recovery \
  591. "single ${GRUB_CMDLINE_LINUX}" "${GRUB_CMDLINE_XEN}"
  592. fi
  593. list=`echo $list | tr ' ' '\n' | fgrep -vx "$linux" | tr '\n' ' '`
  594. done
  595. if [ x"$is_top_level" != xtrue ]; then
  596. echo ' }'
  597. fi
  598. xen_list=`echo $xen_list | tr ' ' '\n' | fgrep -vx "$current_xen" | tr '\n' ' '`
  599. done
  600. # If at least one kernel was found, then we need to
  601. # add a closing '}' for the submenu command.
  602. if [ x"$is_top_level" != xtrue ]; then
  603. echo '}'
  604. fi
  605. echo "$title_correction_code"
  606.  
  607. =================== nvme0n1p4/etc/grub.d/34_os-prober_proxy ====================
  608.  
  609. #!/bin/sh
  610. #THIS IS A GRUB PROXY SCRIPT
  611. '/etc/grub.d/proxifiedScripts/os-prober' | /etc/grub.d/bin/grubcfg_proxy "-'Windows Boot Manager (on /dev/nvme0n1p2)'~08bd613906cf5f38f6f7cf6f4e212aa6~
  612. +*
  613. +#text
  614. "
  615.  
  616. ==================== nvme0n1p4/etc/grub.d/35_uefi-firmware =====================
  617.  
  618. #! /bin/sh
  619. set -e
  620. # grub-mkconfig helper script.
  621. # Copyright (C) 2012 Free Software Foundation, Inc.
  622. #
  623. # GRUB is free software: you can redistribute it and/or modify
  624. # it under the terms of the GNU General Public License as published by
  625. # the Free Software Foundation, either version 3 of the License, or
  626. # (at your option) any later version.
  627. #
  628. # GRUB is distributed in the hope that it will be useful,
  629. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  630. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  631. # GNU General Public License for more details.
  632. #
  633. # You should have received a copy of the GNU General Public License
  634. # along with GRUB. If not, see <http://www.gnu.org/licenses/>.
  635. prefix="/usr"
  636. exec_prefix="/usr"
  637. datarootdir="/usr/share"
  638. export TEXTDOMAIN=grub
  639. export TEXTDOMAINDIR="${datarootdir}/locale"
  640. . "${datarootdir}/grub/grub-mkconfig_lib"
  641. efi_vars_dir=/sys/firmware/efi/vars
  642. EFI_GLOBAL_VARIABLE=8be4df61-93ca-11d2-aa0d-00e098032b8c
  643. OsIndications="$efi_vars_dir/OsIndicationsSupported-$EFI_GLOBAL_VARIABLE/data"
  644. if [ -e "$OsIndications" ] && \
  645. [ "$(( $(printf 0x%x \'"$(cat $OsIndications | cut -b1)") & 1 ))" = 1 ]; then
  646. LABEL="System setup"
  647. gettext_printf "Adding boot menu entry for EFI firmware configuration\n" >&2
  648. onstr="$(gettext_printf "(on %s)" "${DEVICE}")"
  649. cat << EOF
  650. menuentry '$LABEL' \$menuentry_id_option 'uefi-firmware' {
  651. fwsetup
  652. }
  653. EOF
  654. fi
  655.  
  656. ====================== sdb/boot/grub/grub.cfg (filtered) =======================
  657.  
  658. Boot-Repair-Disk session
  659. Boot-Repair-Disk session (failsafe)
  660.  
  661. ==================== sdb: Location of files loaded by Grub =====================
  662.  
  663. GiB - GB File Fragment(s)
  664. ?? = ?? boot/grub/grub.cfg 1
  665.  
  666.  
  667. ======================== Unknown MBRs/Boot Sectors/etc =========================
  668.  
  669. Unknown BootLoader on sdb
  670.  
  671. 00000000 33 ed 90 90 90 90 90 90 90 90 90 90 90 90 90 90 |3...............|
  672. 00000010 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 |................|
  673. 00000020 33 ed fa 8e d5 bc 00 7c fb fc 66 31 db 66 31 c9 |3......|..f1.f1.|
  674. 00000030 66 53 66 51 06 57 8e dd 8e c5 52 be 00 7c bf 00 |fSfQ.W....R..|..|
  675. 00000040 06 b9 00 01 f3 a5 ea 4b 06 00 00 52 b4 41 bb aa |.......K...R.A..|
  676. 00000050 55 31 c9 30 f6 f9 cd 13 72 16 81 fb 55 aa 75 10 |U1.0....r...U.u.|
  677. 00000060 83 e1 01 74 0b 66 c7 06 f3 06 b4 42 eb 15 eb 02 |...t.f.....B....|
  678. 00000070 31 c9 5a 51 b4 08 cd 13 5b 0f b6 c6 40 50 83 e1 |1.ZQ....[...@P..|
  679. 00000080 3f 51 f7 e1 53 52 50 bb 00 7c b9 04 00 66 a1 b0 |?Q..SRP..|...f..|
  680. 00000090 07 e8 44 00 0f 82 80 00 66 40 80 c7 02 e2 f2 66 |[email protected]|
  681. 000000a0 81 3e 40 7c fb c0 78 70 75 09 fa bc ec 7b ea 44 |.>@|..xpu....{.D|
  682. 000000b0 7c 00 00 e8 83 00 69 73 6f 6c 69 6e 75 78 2e 62 ||.....isolinux.b|
  683. 000000c0 69 6e 20 6d 69 73 73 69 6e 67 20 6f 72 20 63 6f |in missing or co|
  684. 000000d0 72 72 75 70 74 2e 0d 0a 66 60 66 31 d2 66 03 06 |rrupt...f`f1.f..|
  685. 000000e0 f8 7b 66 13 16 fc 7b 66 52 66 50 06 53 6a 01 6a |.{f...{fRfP.Sj.j|
  686. 000000f0 10 89 e6 66 f7 36 e8 7b c0 e4 06 88 e1 88 c5 92 |...f.6.{........|
  687. 00000100 f6 36 ee 7b 88 c6 08 e1 41 b8 01 02 8a 16 f2 7b |.6.{....A......{|
  688. 00000110 cd 13 8d 64 10 66 61 c3 e8 1e 00 4f 70 65 72 61 |...d.fa....Opera|
  689. 00000120 74 69 6e 67 20 73 79 73 74 65 6d 20 6c 6f 61 64 |ting system load|
  690. 00000130 20 65 72 72 6f 72 2e 0d 0a 5e ac b4 0e 8a 3e 62 | error...^....>b|
  691. 00000140 04 b3 07 cd 10 3c 0a 75 f1 cd 18 f4 eb fd 00 00 |.....<.u........|
  692. 00000150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
  693. *
  694. 000001b0 04 17 00 00 00 00 00 00 26 40 53 2c 00 00 80 00 |........&@S,....|
  695. 000001c0 01 00 00 3f e0 6f 00 00 00 00 00 80 1b 00 00 fe |...?.o..........|
  696. 000001d0 ff ff ef fe ff ff c4 03 00 00 40 13 00 00 00 00 |..........@.....|
  697. 000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
  698. 000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
  699. 00000200
  700.  
  701.  
  702. =============================== StdErr Messages ================================
  703.  
  704. File descriptor 63 (pipe:[33533]) leaked on lvs invocation. Parent PID 2145: /bin/bash
  705.  
  706. Suggested repair: ______________________________________________________________
  707.  
  708. The default repair of the Boot-Repair utility would purge (in order to sign-grub) and reinstall the grub-efi-amd64-signed of
  709. nvme0n1p4,
  710. using the following options: nvme0n1p3/boot/efi,
  711. Additional repair would be performed: unhide-bootmenu-10s win-legacy-basic-fix use-standard-efi-file
  712.  
  713. Confirmation request before suggested repair: __________________________________
  714.  
  715. Warning: continuing without internet would leave your system unbootable. Please connect internet.
  716. Are you sure you want to continue anyway?
  717.  
  718. Final advice in case of suggested repair: ______________________________________
  719.  
  720.  
  721. Please do not forget to make your UEFI firmware boot on the Ubuntu 18.04.5 LTS entry (nvme0n1p3/efi/****/shim****.efi (**** will be updated in the final message) file) !
  722. If your computer reboots directly into Windows, try to change the boot order in your UEFI firmware.
  723.  
  724. If your UEFI firmware does not allow to change the boot order, change the default boot entry of the Windows bootloader.
  725. For example you can boot into Windows, then type the following command in an admin command prompt:
  726. bcdedit /set {bootmgr} path \EFI\****\shim****.efi (**** will be updated in the final message)
  727. paste.ubuntu.com ko ()
  728. paste.debian.net ko ()
  729.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement