virt-list-partitions

Langue: en

Version: 2010-09-16 (fedora - 01/12/10)

Section: 1 (Commandes utilisateur)

NAME

virt-list-partitions - List partitions in a virtual machine or disk image

SYNOPSIS

  virt-list-partitions [--options] domname
 
  virt-list-partitions [--options] disk.img [disk.img ...]
 
 

DESCRIPTION

"virt-list-partitions" is a command line tool to list the partitions that are contained in a virtual machine or disk image. It is mainly useful as a first step to using virt-resize(1).

"virt-list-partitions" is just a simple wrapper around libguestfs(3) functionality. For more complex cases you should look at the guestfish(1) tool.

OPTIONS

--help
Display brief help.
--version
Display version number and exit.
--connect URI | -c URI
If using libvirt, connect to the given URI. If omitted, then we connect to the default libvirt hypervisor.

If you specify guest block devices directly, then libvirt is not used at all.

-h | --human-readable
Show sizes in human-readable form (eg. ``1G'').
-l | --long
With this option, "virt-list-partitions" displays the type and size of each partition too (where ``type'' means "ext3", "pv" etc.)
-t | --total
Display the total size of each block device (as a separate row or rows).

SEE ALSO

guestfs(3), guestfish(1), virt-list-filesystems(1), virt-resize(1), Sys::Guestfs(3), Sys::Guestfs::Lib(3), Sys::Virt(3), <http://libguestfs.org/>.

AUTHOR

Richard W.M. Jones <http://people.redhat.com/~rjones/> Copyright (C) 2009-2010 Red Hat Inc.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.