LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-05-2006, 04:31 PM   #1
Jzarecta
Member
 
Registered: Dec 2005
Location: Villahermosa, Bucharest, Birminham, Brooklyn, Beverly
Distribution: Mandriva
Posts: 118

Rep: Reputation: 15
Editing issues on remote Fat HD


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
 
Old 07-05-2006, 04:52 PM   #2
dannystaple
Member
 
Registered: Apr 2006
Location: London, Uk
Distribution: Ubuntu on Desktop
Posts: 121

Rep: Reputation: 15
Are you absolutely sure you do not have any other process running that have the file still open? Possibly another vi somewhere? When you say remote, do you mean on another host - or just an external mounted locally? (my assumption is the latter)

Maybe:

Code:
ps -ef | grep vi
and also:

Code:
lsofs <yourfilename>
These may reveal if the file is open anywhere else.

Try your edits/saves on a different file to be sure it is nothing as trivial as that.

Danny
 
Old 07-05-2006, 11:47 PM   #3
Jzarecta
Member
 
Registered: Dec 2005
Location: Villahermosa, Bucharest, Birminham, Brooklyn, Beverly
Distribution: Mandriva
Posts: 118

Original Poster
Rep: Reputation: 15
I doubt it since it happens on every single file I try to edit more than once. It seems either that vim doesn't completely quit.

Another issue is that I can't also find the .swp file and I end up finding this files on my /home/user/tmp/ folder.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync ext2/3 to FAT issues RodWC Linux - General 3 05-26-2007 05:02 PM
Remote login and editing the file jayesha18 Linux - Networking 0 03-04-2006 06:21 AM
is there an html editor with remote files editing capabilities? odysseus.lost Linux - Software 2 06-16-2005 07:23 AM
i want to compile fat file system module and get fat.o working ramya272 Linux - Newbie 9 02-26-2004 11:41 AM
EEEEEEP!!! My fat fingers scrubbed the "/" key while editing FSTAB FSTABkiller Linux - General 3 02-07-2003 11:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration