An alternative, and arguably safer method, would be to save a copy of the file somewhere you can write and then use sudo to move it. For example, if you used nano to edit your fstab and then saved a copy to your home folder, you could then move it to the proper location with sudo:
sudo mv ~/fstab /etc/fstab
Cookies help us deliver our services. By using our services, you agree to our use of cookies.