LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mv: inter-device move failed (https://www.linuxquestions.org/questions/linux-newbie-8/mv-inter-device-move-failed-4175491025/)

Donny Bahama 01-12-2014 09:00 AM

mv: inter-device move failed
 
When I try to move a directory from one drive to another, (using "mv Lossy /media/500tmp") I'm getting a message that says:
mv: inter-device move failed: 'Lossy' to '/media/500tmp/Lossy'; unable to remove target: ls a directory

I don't understand this. The same command works with other directories!?

Cristiano Urban 01-12-2014 11:47 AM

Hi,
maybe this link could help you

Donny Bahama 01-12-2014 12:27 PM

Thanks for the response. I actually read that before posting and it didn't clarify anything for me.
I don't understand this statement:
Quote:

This happens when mv has to actually move your data to another device, but cannot remove the inode/pointer, because if it did then there will be no data to fall back to, and if it didn’t then mv operation is not really complete because we will end up with data in source.
but the author goes on to say (basically) that you have to use cp instead of mv, them remove the source directory with rm -rf.

That seems preposterous. What's the point of having a move command if you're just going to copy then delete the source?

Interestingly enough, since posting the original message, I've found that if I issue the mv command and the destination directory does NOT already have a directory with the specified name, the mv command works fine.


All times are GMT -5. The time now is 01:21 AM.