How can I factory reset or reinstall Linux using SSH and a USB without a keyboard?

0
17
Asked By CuriousCat123 On

I'm looking to learn Linux and I have an old office computer running Debian, which I set up for a Minecraft server. However, I've run various commands without understanding them, and now my system is acting weird. I can physically access the computer, but I don't have a keyboard to select the USB drive in the BIOS. I'm wondering if there are commands or programs that can help me factory reset the system. Any suggestions would be greatly appreciated!

3 Answers

Answered By GadgetGuru42 On

If you have a wireless keyboard with a USB dongle, it could work since those are recognized as wired USB keyboards by the system. Do you happen to have one?

CuriousCat123 -

I don’t have any keyboard at all.

Answered By TechieTina88 On

You're going to need a physical keyboard to reinstall it, since you can't select the USB drive in BIOS otherwise. How did you manage to run commands before? Seems tricky!

CuriousCat123 -

I used a keyboard for setup, and then I SSH into the machine once it’s running.

Answered By FixItFred On

If your system is still running, it might be better to try fixing what's wrong instead of going for a full reinstall, especially since if that fails, you can't recover until you get a keyboard. You could `dd` a preinstalled image to a drive, but that needs SSH access on that image already. You'd also want to make sure it boots correctly by installing a boot manager in the right path on the EFI partition.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.