Skip to content

Instantly share code, notes, and snippets.

@gjedeer
Created November 23, 2012 17:06
Show Gist options
  • Save gjedeer/4136492 to your computer and use it in GitHub Desktop.
Save gjedeer/4136492 to your computer and use it in GitHub Desktop.
Add noatime option to fstab for all ext* filesystems
#!/bin/bash
#
# Add noatime option to fstab for all ext* filesystems
#
sed -i -r 's/(ext[2-4]\s+)defaults\s/\1defaults,noatime /g' /etc/fstab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment