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

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
wh7qq
Posts: 8
Joined: Mon Jan 29, 2018 8:56 pm
Location: Hawaii

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

Post 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?
Last edited by wh7qq on Sat Feb 24, 2018 7:57 am, edited 1 time in total.
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

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

Post 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
wh7qq
Posts: 8
Joined: Mon Jan 29, 2018 8:56 pm
Location: Hawaii

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

Post 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.
Post Reply