Guest User

Grub prompt on Ubuntu Studio 22.04 LTS

a guest
Dec 23rd, 2023
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.80 KB | Software | 0 0
  1. boot-repair-4ppa2072 [20231222_2344]
  2.  
  3. ============================= Boot Repair Summary ==============================
  4.  
  5.  
  6.  
  7.  
  8.  
  9. modprobe: FATAL: Module efivars not found in directory /lib/modules/6.2.0-1009-lowlatency
  10.  
  11. Recommended repair: ____________________________________________________________
  12.  
  13. The default repair of the Boot-Repair utility will reinstall the grub-efi-amd64-signed of
  14. mmcblk0p1,
  15. using the following options: nvme0n1p1/boot/efi
  16. Additional repair will be performed: unhide-bootmenu-10s use-standard-efi-file restore-efi-backups
  17.  
  18.  
  19. rm /mnt/boot-sav/nvme0n1p1/efi/Boot/bootx64.efi
  20. mv /mnt/boot-sav/nvme0n1p1/efi/Boot/bkpbootx64.efi /mnt/boot-sav/nvme0n1p1/efi/Boot/bootx64.efi
  21. Mount /dev/nvme0n1p1 on /mnt/boot-sav/mmcblk0p1/boot/efi
  22. Fixed file rights of /mnt/boot-sav/mmcblk0p1/etc/grub.d/10_linux
  23.  
  24. ============ Reinstall the grub-efi-amd64-signed of /dev/mmcblk0p1 =============
  25.  
  26. chroot /mnt/boot-sav/mmcblk0p1 grub-install --version
  27. grub-install (GRUB) 2.06-2ubuntu7.2
  28. modprobe: FATAL: Module efivars not found in directory /lib/modules/6.2.0-1009-lowlatency
  29. chroot /mnt/boot-sav/mmcblk0p1 modprobe efivars
  30.  
  31. chroot /mnt/boot-sav/mmcblk0p1 efibootmgr -v before grub install
  32. EFI variables are not supported on this system.
  33.  
  34.  
  35. chroot /mnt/boot-sav/mmcblk0p1 uname -r
  36. 6.2.0-1009-lowlatency
  37.  
  38. chroot /mnt/boot-sav/mmcblk0p1 grub-install --efi-directory=/boot/efi --target=x86_64-efi --uefi-secure-boot
  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/nvme0n1p1
  44. mv /mnt/boot-sav/mmcblk0p1/boot/efi/EFI/Boot/bootx64.efi /mnt/boot-sav/mmcblk0p1/boot/efi/EFI/Boot/bkpbootx64.efi
  45. cp /mnt/boot-sav/mmcblk0p1/boot/efi/efi/ubuntu/shimx64.efi /mnt/boot-sav/mmcblk0p1/boot/efi/EFI/Boot/bootx64.efi
  46.  
  47. chroot /mnt/boot-sav/mmcblk0p1 grub-install --efi-directory=/boot/efi --target=x86_64-efi --uefi-secure-boot
  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/mmcblk0p1 efibootmgr -v after grub install
  54. EFI variables are not supported on this system.
  55.  
  56. Warning: NVram is locked (Ubuntu not found in efibootmgr).
  57.  
  58. chroot /mnt/boot-sav/mmcblk0p1 update-grub
  59. Sourcing file `/etc/default/grub'
  60. Sourcing file `/etc/default/grub.d/init-select.cfg'
  61. Found linux image: /boot/vmlinuz-6.2.0-1009-lowlatency
  62. Found initrd image: /boot/initrd.img-6.2.0-1009-lowlatency
  63. Found linux image: /boot/vmlinuz-6.2.0-1009-lowlatency
  64. Found initrd image: /boot/initrd.img-6.2.0-1009-lowlatency
  65. Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
  66.  
  67. Unhide GRUB boot menu in mmcblk0p1/boot/grub/grub.cfg
  68.  
  69. Boot successfully repaired.
  70.  
  71. Locked-NVram detected. Please do not forget to make your UEFI firmware boot on the Ubuntu 22.04.3 LTS entry (nvme0n1p1/efi/ubuntu/shimx64.efi file) !
  72. Please disable SecureBoot in the BIOS. Then try again.
  73.  
  74.  
  75. ============================ Boot Info After Repair ============================
  76.  
  77. => No boot loader is installed in the MBR of /dev/mmcblk0.
  78. => No boot loader is installed in the MBR of /dev/nvme0n1.
  79.  
  80. mmcblk0p1: _____________________________________________________________________
  81.  
  82. File system: ext4
  83. Boot sector type: -
  84. Boot sector info:
  85. Operating System: Ubuntu 22.04.3 LTS
  86. Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
  87.  
  88. nvme0n1p1: _____________________________________________________________________
  89.  
  90. File system: vfat
  91. Boot sector type: FAT32
  92. Boot sector info: No errors found in the Boot Parameter Block.
  93. Operating System:
  94. Boot files: /efi/Boot/bkpbootx64.efi /efi/Boot/bootx64.efi
  95. /efi/Boot/fbx64.efi /efi/Boot/grubx64.efi
  96. /efi/Boot/mmx64.efi /efi/HP/diw.efi
  97. /efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi
  98. /efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg
  99. /efi/HP/BIOSUpdate/BiosMgmt.efi
  100. /efi/HP/BIOSUpdate/BiosMgmt32.efi
  101. /efi/HP/BIOSUpdate/CryptRSA.efi
  102. /efi/HP/BIOSUpdate/CryptRSA32.efi
  103. /efi/HP/BIOSUpdate/HpBiosMgmt.efi
  104. /efi/HP/BIOSUpdate/HpBiosUpdate.efi
  105. /efi/HP/BIOSUpdate/HpBiosUpdate32.efi
  106. /efi/HP/DEVFW/HpDevFwUpdate.efi
  107. /efi/HP/SystemDiags/CryptRSA.efi
  108. /efi/HP/SystemDiags/SysDiags.efi
  109. /efi/HP/SystemDiags/diw.efi
  110. /efi/Microsoft/Boot/bootmgfw.efi
  111. /efi/Microsoft/Boot/bootmgr.efi
  112. /efi/Microsoft/Boot/cbmr_driver.efi
  113.  
  114. nvme0n1p2: _____________________________________________________________________
  115.  
  116. File system:
  117. Boot sector type: -
  118. Boot sector info:
  119.  
  120. nvme0n1p3: _____________________________________________________________________
  121.  
  122. File system: ntfs
  123. Boot sector type: NTFS
  124. Boot sector info: No errors found in the Boot Parameter Block.
  125. Operating System: Windows 8 or 10
  126. Boot files: /Windows/System32/winload.exe
  127.  
  128. nvme0n1p4: _____________________________________________________________________
  129.  
  130. File system: ntfs
  131. Boot sector type: NTFS
  132. Boot sector info: No errors found in the Boot Parameter Block.
  133. Operating System:
  134. Boot files:
  135.  
  136. nvme0n1p5: _____________________________________________________________________
  137.  
  138. File system: ntfs
  139. Boot sector type: NTFS
  140. Boot sector info: No errors found in the Boot Parameter Block.
  141. Operating System:
  142. Boot files:
  143.  
  144. sda: ___________________________________________________________________________
  145.  
  146. File system: iso9660
  147. Boot sector type: Grub2 (v1.99-2.00)
  148. Boot sector info: Grub2 (v1.99-2.00) is installed in the boot sector of
  149. sda and looks at sector 0 of the same hard drive for
  150. core.img, but core.img can not be found at this
  151. location.
  152. Mounting failed: mount: /mnt/BootInfo/FD/sda: /dev/sda already mounted or mount point busy.
  153.  
  154.  
  155. ================================ 2 OS detected =================================
  156.  
  157. OS#1: Ubuntu 22.04.3 LTS on mmcblk0p1
  158. OS#2: Windows 8 or 10 on nvme0n1p3
  159.  
  160. ================================ Host/Hardware =================================
  161.  
  162. CPU architecture: 64-bit
  163. Video: TU106M [GeForce RTX 2060 Mobile] CometLake-H GT2 [UHD Graphics] from NVIDIA Corporation Intel Corporation
  164. Live-session OS is Ubuntu 64-bit (Ubuntu 22.04.3 LTS, jammy, x86_64)
  165.  
  166. ===================================== UEFI =====================================
  167.  
  168. BIOS/UEFI firmware: F.15(15.15) from AMI
  169. The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
  170. SecureBoot enabled according to mokutil - Please report this message to [email protected].
  171. BootCurrent: 0003
  172. Timeout: 0 seconds
  173. BootOrder: 0001,0000,0002,0003
  174. Boot0000* Windows Boot Manager HD(1,GPT,e504916e-f935-4c21-a31d-530627287196,0x800,0x82000)/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.}....................
  175. Boot0001* ubuntu HD(1,GPT,e504916e-f935-4c21-a31d-530627287196,0x800,0x82000)/File(\EFI\ubuntu\shimx64.efi)
  176. Boot0002* Solid State Disk PciRoot(0x0)/Pci(0x1b,0x4)/Pci(0x0,0x0)/NVMe(0x1,8C-E3-8E-10-00-01-14-23)/HD(1,GPT,e504916e-f935-4c21-a31d-530627287196,0x800,0x82000)..BO
  177. Boot0003* USB Drive (UEFI) - KingstonDataTraveler 3.0PMAP PciRoot(0x0)/Pci(0x14,0x0)/USB(18,0)/HD(2,GPT,abe6d9c1-d820-473f-9624-5e7897c4c498,0x938b58,0x2754)..BO
  178.  
  179. 64349b3622c65f495a99dbf6102496e3 nvme0n1p1/Boot/bkpbootx64.efi
  180. 64349b3622c65f495a99dbf6102496e3 nvme0n1p1/Boot/bootx64.efi
  181. a9c517741ac31962d7feb152948ad1ee nvme0n1p1/Boot/fbx64.efi
  182. 5ddf997e8b025bfbc2009e85b32f60dc nvme0n1p1/Boot/grubx64.efi
  183. a660182adef313615746a665966d2ccc nvme0n1p1/Boot/mmx64.efi
  184. 5ca6d3a1fb1b9e901eab7bfab6b56a51 nvme0n1p1/HP/diw.efi
  185. 5ddf997e8b025bfbc2009e85b32f60dc nvme0n1p1/ubuntu/grubx64.efi
  186. a660182adef313615746a665966d2ccc nvme0n1p1/ubuntu/mmx64.efi
  187. 64349b3622c65f495a99dbf6102496e3 nvme0n1p1/ubuntu/shimx64.efi
  188. 09a4d4a2f9d161cf7a23755439eed58d nvme0n1p1/HP/BIOSUpdate/BiosMgmt.efi
  189. 2c00d2225d10820a2b8fe32bd9dccbc7 nvme0n1p1/HP/BIOSUpdate/BiosMgmt32.efi
  190. 6488d391f74263c9da3c3d47dffa6212 nvme0n1p1/HP/BIOSUpdate/CryptRSA.efi
  191. 1b8c0684ede8539ccc205cf7a750eca3 nvme0n1p1/HP/BIOSUpdate/CryptRSA32.efi
  192. f1da416271b4843f519102cb1e0bc46e nvme0n1p1/HP/BIOSUpdate/HpBiosMgmt.efi
  193. 165f37486045a66fde96743e1f5780c6 nvme0n1p1/HP/BIOSUpdate/HpBiosUpdate.efi
  194. 57df6fc43cef8f70afbc26411d58f6c7 nvme0n1p1/HP/BIOSUpdate/HpBiosUpdate32.efi
  195. 101800493c8f023569daf037091918bd nvme0n1p1/HP/DEVFW/HpDevFwUpdate.efi
  196. 6488d391f74263c9da3c3d47dffa6212 nvme0n1p1/HP/SystemDiags/CryptRSA.efi
  197. fa736d565a3289fa5b2e2c57f494465a nvme0n1p1/HP/SystemDiags/SysDiags.efi
  198. 5ca6d3a1fb1b9e901eab7bfab6b56a51 nvme0n1p1/HP/SystemDiags/diw.efi
  199. 2a3bd52fec672a1f1364ca9b41553f4d nvme0n1p1/Microsoft/Boot/bootmgfw.efi
  200. 219a45fc0b91c22521a72dffdcbac5d4 nvme0n1p1/Microsoft/Boot/bootmgr.efi
  201. b8796e68099026aabcebb8fcf75b21f6 nvme0n1p1/Microsoft/Boot/cbmr_driver.efi
  202.  
  203. ============================= Drive/Partition Info =============================
  204.  
  205. Disks info: ____________________________________________________________________
  206.  
  207. mmcblk0 : notGPT, no-BIOSboot, has-noESP, not-usb, mmc-disk, has-os, no-wind, 2048 sectors * 512 bytes
  208. nvme0n1 : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, has-win, 2048 sectors * 512 bytes
  209.  
  210. Partitions info (1/3): _________________________________________________________
  211.  
  212. mmcblk0p1 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, end-after-100GB
  213. nvme0n1p1 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
  214. nvme0n1p3 : is-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, end-after-100GB
  215. nvme0n1p4 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, end-after-100GB
  216. nvme0n1p5 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, end-after-100GB
  217.  
  218. Partitions info (2/3): _________________________________________________________
  219.  
  220. mmcblk0p1 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
  221. nvme0n1p1 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
  222. nvme0n1p3 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, no-bmgr, notwinboot
  223. nvme0n1p4 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
  224. nvme0n1p5 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
  225.  
  226. Partitions info (3/3): _________________________________________________________
  227.  
  228. mmcblk0p1 : not--sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, mmcblk0
  229. nvme0n1p1 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
  230. nvme0n1p3 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
  231. nvme0n1p4 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
  232. nvme0n1p5 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
  233.  
  234. fdisk -l (filtered): ___________________________________________________________
  235.  
  236. Disk nvme0n1: 953.87 GiB, 1024209543168 bytes, 2000409264 sectors
  237. Disk identifier: 87647F50-C6F9-4DF6-AE16-01779D7681F8
  238. Start End Sectors Size Type
  239. nvme0n1p1 2048 534527 532480 260M EFI System
  240. nvme0n1p2 534528 567295 32768 16M Microsoft reserved
  241. nvme0n1p3 567296 1996898303 1996331008 951.9G Microsoft basic data
  242. nvme0n1p4 1996898304 1999265791 2367488 1.1G Windows recovery environment
  243. nvme0n1p5 1999271936 2000396287 1124352 549M Windows recovery environment
  244. Disk mmcblk0: 116.48 GiB, 125069950976 bytes, 244277248 sectors
  245. Disk identifier: 0xd82c6cba
  246. Boot Start End Sectors Size Id Type
  247. mmcblk0p1 32768 244277247 244244480 116.5G 83 Linux
  248. Disk sda: 7.22 GiB, 7751073792 bytes, 15138816 sectors
  249. Disk identifier: ABE6D9C1-D820-473F-9626-5E7897C4C498
  250. Start End Sectors Size Type
  251. sda1 64 9669463 9669400 4.6G Microsoft basic data
  252. sda2 9669464 9679531 10068 4.9M EFI System
  253. sda3 9679532 9680131 600 300K Microsoft basic data
  254. sda4 9682944 15138752 5455809 2.6G Linux filesystem
  255.  
  256. parted -lm (filtered): _________________________________________________________
  257.  
  258. sda:7751MB:scsi:512:512:gpt:Kingston DataTraveler 3.0:;
  259. 1:32.8kB:4951MB:4951MB::ISO9660:hidden, msftdata;
  260. 2:4951MB:4956MB:5155kB::Appended2:boot, esp;
  261. 3:4956MB:4956MB:307kB::Gap1:hidden, msftdata;
  262. 4:4958MB:7751MB:2793MB:ext4::;
  263. nvme0n1:1024GB:nvme:512:512:gpt:KXG60ZNV1T02 KIOXIA:;
  264. 1:1049kB:274MB:273MB:fat32:EFI system partition:boot, esp;
  265. 2:274MB:290MB:16.8MB::Microsoft reserved partition:msftres;
  266. 3:290MB:1022GB:1022GB:ntfs:Basic data partition:msftdata;
  267. 4:1022GB:1024GB:1212MB:ntfs::hidden, diag;
  268. 5:1024GB:1024GB:576MB:ntfs:Basic data partition:hidden, diag;
  269. mmcblk0:125GB:sd/mmc:512:512:msdos:SD SD128:;
  270. 1:16.8MB:125GB:125GB:ext4::;
  271.  
  272. Free space >10MiB: ______________________________________________________________
  273.  
  274. mmcblk0: 0.00MiB:16.0MiB:16.0MiB
  275.  
  276. blkid (filtered): ______________________________________________________________
  277.  
  278. NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
  279. sda iso9660 2023-08-07-16-02-01-00 Ubuntu-Studio 22.04.3 LTS amd64
  280. ├─sda1 iso9660 2023-08-07-16-02-01-00 abe6d9c1-d820-473f-9627-5e7897c4c498 Ubuntu-Studio 22.04.3 LTS amd64 ISO9660
  281. ├─sda2 vfat F7DB-4D56 abe6d9c1-d820-473f-9624-5e7897c4c498 ESP Appended2
  282. ├─sda3 abe6d9c1-d820-473f-9625-5e7897c4c498 Gap1
  283. └─sda4 ext4 5fb74e7c-b688-445e-bbab-287e83449d24 0eb566dc-e1e9-6c45-b17b-4c2d4b9f904f writable
  284. mmcblk0
  285. └─mmcblk0p1 ext4 f3d465e7-3273-4b06-b104-6672b42ddc72 d82c6cba-01
  286. nvme0n1
  287. ├─nvme0n1p1 vfat EE4F-5C99 e504916e-f935-4c21-a31d-530627287196 SYSTEM EFI system partition
  288. ├─nvme0n1p2 c128d776-4681-49cd-91fa-878f70627069 Microsoft reserved partition
  289. ├─nvme0n1p3 ntfs 8ED47B22D47B0BA9 84567b8f-b48b-428e-b80f-0c00131653f5 Windows Basic data partition
  290. ├─nvme0n1p4 ntfs 4C7A34787A3460BE b8b829c0-df14-4526-b80c-ce27917287fa
  291. └─nvme0n1p5 ntfs 8E98660B9865F1DF d79e3778-f528-4d11-b4bc-c6902abfd48d Windows RE tools Basic data partition
  292.  
  293. Mount points (filtered): _______________________________________________________
  294.  
  295. Avail Use% Mounted on
  296. /dev/mmcblk0p1 96.6G 10% /mnt/boot-sav/mmcblk0p1
  297. /dev/nvme0n1p1 161.8M 37% /mnt/boot-sav/nvme0n1p1
  298. /dev/nvme0n1p3 326.2G 66% /mnt/boot-sav/nvme0n1p3
  299. /dev/nvme0n1p4 45.8M 96% /mnt/boot-sav/nvme0n1p4
  300. /dev/nvme0n1p5 67.4M 88% /mnt/boot-sav/nvme0n1p5
  301. /dev/sda1 0 100% /cdrom
  302.  
  303. Mount options (filtered): ______________________________________________________
  304.  
  305. /dev/mmcblk0p1 ext4 rw,relatime
  306. /dev/nvme0n1p1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
  307. /dev/nvme0n1p3 fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
  308. /dev/nvme0n1p4 fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
  309. /dev/nvme0n1p5 fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
  310. /dev/sda1 iso9660 ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8
  311.  
  312. =================== mmcblk0p1/boot/grub/grub.cfg (filtered) ====================
  313.  
  314. Ubuntu (lowlatency) f3d465e7-3273-4b06-b104-6672b42ddc72
  315. Windows Boot Manager (on nvme0n1p1) osprober-efi-EE4F-5C99
  316. ### END /etc/grub.d/30_os-prober ###
  317. ### END /etc/grub.d/30_uefi-firmware ###
  318.  
  319. ======================== mmcblk0p1/etc/fstab (filtered) ========================
  320.  
  321. # <file system> <mount point> <type> <options> <dump> <pass>
  322. UUID=f3d465e7-3273-4b06-b104-6672b42ddc72 / ext4 defaults,discard 0 1
  323. tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
  324. UUID=EE4F-5C99 /boot/efi vfat defaults 0 1
  325.  
  326. ==================== mmcblk0p1/etc/default/grub (filtered) =====================
  327.  
  328. GRUB_DEFAULT=0
  329. GRUB_TIMEOUT_STYLE=menu
  330. GRUB_TIMEOUT=10
  331. GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
  332. GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
  333. GRUB_CMDLINE_LINUX=""
  334. GRUB_DISABLE_OS_PROBER=false
  335.  
  336. ================= mmcblk0p1: Location of files loaded by Grub ==================
  337.  
  338. GiB - GB File Fragment(s)
  339. ?? = ?? boot/grub/grub.cfg 1
  340. 94.715950012 = 101.700476928 boot/vmlinuz 1
  341. 94.715950012 = 101.700476928 boot/vmlinuz-6.2.0-1009-lowlatency 1
  342. 94.715950012 = 101.700476928 boot/vmlinuz.old 1
  343. 95.422424316 = 102.459047936 boot/initrd.img 7
  344. 95.422424316 = 102.459047936 boot/initrd.img-6.2.0-1009-lowlatency 7
  345. 95.422424316 = 102.459047936 boot/initrd.img.old 7
  346.  
  347. =================== mmcblk0p1: ls -l /etc/grub.d/ (filtered) ===================
  348.  
  349. -rwxr-xr-x 1 root root 15845 Mar 19 2022 09_lowlatency
  350. -rw-r--r-- 1 root root 18683 Dec 18 2022 10_linux
  351. -rwxr-xr-x 1 root root 43031 Dec 18 2022 10_linux_zfs
  352. -rwxr-xr-x 1 root root 14387 Dec 18 2022 20_linux_xen
  353. -rwxr-xr-x 1 root root 13369 Dec 18 2022 30_os-prober
  354. -rwxr-xr-x 1 root root 1372 Dec 18 2022 30_uefi-firmware
  355. -rwxr-xr-x 1 root root 700 May 17 2023 35_fwupd
  356. -rwxr-xr-x 1 root root 214 Dec 18 2022 40_custom
  357. -rwxr-xr-x 1 root root 215 Dec 18 2022 41_custom
  358.  
  359. ================ mmcblk0p1/etc/grub.d/09_lowlatency (filtered) =================
  360.  
  361. #! /bin/sh
  362. set -e
  363. # grub-mkconfig helper script.
  364. # Copyright (C) 2006,2007,2008,2009,2010 Free Software Foundation, Inc.
  365. #
  366. # GRUB is free software: you can redistribute it and/or modify
  367. # it under the terms of the GNU General Public License as published by
  368. # the Free Software Foundation, either version 3 of the License, or
  369. # (at your option) any later version.
  370. #
  371. # GRUB is distributed in the hope that it will be useful,
  372. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  373. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  374. # GNU General Public License for more details.
  375. #
  376. # You should have received a copy of the GNU General Public License
  377. # along with GRUB. If not, see <http://www.gnu.org/licenses/>.
  378. #
  379. # Ubuntustudio customization that keeps the latest lowlatency kernel
  380. # as the first menu item and default boot even if there is a newer
  381. # generic or other kernel. Often the updated generic kernel is
  382. # released a few days earlier than the lowlatency kernel
  383. prefix="/usr"
  384. exec_prefix="/usr"
  385. datarootdir="/usr/share"
  386. ubuntu_recovery="1"
  387. quiet_boot="1"
  388. quick_boot="1"
  389. gfxpayload_dynamic="1"
  390. vt_handoff="1"
  391. . "$pkgdatadir/grub-mkconfig_lib"
  392. export TEXTDOMAIN=grub
  393. export TEXTDOMAINDIR="${datarootdir}/locale"
  394. # only 09_lowlatency or 10_linux should run, since we got this far
  395. # 10_linux should not run next
  396. if [ -x /etc/grub.d/10_linux ]; then
  397. chmod -x /etc/grub.d/10_linux
  398. fi
  399. CLASS="--class gnu-linux --class gnu --class os"
  400. SUPPORTED_INITS="sysvinit:/lib/sysvinit/init systemd:/lib/systemd/systemd upstart:/sbin/upstart"
  401. if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
  402. OS=GNU/Linux
  403. else
  404. case ${GRUB_DISTRIBUTOR} in
  405. Ubuntu|Kubuntu)
  406. OS="${GRUB_DISTRIBUTOR}"
  407. ;;
  408. *)
  409. OS="${GRUB_DISTRIBUTOR} GNU/Linux"
  410. ;;
  411. esac
  412. CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
  413. fi
  414. # loop-AES arranges things so that /dev/loop/X can be our root device, but
  415. # the initrds that Linux uses don't like that.
  416. case ${GRUB_DEVICE} in
  417. /dev/loop/*|/dev/loop[0-9])
  418. GRUB_DEVICE=`losetup ${GRUB_DEVICE} | sed -e "s/^[^(]*(\([^)]\+\)).*/\1/"`
  419. # We can't cope with devices loop-mounted from files here.
  420. case ${GRUB_DEVICE} in
  421. /dev/*) ;;
  422. *) exit 0 ;;
  423. esac
  424. ;;
  425. esac
  426. # btrfs may reside on multiple devices. We cannot pass them as value of root= parameter
  427. # and mounting btrfs requires user space scanning, so force UUID in this case.
  428. if [ "x${GRUB_DEVICE_UUID}" = "x" ] || [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ] \
  429. || ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" \
  430. || ( test -e "${GRUB_DEVICE}" && uses_abstraction "${GRUB_DEVICE}" lvm ); then
  431. LINUX_ROOT_DEVICE=${GRUB_DEVICE}
  432. else
  433. LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}
  434. fi
  435. case x"$GRUB_FS" in
  436. xbtrfs)
  437. rootsubvol="`make_system_path_relative_to_its_root /`"
  438. rootsubvol="${rootsubvol#/}"
  439. if [ "x${rootsubvol}" != x ]; then
  440. GRUB_CMDLINE_LINUX="rootflags=subvol=${rootsubvol} threadirqs ${GRUB_CMDLINE_LINUX}"
  441. fi;;
  442. xzfs)
  443. rpool=`${grub_probe} --device ${GRUB_DEVICE} --target=fs_label 2>/dev/null || true`
  444. bootfs="`make_system_path_relative_to_its_root / | sed -e "s,@$,,"`"
  445. LINUX_ROOT_DEVICE="ZFS=${rpool}${bootfs%/}"
  446. ;;
  447. esac
  448. title_correction_code=
  449. if [ -x /lib/recovery-mode/recovery-menu ]; then
  450. GRUB_CMDLINE_LINUX_RECOVERY=recovery
  451. else
  452. GRUB_CMDLINE_LINUX_RECOVERY=single
  453. fi
  454. if [ "$ubuntu_recovery" = 1 ]; then
  455. GRUB_CMDLINE_LINUX_RECOVERY="$GRUB_CMDLINE_LINUX_RECOVERY nomodeset"
  456. fi
  457. if [ "$vt_handoff" = 1 ]; then
  458. for word in $GRUB_CMDLINE_LINUX_DEFAULT; do
  459. if [ "$word" = splash ]; then
  460. GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT \$vt_handoff"
  461. fi
  462. done
  463. fi
  464. if [ x"$GRUB_FORCE_PARTUUID" != x ]; then
  465. echo "set partuuid=${GRUB_FORCE_PARTUUID}"
  466. fi
  467. linux_entry ()
  468. {
  469. os="$1"
  470. version="$2"
  471. type="$3"
  472. args="$4"
  473. if [ -z "$boot_device_id" ]; then
  474. boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
  475. fi
  476. if [ x$type != xsimple ] ; then
  477. case $type in
  478. recovery)
  479. title="$(gettext_printf "%s, with Linux %s (%s)" "${os}" "${version}" "$(gettext "${GRUB_RECOVERY_TITLE}")")" ;;
  480. init-*)
  481. title="$(gettext_printf "%s, with Linux %s (%s)" "${os}" "${version}" "${type#init-}")" ;;
  482. *)
  483. title="$(gettext_printf "%s, with Linux %s" "${os}" "${version}")" ;;
  484. esac
  485. if [ x"$title" = x"$GRUB_ACTUAL_DEFAULT" ] || [ x"Previous Linux versions>$title" = x"$GRUB_ACTUAL_DEFAULT" ]; then
  486. replacement_title="$(echo "Advanced options for ${OS}" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g')"
  487. quoted="$(echo "$GRUB_ACTUAL_DEFAULT" | grub_quote)"
  488. title_correction_code="${title_correction_code}if [ \"x\$default\" = '$quoted' ]; then default='$(echo "$replacement_title" | grub_quote)'; fi;"
  489. 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")"
  490. fi
  491. echo "menuentry '$(echo "$title" | grub_quote)' ${CLASS} \$menuentry_id_option 'gnulinux-$version-$type-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
  492. else
  493. echo "menuentry '$(echo "$os" | grub_quote)' ${CLASS} \$menuentry_id_option 'gnulinux-simple-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
  494. fi
  495. if [ "$quick_boot" = 1 ]; then
  496. echo " recordfail" | sed "s/^/$submenu_indentation/"
  497. fi
  498. if [ x$type != xrecovery ] ; then
  499. save_default_entry | grub_add_tab
  500. fi
  501. # Use ELILO's generic "efifb" when it's known to be available.
  502. # FIXME: We need an interface to select vesafb in case efifb can't be used.
  503. if [ "x$GRUB_GFXPAYLOAD_LINUX" = x ]; then
  504. echo " load_video" | sed "s/^/$submenu_indentation/"
  505. else
  506. if [ "x$GRUB_GFXPAYLOAD_LINUX" != xtext ]; then
  507. echo " load_video" | sed "s/^/$submenu_indentation/"
  508. fi
  509. fi
  510. if ([ "$ubuntu_recovery" = 0 ] || [ x$type != xrecovery ]) && \
  511. ([ "x$GRUB_GFXPAYLOAD_LINUX" != x ] || [ "$gfxpayload_dynamic" = 1 ]); then
  512. echo " gfxmode \$linux_gfx_mode" | sed "s/^/$submenu_indentation/"
  513. fi
  514. echo " insmod gzio" | sed "s/^/$submenu_indentation/"
  515. echo " if [ x\$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi" | sed "s/^/$submenu_indentation/"
  516. if [ x$dirname = x/ ]; then
  517. if [ -z "${prepare_root_cache}" ]; then
  518. prepare_root_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE} | grub_add_tab)"
  519. fi
  520. printf '%s\n' "${prepare_root_cache}" | sed "s/^/$submenu_indentation/"
  521. else
  522. if [ -z "${prepare_boot_cache}" ]; then
  523. prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | grub_add_tab)"
  524. fi
  525. printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/"
  526. fi
  527. if [ x"$quiet_boot" = x0 ] || [ x"$type" != xsimple ]; then
  528. message="$(gettext_printf "Loading Linux %s ..." ${version})"
  529. sed "s/^/$submenu_indentation/" << EOF
  530. echo '$(echo "$message" | grub_quote)'
  531. EOF
  532. fi
  533. if test -d /sys/firmware/efi && test -e "${linux}.efi.signed"; then
  534. sed "s/^/$submenu_indentation/" << EOF
  535. linux ${rel_dirname}/${basename}.efi.signed root=${linux_root_device_thisversion} ro ${args}
  536. EOF
  537. else
  538. # We have initrd and PARTUUID is set - we try to boot without initrd, and fallback to using it
  539. # if it fails.
  540. # "panic=-1" means "on panic reboot immediately". "panic=0" disables the reboot behavior.
  541. if [ x"$GRUB_FORCE_PARTUUID" != x ]; then
  542. linux_root_device_thisversion="PARTUUID=${GRUB_FORCE_PARTUUID}"
  543. fi
  544. message="$(gettext_printf "Loading initial ramdisk ...")"
  545. if test -n "${initrd}" && [ x"$GRUB_FORCE_PARTUUID" != x ]; then
  546. sed "s/^/$submenu_indentation/" << EOF
  547. if [ "\${initrdfail}" = 1 ]; then
  548. linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
  549. EOF
  550. if [ x"$quiet_boot" = x0 ] || [ x"$type" != xsimple ]; then
  551. sed "s/^/$submenu_indentation/" << EOF
  552. echo '$(echo "$message" | grub_quote)'
  553. EOF
  554. fi
  555. sed "s/^/$submenu_indentation/" << EOF
  556. initrd ${rel_dirname}/${initrd}
  557. else
  558. linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args} panic=-1
  559. fi
  560. initrdfail
  561. EOF
  562. else
  563. # We don't have initrd or we don't want to set PARTUUID. Don't try initrd-less boot with fallback.
  564. sed "s/^/$submenu_indentation/" << EOF
  565. linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
  566. EOF
  567. if test -n "${initrd}"; then
  568. # We do have initrd - let's use it at boot.
  569. # TRANSLATORS: ramdisk isn't identifier. Should be translated.
  570. if [ x"$quiet_boot" = x0 ] || [ x"$type" != xsimple ]; then
  571. sed "s/^/$submenu_indentation/" << EOF
  572. echo '$(echo "$message" | grub_quote)'
  573. EOF
  574. fi
  575. sed "s/^/$submenu_indentation/" << EOF
  576. initrd ${rel_dirname}/${initrd}
  577. EOF
  578. fi
  579. fi
  580. fi
  581. sed "s/^/$submenu_indentation/" << EOF
  582. }
  583. EOF
  584. }
  585. machine=`uname -m`
  586. case "x$machine" in
  587. xi?86 | xx86_64)
  588. list=
  589. for i in /boot/vmlinuz-*lowlatency /vmlinuz-*lowlatency /boot/kernel-*lowlatency ; do
  590. if grub_file_is_not_garbage "$i" ; then list="$list $i" ; fi
  591. done
  592. list2=
  593. for i in /boot/vmlinuz-*generic /vmlinuz-*generic /boot/kernel-*generic ; do
  594. if grub_file_is_not_garbage "$i" ; then list2="$list2 $i" ; fi
  595. done ;;
  596. *)
  597. list=
  598. for i in /boot/vmlinuz-*lowlatency /boot/vmlinux-*lowlatency /vmlinuz-*lowlatency /vmlinux-*lowlatency /boot/kernel-*lowlatency ; do
  599. if grub_file_is_not_garbage "$i" ; then list="$list $i" ; fi
  600. done
  601. list2=
  602. for i in /boot/vmlinuz-*generic /boot/vmlinux-*generic /vmlinuz-*generic /vmlinux-*generic /boot/kernel-*generic ; do
  603. if grub_file_is_not_garbage "$i" ; then list2="$list2 $i" ; fi
  604. done ;;
  605. esac
  606. case "$machine" in
  607. i?86) GENKERNEL_ARCH="x86" ;;
  608. mips|mips64) GENKERNEL_ARCH="mips" ;;
  609. mipsel|mips64el) GENKERNEL_ARCH="mipsel" ;;
  610. arm*) GENKERNEL_ARCH="arm" ;;
  611. *) GENKERNEL_ARCH="$machine" ;;
  612. esac
  613. prepare_boot_cache=
  614. prepare_root_cache=
  615. boot_device_id=
  616. title_correction_code=
  617. cat << 'EOF'
  618. function gfxmode {
  619. set gfxpayload="${1}"
  620. EOF
  621. if [ "$vt_handoff" = 1 ]; then
  622. cat << 'EOF'
  623. if [ "${1}" = "keep" ]; then
  624. set vt_handoff=vt.handoff=1
  625. else
  626. set vt_handoff=
  627. fi
  628. EOF
  629. fi
  630. cat << EOF
  631. }
  632. EOF
  633. # Use ELILO's generic "efifb" when it's known to be available.
  634. # FIXME: We need an interface to select vesafb in case efifb can't be used.
  635. if [ "x$GRUB_GFXPAYLOAD_LINUX" != x ] || [ "$gfxpayload_dynamic" = 0 ]; then
  636. echo "set linux_gfx_mode=$GRUB_GFXPAYLOAD_LINUX"
  637. else
  638. cat << EOF
  639. if [ "\${recordfail}" != 1 ]; then
  640. if [ -e \${prefix}/gfxblacklist.txt ]; then
  641. if hwmatch \${prefix}/gfxblacklist.txt 3; then
  642. if [ \${match} = 0 ]; then
  643. set linux_gfx_mode=keep
  644. else
  645. set linux_gfx_mode=text
  646. fi
  647. else
  648. set linux_gfx_mode=text
  649. fi
  650. else
  651. set linux_gfx_mode=keep
  652. fi
  653. else
  654. set linux_gfx_mode=text
  655. fi
  656. EOF
  657. fi
  658. cat << EOF
  659. export linux_gfx_mode
  660. EOF
  661. # Extra indentation to add to menu entries in a submenu. We're not in a submenu
  662. # yet, so it's empty. In a submenu it will be equal to '\t' (one tab).
  663. submenu_indentation=""
  664. is_top_level=true
  665. is_generic_top=true
  666. if [ "x$list" = "x" ]; then
  667. is_top_level=false
  668. generic_is_default=true
  669. fi
  670. if [ "x$list2" = "x" ]; then
  671. is_generic_top=false
  672. fi
  673. while [ "x$list $list2" != "x" ] ; do
  674. if [ "x$is_generic_top" = xtrue ] && [ "x$is_top_level" != xtrue ]; then
  675. linux=`version_find_latest $list2`
  676. case $linux in
  677. *.efi.signed)
  678. # We handle these in linux_entry.
  679. list2=`echo $list2 | tr ' ' '\n' | grep -vx $linux | tr '\n' ' '`
  680. continue
  681. ;;
  682. esac
  683. else
  684. linux=`version_find_latest $list`
  685. if [ "x$linux" = "x" ]; then
  686. break
  687. fi
  688. case $linux in
  689. *.efi.signed)
  690. # We handle these in linux_entry.
  691. list=`echo $list | tr ' ' '\n' | grep -vx $linux | tr '\n' ' '`
  692. continue
  693. ;;
  694. esac
  695. fi
  696. gettext_printf "Found linux image: %s\n" "$linux" >&2
  697. basename=`basename $linux`
  698. dirname=`dirname $linux`
  699. rel_dirname=`make_system_path_relative_to_its_root $dirname`
  700. version=`echo $basename | sed -e "s,^[^0-9]*-,,g"`
  701. alt_version=`echo $version | sed -e "s,\.old$,,g"`
  702. linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
  703. initrd=
  704. for i in "initrd.img-${version}" "initrd-${version}.img" "initrd-${version}.gz" \
  705. "initrd-${version}" "initramfs-${version}.img" \
  706. "initrd.img-${alt_version}" "initrd-${alt_version}.img" \
  707. "initrd-${alt_version}" "initramfs-${alt_version}.img" \
  708. "initramfs-genkernel-${version}" \
  709. "initramfs-genkernel-${alt_version}" \
  710. "initramfs-genkernel-${GENKERNEL_ARCH}-${version}" \
  711. "initramfs-genkernel-${GENKERNEL_ARCH}-${alt_version}"; do
  712. if test -e "${dirname}/${i}" ; then
  713. initrd="$i"
  714. break
  715. fi
  716. done
  717. config=
  718. for i in "${dirname}/config-${version}" "${dirname}/config-${alt_version}" "/etc/kernels/kernel-config-${version}" ; do
  719. if test -e "${i}" ; then
  720. config="${i}"
  721. break
  722. fi
  723. done
  724. initramfs=
  725. if test -n "${config}" ; then
  726. initramfs=`grep CONFIG_INITRAMFS_SOURCE= "${config}" | cut -f2 -d= | tr -d \"`
  727. fi
  728. if test -n "${initrd}" ; then
  729. gettext_printf "Found initrd image: %s\n" "${dirname}/${initrd}" >&2
  730. elif test -z "${initramfs}" ; then
  731. # "UUID=" and "ZFS=" magic is parsed by initrd or initramfs. Since there's
  732. # no initrd or builtin initramfs, it can't work here.
  733. linux_root_device_thisversion=${GRUB_DEVICE}
  734. fi
  735. if [ "x$is_top_level" = xtrue ] && [ "x${GRUB_DISABLE_SUBMENU}" != xy ]; then
  736. linux_entry "${OS} (lowlatency)" "${version}" simple \
  737. "${GRUB_CMDLINE_LINUX} threadirqs ${GRUB_CMDLINE_LINUX_DEFAULT}"
  738. if [ -z "$boot_device_id" ]; then
  739. boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
  740. fi
  741. if [ "x$is_generic_top" != xtrue ]; then
  742. submenu_indentation="$grub_tab"
  743. # TRANSLATORS: %s is replaced with an OS name
  744. echo "submenu '$(gettext_printf "Advanced options for %s" "${OS}" | grub_quote)' \$menuentry_id_option 'gnulinux-advanced-$boot_device_id' {"
  745. fi
  746. is_top_level=false
  747. continue
  748. fi
  749. if [ "x$is_generic_top" = xtrue ] && [ "x${GRUB_DISABLE_SUBMENU}" != xy ]; then
  750. linux_entry "${OS} (generic)" "${version}" simple \
  751. "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
  752. submenu_indentation="$grub_tab"
  753. list="$list $list2"
  754. if [ -z "$boot_device_id" ]; then
  755. boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
  756. fi
  757. # TRANSLATORS: %s is replaced with an OS name
  758. echo "submenu '$(gettext_printf "Advanced options for %s" "${OS}" | grub_quote)' \$menuentry_id_option 'gnulinux-advanced-$boot_device_id' {"
  759. is_generic_top=false
  760. continue
  761. fi
  762. linux_entry "${OS}" "${version}" advanced \
  763. "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
  764. for supported_init in ${SUPPORTED_INITS}; do
  765. init_path="${supported_init#*:}"
  766. if [ -x "${init_path}" ] && [ "$(readlink -f /sbin/init)" != "$(readlink -f "${init_path}")" ]; then
  767. linux_entry "${OS}" "${version}" "init-${supported_init%%:*}" \
  768. "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT} init=${init_path}"
  769. fi
  770. done
  771. if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then
  772. linux_entry "${OS}" "${version}" recovery \
  773. "${GRUB_CMDLINE_LINUX_RECOVERY} ${GRUB_CMDLINE_LINUX}"
  774. fi
  775. list=`echo $list | tr ' ' '\n' | fgrep -vx "$linux" | tr '\n' ' '`
  776. # If at least one kernel was found, then we need to
  777. # add a closing '}' for the submenu command.
  778. if [ x"$is_top_level" != xtrue ]; then
  779. echo '}'
  780. fi
  781. echo "$title_correction_code"
  782.  
  783. =================== nvme0n1p1/efi/ubuntu/grub.cfg (filtered) ===================
  784.  
  785. search.fs_uuid f3d465e7-3273-4b06-b104-6672b42ddc72 root
  786. set prefix=($root)'/boot/grub'
  787. configfile $prefix/grub.cfg
Tags: ubuntu Linux GRUB
Advertisement
Add Comment
Please, Sign In to add comment