How to Add noatime Mount Option to Root Filesystem Without Reboot: A Linux Admin Guide


4 views

When optimizing Linux filesystems, the noatime flag is a common performance tweak that reduces disk writes by eliminating access time updates. But modifying the root filesystem's mount options presents unique challenges since it's constantly in use.

Yes, you can use the mount command with remount option to apply changes without rebooting. Here's the exact syntax:

sudo mount -o remount,noatime /

This command tells the kernel to reapply the mount options for the root filesystem while keeping it mounted. The noatime option will take effect immediately.

After executing the remount command, verify it worked with either of these methods:

mount | grep " / "
# or
cat /proc/mounts | grep " / "

You should see noatime in the options list for the root filesystem.

While the remount command gives immediate results, you'll want to add this to /etc/fstab for persistence across reboots. A proper fstab entry looks like:

UUID=your-uuid-here / ext4 defaults,noatime 0 1

Replace your-uuid-here with your actual filesystem UUID (find it with blkid) and ext4 with your actual filesystem type.

The noatime option generally improves performance by reducing disk writes, but consider these implications:

  • Applications that rely on atime (like some backup tools) may behave differently
  • For systems with SSDs, the write reduction is less critical but still beneficial
  • In most modern Linux distributions, relatime is the default which offers a good balance

If the remount fails, check:

dmesg | tail
# And
journalctl -xe

Common problems include trying to remount a read-only filesystem or specifying invalid options.

For some systems, you can modify access time behavior at the kernel level:

echo 1 > /proc/sys/fs/stratos

This achieves similar results but affects all filesystems globally.


Yes, you can use the remount option to apply noatime without rebooting. Here's the precise command:

# For ext4 filesystems
sudo mount -o remount,noatime /

# For XFS filesystems
sudo mount -o remount,noatime,attr2,inode64,noquota /

For making the change persistent, edit /etc/fstab:

# Original line might look like:
UUID=123...456 / ext4 defaults 0 1

# Modified version:
UUID=123...456 / ext4 defaults,noatime 0 1

After editing fstab, you can either reboot or use the remount command shown above.

The noatime option can significantly improve performance for certain workloads:

  • Database servers (reduces write overhead)
  • Web servers with heavy file access
  • Development environments with frequent file operations

A real-world benchmark on an Nginx server showed 15% improvement in requests per second after disabling atime updates.

For systems where some access time information is needed, consider relatime instead:

sudo mount -o remount,relatime /

This maintains atime updates but in a more efficient way than the default behavior.

Check your current mount options with:

mount | grep " / "

Or for more detailed information:

findmnt -o TARGET,OPTIONS /

While generally safe, be aware that:

  • Some backup programs rely on atime information
  • Certain security monitoring tools use atime for forensics
  • Mail servers might expect accurate atime values

For development environments and most server applications, noatime is perfectly safe and recommended.