My Linux installation stopped booting after I installed some software through the terminal. I'm new to this and want to start fresh, but I'm not sure how to safely erase the right partitions and install another operating system. Where should I start?
Linux won't boot anymore. How do I wipe it and install something else?
Answers
If there's anything on the drive you want to keep, try to copy it to an external drive before reinstalling. A live Linux USB may let you open the existing drive and retrieve files without booting the broken installation.
Then create a bootable installer USB for the operating system you want, boot from it, and follow its installation screens. If you previously installed Linux yourself, the process will be much the same. Another working computer may be needed to prepare the USB.
Reply to this answer
Take your time at the disk selection screen. An option to erase the whole disk can remove every partition on that disk, including another operating system and its files.
If you only want to replace Linux and keep another installation, look for a manual or custom partitioning option. Identify the Linux partitions carefully rather than deleting anything you don't recognize. The installer may also use an existing EFI system partition for boot files, so don't assume every small partition is disposable. If the layout is confusing, stop and ask for help with a description of the partitions before making changes.
Reply to this answer
A reinstall isn't the only option. If you have a system snapshot from before the software installation, restoring it might be quicker. Otherwise, the exact error, where boot stops, your Linux distribution, and what you installed would help narrow down a repair.
Reply to this answer
If you're choosing another Linux distribution, Linux Mint, Ubuntu, MX Linux, and Kubuntu are options to look at. Kubuntu uses the Plasma desktop, so it may feel familiar if you liked that interface. You can try a live session from the installer USB before committing.
Reply to this answer
Add your answer
Answers are reviewed before publication.
q.7!brindle:
Check that the copied files open on the external drive before erasing anything, if you can.