this post was submitted on 14 Oct 2024
17 points (100.0% liked)

linux4noobs

1356 readers
1 users here now

linux4noobs


Noob Friendly, Expert Enabling

Whether you're a seasoned pro or the noobiest of noobs, you've found the right place for Linux support and information. With a dedication to supporting free and open source software, this community aims to ensure Linux fits your needs and works for you. From troubleshooting to tutorials, practical tips, news and more, all aspects of Linux are warmly welcomed. Join a community of like-minded enthusiasts and professionals driving Linux's ongoing evolution.


Seeking Support?

Community Rules

founded 1 year ago
MODERATORS
 

I installed lots of OSs on my PC. The mistake I did was not backing up my EFI partition beforehand.

Now I deleted all the OS except CachyOS (Arch) and Windows.

Now I want to tidy up my EFI partition. I want to delete everything (even rEFInd) except Windows and Default ones like OEM. (I am gonna reinstall CachyOS ) Can anybody please assist me?

I already deleted the obvious ones like ubuntu and fedora. Anything else?

I know this is not necessarily a linux question but anyways ๐Ÿ˜…

Solved

Before proceeding with any of the following, I STRONGLY suggest you to make a full backup of your ESP (efi) partition.

I deleted everything on boot folder, since I didn't need grub or any of those files ( after searching everything individually on internet)

I deleted refind folder, since I didn't need refind boot manager.

I kept insyde folder, since they are my uefi provider.

I kept OEM , microsoft folders because I need windows and whatever my OEM provides.

I kept tools folder since that's just an empty folder ( I didn't know which OS created it)

top 2 comments
sorted by: hot top controversial new old
[โ€“] mvirts@lemmy.world 3 points 1 month ago* (last edited 1 month ago) (1 children)

My advice is to leave everything as-is unless you're running out of space or want to clean it up for fun.

If you want, formatting your efi partition and rebuilding it with bcdboot on Windows will get you to a completely clean setup. This may remove any oem boot options present.

https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/bcdboot-command-line-options-techref-di?view=windows-11

If your machine has a factory reset mode you may want to use that instead, although it will probably delete all of your data.

[โ€“] gpstarman 2 points 1 month ago