Linux verifique si el DIR está montado
if mountpoint -q -- "$dir"; then
printf '%s\n' "$dir is a mount point"
fi
Modern Mamba
if mountpoint -q -- "$dir"; then
printf '%s\n' "$dir is a mount point"
fi