Take the 2-minute tour ×
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.

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

/tftpboot/pxelinux.cfg/default:

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

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.