Created
April 18, 2017 11:33
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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