Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I installed grub to my Pop os pc because systemd boot was broken, it could not boot any kernel after version 6.2. Currently i boot computer by specifying prefix and root directories manually in grub cli:
Code:
set prefix=(hd0,gpt1)/grub
set root=(hd0,gpt2)/
normal
I tried grub-update, not even a sign of improvement. I added custom menu to /etc/grub.d/40_custom:
Code:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "pop_os" {
set root=(hd0,gpt2)
set prefix=(hd0,gpt1)/grub
linux /boot/efi/EFI/Pop_OS-1d18dfdb-3d9c-4e7c-aa0c-c2eb92b1adb4/vmlinuz
initrd /boot/efi/EFI/Pop_OS-1d18dfdb-3d9c-4e7c-aa0c-c2eb92b1adb4/initrd.img
}
Do you have a directory for Pop-OS in the /boot/efi/EFI directory and if so, what is it? If this directory exists, does it have a grub.cfg file? What's in it? Is Grub not in the /boot directory as indicated in your post? Are the vmlinuz and initrd files actually on the EFI partition?
Do you have a directory for Pop-OS in the /boot/efi/EFI directory and if so, what is it? If this directory exists, does it have a grub.cfg file? What's in it? Is Grub not in the /boot directory as indicated in your post? Are the vmlinuz and initrd files actually on the EFI partition?
Do you have a directory for Pop-OS in the /boot/efi/EFI directory and if so, what is it?
I asked the above question in post 2 and you neglected to answer it? Your efibootmgr output in post 5 shows the directory there is named 'pop' which would be what you should use in your grub.cfg. Most Ubuntu's like Pop use 'ubuntu' as the directory in the EFI partition but it appears that Pop does not, that was the reason for the question/suggestion above.
Did you check the /boot/efi/EFI/pop directory to see if there was a grub.cfg directory there? Many Ubuntu's have a small grub.cfg file there which points to the main grub.cfg file on your root filesystem partition.
The entry you posted in post 1 does not have a correct path. The kernel (linux file) and initrd are generally in the /boot directory not in the EFI directory. I don't use Pop OS so have you verified the location of these files? The kernel should probably be: linux /boot/vmlinuz root=UUID=1d18dfdb-3d9c-4e7c-aa0c-c2eb92b1adb4
Might need some parameters after the UUID.
You indicate you installed Grub as you were having boot problems and you have an entry for GRUB in your efi boot options Boot0000. What happens when you select that option in the BIOS firmware options?
Did you check the /boot/efi/EFI/pop directory to see if there was a grub.cfg directory there? Many Ubuntu's have a small grub.cfg file there which points to the main grub.cfg file on your root filesystem partition.
checked /boot/efi/EFI/pop and it actually exists, because of i never saw it before. i always headed to Pop_OS-randomnumbers to configure my kernel iamges whilst i used systemd-boot at the time
Quote:
Originally Posted by yancek
The entry you posted in post 1 does not have a correct path. The kernel (linux file) and initrd are generally in the /boot directory not in the EFI directory. I don't use Pop OS so have you verified the location of these files? The kernel should probably be: linux /boot/vmlinuz root=UUID=1d18dfdb-3d9c-4e7c-aa0c-c2eb92b1adb4
Might need some parameters after the UUID.
yes kernels first copied to /boot then to /boot/efi/EFI/Pop_OS-1d18dfdb-3d9c-4e7c-aa0c-c2eb92b1adb4/ thats default and i am used to it its definely true, there are no typos.
i will look and try for uuid.
Quote:
Originally Posted by yancek
You indicate you installed Grub as you were having boot problems and you have an entry for GRUB in your efi boot options Boot0000. What happens when you select that option in the BIOS firmware options?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.