Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VFS: Mounted root (ext4 filesystem) readonly
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
Ripper-tm
n00b
n00b


Joined: 29 May 2011
Posts: 13

PostPosted: Sun May 29, 2011 6:11 pm    Post subject: VFS: Mounted root (ext4 filesystem) readonly Reply with quote

I have the same problem as was discussed there -> http://forums.gentoo.org/viewtopic-p-6295101.html
except that "Large files and block devices" are enabled in my kernel.

dmesg
Code:
EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) readonly on device 8:2.
Freeing unused kernel memory: 396k freed
Write protecting the kernel text: 4244k
Write protectiong the kernel read-only data: 1664k
init-early.sh used greatest stack depth: 6696 bytes left


grub
Code:
default 0
timeout 10

title Gentoo
root (hd0,0)
kernel /boot/kernel-2.6.37-gentoo-r4 root=/dev/sda2 raid=noautodetect rootfstype=ext4


fstab
Code:

/dev/sda1    /boot     ext3     noauto,noatime   1 2
/dev/sda2    /         ext4     noatime          0 1
/dev/sda3    none      swap     sw               0 0
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6419
Location: Goose Creek SC

PostPosted: Sun May 29, 2011 8:57 pm    Post subject: Reply with quote

http://forums.gentoo.org/viewtopic-t-879347-postdays-0-postorder-asc-start-0.html refers.
It may be that you need to change kernel config to include:
Quote:
Device Drivers --->
Generic Driver Options --->
(/sbin/hotplug) path to uevent helper
[*] Maintain a devtmpfs filesystem to mount at /dev
[*] Automount devtmpfs at /dev, after the kernel mounted the rootfs
[*] Select only drivers that don't need compile-time external firmware
[*] Prevent firmware from being built
-*- Userspace firmware loading support
[ ] Include in-kernel firmware blobs in kernel binary
() External firmware blobs to build into the kernel binary
[ ] Driver Core verbose debug messages
[ ] Managed device resources verbose debug messages
and mount /boot and recompile and recopy the kernel.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
feystorm
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2004
Posts: 95

PostPosted: Sun May 29, 2011 9:37 pm    Post subject: Reply with quote

Its normal to see the message "Mounted root (ext4 filesystem) readonly", and is ill-advised to change this without knowing what youre doing.

The line that we need to see will say something similar to "Unable to mount / on unknown block device" or "Unable to mount unknown filesystem on block (0,1)" or such.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6419
Location: Goose Creek SC

PostPosted: Sun May 29, 2011 10:12 pm    Post subject: Reply with quote

While
Quote:
EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) readonly on device 8:2.
Freeing unused kernel memory: 396k freed
Write protecting the kernel text: 4244k
Write protectiong the kernel read-only data: 1664k
init-early.sh used greatest stack depth: 6696 bytes left
are all normal outputs during boot; having the process then hang is not normal.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Ripper-tm
n00b
n00b


Joined: 29 May 2011
Posts: 13

PostPosted: Mon May 30, 2011 3:04 am    Post subject: Reply with quote

DONAHUE wrote:
http://forums.gentoo.org/viewtopic-t-879347-postdays-0-postorder-asc-start-0.html refers.
It may be that you need to change kernel config to include:
Quote:
Device Drivers --->
Generic Driver Options --->
(/sbin/hotplug) path to uevent helper
[*] Maintain a devtmpfs filesystem to mount at /dev
[*] Automount devtmpfs at /dev, after the kernel mounted the rootfs
[*] Select only drivers that don't need compile-time external firmware
[*] Prevent firmware from being built
-*- Userspace firmware loading support
[ ] Include in-kernel firmware blobs in kernel binary
() External firmware blobs to build into the kernel binary
[ ] Driver Core verbose debug messages
[ ] Managed device resources verbose debug messages
and mount /boot and recompile and recopy the kernel.

Thanks a lot! This solved the problem.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6419
Location: Goose Creek SC

PostPosted: Mon May 30, 2011 3:09 am    Post subject: Reply with quote

Wahoo!
_________________
Defund the FCC.
Back to top
View user's profile Send private message
nkichukov
n00b
n00b


Joined: 16 Oct 2012
Posts: 4
Location: Varna, Bulgaria

PostPosted: Fri Oct 19, 2012 8:21 am    Post subject: Reply with quote

True, it saved me after multiple kernel recompilations. Thanks guys!
Enabling Large file support in the linux kernel allowed the ext4 filesystem to mount read-write.

Cheers,
-Nik
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