lost and found ( for me ? )

Ubuntu 14.04 : guestfish

Here is an example of how to use guestfish

# apt-get install -y libguestfs-tools

# update-guestfs-appliance

mount a qcow2 image.
mount /dev/VolGroup/lv_root (mount point is / ) ant then copy a file “hello.txt” to /usr/local/foo/ directory.
# guestfish

><fs> add ./centos6-vm1.qcow2

><fs> run

><fs> list-filesystems
/dev/sda1: ext4
/dev/VolGroup/lv_root: ext4
/dev/VolGroup/lv_swap: swap
><fs>
><fs> mount /dev/VolGroup/lv_root /
><fs>
><fs> cp /usr/local/bar/hello.txt /usr/local/foo/
><fs>
nise.sh
><fs>
><fs> exit

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.