Accidentally edited config.txt

Hi All,

I was reading a forum and it told me to edit cofig.txt for a project I am doing, I forget the exact parameters I have changed but now need it back to the original version. Does anyone know if this is possible or how to do it?

Thanks in advance

1 Like

Hi David
I know it is hindsight but another good reason for making notes (on paper) of anything you do. Beats going in circles.
Cheers Bob

1 Like

Another thing that you could do is get a fresh install of the OS on a virtual machine or another piece of hardware, and use SCP or an external hard drive to migrate config.txt into the directory you need it, thus restoring it. Hope this helps :slight_smile:

3 Likes

Hi David,

Ezra is on the money here. If you have a spare card that’d be the easiest way with the Pi imager.

You can actually see config.txt on a Linux or Windows machine! so if your Pi no longer boots, you can plug the card in and edit the file with notepad or nano or whatever

2 Likes