Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
root mounted as read-only
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
rabcor
Apprentice
Apprentice


Joined: 05 Apr 2012
Posts: 200

PostPosted: Wed May 28, 2014 10:51 pm    Post subject: root mounted as read-only Reply with quote

I am running x86 gentoo on my ancient laptop I use to host a teamspeak server (I decided gentoo was better for the job than arch which it formerly ran on).

I am using hardened-sources and this is a fresh install just in after following the handbook guide.

Code:

* Mounting /proc ... [ok]
* Mounting /run
mount: wrong fs type, bad option, bad superblock on tmpfs, missing codepage or helper program or other error In some cases useful info is found in syslog - try dmesg | tail or so
* Unable to mount tmpfs on /run
* Can't continue.
[    5.046086] random: nonblocking pool is initialized
*rc: failed to create stopping dir '/run/openrc/rc.stopping': Read-only file system
*rc: failed to create stopping dir '/run/openrc/rc.stopping': Read-only file system
INIT: Entering runlevel: 3
*rc: failed to create stopping dir '/run/openrc/rc.stopping': Read-only file system


And then I get login prompt. The relevant parts of my fstab look like so: (excluding cd and floppy entries)

Code:

/dev/sda2    /boot    ext2    noauto,noatime      1 2
/dev/sda4    /        ext4    noatime             0 1
/dev/sda3    none     swap    sw                  0 0


running

Code:
mount -o remount,rw /


Works to make my root partition writable, but that doesn't fix the broken boot (lsmod for example displays nothing at all, internet does not start, etc)

Edit: I found that tmpfs support was disabled in the kernel for some reason :oops: recompiling now (takes a while on a unicore pentium 3 based celeron laptop though) still doesn't explain the read-only root file system.
_________________
This picture was my biggest reason for ever trying Gentoo <3
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7132
Location: almost Mile High in the USA

PostPosted: Thu May 29, 2014 12:00 am    Post subject: Reply with quote

Quite possible that openrc gave up remounting the rootfs read/write once it discovered that "can't continue" fatal issue of tmpfs not usable?

See if the tmpfs fixes the issue, it may very well fix everything.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
rabcor
Apprentice
Apprentice


Joined: 05 Apr 2012
Posts: 200

PostPosted: Thu May 29, 2014 2:17 am    Post subject: Reply with quote

Bootup is a lot cleaner now after I fixed the missing tmpfs support but I still get one error:

Code:

...
* Starting syslog-ng ...
Error creating persistent state file; filename='var/lib/syslog-ng/syslog-ng.persist-'. error='Read-only filesystem (30)'
* checkpath: chmod: Read-only file system
*ERROR: syslog-ng failed to start
...


Which is quite odd as my file system does indeed not seem to be read only anymore (I can R/W files)

Edit: I'm thinking it's probably safe to ignore this since it successfully starts syslog-ng later on in bootup
_________________
This picture was my biggest reason for ever trying Gentoo <3
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