![]() ![]() Traditionally, fdisk has been the tool for altering the partition table. The partition table still lists partitions of the old sizes, and the end of the disk is unused. Resizing the disk image is only one-third of the job. ![]() ![]() qemu-img is smart enough to avoid actually writing these zeros to the disk image, it creates a sparse file instead. Here is how to extend a raw disk image to 10 GB:Īfter running this command, the beginning of the disk will contain the old bytes that were there before, and at the end there will be a long run of zeroes. A handy command for this task comes with QEMU (and, if you are on Linux, why are you using anything else?). Fortunately, unlike real disks, the virtual ones can be resized at will. Sometimes, one runs out of disk space on a virtual machine, and realizes that it was a mistake to provide such a small disk to it in the first place. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |