How to Check Disk Space on All Mounted Filesystems on Linux Server - Complete Guide to Filesystem Storage Monitoring

Are you wondering how to check disk space usage on all mounted filesystems on your Linux server to monitor storage across all partitions and prevent disk space issues? Need to maintain adequate storage, plan capacity upgrades, and optimi...

Last updated: 2025-11-17

How to Check Disk Space on All Mounted Filesystems on Linux Server - Complete Guide to Filesystem Storage Monitoring

Are you wondering how to check disk space usage on all mounted filesystems on your Linux server to monitor storage across all partitions and prevent disk space issues? Need to maintain adequate storage, plan capacity upgrades, and optimize disk usage? This comprehensive guide shows you how to check disk space on mounted filesystems using Linux commands, set up automated monitoring with Zuzia.app, prevent storage issues, and manage filesystem storage effectively.

Understanding Filesystem Disk Space Monitoring

Checking disk space on all mounted filesystems helps monitor all filesystems simultaneously, detect filesystem-specific issues, plan storage expansion, optimize disk usage, prevent disk space exhaustion, and track storage growth. Each mounted filesystem can have different usage patterns, making comprehensive monitoring essential.

Filesystem monitoring is essential for maintaining storage efficiency and preventing disk space problems. Different filesystems may have different capacity requirements, and monitoring all filesystems helps identify storage issues before they cause problems.

Why Monitor Disk Space on Mounted Filesystems

Monitoring disk space on mounted filesystems provides several benefits:

  • Comprehensive monitoring: Monitor all filesystems simultaneously
  • Issue detection: Detect filesystem-specific storage issues
  • Capacity planning: Plan storage expansion based on filesystem usage
  • Cost optimization: Optimize storage costs by managing filesystem usage
  • Performance: Maintain performance by preventing disk space issues
  • Storage management: Manage storage across all filesystems effectively

Commands to Check Disk Space on Mounted Filesystems

Use these Linux commands to check disk space on all mounted filesystems:

Disk Space on All Mounted Filesystems

# Disk space on all mounted filesystems
df -hT

This shows disk space usage for all mounted filesystems with human-readable format and filesystem types.

Human-Readable Format

# Human-readable format
df -h

# Disk space with total
df -h --total

Include Filesystem Types

# Include filesystem types
df -hT

# Filesystem types only
df -T

Specific Filesystem

# Specific filesystem
df -h /var

# Multiple specific filesystems
df -h /var /home /tmp

Alternative Commands

# Disk space excluding tmpfs
df -h | grep -v tmpfs

# Disk space sorted by usage
df -h | sort -k5 -h -r

# Disk space with inode usage
df -hi

# Disk space for mounted filesystems only
df -h -x tmpfs -x devtmpfs

How to Set Up in Zuzia.app

Set up automated monitoring of disk space on mounted filesystems in Zuzia.app:

Step 1: Add Scheduled Task

  1. Add Scheduled Task

    • Navigate to Zuzia.app dashboard
    • Click "Add Scheduled Task"
    • Choose "Command" task type
  2. Configure Command

    • Use command: df -hT
    • Set execution frequency (e.g., every hour)
    • Configure task name and description

Step 2: Configure Alerts

  1. Set Alert Thresholds

    • Configure alerts when disk usage exceeds thresholds
    • Set different thresholds for different filesystems
    • Choose alert conditions
  2. Choose Notification Channels

    • Configure email notifications
    • Set up webhook integrations
    • Configure SMS notifications (if available)

Step 3: Monitor Results

  1. Review Disk Space Data

    • Check dashboard for filesystem disk usage
    • Review filesystem usage trends
    • Identify filesystems with high usage
  2. Track Storage Trends

    • Monitor storage trends over time
    • Identify filesystems with rapid growth
    • Plan storage upgrades

Use Cases for Filesystem Disk Space Monitoring

This monitoring helps you:

Monitor All Filesystems Simultaneously

  • Comprehensive monitoring: Monitor all filesystems from one command
  • Unified view: Get unified view of all storage
  • Efficient monitoring: Monitor efficiently without checking each filesystem separately
  • Storage overview: Get overview of storage across all filesystems

Detect Filesystem-Specific Issues

  • Issue detection: Detect storage issues in specific filesystems
  • Targeted monitoring: Focus monitoring on problematic filesystems
  • Issue resolution: Resolve filesystem-specific issues
  • Preventive action: Take preventive action for filesystems with high usage

Plan Storage Expansion

  • Expansion planning: Plan storage expansion based on filesystem usage
  • Capacity planning: Plan capacity upgrades for specific filesystems
  • Upgrade planning: Plan filesystem upgrades proactively
  • Resource allocation: Allocate storage resources effectively

Optimize Disk Usage

  • Usage optimization: Optimize disk usage across all filesystems
  • Storage efficiency: Improve storage efficiency
  • Cost reduction: Reduce storage costs
  • Capacity management: Manage storage capacity effectively

Prevent Disk Space Exhaustion

  • Exhaustion prevention: Prevent disk space exhaustion in any filesystem
  • Early detection: Detect storage issues before they cause problems
  • Proactive management: Manage storage proactively
  • System stability: Maintain system stability

Track Storage Growth

  • Growth tracking: Track storage growth across all filesystems
  • Growth analysis: Analyze growth patterns per filesystem
  • Trend detection: Detect growth trends
  • Forecasting: Forecast future storage needs

Advanced Options

Enhance filesystem disk space monitoring with advanced options:

Set Different Thresholds for Different Filesystems

  • Filesystem-specific thresholds: Set thresholds based on filesystem importance
  • Critical filesystems: Set stricter thresholds for critical filesystems
  • Flexible thresholds: Use different thresholds for different filesystems
  • Customized monitoring: Customize monitoring per filesystem

Track Filesystem Growth Over Time

  • Historical tracking: Track filesystem growth over time
  • Growth analysis: Analyze growth rates per filesystem
  • Trend detection: Detect growth trends
  • Forecasting: Forecast future storage needs

Monitor Specific Critical Filesystems

  • Targeted monitoring: Monitor specific critical filesystems
  • Priority filesystems: Focus on priority filesystems
  • Custom monitoring: Monitor filesystems with custom queries
  • Focused monitoring: Focus monitoring on important filesystems

Integrate with Storage Management

  • Management integration: Integrate with storage management tools
  • Automated management: Automate storage management
  • Storage optimization: Optimize storage automatically
  • Capacity management: Manage capacity effectively

Troubleshooting Filesystem Storage Issues

When monitoring shows high disk usage on filesystems:

Identify Storage Problems

  1. Review Filesystem Usage

    • Review current filesystem usage
    • Identify filesystems with high usage
    • Check filesystem usage trends
  2. Investigate Storage Growth

    • Investigate why filesystems are filling up
    • Check large files in filesystems
    • Identify causes of storage growth

Take Action

  1. Free Up Space

    • Clean up files in filesystems
    • Archive old files
    • Remove unnecessary files
  2. Expand Storage

    • Add more disk space to filesystems
    • Resize filesystems if possible
    • Migrate to larger storage

Best Practices for Filesystem Disk Space Monitoring

Follow these best practices:

  • Monitor regularly: Monitor filesystem disk space regularly
  • Set appropriate thresholds: Set thresholds based on filesystem capacity
  • Review trends: Review filesystem usage trends regularly
  • Plan capacity: Plan storage capacity proactively
  • Optimize usage: Optimize disk usage across filesystems
  • Document policies: Document storage management policies

FAQ: Common Questions About Filesystem Disk Space Monitoring

How often should I check disk space?

We recommend checking disk space every hour for active monitoring. For less critical systems, every 6-12 hours is sufficient. More frequent checks provide better visibility but increase system load. Adjust frequency based on your system criticality and storage growth patterns.

Can I set different thresholds for different filesystems?

Yes, you can configure separate alerts for different filesystems based on their importance and expected usage patterns. Set stricter thresholds for critical filesystems like / or /var, and more lenient thresholds for less critical filesystems. Filesystem-specific thresholds help focus monitoring on important storage.

What if a filesystem is full?

You'll receive notifications before filesystems become full (typically at 80% usage). You can then take action to free up space or expand storage. Review filesystem usage, identify large files, clean up or archive files, and expand storage if needed. Quick response helps prevent filesystem exhaustion.

Yes, all disk space data is stored historically in Zuzia.app, allowing you to view growth trends and predict when you'll need more space. Review historical data to identify trends, compare current vs. historical usage, predict capacity needs, and plan upgrades. Historical data helps understand filesystem growth patterns and plan capacity upgrades effectively.

What's the difference between df -h and df -hT?

df -h shows disk space in human-readable format, while df -hT also includes filesystem types. Use df -hT when you need to know filesystem types (ext4, xfs, tmpfs, etc.) in addition to disk usage. Filesystem type information helps understand storage configuration.

How do I check inode usage?

Use df -i or df -hi to check inode usage. Inode usage shows how many file system metadata entries are used. You can run out of inodes even if disk space is available if you have many small files. Monitor both disk space and inode usage to prevent both types of exhaustion.

Can I monitor remote filesystems?

Yes, df shows all mounted filesystems including remote filesystems (NFS, CIFS, etc.). Monitor remote filesystems the same way as local filesystems. Remote filesystems may have different performance characteristics and capacity constraints, so monitor them accordingly.

How does AI help with filesystem monitoring?

If you have Zuzia.app's full package, AI analysis can detect filesystem growth patterns automatically, predict when filesystems will be full, suggest files safe to delete or archive, recommend cleanup strategies, and provide insights for optimizing storage usage. AI helps you manage filesystem storage more effectively.

What if I have many filesystems?

If you have many filesystems, monitor all filesystems consistently, set filesystem-specific thresholds, focus monitoring on critical filesystems, and use Zuzia.app to manage monitoring across all filesystems from one dashboard. Consistent monitoring helps maintain storage standards across all filesystems.

Can I export filesystem data?

Yes, Zuzia.app allows you to export monitoring data. Export data for analysis, reporting, capacity planning, or storage investigation. Use exported data to analyze filesystem patterns, create reports, and plan storage management strategies.

We use cookies to ensure the proper functioning of our website.