thalib Engineer/Designer

How to setup for NFS boot

2016-10-29

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=172.29.38.95:/data/nfs ip=172.29.38.230:172.29.38.95:172.29.38.1:255.255.255.0:SilenStorm:eth0:off
initrd		/boot/initrd.img-2.6.28-13-generic
quiet

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

Comments