Jump to content

unionfuse - how to setup fstab


peter12

Recommended Posts

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

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines