Skip to content

Instantly share code, notes, and snippets.

@anildigital
Created April 18, 2017 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anildigital/a08bf24615721b229f4617de7cee1a22 to your computer and use it in GitHub Desktop.
Save anildigital/a08bf24615721b229f4617de7cee1a22 to your computer and use it in GitHub Desktop.
When you mess up with fstab (When your root becomes Read-only file system)
sudo mount -t tmpfs -o size=512M tmpfs /any_existing_dir_path
cd /any_existing_dir_path
cp /etc/fstab fstab
vi fstab
# Remove wrong fstab entry
sudo mount -T fstab -o remount,rw /dev/xvda1 /
sudo vim /etc/fstab
reboot
# Done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment