[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-user
Subject:    Re: [gentoo-user] Re: Dual Booting - selection from command line
From:       thelma () sys-concept ! com
Date:       2024-01-17 18:54:46
Message-ID: 43e03688-3466-4d2c-88b5-417167131519 () sys-concept ! com
[Download RAW message or body]

On 1/17/24 10:21, Mark Knecht wrote:
> 
> 
> On Wed, Jan 17, 2024 at 9:58 AM <thelma@sys-concept.com \
> <mailto:thelma@sys-concept.com>> wrote:
> > 
> > On 1/10/24 15:14, Mark Knecht wrote:
> > > 
> > > 
> > > On Wed, Jan 10, 2024 at 2:38 PM <thelma@sys-concept.com \
> > > <mailto:thelma@sys-concept.com> <mailto:thelma@sys-concept.com \
> > > <mailto:thelma@sys-concept.com>>> wrote:
> <SNIP>
> > 
> > Thank you, yes that work perfectly
> > 
> > "efibootmgr -n "  is one time entry for one reboot; to set it permanently one \
> > should use: "efibootmgr -o + arrange entries"
> > 
> > Does anybody know how to rename the boot entries, in my case I have:
> > 
> > efibootmgr
> > BootCurrent: 0004
> > Timeout: 1 seconds
> > BootOrder: 0000,0004,0002
> > Boot0000* rEFInd Boot Manager   \
> > HD(1,GPT,87a5c5b6-c0a8-024c-b1c0-622907add992,0x800,0x200000)/File(\EFI\REFIND\REFIND_X64.EFI)
> >  Boot0002* UEFI OS       \
> > HD(1,GPT,87a5c5b6-c0a8-024c-b1c0-622907add992,0x800,0x200000)/File(\EFI\BOOT\BOOTX64.EFI)0000424f
> >  Boot0004* rEFInd Boot Manager   \
> > HD(1,GPT,9d2481cf-8c35-4d9d-88ee-1d0d6e06cc68,0x800,0x1dc800)/File(\EFI\refind\refind_x64.efi)
> >  
> > This is cryptic,
> > 0000 - is sda disk
> > 0004 - nvme disk
> > 
> > How to rename them to SDA  and NVME respectively
> 
> man efibootmgr shows a 'label' option but
> I've never used it. Try it at your own risk.
> 
> If I was going to try it I would first create the
> new one with the new label using the data from
> an existing option, test it, and if it worked then
> delete the one with the less useful name.
> 
> From Google Bard:
> <QUOTE>
> Use efibootmgr -c -d <disk> -p <partition> -l <new_label> -L <loader_path> to \
> create a new entry with the desired label and correct path to the bootloader: 
> <disk>: The disk where the bootloader resides (e.g., /dev/sda)
> <partition>: The partition number where the bootloader is located (e.g., 1)
> <new_label>: The desired label for the boot option
> <loader_path>: The full path to the bootloader file (e.g., \
> \\EFI\\ubuntu\\shimx64.efi) </QUOTE>

Thank you!  It worked as you suggested.

In my case, I created a new label:

efibootmgr -c -d /dev/nvme0n1p1 -p 1 -L i5_new -l /EFI/REFIND/REFIND_X64.EFI

device name and partition number can be derived from "fdisk -l"

I'm not sure why "/EFI/REFIND/REFIND_X64.EFI" are all caps letters, in /boot dir it \
is: "/EFI/refind/refind_x64.efi"

but now my entries are less cryptic,

efibootmgr
BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0001,0003,0002
Boot0001* Gentoo_sda	HD(1,GPT,9d2481cf-8c35-4d9d-88ee-1d0d6e06cc68,0x800,0x1dc800)/File(\EFI\refind\refind_x64.efi)
 Boot0002* UEFI OS	HD(1,GPT,87a5c5b6-c0a8-024c-b1c0-622907add992,0x800,0x200000)/File(\EFI\BOOT\BOOTX64.EFI)0000424f
 Boot0003* i5_new	HD(1,GPT,87a5c5b6-c0a8-024c-b1c0-622907add992,0x800,0x200000)/File(\EFI\REFIND\REFIND_X64.EFI)


Switching can easily be done, with "efibootmgr and number"  eg. efibootmgr 3
but this is only one reboot, it will go to default setup as per: BootOrder: \
0001,0003,0002

To make it permanent change it has to be done with eg:
  efibootmgr -o 0003,0001,0002


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic