From: danubius@halcyon.com (Joseph R. Pannon) Subject: Re: Bug in 'msdos' file system? Date: Tue, 23 Feb 1993 20:19:22 GMT
In article <C2wpo8.F48@knot.ccs.queensu.ca> 2843600@jeff-lab.queensu.ca writes:
>
>No problem. I could access my DOS files as if they were normal unix files.
>I then tried to move a file over onto DOS:
>
>mv /home/frampton/myfile.txt /dos/c:
>
>The 'mv' seemed to finish, so I executed a 'sync'. The 'sync' command seemed
>to hang there.
Without knowing the internals too well, my sense is telling me that it's
a BAD IDEA to move files between two file systems, especially between as
different ones as Linux and DOS has. In cases like that the files
probably should be copied, not moved because I imagine mv leaves the
actual data in place and only relinks directory pointers to that data.
So, in your case, the myfile.txt data was probably staying on your Linux
partition while a directory pointer from Linux was attempted to be moved
to the DOS partition. That sounds like a bad news to me!
There is a way to do this right even in such situations by
performing really a cp and rm operation in place of inter-filesystem mv,
but that is probably not done in this case.
Anyway, when in doubt, do cp and rm; that should always work.
Joe Pannon