Re: How do you unsparsify a qcows2 file?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/12/22 12:08, ToddAndMargo via users wrote:
On 12/12/22 06:43, Tom Horsley wrote:
On Mon, 12 Dec 2022 06:33:15 -0800
ToddAndMargo via users wrote:

This it?

dd if=/dev/zero of=/sometempfile

Seems like that would work. Might need to do it as root in case the
kernel doesn't allow an ordinary user to use up all the free space on
a disk. And don't forget "rm /sometempfile" once the dd finishes
with out of space errors.

Of course you could take a completely different tack and use
qemu-img convert to change the qcow2 format file to a raw
disk image and modify the virtual machine to use that new file.


I qemu-img to a raw and then back to a qcows2.
Dump/resore still did not restore right.

You can't dump a qcow file because the blocks are not in order and there is extra metadata. You can only dump from something that looks like a raw partition. You might be able to use something like nbd to create a device from a qcow that looks raw.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux