Main > Raspberry Pi & Dev Board

how to change a config setting in a read-only image?

(1/2) > >>

aldub516:
Hey guys, so im super close to my goal of running my pi to boot to a single rom. My only problem is this. Im using portablemame v2.0 image which is great, BUT, for the monitor im using, i need to access /boot/config.txt to change some screen settings to fit my lcd properly. I cannot change anything as the image is a read only setup, to avoid corruption on shut downs.  Is there anyway to change my config.txt on the read only image? This is my only issue

JDFan:
Is it made read only by using the lock on the sd card or a setting in the OS ?

If just in the OS then you need to go to the file and change it to allow writing - make your changes and save them then reset to read only.

According to an article here ( http://hallard.me/raspberry-pi-read-only/ ) this is the command for changing to/from read only mode

--- Quote ---To set system to Read-Write use mount -o remount,rw / and to set it back to Read-Only mount -o remount,ro /
--- End quote ---

If using the lock slider then there should be a slide on the side of the SD card to unlock or lock the card (should be locked currently since you want it read only) - slide it to unlock and that will change it to read/write - change the file and then slide it back to lock ( makes it again read only)


aldub516:
Normally I'd say "I'm not an idiot".. But hey, sometimes the obvious kills ya ;) it isn't the tab. The image is made to be read only as to never go corrupt with a sudden shut down, which happens when a shutdown happens with the pi writing something. I will try that Command to mount and unmount it as I read a little something about that in my researching. Hope that does the trick

aldub516:
Edit. So I tried it out, and those commands seem to have no response. It doesn't even tell me it's a bad command. It just goes down a line and waits for a new command. Portablepi has built in rwenable and roenable shortcuts but those do nothing as well.

JDFan:

--- Quote from: aldub516 on November 04, 2015, 08:42:39 pm ---Edit. So I tried it out, and those commands seem to have no response. It doesn't even tell me it's a bad command. It just goes down a line and waits for a new command. Portablepi has built in rwenable and roenable shortcuts but those do nothing as well.

--- End quote ---

Did you try rebooting after using the rwenable shortcut (might need to reboot for the change to take effect )  :dunno

Navigation

[0] Message Index

[#] Next page

Go to full version