Error creating mount point '/media/foo': Read-only file system
by forbiddenT from LinuxQuestions.org on (#5Q7Y8)
Hi,
Is it possible to have the root partition (/) mounted as readonly while maintaining the ability to automount external devices to /media/?
In my setup (Debian Buster w/Xfce4) I have to re-mount the root partition as rw, otherwise I receive the following error message:
"Error creating mount point '/media/foo': Read-only file system."
As a workaround, I have created the following entry in fstab:
tmpfs /media tmpfs rw,nosuid,noexec,auto,mode=1777 0 0
This works, but I wonder if there is a 'standard' method for achieving automount convenience with systems where / is mounted readonly.
Thanks
Is it possible to have the root partition (/) mounted as readonly while maintaining the ability to automount external devices to /media/?
In my setup (Debian Buster w/Xfce4) I have to re-mount the root partition as rw, otherwise I receive the following error message:
"Error creating mount point '/media/foo': Read-only file system."
As a workaround, I have created the following entry in fstab:
tmpfs /media tmpfs rw,nosuid,noexec,auto,mode=1777 0 0
This works, but I wonder if there is a 'standard' method for achieving automount convenience with systems where / is mounted readonly.
Thanks