How to copy a sparse file?
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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
