Hi-
On Wed, Dec 5, 2012 at 10:08 AM, özen özkaya <
ozeno...@gmail.com> wrote:
> This is really a very smart scenario Rico. I will also follow that :)
There is a really easy way to keep root ro in /etc/fstab, see my
commented fstab:
------------------------8<--------------------------
# Mount root read only
rootfs / auto ro 1 1
# Mount a third partition to /home
/dev/mmcblk0p3 /home auto defaults,noatime 0 0
proc /proc proc defaults 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
# Mount some tmpfs, as you need, but keep the size as small
# as possible, we have no swap and the BB has only limited
# memory. Keep the files small e.g. in /var/log as e.g. Webservers
# may produce huge logfiles.... You might add to crontab
# 1 * * * * head logfile > tempfile ; tempfile > logfile
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/tmp tmpfs defaults,noatime,mode=1777,size=1m 0 0
tmpfs /var/log tmpfs defaults,noatime,mode=0755,size=1m 0 0
tmpfs /var/log/apt tmpfs defaults,noatime,size=1m 0 0
tmpfs /var/run tmpfs defaults,noatime 0 0
------------------------8<--------------------------
If you need tho make some changes to your root filesystem you can turn
it to rw with:
mount -o remount,rw /
Regards
Dieter