Page 1 of 1
Unable to sudo config.txt
Posted: Fri Feb 17, 2017 11:32 am
by pi3serverbot
Hi,
I just re-formatted my Pi 3 with the Noobs recovery but now I can't sudo the config.txt file anymore. When I am in the terminal, it just shows the nano screen but it doesn't show the config.txt. On the bottom, it says "new file".
With my previous install, it would allow me to sudo and edit the file. Please assist if you can. Thank you.
Re: Unable to sudo config.txt
Posted: Fri Feb 17, 2017 11:54 am
by Davies
whats the full command that your calling?
it should be
Re: Unable to sudo config.txt
Posted: Fri Feb 17, 2017 11:54 am
by kusti8
What command are you typing? It should be
sudo nano /boot/config.txt
Re: Unable to sudo config.txt
Posted: Fri Feb 17, 2017 12:02 pm
by B.Goode
The NOOBS Installer has its own built-in Configuration File editor that allows you to make configuration changes to the currently active installed Operating System.
Re: Unable to sudo config.txt
Posted: Fri Feb 17, 2017 12:11 pm
by Davies
it does say here..
https://www.raspberrypi.org/documentati ... fig-txt.md
"If you need to apply some of the config settings below, but you don't have a config.txt on your boot partition yet, then simply create it as a new text file."
so the lack of a config.txt on first boot may not be abnormal.. i dont use noobs so i wouldnt know if the lack of access is noobs specific.
Re: Unable to sudo config.txt
Posted: Fri Feb 17, 2017 1:26 pm
by procount
@rpi3serverbot - which config.txt file are you trying to edit and for what reason, and how are you locating where it is?
NOOBS is a small OS in it's own right that has it's own cmdline.txt and config.txt. You use NOOBS to install and boot another OS (like Raspbian).
Once you select an OS (like Raspbian) to boot from NOOBS' multi-boot menu (or it may be selected automatically, especially if you have only installed one OS), it will REBOOT the pi into the new OS and load the cmdline.txt, config.txt and all other kernel stuff from the boot partition of the OS you have selected. i.e. each installed OS has its own config.txt file etc.
As it happens, NOOBS does not include its own config.txt file because it does not need one, which is why you cannot find it on the recovery partition (/dev/mmcblk0p1). But you can create one if you need to.
However, as stated above, NOOBS contains a file editor to modify the cmdline.txt and config.txt of any of the installed OSes. this is the easiest method to edit them, because you do not need to know in which partition they are located.
NOTE that if you are changing config.txt for some settings that you want to work globally (like a display configuration), you must change it in EACH config.txt of all the inatalled OSes AND in NOOBS itself, otherwise it will only be effective in the OSes in which you have changed it.