I have dual booted windows 10 along with fedora 37, but grub menu does not give an option to select any operating system, it just directly boots into fedora 37. I first thought that i had deleted my windows 10 but i can still see my windows 10 files in other locations in nautilus. please help i am dying
What do you get if you run sudo os-prober
in a terminal? By running this command it will detect every possible os installed on your computer. If it detects your windows 10 installation run sudo grub2-mkconfig -o /boot/grub2/grub.cfg
this will update the grub menu using the grub configuration file.
it shows nothing
What do you get if you boot to fedora then run fdisk -l
?
What is the result of lsblk -f
?
Please post the output of both those commands as preformatted text using the </>
button above.
Did you install fedora in legacy mode while windows was in uefi mode? or vice-versa?
If both OSes are not installed in the same boot mode then you will be unable to boot both from grub. Only fedora will be available from grub in that situation.
I get this when i type the first command you mentioned
Disk /dev/sda: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: TOSHIBA MQ01ACF0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 1B768019-C955-4E27-9397-106138DC2766
Device Start End Sectors Size Type
/dev/sda1 2048 206847 204800 100M EFI System
/dev/sda2 206848 239615 32768 16M Microsoft reserved
/dev/sda3 239616 422765196 422525581 201.5G Microsoft basic data
/dev/sda4 422766592 423809023 1042432 509M Windows recovery environment
/dev/sda5 423811072 438147071 14336000 6.8G Microsoft basic data
/dev/sda6 423809024 423811071 2048 1M BIOS boot
/dev/sda7 438147072 440244223 2097152 1G Linux filesystem
/dev/sda8 440244224 976773119 536528896 255.8G Linux filesystem
Partition table entries are not in disk order.
Disk /dev/zram0: 3.03 GiB, 3253731328 bytes, 794368 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
and this when i type the second command
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
├─sda1
│ vfat FAT32 1A0F-E4CD
├─sda2
│
├─sda3
│ ntfs 3C2C27242C26D922
├─sda4
│ ntfs CA5C8EE55C8ECB9F
├─sda5
│ ntfs 809A22AE9A22A0A0
├─sda6
│
├─sda7
│ ext4 1.0 01a0f4c7-7ba1-4dbc-8ea8-11bc699f147c 700.1M 21% /boot
└─sda8
btrfs fedora_localhost-live
583bc86a-a31f-47ff-912c-7b8d0c66fd62 248.3G 2% /home
/
sr0
zram0
[SWAP]
i dont really get what any of these mean , i have never used linux becuz. I appreciate your help plz also keep explaining
Right there is the issue.
Windows is installed in uefi mode and you installed fedora in legacy mode as can be seen with /dev/sda6 as BIOS boot.
The simplest recovery is to delete the partitions sda6, sda7, and sda8 then reinstall fedora in uefi mode. It looks like all of windows should be fine as is.
You can boot to the live install media in uefi mode by opening the bios boot menu (normally by using one of the function keys between F8 and F12) and selecting the install media device marked as uefi. Once the live media is booted you can delete those 3 partitions with fdisk or gdisk.
Once you have deleted those 3 partitions then boot again into uefi mode and the install will automatically be done in that mode.
It may be worthwhile to actually enter the bios and set the boot mode to ‘UEFI only’ since windows is already installed that way.
correct me if i misunderstood i would have to boot windows from bios? and then delete the linux partition and then reinstall linux right. i would love to go back if i can
No
You would boot the install media used to install fedora. Windows cannot see nor manage the linux partitions.
- boot into the bios and set the boot mode to
uefi only
and save it. (all future boots will always be uefi mode now) - boot the install media which will give you the live media, (now booted to uefi mode since the bios can now only boot into that mode.)
- Use a command line in the terminal app to run gdisk or fdisk and delete the 3 named partitions. /dev/sda6, sda7, & sda8
- reboot again with the install media. (needed because of changing the partitions on the drive)
- install fedora (which will now be installed in uefi mode, since that is the way it was booted)
After this when you next boot you should be able to boot fedora (default) or select windows to boot.
Thank you so much. I love you