philspitler wrote:
It did say that it wrote 3 lines but if I look in the etc/ folder either by ssh or via ftp I cannot see the fstab file.
As I was editing under su do I need a different file path other than /etc/fstab ?
When you [ sudo su - ] you become the root user ( in the root users home directory ). You may have written the file to the root users directory... or you may have written the file most anyplace (if you were not careful). Or, more likely, you are not looking in the right place for the file that is ACTUALLY there. These two files are NOT the same:
etc/fstab
/etc/fstab
One of them (the first) is NOT correct. Depending on where you were when you did what you did that file could be most anyplace...
It is a good idea (after you cd into a directory) to use the pwd command to make sure you are really where you think you are... always make a copy (cp fstab fstab.bak) of the file you are about to change so that you can restore it if you screw up (and we all have done that)... and do what I like to call measure twice, cut once; plan, be careful, don't rush, and most importantly THINK... (that's not an insult... I'm an ex IBMer 25years + ... that's our motto ! )