Article 5Q7Y8 Error creating mount point '/media/foo': Read-only file system

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.

Thankslatest?d=yIl2AUoC8zA latest?i=IqInXQXCt6g:V6yM9aSK0Cw:F7zBnMy latest?i=IqInXQXCt6g:V6yM9aSK0Cw:V_sGLiP latest?d=qj6IDK7rITs latest?i=IqInXQXCt6g:V6yM9aSK0Cw:gIN9vFwIqInXQXCt6g
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments