How to fix: mv: failed to preserve ownership
mvis the wrong tool for this job; you want
rm. Since you're moving the file to another filesystem this is exactly what
mvis doing behind the scenes anyway, except that
mvis also trying to preserve file permission bits and owner/group information. This is because
mvwould preserve that information if it were moving a file within the same filesystem and
mvtries to behave the same way in both situations. Since you don't care about the preservation of file permission bits and owner/group information, don't use that tool. Use
But if you don't care about the warning, mv actually does move the files before complaining ownership problem.