* Mounting rootfs via NFS @ 2013-05-14 16:02 Fabio Estevam 2013-05-14 16:05 ` Eric Bénard 0 siblings, 1 reply; 4+ messages in thread From: Fabio Estevam @ 2013-05-14 16:02 UTC (permalink / raw) To: meta-freescale; +Cc: Angolini Daiane-B19406, Otavio Salvador Hi, I am trying to mount a rootfs generated by Yocto via NFS on a mx28evk: [ 11.289609] VFS: Mounted root (nfs filesystem) readonly on device 0:11. [ 11.297677] devtmpfs: mounted [ 11.302088] Freeing unused kernel memory: 212K (c05fb000 - c0630000) INIT: version 2.88 booting mount: permission denied (are you root?) mount: permission denied (are you root?) grep: /proc/filesystems: No such fi: Permission denied bootlogd.Bootlog daemon: bootlogd: mount: can't read '/proc/mounts': No such file or directory ln: /dev/mtab: Permission denied urandom start: failed. /etc/init.d/rc: /etc/rcS.d/S37populate-volatile.sh: line 192: can't open /proc/cmdline: no such file grep: /proc/filesystems: No such file or directory hostname: sethostname: Operation not permitted Configuring network interfaces... ifconfig: SIOCSIFADDR: Operation not permitted ifup: can't open '/var/run/ifstate': Read-only file system hwclock: can't open '/dev/misc/rtc': No such file or directory date: can't set date: Operation not permitted Tue Apr 23 16:07:00 UTC 2013 hwclock: can't open '/dev/misc/rtc': No such file or directory INIT: Entering runlevel: 5 hwclock: can't open '/dev/misc/rtc': No such file or directory Starting syslogd/klogd: done Stopping Bootlog daemon: bootlogd. Any hints? Thanks, Fabio Estevam ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Mounting rootfs via NFS 2013-05-14 16:02 Mounting rootfs via NFS Fabio Estevam @ 2013-05-14 16:05 ` Eric Bénard 2013-05-14 16:11 ` Fabio Estevam 0 siblings, 1 reply; 4+ messages in thread From: Eric Bénard @ 2013-05-14 16:05 UTC (permalink / raw) To: Fabio Estevam; +Cc: meta-freescale, Angolini Daiane-B19406, Otavio Salvador Hi Fabio, Le Tue, 14 May 2013 13:02:33 -0300, Fabio Estevam <festevam@gmail.com> a écrit : > I am trying to mount a rootfs generated by Yocto via NFS on a mx28evk: > > [ 11.289609] VFS: Mounted root (nfs filesystem) readonly on device 0:11. > [ 11.297677] devtmpfs: mounted > [ 11.302088] Freeing unused kernel memory: 212K (c05fb000 - c0630000) > INIT: version 2.88 booting > mount: permission denied (are you root?) > mount: permission denied (are you root?) > grep: /proc/filesystems: No such fi: Permission denied > bootlogd.Bootlog daemon: bootlogd: > mount: can't read '/proc/mounts': No such file or directory > ln: /dev/mtab: Permission denied > urandom start: failed. > /etc/init.d/rc: /etc/rcS.d/S37populate-volatile.sh: line 192: can't > open /proc/cmdline: no such file > grep: /proc/filesystems: No such file or directory > hostname: sethostname: Operation not permitted > Configuring network interfaces... ifconfig: SIOCSIFADDR: Operation not permitted > ifup: can't open '/var/run/ifstate': Read-only file system > hwclock: can't open '/dev/misc/rtc': No such file or directory > date: can't set date: Operation not permitted > Tue Apr 23 16:07:00 UTC 2013 > hwclock: can't open '/dev/misc/rtc': No such file or directory > INIT: Entering runlevel: 5 > hwclock: can't open '/dev/misc/rtc': No such file or directory > Starting syslogd/klogd: done > Stopping Bootlog daemon: bootlogd. > > Any hints? > what are your nfs server settings ? Eric ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Mounting rootfs via NFS 2013-05-14 16:05 ` Eric Bénard @ 2013-05-14 16:11 ` Fabio Estevam 2013-05-14 17:23 ` Fabio Estevam 0 siblings, 1 reply; 4+ messages in thread From: Fabio Estevam @ 2013-05-14 16:11 UTC (permalink / raw) To: Eric Bénard; +Cc: meta-freescale, Angolini Daiane-B19406, Otavio Salvador Hi Eric, On Tue, May 14, 2013 at 1:05 PM, Eric Bénard <eric@eukrea.com> wrote: > what are your nfs server settings ? Here is my /etc/exports: # /etc/exports: the access control list for filesystems which may be exported # to NFS clients. See exports(5). # # Example for NFSv2 and NFSv3: # /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check) # # Example for NFSv4: # /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check) # /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check) # /tftpboot/rfs/ *(rw,no_root_squash,no_subtree_check,async) sudo /etc/init.d/nfs-kernel-server restart [sudo] password for fabio: * Stopping NFS kernel daemon [ OK ] * Unexporting directories for NFS kernel daemon... [ OK ] * Exporting directories for NFS kernel daemon... [ OK ] * Starting NFS kernel daemon [ OK ] In the kernel log I see: mount: permission denied (are you root?) Not sure how to overcome this though. Thanks, Fabio Estevam ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Mounting rootfs via NFS 2013-05-14 16:11 ` Fabio Estevam @ 2013-05-14 17:23 ` Fabio Estevam 0 siblings, 0 replies; 4+ messages in thread From: Fabio Estevam @ 2013-05-14 17:23 UTC (permalink / raw) To: Eric Bénard; +Cc: meta-freescale, Angolini Daiane-B19406, Otavio Salvador On Tue, May 14, 2013 at 1:11 PM, Fabio Estevam <festevam@gmail.com> wrote: > Not sure how to overcome this though. Ok, the trick was to untar the rootfs via sudo in order to get the correct permissions. It is booting fine now: [ 10.219082] VFS: Mounted root (nfs filesystem) readonly on device 0:11. [ 10.227149] devtmpfs: mounted [ 10.231555] Freeing unused kernel memory: 212K (c05fb000 - c0630000) INIT: version 2.88 booting �Starting udev [ 11.872036] udevd[69]: starting version 182 Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory bootlogd. Configuring network interfaces... ifup skipped for nfsroot interface eth0 run-parts: /etc/network/if-pre-up.d/nfsroot exited with code 1 INIT: Entering runlevel: 5 Starting syslogd/klogd: done Stopping Bootlog daemon: bootlogd. Poky 8.0 (Yocto Project 1.3 Reference Distro) 1.3+snapshot-20130423 imx23evk ttyAMA0 imx28evk login: root root@imx28evk:~# Thanks, Fabio Estevam ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-05-14 17:23 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-05-14 16:02 Mounting rootfs via NFS Fabio Estevam 2013-05-14 16:05 ` Eric Bénard 2013-05-14 16:11 ` Fabio Estevam 2013-05-14 17:23 ` Fabio Estevam
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.