=head2 As an interactive shell
$ guestfish
-
+
Welcome to guestfish, the libguestfs filesystem interactive shell for
editing virtual machine filesystems.
-
+
Type: 'help' for help with commands
'quit' to quit the shell
-
+
><fs> help
=head2 As a script interpreter
#!/usr/bin/guestfish -f
alloc /tmp/output.img 10M
run
- sfdisk /dev/sda 0 0 0 ,
+ part-disk /dev/sda mbr
mkfs ext2 /dev/sda1
=head2 Remote control
If any C<-m> or C<--mount> options are given, the guest is
automatically launched.
+If you don't know what filesystems a disk image contains, you
+can either run guestfish without this option, then list the partitions
+and LVs available (see L</list-partitions> and L</lvs> commands),
+or you can use the L<virt-list-filesystems(1)> program.
+
=item B<-n> | B<--no-sync>
Disable autosync. This is enabled by default. See the discussion
number of terabytes
+=item C<nn>P or C<nn>PB
+
+number of petabytes
+
+=item C<nn>E or C<nn>EB
+
+number of exabytes
+
=item C<nn>sects
number of 512 byte sectors
number of terabytes
+=item C<nn>P or C<nn>PB
+
+number of petabytes
+
+=item C<nn>E or C<nn>EB
+
+number of exabytes
+
=item C<nn>sects
number of 512 byte sectors
L<http://libguestfs.org/>,
L<virt-cat(1)>,
L<virt-edit(1)>,
+L<virt-list-filesystems(1)>,
L<virt-ls(1)>,
L<virt-rescue(1)>,
L<virt-tar(1)>.