Closing a file in terminal

Hi there. I was looking to enable writing to NTFS which required editing fstab using the command /etc/fstab. After adding a line, I decided I had better leave well enough alone and closed terminal without properly exiting. I re-opened fstab to make sure that my changes were not saved, but now I'm getting E325: Attenion error message basically stating that my fstab file is still open. I could use some help in closing the file without saving it. Can anyone give me some advice?

MacBook Pro with Retina display, OS X Mountain Lion, 16 MB option

Posted on May 21, 2013 1:41 PM

Reply
4 replies

May 22, 2013 5:14 AM in response to Linc Davis

E325: ATTENTION

Found a swap file by the name "/etc/.fstab.swp"

owned by: root dated: Tue May 21 15:19:02 2013

file name: /private/etc/fstab

modified: YES

user name: root host name: rmbp

process ID: 1208

While opening file "/etc/fstab"



(1) Another program may be editing the same file.

If this is the case, be careful not to end up with two

different instances of the same file when making changes.

Quit, or continue with caution.



(2) An edit session for this file crashed.

If this is the case, use ":recover" or "vim -r /etc/fstab"

to recover the changes (see ":help recovery").

If you did this already, delete the swap file "/etc/.fstab.swp"

to avoid this message.



Swap file "/etc/.fstab.swp" already exists!

[O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Closing a file in terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.