LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 03-03-2014, 11:06 AM   #1
elsutjr
LQ Newbie
 
Registered: Feb 2014
Posts: 18

Rep: Reputation: Disabled
What would cause an NFS-mounted rootfs to come up read-only?


I'm working on an embedded linux board, and had been running with an NFS mounted ROOTFS. All was good. Then for a while I had switched over to a ramdisk based rootfs, that was fine too. I've since switched back to an NFS-based rootfs and now it always comes up read-only. Something has obviously changed (yea I know, I probably changed it!); but I don't know what. My host machine (from which the NFS mount is achieved) still has an /etc/exports entry similar to :
/full_path_to_my_rootfs *(rw,no_root_squash)
and on my kernel command line:
console=ttymxc0,115200 ip=dhcp root=/dev/nfs nfsroot=${srvrip}:/full_path_to_my_rootfs,v3,tcp

At boot time I see the message:
VFS: Mounted root (nfs filesystem) readonly on device 0:11.

and then other stuff fails because of inability to write.

Any idea what might cause this?

EDIT>>>
Some more detail (that just makes me more confused)...
The rootfs is created by buildroot, and it is configured to remount rootfs to RW as shown by the line in /inittab:
null::sysinit:/bin/mount -o remount,rw / # REMOUNT_ROOTFS_RW

Last edited by elsutjr; 03-03-2014 at 03:57 PM.
 
Old 03-04-2014, 12:41 AM   #2
sebastian.heyn
LQ Newbie
 
Registered: Jan 2012
Posts: 5

Rep: Reputation: Disabled
Hi,

maybe you are now using a different kernel version?
Add "rw" to your command line and you're done.
I guess the kernel usually mounts the rootfs readonly, as usually the fs is checked whether its clean before writing to it.
 
1 members found this post helpful.
Old 03-04-2014, 06:53 AM   #3
elsutjr
LQ Newbie
 
Registered: Feb 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
That did it!
Didn't need this in the past, but apparently now I do!
Yep, I did change my kernel.
Thanks much,
Ed
 
Old 03-04-2014, 07:40 AM   #4
sebastian.heyn
LQ Newbie
 
Registered: Jan 2012
Posts: 5

Rep: Reputation: Disabled
I had the same with a diskless nfs client. after kernel update a while ago it would not boot properly.
the rw flag is not a goot idea for hdd machines, but for nfs who cares :-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nfs, can't read +6GB files from mounted filesystem rey Linux - Server 1 12-26-2011 03:44 AM
[SOLVED] NFS share is mounted as read-only even if write permissions are set vofka Linux - Server 2 04-14-2010 06:09 PM
NFS share is only mounted read-only? Poetics Linux - Networking 2 05-30-2007 12:58 PM
NFS: a mounted to b, b mounted to c, c can't read a? Steve Cronje Linux - Networking 9 10-25-2004 09:51 AM
Mounted NFS directory (Read-Only) dunmarie Linux - General 3 08-04-2004 03:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 09:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration