Vérifiez Linux si Dir est monté
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