Unix & Linux Asked by J. Doe on August 31, 2020
I have installed RHEL 8 along with Windows 10.
I have used LVM. Volume group of pv /dev/sda1 (xfs) and pv /dev/sdc6 (xfs) mounted for /
and /home
. /dev/sdc5 (xfs) used for /boot
Now I don’t see a Windows in a grub list. Tried to add to /etc/grub.d/40-custom/
menuentry "Windows 10" {
insmod part_gpt
insmod fat
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set=root 0CC3-C99F
chainloader +1
}
Output: blkid
:
/dev/sda2: UUID="mniI15-geof-Rdar-f4Sk-dnhw-2rKh-5YHlsf" TYPE="LVM2_member" <br>PARTUUID="0c09d750-02"<br>
/dev/sda3: LABEL="Hello" UUID="df7bf51e-cd26-4fff-882a-b4760a718a7a" TYPE="ext4" PARTUUID="0c09d750-03"<br>
/dev/sdc2: UUID="0CC3-C99F" TYPE="vfat" PARTUUID="6f199081-c0cb-4b0a-b17c-75b13f71f5e6"<br>
/dev/sdc4: LABEL="Victor" UUID="9214166E14165597" TYPE="ntfs" PARTUUID="ba062eeb-dbde-4854-a042-dc260045fcf5"<br>
/dev/sdc5: UUID="4d609234-f918-427c-8f22-06b0f83fe027" TYPE="xfs" PARTUUID="eaceaa92-2f03-42d6-ac63-85b833df1aa3"<br>
/dev/sdc6: UUID="eeTAYE-IqQ9-lRZY-GvCO-VTj5-5Gur-6iDox1" TYPE="LVM2_member" PARTUUID="c22525b1-8ca8-4c09-83a2-e43e97287fd0"<br>
/dev/mapper/rhel-root: UUID="8ce89d8b-63e5-41c4-867a-513ae3a55133" TYPE="xfs"<br>
/dev/mapper/rhel-swap: UUID="cac75122-529e-4e86-aef0-248aff41c7e3" TYPE="swap"<br>
/dev/sdd1: LABEL="RHEL-8-2-0-" UUID="9EB2-6E1B" TYPE="vfat" PARTUUID="00059533-01"<br>
/dev/mapper/rhel-home: UUID="8a44fc7b-b161-4740-817f-e8ec27ad90e8" TYPE="xfs"<br>
/dev/sdb1: PARTLABEL="LDM metadata partition" PARTUUID="3001c9f0-f29c-11e9-a262-049226d4201d"<br>
/dev/sdb2: PARTLABEL="Microsoft reserved partition" PARTUUID="3001c9f1-f29c-11e9-a262-049226d4201d"<br>
/dev/sdb3: PARTLABEL="LDM data partition" PARTUUID="3001c9f5-f29c-11e9-a262-049226d4201d"<br>
/dev/sdc1: PARTUUID="4e455fc3-bcda-4e3e-9ca1-732e335bd445"<br>
/dev/sdc3: PARTUUID="7e424b3d-bc80-49ea-94b7-0edd5051331f"<br>
I don’t understand why the Windows 10 is not booting. Thank you so much.
I dual boot as well and here's a proper GRUB2 entry for booting Windows on a UEFI enabled system:
menuentry 'Windows Boot Manager (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-efi-ABCD-EF01' {
insmod part_gpt
insmod fat
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci1,gpt1 ABCD-EF01
else
search --no-floppy --fs-uuid --set=root ABCD-EF01
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
What you'll need to replace:
ABCD-EF01
-> your EUFI system partition UUID, probably 0CC3-C99F
hd0
-> your disk with Windows (starting with 0), probably hd2
gpt1
-> your partition with UEFI files (starting with 1), probably gpt2
Answered by Artem S. Tashkinov on August 31, 2020
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP