From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DC8BE15838C for ; Wed, 17 Jan 2024 18:54:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D21832BC023; Wed, 17 Jan 2024 18:54:54 +0000 (UTC) Received: from mail125c7.megamailservers.com (mail765.megamailservers.com [69.49.98.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 42C422BC013 for ; Wed, 17 Jan 2024 18:54:54 +0000 (UTC) X-Authenticated-User: info@sys-concept.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.com; s=mailtor; t=1705517693; bh=15DVDLPa0YbPewrJR4369pvcMGRGp4EgS6F0QqcbH98=; h=Date:Subject:To:References:From:In-Reply-To:From; b=OJatV5wx7tE/IKHj1rdpLKSf3Jvy/b+N88jPMoZiN/QmahU8fNttdyYXJfCV8sdva QzFU1ViGKavLUVje59GomEHgNB2bcqskO8s9nX+zoeRptltxEDOEWQgBrn9rUkXb55 KVlcqZ0WwHDdPxjAtBmheQrDvv8ubAhTbvCptfd0= Feedback-ID:thelma@sys-conc Authentication-Results: MTA-69.49.109.100; auth=pass smtp.auth=info@sys-concept.com smtp.mailfrom=thelma@sys-concept.com X-VIP: 69.49.109.100 Received: from [10.0.0.109] 184.69.242.18":"36533 ([184.69.242.18]) (authenticated bits=0) by mail125c7.megamailservers.com (8.14.9/8.13.1) with ESMTP id 40HIslrL120867 for ; Wed, 17 Jan 2024 13:54:49 -0500 Message-ID: <43e03688-3466-4d2c-88b5-417167131519@sys-concept.com> Date: Wed, 17 Jan 2024 11:54:46 -0700 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [gentoo-user] Re: Dual Booting - selection from command line Content-Language: en-CA To: gentoo-user@lists.gentoo.org References: <562cae04-6ba3-42cb-b19f-4af2b6cb1b8c@sys-concept.com> <213b2fd0-d2fd-4c5e-8105-b580d3082087@sys-concept.com> From: thelma@sys-concept.com In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-VADE-SPAMSTATE: clean X-VADE-SPAMSCORE: 0 X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvkedrvdejhedgudduvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfjqffuvffqrffktedpqfgfvfdpgffpggdqveejnecuuegrihhlohhuthemuceftddunecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttddvjeenucfhrhhomhepthhhvghlmhgrsehshihsqdgtohhntggvphhtrdgtohhmnecuggftrfgrthhtvghrnhepkefgiefhteejteejkeefkeeggfffvdeihfeuvedvkedvvdffhedvgeeiudeguefhnecukfhppedukeegrdeiledrvdegvddrudeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudekgedrieelrddvgedvrddukedphhgvlhhopegluddtrddtrddtrddutdelngdpmhgrihhlfhhrohhmpehthhgvlhhmrgesshihshdqtghonhgtvghpthdrtghomhdpnhgspghrtghpthhtohepuddprhgtphhtthhopehgvghnthhoohdquhhsvghrsehlihhsthhsrdhgvghnthhoohdrohhrgh X-Rspamd-Result: default: False [-0.09 / 6.00]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_NO_DN(0.00)[]; ASN(0.00)[asn:6327, ipnet:184.69.224.0/19, country:CA]; RCVD_COUNT_ZERO(0.00)[0]; MID_RHS_MATCH_FROM(0.00)[]; NEURAL_HAM(-0.00)[-0.242]; MIME_TRACE(0.00)[0:+]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1] X-Rspamd-Status: No, score=-0.09 X-Origin-Country: CA X-Archives-Salt: 11a96dbc-100f-49fd-986d-05e18f38f61e X-Archives-Hash: 3aa73a73ac8c00d523a69b3ee876f74d On 1/17/24 10:21, Mark Knecht wrote: > > > On Wed, Jan 17, 2024 at 9:58 AM > wrote: > > > > On 1/10/24 15:14, Mark Knecht wrote: > > > > > > > > > On Wed, Jan 10, 2024 at 2:38 PM >> wrote: > > > > > 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: > > Use efibootmgr -c -d -p -l -L to create a new entry with the desired label and correct path to the bootloader: > > : The disk where the bootloader resides (e.g., /dev/sda) > : The partition number where the bootloader is located (e.g., 1) > : The desired label for the boot option > : The full path to the bootloader file (e.g., \\EFI\\ubuntu\\shimx64.efi) > 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