user@PC:~$ sudo fdisk -l
[sudo] password for user:
Disk /dev/nvme0n1: 238,49 GiB, 256060514304 bytes, 500118192 sectors
Disk model: TS256GMTE110S
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 6A76AEF7-D60C-4CA8-A4F2-9053CCDB5F29
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 1023999 1021952 499M Windows recovery environment
/dev/nvme0n1p2 1024000 1228799 204800 100M EFI System
/dev/nvme0n1p3 1228800 1261567 32768 16M Microsoft reserved
/dev/nvme0n1p4 1261568 421232563 419970996 200,3G Microsoft basic data
/dev/nvme0n1p5 421232640 422209535 976896 477M Linux filesystem
/dev/nvme0n1p6 422209536 485373951 63164416 30,1G Linux filesystem
/dev/nvme0n1p7 485373952 500117503 14743552 7G Linux swap
https://wiki.archlinux.org/title/EFI_system_partition
https://www.howtogeek.com/414634/how-to-mount-and-unmount-storage-devices-from-the-linux-terminal/
user@PC:/$ sudo mkdir /mnt/efipart
user@PC:/$ sudo mount /dev/nvme0n1p2 /mnt/efipart
user@PC:/$ ls /mnt/efipart
user@PC:/$ sudo ls /mnt/efipart
EFI
user@PC:/$ sudo ls /mnt/efipart/EFI
Boot mageia Microsoft ubuntu
user@PC:/$ sudo rm -R /mnt/efipart/EFI/mageia
user@PC:/$ sudo ls /mnt/efipart/EFI
Boot Microsoft ubuntu
user@PC:/$ sudo umount /dev/nvme0n1p2 /mnt/efipart
umount: /mnt/efipart: not mounted.
user@PC:/$ sudo rmdir /mnt/efipart
IT DID NOT WORKED OUT. STILL MAGEIA IN BIOS BOOT OPTIONS.
Should work with efibootmgr
sudo apt install efibootmgr
efibootmgr -v
sudo efibootmgr -b <bootnum> -B
-b option specify the boot number. -B option delete that boot number.
https://www.linuxbabe.com/command-line/how-to-use-linux-efibootmgr-examples
BUT
SOLVED IN WINDOWS 10:
Run cmd as Administrator
C:\Windows\system32>bcdedit /enum firmware
Firmware Boot Manager
---------------------
identifier {fwbootmgr}
displayorder {dedfa429-a2c2-11eb-bfa1-806e6f6e6963}
{bootmgr}
{b3bb7720-ecdd-11eb-bfc7-806e6f6e6963}
timeout 1
Windows Boot Manager
--------------------
identifier {bootmgr}
device partition=\Device\HarddiskVolume2
path \EFI\MICROSOFT\BOOT\BOOTMGFW.EFI
description Windows Boot Manager
locale en-US
inherit {globalsettings}
default {current}
resumeobject {3c259424-a104-11eb-a9ac-c268960a444b}
displayorder {current}
toolsdisplayorder {memdiag}
timeout 30
Firmware Application (101fffff)
-------------------------------
identifier {b3bb7720-ecdd-11eb-bfc7-806e6f6e6963}
device partition=\Device\HarddiskVolume2
path \EFI\MAGEIA\GRUBX64.EFI
description mageia
Firmware Application (101fffff)
-------------------------------
identifier {dedfa429-a2c2-11eb-bfa1-806e6f6e6963}
device partition=\Device\HarddiskVolume2
path \EFI\UBUNTU\SHIMX64.EFI
description ubuntu
C:\Windows\system32>bcdedit /delete {b3bb7720-ecdd-11eb-bfc7-806e6f6e6963}
The operation completed successfully.
No comments:
Post a Comment