LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-01-2021, 01:41 PM   #1
forbiddenT
LQ Newbie
 
Registered: Oct 2021
Posts: 1

Rep: Reputation: Disabled
Error creating mount point '/media/foo': Read-only file system


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
 
Old 10-01-2021, 03:10 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,162

Rep: Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268
When running a read-only root filesystem, you can add an in-memory overlay filesystem so that you can mount and make other temporary changes. All changes are lost on reboot.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error writing/deleting foo Read-only file system eco_bach Linux - Newbie 9 04-29-2019 01:08 PM
Difference between ./foo, . foo and source foo? stf92 Linux - Newbie 7 04-26-2014 01:04 AM
[SOLVED] Apache: RewriteRule - redirect /foo only works if /foo exists ezekieldas Linux - Software 2 07-31-2012 11:45 AM
Which config file should I use... foo or foo.new? davidguygc Slackware 6 08-01-2007 05:21 PM
void foo(void) and void foo() lackluster Programming 9 02-15-2003 10:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 04:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration