Provided by: libguestfs-tools_1.32.2-4ubuntu2.2_amd64 bug

НАЗВА

       virt-format - Erase and make a blank disk

КОРОТКИЙ ОПИС

        virt-format [--options] -a disk.img [-a disk.img ...]

ОПИС

       Virt-format takes an existing disk file (or it can be a host partition, LV etc), erases
       all data on it, and formats it as a blank disk.  It can optionally create partition
       tables, empty filesystems, logical volumes and more.

       To create a disk containing data, you may be better to use virt-make-fs(1).  If you are
       creating a blank disk to use in guestfish(1), you should instead use the guestfish -N
       option.

       Normal usage would be something like this:

        virt-format -a disk.qcow

       or this:

        virt-format -a /dev/VG/LV

       disk.qcow or /dev/VG/LV must exist already.  Any data on these disks will be erased by
       these commands.  These commands will create a single empty partition covering the whole
       disk, with no filesystem inside it.

       Additional parameters can be used to control the creation of partitions, filesystems, etc.
       The most commonly used options are:

       --filesystem=[ext3|ntfs|vfat|...]
           Create an empty filesystem ("ext3", "ntfs" etc) inside the partition.

       --lvm[=/dev/VG/LV]
           Create a Linux LVM2 logical volume on the disk.  When used with --filesystem, the
           filesystem is created inside the LV.

       For more information about these and other options, see "OPTIONS" below.

       The format of the disk is normally auto-detected, but you can also force it by using the
       --format option (q.v.).  In situations where you do not trust the existing content of the
       disk, then it is advisable to use this option to avoid possible exploits.

ПАРАМЕТРИ

       --help
           Показати коротку довідку.

       -a файл
       --add файл
           Add file, a disk image, host partition, LV, external USB disk, etc.

           Формат образу диска визначається автоматично. Щоб перевизначити його і примусово
           використати певний формат, скористайтеся параметром --format=...

           Всі поточні дані на диску буде витерто.

       -a адреса
       --add адреса
           Додати віддалений диск. Див. "ДОДАВАННЯ ВІДДАЛЕНОГО СХОВИЩА" in guestfish(1).

       --filesystem=ext3|ntfs|vfat|...
           Create an empty filesystem of the specified type.  Many filesystem types are supported
           by libguestfs.

       --filesystem=none
           Create no filesystem.  This is the default.

       --format=raw|qcow2|..
       --format
           Типовим значенням для параметра -a є автоматичне визначення формату образу диска.
           Використання цього параметра примусово визначає значення параметрів -a формату диска у
           наступному рядку команди. Використання параметра --format без аргументу перемикає
           програму у режим автоматичного визначення у наступних параметрах -a.

           Приклад:

            virt-format --format=raw -a disk.img

           примусове встановлення формату без обробки (без автоматичного визначення) для
           disk.img.

            virt-format --format=raw -a disk.img --format -a another.img

           примусове встановлення формату без обробки (без автоматичного визначення) для diskimg
           і повернення до автоматичного визначення для another.img.

           Якщо ви користуєтеся ненадійними образами гостьових систем у необробленому форматі,
           вам слід скористатися цим параметром для визначення формату диска. Таким чином можна
           уникнути можливих проблем з захистом для сформованих зловмисниками гостьових систем
           (CVE-2010-3851).

       --label=МІТКА
           Set the filesystem label.

       --lvm=/dev/VG/LV
           Create a Linux LVM2 logical volume called /dev/VG/LV.  You can change the name of the
           volume group and logical volume.

       --lvm
           Create a Linux LVM2 logical volume with the default name (/dev/VG/LV).

       --lvm=none
           Create no logical volume.  This is the default.

       --partition
           Create either an MBR or GPT partition covering the whole disk.  MBR is chosen if the
           disk size is < 2 TB, GPT if ≥ 2 TB.

           Типове значення.

       --partition=gpt
           Create a GPT partition.

       --partition=mbr
           Create an MBR partition.

       --partition=none
           Create no partition table.  Note that Windows may not be able to see these disks.

       -v
       --verbose
           Увімкнути докладний показ повідомлень з метою діагностики.

       -V
       --version
           Показати дані щодо версії і завершити роботу.

       --wipe
           Normally virt-format does not wipe data from the disk (because that takes a long
           time).  Thus if there is data on the disk, it is only hidden and partially overwritten
           by virt-format, and it might be recovered by disk editing tools.

           If you use this option, virt-format writes zeroes over the whole disk so that previous
           data is not recoverable.

       -x  Увімкнути трасування викликів програмного інтерфейсу libguestfs.

СТАН ВИХОДУ

       This program returns 0 on success, or 1 on failure.

ТАКОЖ ПЕРЕГЛЯНЬТЕ

       guestfs(3), guestfish(1), virt-filesystems(1), virt-make-fs(1), virt-rescue(1),
       virt-resize(1), http://libguestfs.org/.

АВТОР

       Richard W.M. Jones http://people.redhat.com/~rjones/

АВТОРСЬКІ ПРАВА

       © Red Hat Inc., 2012

LICENSE

BUGS

       To get a list of bugs against libguestfs, use this link:
       https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools

       To report a new bug against libguestfs, use this link:
       https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools

       When reporting a bug, please supply:

       •   The version of libguestfs.

       •   Where you got libguestfs (eg. which Linux distro, compiled from source, etc)

       •   Describe the bug accurately and give a way to reproduce it.

       •   Run libguestfs-test-tool(1) and paste the complete, unedited output into the bug
           report.