Page 1 of 1

[Solved] RPi B+ : Cannot edit /boot/config.txt

Posted: Sat Feb 24, 2018 2:39 am
by wh7qq
Using DietPi 6.2, attempting to edit /boot/config.txt as root using nano, additions at the end of the file get truncated/removed on reboot. Is there a size limitation on the file or ???

Trying to append:
# Disable the PWR LED.
dtparam=pwr_led_trigger=none
dtparam=pwr_led_activelow=off

from https://www.jeffgeerling.com/blogs/jeff ... spberry-pi

but it does not take even though I exit and save the file and the saved file looks good. On reboot, the addition has vanished. Is there another way to disable pwr_led?

Re: RPi B+ | Cannot edit /boot/config.txt

Posted: Sat Feb 24, 2018 3:38 am
by johnvick
If you look at the start of the file you are trying to edit:

#Modifcations to /boot/* files, will not be saved when powered on.
#Please ensure you edit from the DietPi-RamDisk location /DietPi/*

So either edit /DietPi/config.txt

Or remove the SD card and edit /boot/config.txt with a Linux compatible text editor or WinSCP.

John

Re: RPi B+ | Cannot edit /boot/config.txt

Posted: Sat Feb 24, 2018 7:52 am
by wh7qq
Thanks johnvick. I got into the bad habit of not looking at the first part of the file and just jumped to the place I wanted to edit. I also overlooked the dietpi-config selection of LED Control under Display Options. All happy now.