Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to edit my fstab to so my samba shares will auto mount. When I vi /etc/fstab , I get the following message:
E325: ATTENTION
Found a swap file by the name "/etc/.fstab.swp"
owned by: root dated: Thu Jan 30 13:28:02 2014
file name: /etc/fstab
modified: YES
user name: root host name: endor
process ID: 4595
While opening file "/etc/fstab"
dated: Thu Jan 30 13:33:12 2014
NEWER than swap file!
(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.
"/etc/fstab" 16 lines, 599 characters
Press ENTER or type command to continue
I've tried the suggestions in the message. There is no swap file in the directory. If I continue and hit "i" to enter insert mode I get weird results. When I hit arrow up and down to navigate it starts typing a, b , c in the lines and I can't backspace to delete them. It seems like I am not really entering insert mode but something weird is happening. Any thoughts?
Well i have often had a file left open in vi, leaving the console to the way it should be done, but there always was a file at the stated directroy and after deleting it, everything was fine.
What would happen if you just open an new file with vi ?
Maybe the harddisk is full ?
Curruption of the filesystem, some other hardware error?
I do not like it, as this is not WinXXXX but reboot ?
Well i have often had a file left open in vi, leaving the console to the way it should be done, but there always was a file at the stated directroy and after deleting it, everything was fine.
What would happen if you just open an new file with vi ?
Maybe the harddisk is full ?
Curruption of the filesystem, some other hardware error?
I do not like it, as this is not WinXXXX but reboot ?
I tried rebooting a couple of times. I just tried to vi my netconfig file and it is behaving the same way. So I guess it's some larger vi issue or corruption
So, I was reading another tutorial for something all together different and it was mentioned by the author that debian based distros have a problem with vi and solution is to install:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.