thalib Engineer/Designer

How to setup for NFS boot


Here I would like to explain nfsbooting using diffrent bootloader with linux

We will look at how to do nfsboot using Uboot, Redboot, GRUB, Lilo and etherboot.

NFS boot in Uboot bootloader

nfsboot=setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr
run nfsboot

NFS boot in GRUB bootloader

create a entry in the grub menulist file as below.

title		Ubuntu 9.04, kernel 2.6.28-13-generic - NFS boot
root		(hd0, 0)
kernel		/boot/vmlinuz-2.6.28-13-generic root=/dev/nfs rw nfsroot= ip=
initrd		/boot/initrd.img-2.6.28-13-generic

Root parameter format is as below

root=/dev/nfs rw nfsroot=<serverip>:<rootpath> ip=<ipaddr>:<serverip>:<gatewayip>:<netmask>:<hostname>:<netdev>:off

Previous Note: Enabling IPv4 Forwarding