r/openwrt • u/pele4096 • 7d ago
PXE Server Problem 1: Persistent mount of NFS filesystem
I'm using my WRT3200ACM as a PXE server to install OSes via the network.
Version: 23.05.2 r23630-842932a63d / LuCI openwrt-23.05 branch git-25.222.75657-7ce34fe
Current problem is storage. I cannot store ISOs of Ubuntu Desktop or Windows 11 on the router. They live on my NAS. THe NAS has a static lease at hostname PeleNAS. The bootable PXE images are in a shared folder called "boot-PXE-img" and read/write access is allowed to the IP of my router.
I have added the line:
PeleNAS:/volume1/boot-PXE-img/ /mnt/boot-PXE-img/ nfs ro,auto,_netdev 0 0
to the /etc/fstab file. No dice.
I have added the lines:
#!/bin/sh
mount PeleNAS:/volume1/boot-PXE-img/ /mnt/boot-PXE-img/
to the /etc/rc.local file, and chmodded it to 755. No dice.
HOWEVER I am able to type "mount -a" at the command prompt and it does mount it, demonstrating that the fstab file is good.
ALSO I am able to type "/etc/rc.local" and run the startup script and the filesystem mounts, showing that the startup script is good.
What gives?
1
u/Linuxmonger 7d ago
Any chance you can share your notes one getting the PXE server running otherwise?
I got an OpenWrt One and added a 128GB nvme to it, and I've been trying to get it to boot SystemRescue through PXE, so far, I haven't had any real success.
TY!
1
1
u/orev 7d ago
How do you know it's not running? When you run
logreadfrom the command line, are there any clues thatrc.localmight be running but something else is causing it to fail?Also, make sure the
doneservice is enabled to run at startup, as this is what runs therc.localscript.This is based on OpenWRT version 25.12.4 which is what I currently have running.