IMG
dd
vsfallocate
vsqemu-img
for creating .img file:dd
does not leave holes (usebs=4M
for faster copying)fallocate
is much faster, but leaves holes
- Prefer
partx
tokpartx
; the latter is complicated and depends on device mapper, while the former simply notifies the kernel about partitions