Skip to content
SysTutorials
  • SysTutorialsExpand
    • Linux & Systems Administration Academy
    • Web3 & Crypto Academy
    • Programming Academy
    • Systems & Architecture Academy
  • Subscribe
  • Linux Manuals
  • Search
SysTutorials
Linux System Configuration

How to Reload fstab Changes in systemd on Linux

ByDavid Yang Posted onMar 24, 2018Apr 13, 2026 Updated onApr 13, 2026

When you modify /etc/fstab, systemd doesn’t automatically pick up the changes. You need to explicitly tell systemd to reload its configuration and apply the new mount points.

The Basic Reload

To force systemd to recognize changes in /etc/fstab, run:

sudo systemctl daemon-reload

This tells systemd to re-read all unit files and configuration, including the mounts derived from /etc/fstab.

Applying the New Mounts

After reloading the daemon, you have two main options depending on what you need:

Option 1: Remount everything

sudo systemctl restart local-fs.target remote-fs.target

This restarts the local and remote filesystem targets, which will mount any new entries you’ve added to /etc/fstab. Use this when you’ve added new mountpoints and want them immediately available.

Option 2: Mount specific entries only

If you’ve only added one or two new entries and don’t want to risk interrupting existing mounts, you can mount them individually:

sudo mount /mountpoint

This works if the mount is properly defined in /etc/fstab with all required options.

Verify Your Changes

Before restarting targets, always validate the /etc/fstab syntax:

sudo findmnt --verify

This checks for errors in /etc/fstab and will report issues like missing directories, invalid options, or duplicate mount points. It’s much safer than discovering problems after a restart.

You can also see what systemd intends to mount:

systemctl list-unit-files | grep mount
systemctl list-units --type=mount

Practical Workflow

Here’s the safe sequence when modifying /etc/fstab:

  1. Edit /etc/fstab with your preferred editor
  2. Run sudo findmnt --verify to catch syntax errors
  3. Create any new mount point directories if needed: sudo mkdir -p /mountpoint
  4. Run sudo systemctl daemon-reload
  5. Test with sudo mount /mountpoint or sudo systemctl restart local-fs.target remote-fs.target
  6. Verify the mount is active: mount | grep mountpoint or findmnt /mountpoint

Important Considerations

Avoid restarting targets on systems with running services — restarting local-fs.target or remote-fs.target can interrupt active mounts and cause services that depend on those filesystems to fail. On servers in production, mount new filesystems individually with mount rather than restarting targets.

For NFS and remote mounts, if you’re adding new entries to /etc/fstab, the remote-fs.target restart ensures they’re mounted during boot sequence initialization. However, if the system is already running, individual mounting is safer.

Use systemd mount units for better control — instead of relying solely on /etc/fstab, consider creating systemd .mount files for complex mount scenarios. This gives you finer control over dependencies and failure handling.

Checking Active Mounts

After applying changes, confirm everything mounted correctly:

sudo findmnt
sudo df -h

The findmnt command provides a tree view of all mounted filesystems and their relationships to systemd mount units, which is useful for debugging mount-related issues.

2026 Best Practices and Advanced Techniques

For How to Reload fstab Changes in systemd on Linux, understanding both the fundamentals and modern practices ensures you can work efficiently and avoid common pitfalls. This guide extends the core article with practical advice for 2026 workflows.

Troubleshooting and Debugging

When issues arise, a systematic approach saves time. Start by checking logs for error messages or warnings. Test individual components in isolation before integrating them. Use verbose modes and debug flags to gather more information when standard output is not enough to diagnose the problem.

Performance Optimization

  • Monitor system resources to identify bottlenecks
  • Use caching strategies to reduce redundant computation
  • Keep software updated for security patches and performance improvements
  • Profile code before applying optimizations
  • Use connection pooling and keep-alive for network operations

Security Considerations

Security should be built into workflows from the start. Use strong authentication methods, encrypt sensitive data in transit, and follow the principle of least privilege for access controls. Regular security audits and penetration testing help maintain system integrity.

Related Tools and Commands

These complementary tools expand your capabilities:

  • Monitoring: top, htop, iotop, vmstat for system resources
  • Networking: ping, traceroute, ss, tcpdump for connectivity
  • Files: find, locate, fd for searching; rsync for syncing
  • Logs: journalctl, dmesg, tail -f for real-time monitoring
  • Testing: curl for HTTP requests, nc for ports, openssl for crypto

Integration with Modern Workflows

Consider automation and containerization for consistency across environments. Infrastructure as code tools enable reproducible deployments. CI/CD pipelines automate testing and deployment, reducing human error and speeding up delivery cycles.

Quick Reference

This extended guide covers the topic beyond the original article scope. For specialized needs, refer to official documentation or community resources. Practice in test environments before production deployment.

Read more:
  • Configuring /etc/fstab: Mount Options and Boot Behavior
  • Recovering from fstab Boot Failures: A Practical Guide
  • Adding Bind Mounts to /etc/fstab
  • Switching Linux Systemd Boot Targets
  • Prevent systemd-tmpfiles from Deleting Specific /tmp Files
  • Viewing the Previous Boot’s systemd Journal on CentOS 7
  • How to Change Systemd Targets on Fedora Linux
  • Enable rpcbind.service to Auto-Start with systemd
Post Tags: #Bash#Command#configuration#Editor#FS#fstab#How to#Linux#mount#NFS#Programming#sudo#System#systemd#systems#Tutorial#www

Post navigation

Previous Previous
Looking up Hostnames from IP Addresses in /etc/hosts on Linux
NextContinue
Viewing the Previous Boot’s systemd Journal on CentOS 7

Tutorials

  • Systems & Architecture Academy
    • Advanced Systems Path
    • Security & Cryptography Path
  • Linux & Systems Administration Academy
    • Linux Essentials Path
    • Linux System Administration Path
  • Programming Academy
  • Web3 & Crypto Academy
  • AI Engineering Hub

Categories

  • AI Engineering (4)
  • Algorithms & Data Structures (14)
  • Code Optimization (7)
  • Databases & Storage (11)
  • Design Patterns (4)
  • Design Patterns & Architecture (18)
  • Development Best Practices (104)
  • Functional Programming (4)
  • Languages & Frameworks (97)
  • Linux & Systems Administration (727)
  • Linux System Configuration (32)
  • Object-Oriented Programming (4)
  • Programming Languages (131)
  • Scripting & Utilities (65)
  • Security & Encryption (16)
  • Software Architecture (3)
  • System Administration & Cloud (33)
  • Systems & Architecture (46)
  • Testing & DevOps (33)
  • Web Development (25)
  • Web3 & Crypto (1)

SysTutorials, Terms, Privacy

  • SysTutorials
    • Linux & Systems Administration Academy
    • Web3 & Crypto Academy
    • Programming Academy
    • Systems & Architecture Academy
  • Subscribe
  • Linux Manuals
  • Search