virt-make-fs(1) Virtualization Support virt-make-fs(1) (NAME) virt-make-fs - tar (SYNOPSIS) virt-make-fs [--options] input.tar output.img virt-make-fs [--options] input.tar.gz output.img virt-make-fs [--options] directory output.img (DESCRIPTION) Virt-make-fs tar . mkisofs(1) genisoimage(1) mksquashfs(1) . ext2/3 NTFS ( VM) . virt-format(1) . guestfish(1) . : virt-make-fs input output.img "input" tar ( tar gzip) output.img . . (sparse) ext2 ( "" ). (FILESYSTEM TYPE) "ext2" . libguestfs ( ISO9660). : ext3 ext3 . . ntfs vfat . minix "ext2" . virt-make-fs --type=minix input minixfs.img (TO PARTITION OR NOT TO PARTITION) virt-make-fs . ( ). . fsck(8) . ( libguestfs guestfish(1) virt-resize(1) ). MBR: virt-make-fs --partition -- input disk.img EFI/GPT : virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img (EXTRA SPACE) tar squashfs " " . . virt-make-fs --size . ( "raw") . --format=qcow2 qemu/KVM qcow2 ( ). --size . resize2fs(8) virt-resize(1) virt-make-fs . virt-make-fs --format=qcow2 --size=+200M input output.img (OPTIONS) --help . --blocksize=512 --blocksize=4096 . 512 . "guestfs_add_drive_opts" guestfs(3) . --floppy . (1440K) (MBR) (VFAT) . (geometry) . --size=N --size=+N -s N -s +N --size ( -s) . . b/K/M/G/T/P/E . . "+" () b/K/M/G/T/P/E . : --size=+200M () . virt-make-fs . ( ). --format=FMT -F FMT . "raw" ( ) . --type=FS -t FS . "ext2" . / libguestfs . --label=LABEL (label) . --partition --partition=PARTTYPE MBR . --partition=gpt . MBR virt-make-fs . -v --verbose (debugging). -V --version . -x (trace) libguestfs. (SEE ALSO) guestfish(1) virt-format(1) virt-resize(1) virt-tar-in(1) mkisofs(1) genisoimage(1) mksquashfs(1) mke2fs(8) resize2fs(8) guestfs(3) http://libguestfs.org (AUTHOR) Richard W.M. Jones http://people.redhat.com/~rjones (COPYRIGHT) Copyright (C) 2010-2025 Red Hat Inc. (LICENSE) (GNU General Public License) ( ) / . . . : Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor Boston, MA 02110-1301 USA (BUGS) libguestfs : https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools libguestfs : https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools : o libguestfs. o libguestfs ( ) o . o libguestfs-test-tool(1) . guestfs-tools-1.56.0 2026-07-11 virt-make-fs(1)