fix renaming between disks in linux
refactor copying between disks