9

I have drive A: with 16G Space and plenty of files, due to the Hard-link feature in NTFS, the files together is 15G but only takes 2G of real space.

I like to copy all those files to drive B: which is a 4G USB disk, and formatted as NTFS

A: is a tool set in local disk, B: is USB disk for distribution. So I cannot use a bigger USB disk (for the reason of cost), and B: should have all files that can work on another computer.

I tried: robocopy, rsync of windows, and plenty of other disk-clone, backup solution etc.

None work, all simply give out of space error.

My question: how can I copy the files from A: to B: and keep of the hard-link structure?

Any solution welcome, as long as not reboot to non-windows or something. I am using Windows 7.

Chenmunka
  • 3,264
Eric Yin
  • 369

4 Answers4

5

Have you tried ln.exe with "Smart Copy" function --copy?

Smart Copy basically creates a copy of the directory structure from the source location to the destination, but it preserves the inner hardlink structure and inner junction/symbolic link relations of the source, and recreates this inner hardlink structure and inner junction/symbolic link relation at the destination location

Smart Copy is a must if e.g. the whole content of a hard disk, which has lots of hardlinks/junctions/symbolic links, should be copied to another hard disk.

1

Third party copy utilities do exist that can handle hardlinks. Look for mention of 'hard links' and possibly 'reparse points' in their documentation to help you identify if a utility can handle it.

SysAdmin1138
  • 5,449
0

FastCopy claims to handle hardlinks: https://fastcopy.jp/help/fastcopy_eng.htm#hardlink

David.P
  • 683
0

strarc can do it

strarc64.exe -cjd:src_dir | strarc64.exe -xd:dest_dir

http://www.ltr-data.se/opencode.html/