Tuesday 1 November 2011

error "mv: inter-device move failed: `blah' to `/media/destination/blah'; unable to remove target: Is a directory"

While trying to move file blah from /media/source to /media/destination I got the error "mv: inter-device move failed: `blah' to `/media/destination/blah'; unable to remove target: Is a directory" note: part of the file blah already existed in /media/destination/blah because of a previous attempt to copy it Solutions:
  • [PREFFERED] mv -b /media/source/blah /media/destination/blah
  • cp /media/source/blah /media/destination/blah && rm /media/source/blah

No comments:

Post a Comment