How to copy a sparse file?

Solution Unverified - Updated -

Issue

  • When I copy a sparse file using cp command, the destination file gets changed to a fully allocated file. How do I copy a sparse file by keeping the destination copy as a sparse file?
  • How to copy a XEN or KVM Virtual Machine image if it was created as a sparse file?

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In