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)
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 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.
On Tue, 27 Jul 2021 17:19:33 +0100, Grimble wrote:< snip >
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 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
My problem PC has been returned from the supplier, and boots happilydev/sda2:
into Windows 10.
Disk layout as follows:
/dev/sda:
/dev/sda1: Microsoft reserved partition 16MiB Flags msftres /
Basic data partition ntfs 200MiB Flags msftdata /dev/sda3: /Mageia
50GiB ..... other partitions of mineMicrosoft
/dev/sdb:
/dev/sdb1: EFI system partition fat32 BOOT 500MiB /dev/sdb2:
eserved partition /dev/sdb3: Basic data partition ntfs Windows460MiB
.......
Trying to re-install grub2 boot loader with Mageia Rescue but it reports
that it cannot find EFI directory.
On 27/07/2021 21:54, Bit Twister wrote:
On Tue, 27 Jul 2021 17:19:33 +0100, Grimble wrote:< snip >
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
Things I have found:
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
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?
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
.......
On 27/07/2021 17:19, Grimble wrote:
My problem PC has been returned from the supplier, and boots happilyI have found a way to specify the EFI partition to grub2-install, so now
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 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?
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
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 483 |
Nodes: | 16 (0 / 16) |
Uptime: | 76:31:58 |
Calls: | 9,573 |
Calls today: | 4 |
Files: | 13,666 |
Messages: | 6,142,668 |