Posts: 194
Joined: Wed Jan 02, 2013 8:28 am

Mount r/w partition on read-only filesystem?

Thu Mar 10, 2016 2:46 pm

Hi guys, I'm testing read-only SD card for Raspberry.
OS will be read-only but I need to mount external USB flash to save data, where all users can read/write.

I would like mount partitions using fstab.

Code: Select all

/dev/mmcblk0p4          /var/www/baler/data     ext4    noatime,rw                                     0       1
In this case I can mount partition 4 of my SD card (I use SD card as test) on /var/www/baler/data, but with no write permissions for all users.

Code: Select all

/dev/mmcblk0p3          /var/www/baler/data     ext4    noatime,rw,user,exec,umask=000                  0       0
In this case I "could" write, but it says filesystem is read-only.

Is there a correct way to do this in fstab?
I could also mount partition in read/write, and so change permissions using chmod in /etc/init.d, but it doesn't look smart......
Any ideas?

Return to “Troubleshooting”