OpenWrt Forum Archive

Topic: OpenWRT NFS Root?

The content of this topic has been archived on 24 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi everyone.

I was just wondering if anyone has tried making OpenWRT boot off a NFS mount?

eg. I have a WRT54GS which is currently running OpenWRT, and I wanted to make it have the / partition on my NFS server instead.

I know how to do this with "normal" boxes (x86 etc), but the WRT is quite limited, and I'm not entirely sure how to go about doing it.

I know that the kernel must have support for NFS Root, and either a DHCP server or the Boot loader must provide details of where the NFS share is, (i have only done it using the bootloader method on normal computers, and I'm not entirely sure if the bootloader in the WRT54GS would support this).

Anyone done this before or have any tips?

hkhan wrote:

I was just wondering if anyone has tried making OpenWRT boot off a NFS mount?

Anyone done this before or have any tips?

Hi !

Yes it is possible to do this, but not sure for WRT54xx devices.

Here is a nice work, running a fonera (atheros/redboot) with rootfs on NFS remote computer.
OK, it's written in japanese wink and made from DD-WRT ! But with a lot of details, including how to configure the kernel for NFS boot.

http://blog.gcd.org/archives/cat_50035209.html

You can adapt to OpenWRT I guess, perhaps g00gle may help you in other language?



Regards.
Lama

Ohh thanks.
I'm trying now to do it now. I'll post if i make any progress (for other people that might be interested in this)

The discussion might have continued from here.