[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 15:40:50
Message-ID: 213b2fd0-d2fd-4c5e-8105-b580d3082087 () sys-concept ! com
[Download RAW message or body]

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>> wrote:
> > 
> > On 1/9/24 19:22, Nikos Chantziaras wrote:
> > > On 10/01/2024 02:18, thelma@sys-concept.com <mailto:thelma@sys-concept.com> \
> > > wrote:
> > > > I have a box that is two HD's and both are bootable; using "refind" instead \
> > > > of grub. So the selection I choose at boot which drive to boot will be the \
> > > > default (during reboot, from command line) until I select the second drive. 
> > > > The box will be installed in a remote location, so I have no option to select \
> > > > which drive to boot from (unless I'm in front of the box). Is it possible to \
> > > > select which drive I want to "boot" from the command line (reboot #2 etc)?
> > > 
> > > Maybe this helps: \
> > > https://gist.github.com/Darkhogg/82a651f40f835196df3b1bd1362f5b8c \
> > > <https://gist.github.com/Darkhogg/82a651f40f835196df3b1bd1362f5b8c>
> > 
> > Thank you for the link.
> 
> I have no experience with refind but for my UEFI systems I accomplish this
> using efibootmgr and a simple batch file. The machine always boots Linux
> by default but from within Linux I can tell it to reboot into Windows
> 
> mark@science2:~$ sudo efibootmgr
> BootCurrent: 0003
> Timeout: 1 seconds
> BootOrder: 0003,0000
> Boot0000* Windows Boot Manager
> Boot0003* ubuntu
> 
> 
> mark@science2:~$ cat bin/RebootWindows
> sudo efibootmgr -n 0000
> reboot
> mark@science2:~$

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


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

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