Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want a client which loads a kernel and a file system from the server through network.

Until now, on the server side, I changed the settings in /etc/dhcp/dhcpd.conf to get an ip-address to the client. After that I executed the command

service isc-dhcp-server restart

I built openwrt kernel image openwrt-x86-generic-vmlinuz by downloading necessary packages. I created one directory with name /tftpboot and I copied pxelinux.0 from /usr/lib/pxelinux.0 to /tftpboot And I also copied openwrt-x86-generic-vmlinuz in /tftpboot

Inside /tftpboot I created one directory with name pxelinux.cfg


default openwrt label openwrt kernel openwrt-x86-generic-vmlinuz append boot=nfs root=/dev/nfs nfsroot=nfs:server-ip:/tftpboot ip=dhcp rw

I executed:

service tftpd-hpa restart

At client side, I restarted system and I selected the boot options to pxe booting

It is loading the kernel openwrt-x86-generic-vmlinuz smoothly. Not mounting the file system which I had given in /etc/exports file

My question is how can I mount the filesystem from server to client while booting? Any mistakes in boot arguments, or any other method to mount file system while booting?

share|improve this question
Make sure you have CONFIG_NFS and CONFIG_NFSROOT enabled when you compile the kernel. – umeboshi Dec 24 '14 at 8:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.