1virt-list-partitions(1) Virtualization Support virt-list-partitions(1)
2
3
4
6 virt-list-partitions - List partitions in a virtual machine or disk
7 image
8
10 virt-list-partitions [--options] domname
11
12 virt-list-partitions [--options] disk.img [disk.img ...]
13
15 This tool is obsolete. Use virt-filesystems(1) as a more flexible
16 replacement.
17
19 "virt-list-partitions" is a command line tool to list the partitions
20 that are contained in a virtual machine or disk image. It is mainly
21 useful as a first step to using virt-resize(1).
22
23 "virt-list-partitions" is just a simple wrapper around libguestfs(3)
24 functionality. For more complex cases you should look at the
25 guestfish(1) tool.
26
28 --help
29 Display brief help.
30
31 --version
32 Display version number and exit.
33
34 -c URI
35 --connect URI
36 If using libvirt, connect to the given URI. If omitted, then we
37 connect to the default libvirt hypervisor.
38
39 If you specify guest block devices directly, then libvirt is not
40 used at all.
41
42 --format raw
43 Specify the format of disk images given on the command line. If
44 this is omitted then the format is autodetected from the content of
45 the disk image.
46
47 If disk images are requested from libvirt, then this program asks
48 libvirt for this information. In this case, the value of the
49 format parameter is ignored.
50
51 If working with untrusted raw-format guest disk images, you should
52 ensure the format is always specified.
53
54 -h
55 --human-readable
56 Show sizes in human-readable form (eg. "1G").
57
58 -l
59 --long
60 With this option, "virt-list-partitions" displays the type and size
61 of each partition too (where "type" means "ext3", "pv" etc.)
62
63 -t
64 --total
65 Display the total size of each block device (as a separate row or
66 rows).
67
69 Libvirt guest names can contain arbitrary characters, some of which
70 have meaning to the shell such as "#" and space. You may need to quote
71 or escape these characters on the command line. See the shell manual
72 page sh(1) for details.
73
75 guestfs(3), guestfish(1), virt-filesystems(1),
76 virt-list-filesystems(1), virt-resize(1), Sys::Guestfs(3),
77 Sys::Guestfs::Lib(3), Sys::Virt(3), http://libguestfs.org/.
78
80 Richard W.M. Jones http://people.redhat.com/~rjones/
81
83 Copyright (C) 2009-2013 Red Hat Inc.
84
86 This program is free software; you can redistribute it and/or modify it
87 under the terms of the GNU General Public License as published by the
88 Free Software Foundation; either version 2 of the License, or (at your
89 option) any later version.
90
91 This program is distributed in the hope that it will be useful, but
92 WITHOUT ANY WARRANTY; without even the implied warranty of
93 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
94 General Public License for more details.
95
96 You should have received a copy of the GNU General Public License along
97 with this program; if not, write to the Free Software Foundation, Inc.,
98 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
99
101 To get a list of bugs against libguestfs, use this link:
102 https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools
103
104 To report a new bug against libguestfs, use this link:
105 https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools
106
107 When reporting a bug, please supply:
108
109 · The version of libguestfs.
110
111 · Where you got libguestfs (eg. which Linux distro, compiled from
112 source, etc)
113
114 · Describe the bug accurately and give a way to reproduce it.
115
116 · Run libguestfs-test-tool(1) and paste the complete, unedited output
117 into the bug report.
118
119
120
121libguestfs-1.20.11 2013-08-27 virt-list-partitions(1)