this post was submitted on 25 Aug 2023
57 points (92.5% liked)

Linux

48144 readers
730 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

EDIT: So after all that, I was able to reinstall windows and download Macrium reflect + my backup. First time I tried to recover it, it failed for some reason, but the second time around I was able to restore it successfully. I'm now back where I started, thank you everyone!

I'm not done with Linux yet, but I think I'm going to try and run it in a good VM for the time being. When I'm done with classes, or when I get a separate device, I will give it another go.


Post 1: https://lemmy.ca/post/3709382

Post 2: https://lemmy.ca/post/3863438


Yesterday I could at least change the order in the BIOS to boot windows. Now I can't even do that.

I think when reinstalling, I must have overwritten something (the EFI?). I saw some other people that had a very similar experience, and the advice was to reinstall Windows. I'm currently downloading Windows installation media on another computer and I'm going to try and reinstall windows now.

This just keeps getting worse and worse, and thank you for the help while I struggle through this.

If anyone has other tips, I'd appreciate it :)

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 45 points 1 year ago (2 children)

Jesus, stop. You probably only removed the boot entry, happened to me before. Download Windows ISO, put it on a pendrive, boot into it and navigate to the terminal. Then look up a guide on how to restore the boot entry, should be just couple of simple commands and you're done.

If you are too lazy, at least boot into Linux, mount the Windows drive and back up your stuff.

[–] [email protected] 11 points 1 year ago (1 children)

Even this is not necessary, you can repair it from Fedora itself, if you know your way around efibootmgr. Unfortunately given the rest of the posts so far, I'm afraid that's not the case

[–] [email protected] 4 points 1 year ago

Yea I don't think that would have been wise for me to try

[–] [email protected] 8 points 1 year ago* (last edited 1 year ago) (1 children)

Thank you! This is completely on me for just rushing ahead and accepting the loss, but I'll save this for if I run into this again. The only option on the recovery screen I didn't try was the terminal.

https://woshub.com/how-to-repair-uefi-bootloader-in-windows-8/

I did find this guide, is this looking close to what you went through?


Thankfully I did backup my stuff before starting the process so that's what I was planning on doing. Just moving the backup files onto my computer now

[–] [email protected] 3 points 1 year ago (1 children)

Honestly I just watched some Indian YouTube video, I recognize some of the commands, so it's probably it.

[–] [email protected] 3 points 1 year ago

That works for me, thank you again!

[–] [email protected] 21 points 1 year ago (2 children)

This happens, because the stupid windows bootloader installs itself onto the same partition as the fedora bootloader instead of making it's own. So when you reinstall fedora, the windows bootloader is deleted. Look up how to reinstall windows bootloader

[–] [email protected] 11 points 1 year ago (1 children)

On EFI systems all bootloaders are supposed to reside on a single partition. EFI does not support multiple 'EFI system partitions', so operating systems have to share a single one. And this is usually not a problem if it is the one Windows choose. The problem most often is broken EFI firmware which fails to correctly handle adding and removing boot entries. Or Windows, which fails to boot if anything changes (disk order and such), even though everything is still available.

[–] [email protected] 8 points 1 year ago (5 children)

This is technically only true if you have a single disk. The EFI spec allows for a single EFI partition per disk, so you can definitely have multiple in a system. I know this, because my setup has multiple EFI partitions. Windows doesn't like it, and it will try it's hardest to share a single one with Linux, but if it's on its own disk, you can set it up with its own EFI partition using the command prompt.

[–] [email protected] 6 points 1 year ago

This is exactly why I put my Linux install on a separate SSD. I even physically removed the windows SSD when I installed so nothing would get merged together.

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)

Then my recent research was wrong - I tried to make it work and failed. Then read somewhere it is not supported. But it can be that it is valid EFI configuration, but not supported by Windows and some firmware implementations.
I don't think I have ever seen an EFI firmware which was not broken in one way or another.

[–] [email protected] 1 points 1 year ago* (last edited 11 months ago) (1 children)

[This comment has been deleted by an automated system]

[–] [email protected] 1 points 1 year ago

I literally reinstalled Windows the other day and systemd-boot was still working, and so was Windows. This is all on a single disk.

load more comments (2 replies)
[–] [email protected] 2 points 1 year ago* (last edited 11 months ago)

[This comment has been deleted by an automated system]

[–] [email protected] 13 points 1 year ago (1 children)

Undercover Windows agent terrorizing linux newcomers /s

[–] [email protected] 4 points 1 year ago

How could they

[–] [email protected] 12 points 1 year ago

Getting rid of Windows sounds like a feature to me

[–] [email protected] 7 points 1 year ago (1 children)

Some BIOSes have trouble booting anything other than Windows, so some distros default to clobbering the Windows Boot Manager and trying to manage everything from GRUB. It sounds to me like this is what happened to you except it somehow got borked.

If the Windows install is still present on your drive it should be possible to restore the Windows Boot Manager. Then you won't be able to boot Linux but you'll at least be able to get into Windows.

Try booting off Windows install media and running Startup Repair using the following instructions: https://learn.microsoft.com/en-us/troubleshoot/windows-client/performance/windows-boot-issues-troubleshooting#method-1-startup-repair-tool

If that doesn't work try one of these solutions:

https://superuser.com/questions/460762/how-can-i-repair-the-windows-8-efi-bootloader

https://superuser.com/questions/612830/how-to-reinstall-windows-boot-manager-on-efi-partition

Good luck!

Also relevant xkcd

[–] [email protected] 4 points 1 year ago* (last edited 1 year ago) (3 children)

No joke, I'm trying to fix a family member's laptop's wifi issues while I wait.

So I'm somewhere between 6-10 hours

Also thank you!

[–] [email protected] 4 points 1 year ago (1 children)

what dot20 said was similar to what I had to do in order to get the Windows boot option back after GRUB couldn't find it after a Fedora install. As long as you can still see your Windows drive when you boot up the Windows Install Media, you should be able to rebuild its EFI entry.

As an addendum, here is a link to the Fedora docs for what to do in Fedora after you manage to rebuild Windows' EFI stuff.

[–] [email protected] 2 points 1 year ago

Thank you, saving this as well

load more comments (2 replies)
[–] [email protected] 6 points 1 year ago (2 children)

If I can get back Windows, I think I'm going to cut my loses and just use Linux in a VM or through WSL. Maybe someday when I get a new separate device, I can try learning again.

At least I have a week before classes start again to get this sorted out :')

[–] [email protected] 8 points 1 year ago (1 children)

Is the windows partition is still there? You may be able to use one of the repair options from the install media to re-add windows to EFI instead of a full reinstall.

load more comments (1 replies)
[–] [email protected] 8 points 1 year ago (1 children)

You can't stop now!

I'm getting emotionally invested in this saga.

[–] [email protected] 9 points 1 year ago (1 children)

Glad it's offering some entertainment at least!

I'm still not sure what I'll do next, I just know I don't like the saga so far

[–] [email protected] 3 points 1 year ago (1 children)

I’m still not sure what I’ll do next, I just know I don’t like the saga so far

https://en.wikipedia.org/wiki/Hero%27s_journey

[–] [email protected] 3 points 1 year ago

I guess Lemmy is the helper and/or mentor?

Looking forward to the other side of this circle tbh

[–] [email protected] 5 points 1 year ago (1 children)

To me it looks like Fedora is trying to guide you to make better file choices. \s

[–] [email protected] 2 points 1 year ago (1 children)

Just quietly murdered windows so there aren't any other options

[–] [email protected] 1 points 1 year ago

@otter @Zucca Public admissions of such a crime are not smart! 😀

[–] [email protected] 4 points 1 year ago (1 children)

try going into root and running grub-update. also, do not run it like: "$ sudo grub-update", but as "$ su" and then "$ grub-update" that might fix the problem. also ensure you can boot into windows from bios.

[–] [email protected] 2 points 1 year ago (1 children)

I think I tried that yesterday but it threw back an error.

I was able to boot into windows from bios yesterday, but after reinstalling today it disappeared.

[–] [email protected] 2 points 1 year ago (1 children)

so you can't boot windows from the bios? In that case I think you have to reinstall windows.

[–] [email protected] 2 points 1 year ago

Darn ok was hoping for another option, thats what I'm now doing :)

[–] [email protected] 4 points 1 year ago (1 children)

Many years ago I would reinstall everything if I break something. Today I don't see how to break things to a point that just resin stalling would be a solution. Probably by booting a live you can fix whatever you broke.

[–] [email protected] 2 points 1 year ago

Yes that's fair, and I think if I spent more time on it I could have just fixed the windows boot using the terminal in the installation media

I just gave up at that point and wanted to quickly get it up and running again 😄

[–] [email protected] 3 points 1 year ago (2 children)

Are you booting in legacy BIOS or UEFI mode?

Legacy only supports one bootloader per drive, which should be grub. If you're in legacy mode, windows was probably thrown out of there so it doesn't show up anymore. Grub can still call the windows bootloader if you configure it accordingly.

The arch wiki page on grub has a section explaining the details.

[–] [email protected] 2 points 1 year ago (1 children)

It's UEFI from what I can tell, at least that's what comes up in the BIOS

[–] [email protected] 2 points 1 year ago (1 children)

In your BIOS do you have the option to add a new boot entry?

On my Dell laptop, I lost my Windows boot option once, but all I had to do was go into the BIOS, add a new boot option, and point it to the Windows EFI loader: EFI\Boot\Microsoft\bootmgrfw.efi

(I'm going off memory, so I could be off slightly with the path)

load more comments (1 replies)
[–] [email protected] 1 points 1 year ago (1 children)

My windows will only boot on legacy, and Mt Fedora will only boot on UEFI. This means I have to change bios settings to go from one OS to the other. Not ideal, but whatever.

[–] [email protected] 2 points 1 year ago (1 children)

Classic windows moment, you have to reinstall it to change that.

[–] [email protected] 1 points 1 year ago

Yup. Just don't feel like dealing with it when I seldom go into Windows anyway. If I must use Windows, I usually use my work laptop.

load more comments
view more: next ›