Ask Your Question

Revision history [back]

You may install libguestfs-tools on CentOS 7. Details of setup may be found here

sudo yum install libguestfs-tools


$  guestfish --rw -a trusty-server-cloudimg-amd64-disk1.img

Welcome to guestfish, the guest filesystem shell for
editing virtual machine filesystems and disk images.

Type: 'help' for help on commands
      'man' to read the manual
      'quit' to quit the shell

> run
> list-filesystems
/dev/sda1: ext4
> mount /dev/sda1 /