Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remount nfs storage
#!/bin/sh
# Remount nfs storage
ls /storage > /dev/null
if [ "$?" -ne "0" ]; then
echo "Error listing /storage" 1>&2
umount /storage
mount /storage
echo "Storage remounted" 1>&2
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment