peter12 Posted March 21, 2017 Posted March 21, 2017 Hello, when I am using unionfs on RPi, in /etc/fstab I change this proc /proc proc defaults 0 0 /dev/mmcblk0p1 /boot vfat defaults 0 2 /dev/mmcblk0p2 / ext4 defaults,noatime 0 1 to this proc /proc proc defaults 0 0 /dev/mmcblk0p1 /boot vfat ro 0 2 /dev/mmcblk0p2 / ext4 ro,noatime 0 1 mount_unionfs /home fuse defaults 0 0 mount_unionfs /etc fuse defaults 0 0 mount_unionfs /var fuse defaults 0 0 mount_unionfs /media fuse defaults 0 0 none /tmp tmpfs defaults 0 0 1. But on OrangePi Zero there is in fstab is just this UUID=28c1cfce-xxxx-xxxx-xxxx-92472adc14bf / ext4 defaults,noatime,nodiratime,commit=600,errors=remount-ro 0 1 tmpfs /tmp tmpfs defaults,nosuid 0 0 /var/swap none swap sw 0 0 2. And in RPi I must append ro in /boot/cmdline.txt file. Where should I append it in Armbian? How should I change it on OPi? Many thanks
Igor Posted March 21, 2017 Posted March 21, 2017 What about this? https://docs.armbian.com/User-Guide_Advanced-Features/#how-to-freeze-your-filesystem
peter12 Posted March 21, 2017 Author Posted March 21, 2017 I would like to use unionfs-fuse because my project on RPi is based on this, but now I ported to OPi and I am not able to refactor it for overlayfs.
dottgonzo Posted March 23, 2017 Posted March 23, 2017 hi peter, you can copy the same fstab on opi, without the boot partition (remember to create the correct partitions for unionfs and copy there the current contents of etc and var). why you are using unionfs for home and media?, i think that is better if your app stop to write on home and use some folder on tmp (but this is only my opinion) the cmdline.txt of the opi is the /boot/boot.cmd on opi, but i'm not sure that works as the opi, the opi bootloader is different, and you have find the correct row. by the way i've some trouble with the opi (i can do it on rpi) if i need to restore the the system (for example to install some other package). It is useful in development stage.
Recommended Posts