Originally posted by [emoji2398
Announcement
Collapse
No announcement yet.
EFI and BTRFS booting mess. Can I change the GRUB host?
Collapse
This topic is closed.
X
X
-
Regards, John Little
- Top
- Bottom
-
Originally posted by claydoh View PostOoh ooh ooh I know this one:
https://community.kde.org/Neon/Insta...tion_June_2016
Now, my Neon upgraded to 20.04 has this now (including WIndows 10):
Code:root@dohbuoy-FLEX-15IIL:/boot/efi# tree . ├── EFI │ ├── BOOT │ │ ├── BOOTX64.EFI │ │ ├── fbx64.efi │ │ └── mmx64.efi │ ├── neon │ │ ├── BOOTX64.CSV │ │ ├── grub.cfg │ │ ├── grubx64.efi │ │ ├── mmx64.efi │ │ └── shimx64.efi │ └── ubuntu │ ├── BOOTX64.CSV │ ├── grub.cfg │ ├── grubx64.efi │ ├── mmx64.efi │ └── shimx64.efi └── System Volume Information ├── AadRecoveryPasswordDelete └── ClientRecoveryPasswordRotation 7 directories, 13 files
I do have Win 10 on a separate SSD, including its own efi partition.
- Top
- Bottom
Comment
-
Originally posted by jlittle View PostThe last time I checked out the grub.cfg in the EFI/ubuntu directory I found that it was not used, and changes to it had no effect. Instead, the grub boot directory was written into the .efi file. (With secure boot I imagine grub has to work this way.) I don't know why it is there.
You could try to change the UUID inside "<ESP>\EFI\ubuntu\grubx64.efi" and check
Don't do this on your normal system because you might get left with an unbootable system if you don't have another bootloader working...
And again i hate to repeat it, but all this mess is solved in a very simple and non-conflicting way by Systemd-boot
Because each distros kernel and ramdisks to be used are put in separate (vendor) directories and defined inside the config snippets:
Code:/boot/efi ├── loader │ ├── entries │ │ ├── KeyTool.conf │ │ ├── MokManager.conf │ │ ├── efi-kubuntu.conf │ │ ├── grub-kubuntu.conf │ │ ├── kubuntu_.conf │ │ ├── kubuntu_old.conf │ │ └── kubuntu_prev.conf │ ├── loader.conf │ └── random-seed
Code:# /loader/entries/grub-kubuntu.conf title Grub-loader version Kubuntu architecture x64 efi /EFI/ubuntu/grubx64.efi
Last edited by ©TriMoon™; Jul 29, 2020, 01:00 AM.Well thats all for now, 3M
- Top
- Bottom
Comment
-
Originally posted by ©TriMoon™ View PostThe "<ESP>\EFI\ubuntu\grubx64.efi" file needs some way to determine the root partition to look for "/boot/grub/grub.cfg" so "<ESP>\EFI\ubuntu\grub.cfg" is the only logical place it will grab that info IMHO...
Code:sudo grub-install --boot-directory=/mnt/top/@grub/boot --efi-directory=/boot/efi
In writing this post, I notice that my grub set up dates from 2018, maybe it's about time I refreshed it. I normally leave /boot/efi unmounted in Kubuntu, to stop grub messing with it when updates occur. Because I have a working bootloader in a place I control, I can experiment using another. If I get around to it I'll see if the EFI grub.cfg is still not used.Regards, John Little
- Top
- Bottom
Comment
-
Originally posted by jlittle View PostThe location of /boot/grub/grub.cfg was in the grubx64.efi file; I could see it there by running strings -n 10 on that file. The strings trick stopped working at some point.
Originally posted by jlittle View PostIn writing this post, I notice that my grub set up dates from 2018, maybe it's about time I refreshed it. I normally leave /boot/efi unmounted in Kubuntu, to stop grub messing with it when updates occur. Because I have a working bootloader in a place I control, I can experiment using another. If I get around to it I'll see if the EFI grub.cfg is still not used.
But please be aware of it adding "intel_iommu=on" to your kernel commandline at moment, you can simply comment that line out if you don't want it.
If you install and run it once while in your live session it will automatically install Systemd-boot with proper config snippets for your current boot...
(And update the kernel(s) and ramdisk(s) used to boot from on each update of them without unneeded writes to the ESP in case that is on a SSD etc...Last edited by ©TriMoon™; Jul 29, 2020, 03:28 AM.Well thats all for now, 3M
- Top
- Bottom
Comment
-
This is a recent change then. I used to be able to change EFI/Ubuntu/grub.cfg manually to boot off of different subvolumes. That way I had multiple distros installed in different subvolumes in the same partition and I could choose which one I booted.
Sent from my HD1905 using Tapatalk
- Top
- Bottom
Comment
-
Ok, ©TriMoon™ come clean!
Are you really Steve Riley in disguise?
Your posts about eif, systemd-boot and the technical level of your discussions reminds me of Steve Riley. He was a former admin in this forum who replaced me when I retired. He formerly worked for MS, Google, River Rock and when Gartner lured him away he was required to quit the forum because of the nature of his work for Gartner. Steve was absolutely brilliant in Windows, of course, and reasonably knowledgeable in Linux when I asked him to replace me. He became brilliant in Linux/Kubuntu in short order. He reminded me of several guys in grad school who were an order of magnitude smarter than most of the rest of us. Certainly me.
I notice from the time sigs on your posts that you are somewhere in GMT -1 +-1."A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
– John F. Kennedy, February 26, 1962.
- Top
- Bottom
Comment
-
Hehehe no not really...
I share some of his knowledge maybe but that's un-avoidable if you've eating binary since 8yrs old... (im now 53)
I grewup using FIDO-net, VIC-20 etc and as hacker like most kid-geeks, then turned whitehat for a while (uhmm oops )
And no im in GMT+3 since uhmmm 5-6 yrs now.. (Was GMT+1 whole my live)Well thats all for now, 3M
- Top
- Bottom
Comment
Comment