Solved fstab broken - can't boot

I made an incorrect change to /etc/fstab and inadvertantly powered off my system. Now it won't boot up because of the error in the file.

I tried rebooting to single-user mode and editing the file but was unable to save changes.

How do I go about changing the file to its previous state?
 
Boot into single user mode.
Run the following to make the root file system writable:
Code:
mount -uw /
Update /etc/fstab then exit
 
Unless you saved the previous version, it's not backed up. Some people use a version control system like Subversion to keep track of configuration files. And sysutils/rsnapshot is very handy to keep a space-efficient file history.
 
Back
Top