Dual boot ( windows 8.1/ Fedora 31)

Hi everyone,

Please i really need your help, I’m a Windows user, i recently decided to try Linux and installed Fedora 31, but when i start I only get to choose Fedora and my Windows disappeared ( yet it still exist as i can get to my files from Fedora)

Can someone help me please ? here is what i get when using this line command :

[root@localhost ~]# efibootmgr
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0002
Boot0000* Fedora
Boot0002* UEFI OS
[root@localhost ~]#

well, that’s a mess, check your volumes/partitions and please list here, you probably delete the EFI partition of windows which contain the EFI image of the OS or you didn’t format the volume where you install fedora. but you don’t be alarmed yet. it can be solved with windows repair option using a USB. but we need to know whats the problem.

1 Like

Yeah, well i messed up, here is the result :

isk /dev/sda: 465.78 GiB, 500107862016 bytes, 976773168 sectors
Disk model: Samsung SSD 860
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: B21908A4-52C8-4063-9178-178B0BD4A83A

Device Start End Sectors Size Type
/dev/sda1 2048 616447 614400 300M Windows recovery environment
/dev/sda2 661360640 663457791 2097152 1G Linux filesystem
/dev/sda3 821248 661358591 660537344 315G Microsoft basic data
/dev/sda4 661358592 661360639 2048 1M BIOS boot
/dev/sda5 663457792 976773119 313315328 149.4G Linux LVM

Partition table entries are not in disk order.

Disk /dev/mapper/fedora_localhost–live-root: 70 GiB, 75161927680 bytes, 146800640 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mapper/fedora_localhost–live-swap: 5.88 GiB, 6295650304 bytes, 12296192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mapper/fedora_localhost–live-home: 73.55 GiB, 78957772800 bytes, 154214400 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Hi @andrej11 welcome to the community.

The partitionsp layout look ok to me accord to a bios (legacy) system trough a gpt partition i don’t see any ESP which should be present if there had been a UEFI installation, it should prevent booting your windows under bios but it is not your case. You can try update the grub to see if it does the trick.

Read about it here (before you do try anything, to be sure than you will to do):

https://fedoraproject.org/wiki/GRUB_2

sudo grub2-install /dev/sda

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

The second command should detect the windows entry

Regards