I modified the fstab file and while saving a file, I made the mistake of naming it fstg. Because of this mistake, my system is not able to boot. It just boots into a maintenance shell. I am unable to change the name of fstg back to fstab. I tried doing this with su but nothing changes.
Any idea of how to correct this?
|
|
||||
migrated from stackoverflow.com Apr 29 '11 at 22:37
|
The easiest way is to rename it from a liveCD because your system can't mount the root filesystem right now. |
|||||||
|
|
What you need to do is to mount the root filesystem read-write. The maintenance shell has it mounted read-only. One way to do this is:
Or maybe:
After that you can rename the file back to its proper name. Before rebooting you should run |
|||
|
|
|
Are you sure that the file was named fstag? Or do you mean /etc/fstab? Also, it would help if you could state the distribution you are using. Either way, try to use the distribution LiveCD or SystemRescueCd which is a Linux system rescue disk that enables you to perform administration tasks. I hope this helps. |
|||
|
fstag? Are you sure you didn't meanfstab? – Greg Hewgill Apr 29 '11 at 22:16suwhen you are already in a root ("maintenance") shell. Also, the drive might be mounted read-only. – Mike Apr 29 '11 at 22:26