I got an external harddrive with a Fat32 filesystem. I am using Mandriva 2006.0 and I got the following problem. When I am editing text files with vi, i get the issue that the files can be edited and saved, but if they wanted to be edited again the file disapears.
It actually gives me an error regarding the swp (swap) file:
Code:
E325: ATTENTION
Found a swap file by the name ".polls.py.swp"
owned by: jza dated: Wed Jul 5 16:28:26 2006
file name: /mnt/DATOS/Projects/Django/djasite/polls/models/polls.py
modified: no
user name: jza host name: localhost
process ID: 20176
While opening file "polls.py"
dated: Wed Jul 5 16:28:26 2006
(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 polls.py"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file ".polls.py.swp"
to avoid this message.
Swap file ".polls.py.swp" already exists!
if I try to put vim -r file.py I get this error:
Code:
Using swap file ".polls.py.swp"
Original file "/mnt/DATOS/Projects/Django/djasite/polls/models/polls.py"
E308: Warning: Original file may have been changed
E309: Unable to read block 1 from .polls.py.swp
I am not sure how to actually avoid this issue, I have tried the vim -r but this just recover the file I want to avoid getting this error at all.
I think it has to do with the way my hd is mounted and currently this is what my fstab says:
Code:
none /mnt/DATOS supermount dev=/dev/sda5,fs=vfat,--,umask=0,user,suid 0 0