Difference between revisions of "Setup NFS root filesystem"

From KoanSoftware Wiki
Jump to: navigation, search
(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…")
(No difference)

Revision as of 09:31, 28 January 2013

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)