Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

MS-DOS must die!


computers / alt.os.linux.mageia / Re: EFI directory problem

SubjectAuthor
* EFI directory problemGrimble
+- Re: EFI directory problemDavid W. Hodgins
+* Re: EFI directory problemBit Twister
|+- Re: EFI directory problemGrimble
|`* Re: EFI directory problemGrimble
| `- Re: EFI directory problemBit Twister
+- Re: EFI directory problemJim
`* Re: EFI directory problemGrimble
 `* Re: EFI directory problemGrimble
  `- Re: EFI directory problemDavid W. Hodgins

1
EFI directory problem

<sdpbml$786$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=3961&group=alt.os.linux.mageia#3961

 copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: grim...@nomail.afraid.org (Grimble)
Newsgroups: alt.os.linux.mageia
Subject: EFI directory problem
Date: Tue, 27 Jul 2021 17:19:33 +0100
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <sdpbml$786$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 27 Jul 2021 16:19:33 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="1d88145a4c72a631a890e86a1b3c4149";
logging-data="7430"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+nwYxc/PctSofAGYUGWaDe"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
Cancel-Lock: sha1:VVSG5Qb+g5MZF+M1E5yqVqSsrWE=
Content-Language: en-GB
X-Mozilla-News-Host: news://news.eternal-september.org:119
 by: Grimble - Tue, 27 Jul 2021 16:19 UTC

My problem PC has been returned from the supplier, and boots happily
into Windows 10.
Disk layout as follows:
/dev/sda:
/dev/sda1: Microsoft reserved partition 16MiB Flags msftres
/dev/sda2: Basic data partition ntfs 200MiB Flags msftdata
/dev/sda3: / Mageia 8 50GiB
...... other partitions of mine

/dev/sdb:
/dev/sdb1: EFI system partition fat32 BOOT 500MiB
/dev/sdb2: Microsoft eserved partition
/dev/sdb3: Basic data partition ntfs Windows 460MiB
........
Trying to re-install grub2 boot loader with Mageia Rescue but it reports
that it cannot find EFI directory.
Am I correct in thinking that if grub2-install could find /dev/sdb1, the
boot loader could be installed?
If so, how do I arrange that?
I don't want to re-install Mageia 8 from scratch, because I have done a
lot of personalisation.
Thanks.
(PS they didn't bork it - this problem arose because of previous
problems with the Windows installation)
--
Grimble
Registered Linux User #450547
Machine 'Bach' running Plasma 5.20.4 on 5.10.52-desktop-1.mga8 kernel.
Mageia release 8 (Official) for x86_64

Re: EFI directory problem

<op.067fbrroa3w0dxdave@hodgins.homeip.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=3962&group=alt.os.linux.mageia#3962

 copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: alt.os.linux.mageia
Subject: Re: EFI directory problem
Date: Tue, 27 Jul 2021 15:34:29 -0400
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <op.067fbrroa3w0dxdave@hodgins.homeip.net>
References: <sdpbml$786$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="029efd3582d221b4617dcc25744d6cad";
logging-data="28262"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+VUVm2OFZ7knV5sOIxNfa+RkpNFXqsz2w="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:+bFUd9JIxW8UENYxXqNzw1gjjkY=
 by: David W. Hodgins - Tue, 27 Jul 2021 19:34 UTC

On Tue, 27 Jul 2021 12:19:33 -0400, Grimble <grimble@nomail.afraid.org> wrote:

> My problem PC has been returned from the supplier, and boots happily
> into Windows 10.
> Disk layout as follows:
> /dev/sda:
> /dev/sda1: Microsoft reserved partition 16MiB Flags msftres
> /dev/sda2: Basic data partition ntfs 200MiB Flags msftdata
> /dev/sda3: / Mageia 8 50GiB
> ..... other partitions of mine
>
> /dev/sdb:
> /dev/sdb1: EFI system partition fat32 BOOT 500MiB
> /dev/sdb2: Microsoft eserved partition
> /dev/sdb3: Basic data partition ntfs Windows 460MiB
> .......
> Trying to re-install grub2 boot loader with Mageia Rescue but it reports
> that it cannot find EFI directory.
> Am I correct in thinking that if grub2-install could find /dev/sdb1, the
> boot loader could be installed?
> If so, how do I arrange that?
> I don't want to re-install Mageia 8 from scratch, because I have done a
> lot of personalisation.
> Thanks.
> (PS they didn't bork it - this problem arose because of previous
> problems with the Windows installation)

On any efi system, I strongly recommend installing refind using "mcc/Boot/
Set up boot system" to switch the Bootloader to use from grub2 to refind.
It's much simpler to use and configure. It dynamically finds the bootable
installs (linux and m$), and available kernels.

Regards, Dave Hodgins

--
Change dwhodgins@nomail.afraid.org to davidwhodgins@teksavvy.com for
email replies.

Re: EFI directory problem

<slrnsg0sjs.1ee6s.BitTwister@wb.home.test>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=3963&group=alt.os.linux.mageia#3963

 copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: BitTwis...@mouse-potato.com (Bit Twister)
Newsgroups: alt.os.linux.mageia
Subject: Re: EFI directory problem
Date: Tue, 27 Jul 2021 15:54:13 -0500
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <slrnsg0sjs.1ee6s.BitTwister@wb.home.test>
References: <sdpbml$786$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="486f3280ebf7efa17a8ca1169f55e427";
logging-data="23595"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18C01BWtHerlzSTt5vcYhRGN5TpfGsJeiA="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:07WtCpI/AZFYOQ/YsrEVPc/p+mA=
 by: Bit Twister - Tue, 27 Jul 2021 20:54 UTC

On Tue, 27 Jul 2021 17:19:33 +0100, Grimble wrote:
> My problem PC has been returned from the supplier, and boots happily
> into Windows 10.
> Disk layout as follows:
> /dev/sda:
> /dev/sda1: Microsoft reserved partition 16MiB Flags msftres
> /dev/sda2: Basic data partition ntfs 200MiB Flags msftdata
> /dev/sda3: / Mageia 8 50GiB
> ..... other partitions of mine
>
> /dev/sdb:
> /dev/sdb1: EFI system partition fat32 BOOT 500MiB
> /dev/sdb2: Microsoft eserved partition
> /dev/sdb3: Basic data partition ntfs Windows 460MiB
> .......
> Trying to re-install grub2 boot loader with Mageia Rescue but it reports
> that it cannot find EFI directory.
> Am I correct in thinking that if grub2-install could find /dev/sdb1, the
> boot loader could be installed?
> If so, how do I arrange that?
> I don't want to re-install Mageia 8 from scratch, because I have done a
> lot of personalisation.
> Thanks.
> (PS they didn't bork it - this problem arose because of previous
> problems with the Windows installation)

I do not do Windows or efi boot. But as I misunderstand it grub looks
for code of EF02 (non efi) or EF00 (efi) to decide what to do.
Your "Flags msftres" has confused grub.
Would not hurt to open a grub bug report to get it fixed.

To see partition code example
# gdisk -l /dev/sda
Number Start (sector) End (sector) Size Code Name
<snipped>
10 1471924224 1471926271 1024.0 KiB EF02 bios_grub

I downloaded systemrescue from https://www.system-rescue.org/
and use gparted to set the flag Code EF02.

Download page has instructions for burning iso to usb drive.
741M systemrescue-8.04-amd64.iso

--
The warranty and liability expired as you read this message.
If the above breaks your system, it's yours and you keep both pieces.
Practice safe computing. Backup the file before you change it.
Do a, man command_here or cat command_here, before using it.

Re: EFI directory problem

<sdr8o8$ojd$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=3964&group=alt.os.linux.mageia#3964

 copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: grim...@nomail.afraid.org (Grimble)
Newsgroups: alt.os.linux.mageia
Subject: Re: EFI directory problem
Date: Wed, 28 Jul 2021 10:41:27 +0100
Organization: A noiseless patient Spider
Lines: 61
Message-ID: <sdr8o8$ojd$1@dont-email.me>
References: <sdpbml$786$1@dont-email.me>
<slrnsg0sjs.1ee6s.BitTwister@wb.home.test>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 28 Jul 2021 09:41:28 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="60d8ba90d07bd9ee6fda2964cd518852";
logging-data="25197"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19IJE9U0GIf0L+AB8Eo9nnQ"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
Cancel-Lock: sha1:vKgmTSNWlXGXjlb47RIpdQTQ+kc=
In-Reply-To: <slrnsg0sjs.1ee6s.BitTwister@wb.home.test>
Content-Language: en-GB
 by: Grimble - Wed, 28 Jul 2021 09:41 UTC

On 27/07/2021 21:54, Bit Twister wrote:
> On Tue, 27 Jul 2021 17:19:33 +0100, Grimble wrote:
>> My problem PC has been returned from the supplier, and boots happily
>> into Windows 10.
>> Disk layout as follows:
>> /dev/sda:
>> /dev/sda1: Microsoft reserved partition 16MiB Flags msftres
>> /dev/sda2: Basic data partition ntfs 200MiB Flags msftdata
>> /dev/sda3: / Mageia 8 50GiB
>> ..... other partitions of mine
>>
>> /dev/sdb:
>> /dev/sdb1: EFI system partition fat32 BOOT 500MiB
>> /dev/sdb2: Microsoft eserved partition
>> /dev/sdb3: Basic data partition ntfs Windows 460MiB
>> .......
>> Trying to re-install grub2 boot loader with Mageia Rescue but it reports
>> that it cannot find EFI directory.
>> Am I correct in thinking that if grub2-install could find /dev/sdb1, the
>> boot loader could be installed?
>> If so, how do I arrange that?
>> I don't want to re-install Mageia 8 from scratch, because I have done a
>> lot of personalisation.
>> Thanks.
>> (PS they didn't bork it - this problem arose because of previous
>> problems with the Windows installation)
>
> I do not do Windows or efi boot. But as I misunderstand it grub looks
> for code of EF02 (non efi) or EF00 (efi) to decide what to do.
> Your "Flags msftres" has confused grub.
> Would not hurt to open a grub bug report to get it fixed.
>
>
> To see partition code example
> # gdisk -l /dev/sda
> Number Start (sector) End (sector) Size Code Name
> <snipped>
> 10 1471924224 1471926271 1024.0 KiB EF02 bios_grub
>
>
> I downloaded systemrescue from https://www.system-rescue.org/
> and use gparted to set the flag Code EF02.
>
> Download page has instructions for burning iso to usb drive.
> 741M systemrescue-8.04-amd64.iso
>
> --
> The warranty and liability expired as you read this message.
> If the above breaks your system, it's yours and you keep both pieces.
> Practice safe computing. Backup the file before you change it.
> Do a, man command_here or cat command_here, before using it.
>
Thank Bit. I have system rescue already, so your suggestion should be
easy to implement.
G

--
Grimble
Registered Linux User #450547
Machine 'Bach' running Plasma 5.20.4 on 5.10.52-desktop-1.mga8 kernel.
Mageia release 8 (Official) for x86_64

Re: EFI directory problem

<sdrsm1$n1o$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=3965&group=alt.os.linux.mageia#3965

 copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: grim...@nomail.afraid.org (Grimble)
Newsgroups: alt.os.linux.mageia
Subject: Re: EFI directory problem
Date: Wed, 28 Jul 2021 16:21:36 +0100
Organization: A noiseless patient Spider
Lines: 51
Message-ID: <sdrsm1$n1o$1@dont-email.me>
References: <sdpbml$786$1@dont-email.me>
<slrnsg0sjs.1ee6s.BitTwister@wb.home.test>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 28 Jul 2021 15:21:37 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="60d8ba90d07bd9ee6fda2964cd518852";
logging-data="23608"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/so/I0+oygWO3tZqNAe1k8"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
Cancel-Lock: sha1:a8dNE/MqrFv/5vGgOylutzVA4F8=
In-Reply-To: <slrnsg0sjs.1ee6s.BitTwister@wb.home.test>
Content-Language: en-GB
 by: Grimble - Wed, 28 Jul 2021 15:21 UTC

On 27/07/2021 21:54, Bit Twister wrote:
> On Tue, 27 Jul 2021 17:19:33 +0100, Grimble wrote:
>> My problem PC has been returned from the supplier, and boots happily
>> into Windows 10.
>> Disk layout as follows:
>> /dev/sda:
>> /dev/sda1: Microsoft reserved partition 16MiB Flags msftres
>> /dev/sda2: Basic data partition ntfs 200MiB Flags msftdata
>> /dev/sda3: / Mageia 8 50GiB
>> ..... other partitions of mine
>>
>> /dev/sdb:
>> /dev/sdb1: EFI system partition fat32 BOOT 500MiB
>> /dev/sdb2: Microsoft eserved partition
>> /dev/sdb3: Basic data partition ntfs Windows 460MiB
>>>
< snip >
>
> I do not do Windows or efi boot. But as I misunderstand it grub looks
> for code of EF02 (non efi) or EF00 (efi) to decide what to do.
> Your "Flags msftres" has confused grub.
> Would not hurt to open a grub bug report to get it fixed.
>
>
> To see partition code example
> # gdisk -l /dev/sda
> Number Start (sector) End (sector) Size Code Name
> <snipped>
> 10 1471924224 1471926271 1024.0 KiB EF02 bios_grub
>
>
Things I have found:
1. /dev/sdb1 has the flags boot and esp, which Linux.org tells me
"This flag indicates an UEFI System Partition. GPT uses this flag as an
alias for "boot". The UEFI firmware stores files on this partition"
2. gdisk shows this partition with code "EF00", so it should have been
found.
3. Using system rescue 8.01, downloaded a couple of months ago, seems to
have no means of setting the code, although gdisk has that function.
4. Presumably there should be only one partition where grub2 is installed.
5. I used a system rescue option to boot into Mageia 8. Can I now safely
execute
grub2-install /dev/sdb
to fix the problem?

--
Grimble
Registered Linux User #450547
Machine 'Bach' running Plasma 5.20.4 on 5.10.52-desktop-1.mga8 kernel.
Mageia release 8 (Official) for x86_64

Re: EFI directory problem

<sdruaj$4in$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=3966&group=alt.os.linux.mageia#3966

 copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jim.be...@verizon.net (Jim)
Newsgroups: alt.os.linux.mageia
Subject: Re: EFI directory problem
Date: Wed, 28 Jul 2021 15:49:40 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 69
Message-ID: <sdruaj$4in$1@dont-email.me>
References: <sdpbml$786$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 28 Jul 2021 15:49:40 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="8167f67c0e3f0a02a272b8431eea92d5";
logging-data="4695"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Kgeox9ntCZPZNCMWi8guX"
User-Agent: Pan/0.146 (Hic habitat felicitas; 8107378
git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:32czbwX4JcbapDaz86fTDorwRhw=
 by: Jim - Wed, 28 Jul 2021 15:49 UTC

On Tue, 27 Jul 2021 17:19:33 +0100, Grimble wrote:

> My problem PC has been returned from the supplier, and boots happily
> into Windows 10.
> Disk layout as follows:
> /dev/sda:
> /dev/sda1: Microsoft reserved partition 16MiB Flags msftres /
dev/sda2:
> Basic data partition ntfs 200MiB Flags msftdata /dev/sda3: /
Mageia
8
> 50GiB ..... other partitions of mine
>
> /dev/sdb:
> /dev/sdb1: EFI system partition fat32 BOOT 500MiB /dev/sdb2:
Microsoft
> eserved partition /dev/sdb3: Basic data partition ntfs Windows
460MiB
> .......
> Trying to re-install grub2 boot loader with Mageia Rescue but it reports
> that it cannot find EFI directory.

I have cobbled together workable EFI/uefi/grub2 on two of my systems.
I won't tell you what I have is right, because the options I get when
booting on what to boot are strange, but it does work.

There must be an EFI system partition somewhere on the system. That
partition must be named or labeled EFI, and must have a top directory
named EFI. Under that, there are subdirectory trees for each
operating system or boot sequence.

My machine that is Mageia only has subdirectory trees BOOT and mageia.

My laptop that has mageia and Microsloth 10 has BOOT, HP, mageia,
and Microsoft. The laptop is an hp, and if I turn it on and
simply do what it does by default, the HP software will boot it
into Win10.

If I tap repeatedly on F9, I get a set of choices: OS boot loader
which is default hp boot into Microsloth, Boot From EFI File which
allows a set of choices eventually leading to Mageia or MS, mageia
which allows choice of Mageia or Win10 boot manager, and Local Disk
which again a set of choices.

That said, you have to have the EFI system partition, correctly
labeled as such and known as EFI by name or label.

If Mageia Rescue cannot find EFI directory, you probably need to
create a symbolic link in boot (as root, of course)
ln -s /boot/efi /boot/EFI and then create /boot/EFI/EFI.

That done you must mount your EFI system partition on /boot/EFI/EFI.

Then, grub2-install should find the EFI directory.

Do note that if your system root is the usb or cd, you will probably
need to mount your mageia partition on /mnt or chroot and make the
changes under boot there for that to persist.

Cheers!

jim b.

--
UNIX is not user-unfriendly, it merely
expects users to be computer friendly.

Re: EFI directory problem

<slrnsg3f59.1pb1p.BitTwister@wb.home.test>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=3967&group=alt.os.linux.mageia#3967

 copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: BitTwis...@mouse-potato.com (Bit Twister)
Newsgroups: alt.os.linux.mageia
Subject: Re: EFI directory problem
Date: Wed, 28 Jul 2021 15:23:04 -0500
Organization: A noiseless patient Spider
Lines: 53
Message-ID: <slrnsg3f59.1pb1p.BitTwister@wb.home.test>
References: <sdpbml$786$1@dont-email.me>
<slrnsg0sjs.1ee6s.BitTwister@wb.home.test> <sdrsm1$n1o$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="962ac175b2ca6668657bee765a1d1faf";
logging-data="23497"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/7/6P/NzNFzjqnYQ6Xgtr6Rh1Wzkb6IWs="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:NYN0UyhH2cOP0wYVgc0dEIWzo6U=
 by: Bit Twister - Wed, 28 Jul 2021 20:23 UTC

On Wed, 28 Jul 2021 16:21:36 +0100, Grimble wrote:
> On 27/07/2021 21:54, Bit Twister wrote:
>> On Tue, 27 Jul 2021 17:19:33 +0100, Grimble wrote:
>>> My problem PC has been returned from the supplier, and boots happily
>>> into Windows 10.
>>> Disk layout as follows:
>>> /dev/sda:
>>> /dev/sda1: Microsoft reserved partition 16MiB Flags msftres
>>> /dev/sda2: Basic data partition ntfs 200MiB Flags msftdata
>>> /dev/sda3: / Mageia 8 50GiB
>>> ..... other partitions of mine
>>>
>>> /dev/sdb:
>>> /dev/sdb1: EFI system partition fat32 BOOT 500MiB
>>> /dev/sdb2: Microsoft eserved partition
>>> /dev/sdb3: Basic data partition ntfs Windows 460MiB
>>>>
>< snip >
>>
>> I do not do Windows or efi boot. But as I misunderstand it grub looks
>> for code of EF02 (non efi) or EF00 (efi) to decide what to do.
>> Your "Flags msftres" has confused grub.
>> Would not hurt to open a grub bug report to get it fixed.
>>
>>
>> To see partition code example
>> # gdisk -l /dev/sda
>> Number Start (sector) End (sector) Size Code Name
>> <snipped>
>> 10 1471924224 1471926271 1024.0 KiB EF02 bios_grub
>>
>>
> Things I have found:
> 1. /dev/sdb1 has the flags boot and esp, which Linux.org tells me
> "This flag indicates an UEFI System Partition. GPT uses this flag as an
> alias for "boot". The UEFI firmware stores files on this partition"
> 2. gdisk shows this partition with code "EF00", so it should have been
> found.
> 3. Using system rescue 8.01, downloaded a couple of months ago, seems to
> have no means of setting the code, although gdisk has that function.

If I recall correctly you right click the desired parathion select Flags
and pick a flag name from list.

> 4. Presumably there should be only one partition where grub2 is installed.
> 5. I used a system rescue option to boot into Mageia 8. Can I now safely
> execute
> grub2-install /dev/sdb
> to fix the problem?

I would think so.I have used the option a few times.

Re: EFI directory problem

<sdubfo$gih$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=3969&group=alt.os.linux.mageia#3969

 copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: grim...@nomail.afraid.org (Grimble)
Newsgroups: alt.os.linux.mageia
Subject: Re: EFI directory problem
Date: Thu, 29 Jul 2021 14:46:31 +0100
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <sdubfo$gih$1@dont-email.me>
References: <sdpbml$786$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 29 Jul 2021 13:46:32 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="13ad9f9b15b00ebb976e61d0281e992d";
logging-data="16977"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+PMCIgCNDGvHUm4N9oPOPP"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
Cancel-Lock: sha1:YKPY1uD1LRIzHBmCdSVvqTmTosY=
In-Reply-To: <sdpbml$786$1@dont-email.me>
Content-Language: en-GB
 by: Grimble - Thu, 29 Jul 2021 13:46 UTC

On 27/07/2021 17:19, Grimble wrote:
> My problem PC has been returned from the supplier, and boots happily
> into Windows 10.
> Disk layout as follows:
> /dev/sda:
> /dev/sda1: Microsoft reserved partition    16MiB    Flags msftres
> /dev/sda2: Basic data partition ntfs    200MiB    Flags msftdata
> /dev/sda3: / Mageia 8            50GiB
> ..... other partitions of mine
>
> /dev/sdb:
> /dev/sdb1: EFI system partition    fat32 BOOT    500MiB
> /dev/sdb2: Microsoft eserved partition
> /dev/sdb3: Basic data partition    ntfs    Windows    460MiB
> .......
>
I have found a way to specify the EFI partition to grub2-install, so now
I can select Mageia 8 from the boot menu. Unfortunately, dracut doesn't
like a change that has happened to the serial number of the vfat
partition that is /dev/sdb1. It says it can't find
UUID-by-name-FA07-C2F6, which is the old number of BOOT. The new number
C4E6-9FA1 has been entered into /etc/fstab, but the old number persists
somewhere (superblock?). How to change dracut's behaviour?

--
Grimble
Registered Linux User #450547
Machine 'Bach' running Plasma 5.20.4 on 5.10.52-desktop-1.mga8 kernel.
Mageia release 8 (Official) for x86_64

Re: EFI directory problem

<sdud01$2ke$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=3970&group=alt.os.linux.mageia#3970

 copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: grim...@nomail.afraid.org (Grimble)
Newsgroups: alt.os.linux.mageia
Subject: Re: EFI directory problem
Date: Thu, 29 Jul 2021 15:12:17 +0100
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <sdud01$2ke$1@dont-email.me>
References: <sdpbml$786$1@dont-email.me> <sdubfo$gih$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 29 Jul 2021 14:12:17 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="13ad9f9b15b00ebb976e61d0281e992d";
logging-data="2702"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1//GC++a4ofCsSSpEiFmSj8"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
Cancel-Lock: sha1:sTlzWDjckxyJn8Cl8VkK+05ueLs=
In-Reply-To: <sdubfo$gih$1@dont-email.me>
Content-Language: en-GB
 by: Grimble - Thu, 29 Jul 2021 14:12 UTC

On 29/07/2021 14:46, Grimble wrote:
> On 27/07/2021 17:19, Grimble wrote:
>> My problem PC has been returned from the supplier, and boots happily
>> into Windows 10.
>> Disk layout as follows:
>> /dev/sda:
>> /dev/sda1: Microsoft reserved partition    16MiB    Flags msftres
>> /dev/sda2: Basic data partition ntfs    200MiB    Flags msftdata
>> /dev/sda3: / Mageia 8            50GiB
>> ..... other partitions of mine
>>
>> /dev/sdb:
>> /dev/sdb1: EFI system partition    fat32 BOOT    500MiB
>> /dev/sdb2: Microsoft eserved partition
>> /dev/sdb3: Basic data partition    ntfs    Windows    460MiB
>> .......
>>
> I have found a way to specify the EFI partition to grub2-install, so now
> I can select Mageia 8 from the boot menu. Unfortunately, dracut doesn't
> like a change that has happened to the serial number of the vfat
> partition that is /dev/sdb1. It says it can't find
> UUID-by-name-FA07-C2F6, which is the old number of BOOT. The new number
> C4E6-9FA1 has been entered into /etc/fstab, but the old number persists
> somewhere (superblock?). How to change dracut's behaviour?
>
>
Write out 100 times "I must Google before posting"
Found out about mlabel

--
Grimble
Registered Linux User #450547
Machine 'Bach' running Plasma 5.20.4 on 5.10.52-desktop-1.mga8 kernel.
Mageia release 8 (Official) for x86_64

Re: EFI directory problem

<op.07as5tppa3w0dxdave@hodgins.homeip.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=3971&group=alt.os.linux.mageia#3971

 copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: alt.os.linux.mageia
Subject: Re: EFI directory problem
Date: Thu, 29 Jul 2021 11:26:07 -0400
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <op.07as5tppa3w0dxdave@hodgins.homeip.net>
References: <sdpbml$786$1@dont-email.me> <sdubfo$gih$1@dont-email.me>
<sdud01$2ke$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="bebb2d8eb64f255bba8284db3bce3fa3";
logging-data="32102"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/wGz1AG7p771HDQzVdeWOLzRp9wlt0Z0s="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:PjvIPy7kukWqhRoloP65MW912XQ=
 by: David W. Hodgins - Thu, 29 Jul 2021 15:26 UTC

On Thu, 29 Jul 2021 10:12:17 -0400, Grimble <grimble@nomail.afraid.org> wrote:
> On 29/07/2021 14:46, Grimble wrote:
>> I have found a way to specify the EFI partition to grub2-install, so now
>> I can select Mageia 8 from the boot menu. Unfortunately, dracut doesn't
>> like a change that has happened to the serial number of the vfat
>> partition that is /dev/sdb1. It says it can't find
>> UUID-by-name-FA07-C2F6, which is the old number of BOOT. The new number
>> C4E6-9FA1 has been entered into /etc/fstab, but the old number persists
>> somewhere (superblock?). How to change dracut's behaviour?

> Write out 100 times "I must Google before posting"
> Found out about mlabel

Just fyi, the old uuid (serial in dos terms) is stored in the file
/boot/initrd-$(uname -r).img. To overwrite it after changing the /etc/fstab,
run dracut with the -f option. Without the -f option dracut will not overwrite
an existing initrd image.

Regards, Dave Hodgins

--
Change dwhodgins@nomail.afraid.org to davidwhodgins@teksavvy.com for
email replies.

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor