Skip to content

Instantly share code, notes, and snippets.

@Chuckame
Created June 11, 2023 19:10
Show Gist options
  • Save Chuckame/7a9dfd7b18f9142bd90ed25717d4f4c3 to your computer and use it in GitHub Desktop.
Save Chuckame/7a9dfd7b18f9142bd90ed25717d4f4c3 to your computer and use it in GitHub Desktop.
Linux command to prevent writes to an unmounted drive
chattr +i /mountpoint # will prevent writes for /mountpoint, but not prevent mounting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment