View previous topic :: View next topic |
Author |
Message |
nzPenguin n00b
Joined: 24 Feb 2012 Posts: 32
|
Posted: Wed Jan 31, 2024 2:42 am Post subject: [SOLVED]What have I done, Grub not displaying new Kernel? |
|
|
[SOLVED] See my reply below for details of what I had done wrong and how I ended up fixing it.
Hello
Upgraded the kernel this morning, got home before and ran
Code: | grub-mkconfig -o /boot/grub.cfg |
The command runs fine but on reboot the new kernel doesn't appear in the list, Grub is displayed but the list of available kernels hasn't changed.
I suspect its something to do with efi? Not sure what I've done here, i'll post below information I think will be helpful. Thank you.... Again.
Fdisk -l output:
Code: | Disk /dev/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: ESR512GTLCW-E6GBTNB4
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 7671C14D-633F-4442-BD27-80B5C3394495
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 534527 532480 260M EFI System
/dev/nvme0n1p2 534528 567295 32768 16M Microsoft reserved
/dev/nvme0n1p3 567296 972308479 971741184 463.4G Microsoft basic data
/dev/nvme0n1p4 972308480 974405631 2097152 1G Windows recovery environment
/dev/nvme0n1p5 974405632 1000214527 25808896 12.3G Windows recovery environment
Disk /dev/nvme1n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: WDC PC SN530 SDBPNPZ-512G-1002
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 6F0237A4-A000-3744-B398-0B8A8E019C9D
Device Start End Sectors Size Type
/dev/nvme1n1p1 2048 2099199 2097152 1G EFI System
/dev/nvme1n1p2 2099200 73402367 71303168 34G Linux swap
/dev/nvme1n1p3 73402368 1000214527 926812160 441.9G Linux filesystem
Disk /dev/sda: 28.64 GiB, 30752000000 bytes, 60062500 sectors
Disk model: Ultra USB 3.0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xb0af2d80
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 59996959 59994912 28.6G c W95 FAT32 (LBA)
/dev/sda2 59996960 60062495 65536 32M ef EFI (FAT-12/16/32)
|
efibootmgr:
Code: | BootCurrent: 0001
Timeout: 2 seconds
BootOrder: 0001,0002,2001,2002,2003
Boot0000* EFI USB Device (SanDisk) UsbWwid(781,5591,0,4C53000020012011511)/HD(2,MBR,0xb0af2d80,0x3937b20,0x10000)RC
Boot0001* gentoo HD(1,GPT,d931ad50-96d1-1848-848c-10e940c9f32e,0x800,0x200000)/File(\EFI\gentoo\grubx64.efi)
Boot0002* Windows Boot Manager HD(1,GPT,be17da4e-0226-4102-a987-f02b1355cfb1,0x800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d000000d5bd0100000010000000040000007fff0400
Boot2001* EFI USB Device RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network RC
|
lsblk output:
Code: | NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 1 28.6G 0 disk
├─sda1 8:1 1 28.6G 0 part
└─sda2 8:2 1 32M 0 part
nvme0n1 259:0 0 476.9G 0 disk
├─nvme0n1p1 259:1 0 260M 0 part
├─nvme0n1p2 259:2 0 16M 0 part
├─nvme0n1p3 259:3 0 463.4G 0 part
├─nvme0n1p4 259:4 0 1G 0 part
└─nvme0n1p5 259:5 0 12.3G 0 part
nvme1n1 259:6 0 476.9G 0 disk
├─nvme1n1p1 259:7 0 1G 0 part
├─nvme1n1p2 259:8 0 34G 0 part
└─nvme1n1p3 259:9 0 441.9G 0 part / |
ls /efi/efi/gentoo output:
Code: | ls /efi/efi/gentoo/
bzImage.efi
|
Grub .conf:
https://bpa.st/6PXRA
/etc/default/grub:
https://bpa.st/Y323Y
ls /etc/grub.d output:
Code: | 00_header 20_linux_xen 30_uefi-firmware 41_custom
10_linux 30_os-prober 40_custom README |
Last edited by nzPenguin on Wed Jan 31, 2024 10:46 pm; edited 1 time in total |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1537 Location: South America
|
Posted: Wed Jan 31, 2024 12:28 pm Post subject: Re: What have I done, Grub not displaying new Kernel? |
|
|
nzPenguin wrote: | Upgraded the kernel this morning, got home before and ran
Code: | grub-mkconfig -o /boot/grub.cfg |
|
That should be grub-mkconfig -o /boot/grub/grub.cfg. Did you really write it like that? _________________
NeddySeagoon wrote: | I'm not a witch, I'm a retired electronics engineer |
Ionen wrote: | As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though |
|
|
Back to top |
|
|
flysideways Guru
Joined: 29 Jan 2005 Posts: 437
|
Posted: Wed Jan 31, 2024 3:27 pm Post subject: Re: What have I done, Grub not displaying new Kernel? |
|
|
nzPenguin wrote: |
lsblk output:
Code: | NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 1 28.6G 0 disk
├─sda1 8:1 1 28.6G 0 part
└─sda2 8:2 1 32M 0 part
nvme0n1 259:0 0 476.9G 0 disk
├─nvme0n1p1 259:1 0 260M 0 part
├─nvme0n1p2 259:2 0 16M 0 part
├─nvme0n1p3 259:3 0 463.4G 0 part
├─nvme0n1p4 259:4 0 1G 0 part
└─nvme0n1p5 259:5 0 12.3G 0 part
nvme1n1 259:6 0 476.9G 0 disk
├─nvme1n1p1 259:7 0 1G 0 part
├─nvme1n1p2 259:8 0 34G 0 part
└─nvme1n1p3 259:9 0 441.9G 0 part / |
|
I'm guessing /dev/nvme1n1p1 is your intended /boot and /dev/nvme1n1p2 is your intended swap. If so, /boot is not mounted, and your swap is not activated.
It does no good to run grub.mkconfig when /boot, where it needs to write to, is not mounted.
/etc/fstab may not be what you intend. |
|
Back to top |
|
|
nzPenguin n00b
Joined: 24 Feb 2012 Posts: 32
|
Posted: Wed Jan 31, 2024 10:44 pm Post subject: Re: What have I done, Grub not displaying new Kernel? |
|
|
flysideways wrote: | nzPenguin wrote: |
lsblk output:
Code: | NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 1 28.6G 0 disk
├─sda1 8:1 1 28.6G 0 part
└─sda2 8:2 1 32M 0 part
nvme0n1 259:0 0 476.9G 0 disk
├─nvme0n1p1 259:1 0 260M 0 part
├─nvme0n1p2 259:2 0 16M 0 part
├─nvme0n1p3 259:3 0 463.4G 0 part
├─nvme0n1p4 259:4 0 1G 0 part
└─nvme0n1p5 259:5 0 12.3G 0 part
nvme1n1 259:6 0 476.9G 0 disk
├─nvme1n1p1 259:7 0 1G 0 part
├─nvme1n1p2 259:8 0 34G 0 part
└─nvme1n1p3 259:9 0 441.9G 0 part / |
|
I'm guessing /dev/nvme1n1p1 is your intended /boot and /dev/nvme1n1p2 is your intended swap. If so, /boot is not mounted, and your swap is not activated.
It does no good to run grub.mkconfig when /boot, where it needs to write to, is not mounted.
/etc/fstab may not be what you intend. |
It was all of above, fstab wasn't configued. /dev/nvme1n1p1 was not mounted and I had grub booting off my USB somehow.
Configured the fstab
mounted the /efi
Installed Grub
Generated Grub config using "grub-mkconfig -o /boot/grub/grub.cfg"
Although, I have now installed grub to a few locations and cant be certain which is in the correct place ill have to clean that up but otherwise everything is working. I now have the lastest Kernel with working Wifi and offical Nvidia drivers working! Happy for the time being, ill clean up the mess I've made with Grub later. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|