debian@beaglebone:~$

*sudo nano /etc/fstab*
Add:* ,ro *after noatime

# /etc/fstab: static file system information.
#
# Auto generated by RootStock-NG: setup_sdcard.sh
#
/dev/mmcblk0p1  /  ext4  noatime*,ro*,errors=remount-ro  0  1
debugfs  /sys/kernel/debug  debugfs  defaults  0  0

Save and exit nano.

restart board:
debian@beaglebone:~$

*sudo shutdown now -r*
After board comes back up:
debian@beaglebone:~$
* mount | grep /dev/mmcblk0p1*/dev/mmcblk0p1 on / type ext4 (*ro*
,noatime,errors=remount-ro,data=ordered)

Attempt to make a zero byte file:
debian@beaglebone:~$
* touch ~/test*touch: cannot touch `/home/debian/test': Read-only file
system

remount read / write:
debian@beaglebone:~$ *sudo mount -o remount,rw /dev/mmcblk0p1 /*

retest:
debian@beaglebone:~$
* touch ~/test*debian@beaglebone:~$
* ls .*bin  test

*After* a reboot the file system should then be read only again. Do note:
That if you attempt to remount ro on a rw file system. You will most
probably get a "dev busy" message. Using umount on / would be very unwise .
. .

Marking a rootfs as read only has to be done via /etc/fstab + a reboot.



On Sun, Aug 2, 2015 at 10:37 AM, William Hermans <[email protected]> wrote:

> google "linux how to remount read / write" . . . such as:
>
>
> http://askubuntu.com/questions/175739/how-do-i-remount-a-filesystem-as-read-write
>
>
>
> On Sun, Aug 2, 2015 at 1:18 AM, Christian Gurk <
> [email protected]> wrote:
>
>> Thank you Robert for the fast response.
>> I assume,I should use your instructions on a Linux-PC and not on the BBB?
>> Normally I only work with Windows, but I think I will find a virtual
>> machine to perform your suggested steps.
>> And after I switched to RO how do I temporarily switch back to rw to
>> update/change the system? Or will I find instructions in the fstab file?
>> Will try it later!
>> Thanks again
>>
>> --
>> For more options, visit http://beagleboard.org/discuss
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "BeagleBoard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to