Setup NFS root filesystem

From KoanSoftware Wiki
Revision as of 09:31, 28 January 2013 by Koan (talk | contribs) (Created page with "= Setup NFS root filesystem = This setup assumes the following: * the target system has Ethernet support built into the kernel * the target system is on the same network as a L…")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Setup NFS root filesystem

This setup assumes the following:

  • the target system has Ethernet support built into the kernel
  • the target system is on the same network as a Linux workstation
  • said network includes a DHCP server

Kernel Support

Make sure you have the following options turned on in the kernel:

CONFIG_IP_PNP_DHCP=y
CONFIG_ROOT_NFS=y

Then, add the following to your kernel CMDLINE:

ip=dhcp root=/dev/nfs nfsroot=<nfs server IP>:/path/to/nfsroot

Workstation Setup

Don't forget to setup your workstation

(edit /etc/exports to contain something like the following)

/path/to/nfsroot     *(rw,no_root_squash,async)