How to Check System Mount Point Status
Check system mount point status on Linux servers. Monitor mount points, verify mount status, detect mount failures, and set up automated mount point monitoring with Zuzia.app.
How to Check System Mount Point Status
Need to check system mount point status on your Linux server? Want to monitor mount points, verify mount status, and detect mount failures? This guide shows you how to check mount point status using built-in commands and automated monitoring with Zuzia.app.
For comprehensive disk monitoring strategies, see Disk and Filesystem Monitoring Guide. For troubleshooting mount issues, see Disk Space Full Server.
Why Checking Mount Point Status Matters
Mount points provide access to filesystems and storage. When mount points fail or become unavailable, filesystems can become inaccessible, data can be lost, and services can fail. Checking mount point status helps you detect mount failures, verify mount availability, track mount changes, and maintain filesystem accessibility.
Method 1: List Mount Points
List mount points to see what filesystems are mounted:
View Mounted Filesystems
# View all mount points
mount
# View mount points in readable format
mount | column -t
# View mount points by filesystem type
mount -t ext4
# View mount points with details
df -h
Analyze Mount Information
# View mount points by device
mount | awk '{print $1, $3}' | sort
# Check mount point status
df -h | awk 'NR>1 {print $6, $5, $4}'
# View mount point usage
df -h | awk 'NR>1 {print $6, $5}'
# Monitor mount points in real-time
watch -n 1 'df -h'
Method 2: Verify Mount Status
Verify mount status to ensure mount points are available:
Check Mount Availability
# Test mount point accessibility
test -d /mnt/backup && echo "Mount point accessible" || echo "Mount point not accessible"
# Verify mount point is mounted
mountpoint /mnt/backup && echo "Mounted" || echo "Not mounted"
# Check mount point status
mount | grep "/mnt/backup"
# Verify filesystem is accessible
ls /mnt/backup > /dev/null && echo "OK" || echo "FAIL"
Monitor Mount Health
# Check for mount errors
dmesg | grep -i "mount\|filesystem"
# View mount failures
journalctl | grep -i "mount.*fail\|mount.*error"
# Check mount point integrity
mount | grep "/mnt/backup" | grep -v "rw"
# Verify mount options
mount | grep "/mnt/backup" | awk '{print $6}'
Method 3: Detect Mount Failures
Detect mount failures to identify filesystem issues:
Identify Failed Mounts
# Check for unmounted filesystems
df -h | awk 'NR>1 {if ($6 != "/" && $6 != "/boot") print $6}' | while read mp; do
mountpoint $mp > /dev/null || echo "$mp: NOT MOUNTED"
done
# View mount errors in logs
grep -i "mount.*fail\|mount.*error" /var/log/syslog | tail -20
# Check for filesystem errors
dmesg | grep -i "filesystem.*error\|mount.*error"
# Identify problematic mount points
mount | grep -E "ro|noexec|nosuid" | awk '{print $3}'
Monitor Mount Changes
# Track mount point changes
mount > /tmp/mounts-current.txt
diff /tmp/mounts-previous.txt /tmp/mounts-current.txt
# Check for new mount points
comm -13 <(sort /tmp/mounts-baseline.txt) <(sort <(mount))
# Check for removed mount points
comm -23 <(sort /tmp/mounts-baseline.txt) <(sort <(mount))
# Monitor mount point modifications
stat /etc/fstab | grep Modify
Method 4: Automated Mount Point Status Monitoring with Zuzia.app
While manual mount point checks work for verification, production Linux servers require automated mount point status monitoring that continuously tracks mount status, detects mount failures, and alerts you when mount points become unavailable.
How Zuzia.app Mount Point Status Monitoring Works
Zuzia.app automatically monitors mount point status through scheduled command execution. The platform checks mount status, verifies mount availability, detects mount failures, and sends alerts when mount points become unavailable.
Setting Up Mount Point Status Monitoring
-
Add Scheduled Task for Mount Status
- Command:
mount | wc -l - Frequency: Every 15 minutes
- Alert when: Mount count changes unexpectedly
- Command:
-
Configure Critical Mount Monitoring
- Command:
mountpoint /mnt/backup && echo "OK" || echo "FAIL" - Frequency: Every 10 minutes
- Alert when: Critical mount points not mounted
- Command:
-
Set Up Mount Failure Detection
- Command:
dmesg | grep -i "mount.*fail\|mount.*error" | tail -10 - Frequency: Every 15 minutes
- Alert when: Mount errors detected
- Command:
Custom Mount Point Monitoring Commands
Add these commands as scheduled tasks:
# Check mount points
mount | column -t
# Verify mount status
mountpoint /mnt/backup
# Check mount point usage
df -h | awk 'NR>1 {print $6, $5}'
# Monitor mount errors
dmesg | grep -i "mount.*fail\|mount.*error" | tail -10
Best Practices
1. Monitor Mount Points Continuously
Use Zuzia.app for continuous mount point monitoring. Set up alerts before mount issues become critical. Review mount status regularly.
2. Verify Mount Availability
Don't assume mount points are available. Verify mount status regularly. Test mount point accessibility. Check mount point health.
3. Track Mount Changes
Monitor mount point modifications. Track mount point additions and removals. Verify mount changes are authorized.
Troubleshooting
Mount Point Not Available
When mount points are unavailable:
- Check mount status:
mountpoint /mnt/backup - Review mount errors:
dmesg | grep -i "mount.*fail" - Remount if needed:
mount /mnt/backup - Verify mount restored:
mountpoint /mnt/backup
Mount Failures Detected
When mount failures are detected:
- Review mount logs:
journalctl | grep -i "mount.*fail" - Check filesystem errors:
dmesg | grep -i "filesystem.*error" - Fix mount issues
- Verify mounts restored
FAQ
Related guides, recipes, and problems
-
Related guides
-
Related recipes
-
Related problems