View previous topic :: View next topic |
Author |
Message |
drhouse123 n00b
Joined: 13 Aug 2012 Posts: 23
|
Posted: Sat Jan 05, 2013 11:03 pm Post subject: [Solved] Filesystem is read-only before mounting /run |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54234 Location: 56N 3W
|
Posted: Sat Jan 05, 2013 11:32 pm Post subject: |
|
|
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 |
|
|
drhouse123 n00b
Joined: 13 Aug 2012 Posts: 23
|
Posted: Sat Jan 05, 2013 11:39 pm Post subject: |
|
|
NeddySeagoon
Thank you very much for explaining
I just cleaned /run using live-cd, |
|
Back to top |
|
|
rootor n00b
Joined: 05 Dec 2011 Posts: 25
|
Posted: Wed Mar 13, 2013 10:32 am Post subject: very nice |
|
|
Very nice explication |
|
Back to top |
|
|
Mgiese Veteran
Joined: 23 Mar 2005 Posts: 1609 Location: indiana
|
Posted: Mon Dec 30, 2013 6:32 pm Post subject: |
|
|
very good indeed.
could that be the solution to my problem described here :
https://forums.gentoo.org/viewtopic-t-979964-highlight-.html??
thanks in advance _________________ I do not have a Superman complex, for I am God not Superman
Ryzen9 7950x ; Geforce1650 ; kernel 6.5 ; XFCE |
|
Back to top |
|
|
|