Search code examples
macosvirtualboxcpsparse-file

How can I use "cp --sparse=always" in Mac?


I just follow this page to build custom oracle linux machine image.

I want to use cp cp --sparse=always like Converting the VM Disk to a Machine Image of that page in my Mac. But, my Mac cannot recognize this option. How can I follow this step in my Mac?


Solution

  • I found out that cp in linux is same with gcp(GNU cp) in Mac. I can run gcp --sparse=always in my Mac. If you cannot run gcp in your mac, Please refer this page.