godspeed146
Posts: 15
Joined: Fri Jul 05, 2019 3:12 am

config.txt corrupt

Sun Sep 22, 2019 7:48 pm

DougieLawson wrote:
Sun Dec 29, 2013 6:24 pm
config.txt is simply a plain text file.
You can edit it on your RPi with sudo nano /boot/config.txt

You can shutdown your RPi and copy a good version to it using Windows.

It's read by the firmware, but only to provide some override parms for things like the GPU memory split and HDMI graphics settings.

The override parms for the Linux kernel are in /boot/cmdline.txt (and the same rules for editing it apply).

What I do is copy the current c*.txt file to c*.txt~ before editing, then I can undo changes that don't work or don't have the desired effects. Some time later I'll clean up the ~ versions. I hope that rpi-update doesn't just trample over my version.
When trying to delete the config file from the sd card in windows, I get an error saying the file is corrupt and it doesn't get deleted. Basically I have to install the image every time it gets corrupted(has been happening a lot for the past few days)

gkaiseril
Posts: 679
Joined: Mon Aug 08, 2016 9:27 pm
Location: Chicago, IL

Re: ran rpi-update config.txt corrupt

Sun Sep 22, 2019 8:44 pm

Remember this is a Linux system and the text files do not follow the MS rules. Not all Linux partitions are recognized by Windows do not follow Widows advice about reformatting the partition.

You could use a USB card reader to read an other bootable SD card and copy the config.txt file from the boot directory. You will need to use sudo to perform the copy.
f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.

wildfire
Posts: 606
Joined: Sat Sep 03, 2016 10:39 am
Location: Dundee, Scotland

Re: ran rpi-update config.txt corrupt

Mon Sep 23, 2019 6:47 am

godspeed146 wrote:
Sun Sep 22, 2019 7:48 pm
Basically I have to install the image every time it gets corrupted(has been happening a lot for the past few days)
I'd be more concerned about the cause of the corruption, why is it happening so often...
  • Are you sure the file is actually corrupted?
  • What's changed in the last few days?
  • Are you certain your SD card is healthy?
  • Are you editing config.txt directly (if so what editor on what system)?
E8 85 A2 64 C9 64 81 94 64 81 95 64 89 84 89 96 A3
Still NF Shirls

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26442
Joined: Sat Jul 30, 2011 7:41 pm

Re: ran rpi-update config.txt corrupt

Mon Sep 23, 2019 8:55 am

godspeed146 wrote:
Sun Sep 22, 2019 7:48 pm
DougieLawson wrote:
Sun Dec 29, 2013 6:24 pm
config.txt is simply a plain text file.
You can edit it on your RPi with sudo nano /boot/config.txt

You can shutdown your RPi and copy a good version to it using Windows.

It's read by the firmware, but only to provide some override parms for things like the GPU memory split and HDMI graphics settings.

The override parms for the Linux kernel are in /boot/cmdline.txt (and the same rules for editing it apply).

What I do is copy the current c*.txt file to c*.txt~ before editing, then I can undo changes that don't work or don't have the desired effects. Some time later I'll clean up the ~ versions. I hope that rpi-update doesn't just trample over my version.
When trying to delete the config file from the sd card in windows, I get an error saying the file is corrupt and it doesn't get deleted. Basically I have to install the image every time it gets corrupted(has been happening a lot for the past few days)
You have necro'd a 6 year old thread - best to start a new thread.

However, this sounds like a SD card on the way out.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

Return to “General discussion”