Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Filesystem is read-only before mounting /run
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
drhouse123
n00b
n00b


Joined: 13 Aug 2012
Posts: 22

PostPosted: Sat Jan 05, 2013 11:03 pm    Post subject: [Solved] Filesystem is read-only before mounting /run Reply with quote

Hi, everydody!

After upgrading openrc to 0.11.8 I got strange message 'rm: can not remove «/run/openrc»: The file system is read-only' anytime at startup. How i can fix it ?
But system startup anyway is OK.


Code:
  OpenRC 0.11.8 is starting up Gentoo Linux (x86_64)

 * /proc is already mounted
rm: can not remove «/run/openrc»: The file system is read-only
 * Mounting /run ...
 * /run/openrc: creating directory
 * /run/lock: creating directory
 * /run/lock: correcting owner
 * /dev is already mounted
 * Mounting /dev/shm ...
 [ ok ]
 * Mounting security filesystem ...
 [ ok ]
 * Mounting debug filesystem ...
 [ ok ]
 * Mounting cgroup filesystem ...
 [ ok ]
 * Starting udev ...
 [ ok ]
 * Populating /dev with existing devices through uevents ...
 [ ok ]
 * Waiting for uevents to be processed ...
 [ ok ]


I hope for your help. :)


Last edited by drhouse123 on Sun Jan 06, 2013 9:43 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32091
Location: 56N 3W

PostPosted: Sat Jan 05, 2013 11:32 pm    Post subject: Reply with quote

drhouse123,

Heres what happens.

/run is a mount point on the / filesystem. Before a tmfs is mounted at /run, it should be empty.
For some reason, yours isn't. So the message
Code:
 rm: can not remove «/run/openrc»: The file system is read-only
is correct. root is still mounted read only.

Next
Code:
 * Mounting /run ...
mounts /run as tmpfs over the top of whatever you have in /run, so it can't be seen any more.
You may not umount /run as it will be in use on your live system.

If you want to clear it out, you can boot with a liveCD, mount your / at /mnt/gentoo and look in /mnt/gentoo/run
There should be nothing there. Thats your real /run mount point without tmpfs mounted on top.

On a live system you can look with
Code:
mount -o bind / /mnt/gentoo
and you see the underlying run in the same place.
I have never felt comfortable with using a bind mount to manipulate the hidden filesytsem but it should work.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
drhouse123
n00b
n00b


Joined: 13 Aug 2012
Posts: 22

PostPosted: Sat Jan 05, 2013 11:39 pm    Post subject: Reply with quote

NeddySeagoon

Thank you very much for explaining :)

I just cleaned /run using live-cd,
Back to top
View user's profile Send private message
rootor
n00b
n00b


Joined: 05 Dec 2011
Posts: 25

PostPosted: Wed Mar 13, 2013 10:32 am    Post subject: very nice Reply with quote

Very nice explication
Back to top
View user's profile Send private message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1341
Location: indiana

PostPosted: Mon Dec 30, 2013 6:32 pm    Post subject: Reply with quote

very good indeed.

could that be the solution to my problem described here :

http://forums.gentoo.org/viewtopic-t-979964-highlight-.html??

thanks in advance
_________________
I do not have a Superman complex, for I am God not Superman :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum