[HELP]Can not boot from NFS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[HELP]Can not boot from NFS

916 Views
michaellai
Contributor I

I want to boot Ubuntu 12.04 from NFS, here are the error messages:

IP-Config: Guessing netmask 255.255.255.0

IP-Config: Complete:

     device=eth0, addr=192.168.1.2, mask=255.255.255.0, gw=255.255.255.255,

     host=192.168.1.2, domain=, nis-domain=(none),

     bootserver=255.255.255.255, rootserver=192.168.1.18, rootpath=

VFS: Mounted root (nfs filesystem) on device 0:12.

Freeing init memory: 212K

init: Unable to mount /dev filesystem: No such device

init: Unable to create device: /dev/ptmx

init: Cannot create directory: /dev/pts

init: Unable to create device: /dev/null

init: Unable to create device: /dev/tty

init: Unable to create device: /dev/console

init: Unable to create device: /dev/kmsg

Here is the content of /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,no_root_squash)

#

/srv/nfs *(rw,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)

#

The ubuntu 12.04 rootfs file 'oneiric.tgz' is tested good when I use Mfgtools to burn it to MMC directly, and I extract it to /srv/nfs, what's wrong?

0 Kudos
3 Replies

528 Views
leoschwab
Contributor III

敏 赖 wrote:

Here is the content of /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,no_root_squash)

#

/srv/nfs *(rw,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)

#

The ubuntu 12.04 rootfs file 'oneiric.tgz' is tested good when I use Mfgtools to burn it to MMC directly, and I extract it to /srv/nfs, what's wrong?

Add no_root_squash to the mount options for /srv/nfs.  Also be sure you extract the .tgz file as root so that all ownerships and permissions are set correctly.

0 Kudos

528 Views
liyu1
Contributor III

Hello:



Please tell me where to download ubuntu 12.04 mirror, I can only be downloaded to 11.10 Mirror ?



                        Thanks!

0 Kudos

528 Views
Wlodek_D_
Senior Contributor II

Hello,

Thank you for your post, however please consider moving it to the right community place (e.g. i.MX Community or other space, respectively to your target device  ) to get it visible for active members.

For details please see general advice Where to post a Discussion?

Thank you for using Freescale Community.

0 Kudos