New in guestfish 1.5.15: “list-filesystems”

Previously if you used guestfish on an unknown disk image you had to use several commands to examine the disk (video demonstration). In the new development version guestfish 1.5.15 it’s easier, just use the list-filesystems command like this:

$ guestfish -a disk.img --ro

Welcome to guestfish, the libguestfs filesystem interactive shell for
editing virtual machine filesystems.

Type: 'help' for a list of commands
      'man' to read the manual
      'quit' to quit the shell

><fs> run
><fs> list-filesystems
/dev/vda1: ext2
/dev/debian5x64/home: ext3
/dev/debian5x64/root: ext3
/dev/debian5x64/swap_1: swap
/dev/debian5x64/tmp: ext3
/dev/debian5x64/usr: ext3
/dev/debian5x64/var: ext3

and straight away from this you know what you could mount, for example:

><fs> mount-options "" /dev/debian5x64/home /
><fs> ll /
total 28
drwxr-xr-x  4 root root  4096 May 14  2009 .
drwxr-xr-x 20  500  500  4096 Sep 15 20:17 ..
drwx------  2 root root 16384 May 14  2009 lost+found
drwxr-xr-x  7 1000 1000  4096 Oct  9  2009 rjones
><fs> !mkdir /tmp/rjones
><fs> copy-out /rjones /tmp/rjones

Leave a comment

Filed under Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s