On 9/21/23 15:43, Bill Cunningham wrote:
On 9/21/2023 6:35 PM, Joe Zeff wrote:
On 09/21/2023 04:24 PM, Bill Cunningham wrote:
What I would like to do for example, is if I removed a Windows OS, for example, the partition data (for fedora) would need to be reset. Say I reinstalled the system (windows). I believe that windows could take care of itself but I am going to have an unbootable fedora there.
Before you go all heavy handed here, give us an idea of what's wrong so we have an idea what you'll need to do. Are you planning on reinstalling Windows? Does your Fedora system currently boot, and if not, what happens if you try? If your Fedora partitions are OK, and can be read when you're using a LiveUSB, there's no reason in the world that giving it a new UUID would make sense.
From time to time I will reinstall my windows fresh. All is fine now. Since Windows clutters everything. When the windows is reinstalled fresh its bootloader will be default. I will need to boot into the fedora rescue mode. This is where grub will need to be put. With mbr boot, I used this-
grub2-install /dev/sda
Don't do this with EFI. That would be bad.
grub2-mkconfig;
Not necessary.
Then set the default. All is fine. Now, things are a little more complicated. For me anyway.
reinstalling a fedora bootloader and using that is what I need to do, everything is fine now at the moment.
If you're using EFI, you don't need to do anything. Windows and Fedora have separate, independent bootloaders. The only thing you might have to do is tell your BIOS that you want Fedora as the default boot option. (Unless windows does something stupid like reformatting the EFI partition, but it really shouldn't do that and I doubt it would.)