Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Root partition is booting as read only
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
archrax
n00b
n00b


Joined: 05 Dec 2011
Posts: 33

PostPosted: Mon Dec 02, 2013 2:47 am    Post subject: Root partition is booting as read only Reply with quote

Hello all you wonderful gentoo people. I hope you can help me...

I've just finished building a new hardened no-multilib 64 bit machine but I have this problem;
-The root partition mounts read only and I have to remount it manually in order to write to it.
-None of my other partitions are mounted automatically.

I've read through the forum but none of the previous solutions appear to work for me.
-My build is 64 bit so the LB_DAF option isn't relevant.
-I've compiled in DEVTEMPFS support and selected automount.
-In case it was a fsck problem I booted with this disabled but it didn't help.

I can see a message flashing by briefly before boot that the root partition has been detected and it is being mounted as ro.
I am using an initramfs.
I am using grub2.

Here is my /etc/fstab
Code:

/dev/sda1  /boot   ext4   noauto,noatime   1 2
/dev/sda2   none   swap   sw                        0 0
/dev/sda3   /        ext4   noatime               0 1
/dev/sda4   /opt     ext4   noatime               0 0
/dev/sda5   /var     ext4   noatime               0 0
/dev/sda6   /home    ext4   noatime               0 0
/dev/cdrom /mnt/cdrom   auto   noauto,user      0 0


This is my /var/log/dmesg
Code:

EXT4-fs (sda3): couldn't mount as ext3 due to feature incompatibilities
EXT4-fs (sda3): couldn't mount as ext2 due to feature incompatibilities
EXT4-fs (sda3): mounted filesystem with ordered data mode: Opts: (null)
VFS: Mounted root (ext4 filesystem) readonly on device 8:3


Any help would be greatly appreciated.

Thanks


Last edited by archrax on Mon Dec 02, 2013 11:55 am; edited 2 times in total
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 8592

PostPosted: Mon Dec 02, 2013 4:24 am    Post subject: Reply with quote

It is normal for root to mount as read-only. The system init process should remount it as read-write later on, and is also responsible for mounting your other filesystems. You need to debug why those steps fail or are skipped. Are there any steps that report failure after the on-disk init system takes over?

Why do you mount three different partitions onto /opt?
Back to top
View user's profile Send private message
archrax
n00b
n00b


Joined: 05 Dec 2011
Posts: 33

PostPosted: Mon Dec 02, 2013 11:58 am    Post subject: Reply with quote

Thanks for the reply Hu.

Er, not mounting /opt 3 times. Was falling asleep last night when I wrote post - fixed. :-)

I've checked that the root service is in the boot runlevel but thanks for the pointer. I will do some more digging.
Back to top
View user's profile Send private message
archrax
n00b
n00b


Joined: 05 Dec 2011
Posts: 33

PostPosted: Mon Dec 02, 2013 10:59 pm    Post subject: Reply with quote

Gave up in the end despite lots of digging around.

I've found that the easiest way to build a Gentoo system is to not go for optimizing everything you can in menuconfig right at the start.
Started with the minimal functioning configuration (SATA controller only) and then took it from there, adding in functionality incrementally, compiling and testing etc.
Happy now with my working system. :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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