doozyParticipant06/21/2015 at 11:54Post count: 2
I’ve just installed Linux retropie 3.18.11-v7+ and I have configured it store the roms on the my home server using NFS shares. I have mounted an NFS share directly onto ~/RetroPie/roms using /etc/fstab.
The problem I have is that the NFS shares don’t mount when the system boots. I guess its because it tries to mount before the network is ready?
If I quit my emulationstation front end and issue a “sudo mount -a” everything mounts fine and I can run emulationstation and play games etc.
I edited /usr/bin/emulationstation and added a “sudo mount -a” at the beginning. This does not help when the device first boots, the mounting still doesn’t happen. However, if I quit emulationstation and reload it everything mounts fine.
So I need some advice on how to delay the startup a little to allow time for the network to come up and everything to mount properly before emulationstation front end is launched.
any ideas or thoughts?sameParticipant06/21/2015 at 14:47Post count: 9
Had the same issue and found a post in this forum with a script made by erdnuesse member, I modified it a bit for my needs and here it goes:
Just after the
# Thx erdnuesse # Set retry to the number of times you want the loop to repeat RETRY=20 # As long as we have retries left... if [ `mount -l -t nfs | wc -l` -eq 0 ]; then while [ $RETRY -gt 0 ]; do # This will become true if 'ping' gets a response # Modify the following IP with your server address if ping -c 1 -W 1 192.168.1.7 > /dev/null ; then echo "Mounting NFS Shares..." sudo mount -a -t nfs RETRY=0 else # Wait for 1 second sleep 1 RETRY=$((RETRY - 1)) if [ $RETRY -eq 0 ]; then echo "[ERROR] NFS Failed to mount: server sent no response to ping." fi fi done else echo "Note: NFS Shares already mounted." fi
Hope it helps !sameParticipant06/21/2015 at 16:07Post count: 9
I just edited my previous post, as I had troubles to get the backticks appearing in the code block, I also misplaced one…
Should be fixed now.
- The forum ‘New to RetroPie? Start Here!’ is closed to new topics and replies.