I am new-ish to the Linux ecosystem. I got fedora 37 in January and used it frequently with windows for about 2 and a half months. For the most part it worked fine.
I had to however reinstall fedora 37 because I took a shortcut that frankly did not work. However, now windows is not showing up in GRUB and gives me a too-quick to read error, something spitting out an error and a filepath.
i am using Fedora 37 Workstation and Windows 10.
At first, I thought it was an issue with the boot, so I asked chatgpt and I put in this command: sudo grub2-mkconfig -o /boot/grub2/grub.cfg
and changed my config
menuentry “Windows 10” {
insmod ntfs
set root=(hdX,Y)
chainloader +1
}
Note I changed my root, which to my understanding I can find from lsblk command, which spits out this:
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 16M 0 part
├─sda2 8:2 0 466.7G 0 part
└─sda3 8:3 0 464.8G 0 part
sdb 8:16 0 223.6G 0 disk
├─sdb1 8:17 0 100M 0 part
├─sdb2 8:18 0 16M 0 part
├─sdb3 8:19 0 1G 0 part
├─sdb4 8:20 0 62.2G 0 part /mnt/sdb4
├─sdb5 8:21 0 1M 0 part
├─sdb6 8:22 0 1G 0 part /boot
└─sdb7 8:23 0 159.2G 0 part /home
/
sdc 8:32 0 3.6T 0 disk
├─sdc1 8:33 0 200M 0 part
└─sdc2 8:34 0 3.6T 0 part /run/media/yurizahard/Backup Plus
sr0 11:0 1 1024M 0 rom
zram0 252:0 0 8G 0 disk [SWAP]
sdb4 is the same-size as my windows partition.
I plugged in for hdX sdb and for y as 4 then regenerating the config. At first it was sdb4 but that didnt work either so I changed it to just 4 but it did not work.
Interestingly, when I use the fdisk command, I get this
fdisk: cannot open /dev/sda: Permission denied
fdisk: cannot open /dev/sdb: Permission denied
fdisk: cannot open /dev/sdc: Permission denied
fdisk: cannot open /dev/zram0: Permission denied
Edit: not sure how related, but before when I dualbooted, I would press f11 to open bios to control my boot to windows/fedora. Because default was windows, because I installed it first. Now, fedora is the default and I am getting this error.
I tried with sudo, which I don’t think you can do here but it didn’t work, says the command was not found.
I have honestly been banging my head on this for a while. I have an external connected and a win10 iso with ventoy, but I consider that a last resort. Any help would be appreciated.
TLDR:
Fedora 37 Workstation and WIndows 10 dualboot via Grub is not working, keeps giving me an error and filepath. I made a new 40_custom file and regenerated mkconfig, that did not work. I tried twice with 4 and sdb4 in my partition, neither worked.
I did not mention this but when I tried GrubCustomizer just to see if it even appears, only UEFI firmware settings appears. I see it should display all of my os including linux w/file structures but it does not. Not sure how relevant that is.
Any help would be appreciated.