On Wed, Dec 04, 2013 at 06:33:12PM +0000, adrelanos wrote:
Hi,
can you tell me please, how to dump the volume boot record of a VM
image's partition?
So it's similar to my answer here:
https://www.redhat.com/archives/libguestfs/2013-November/msg00092.html
what you would do is change /dev/sda (which means the whole disk),
to /dev/sda1 (for the first partition), /dev/sda2 (second partition)
and so on:
guestfish --ro -a disk.img run : pread-device /dev/sda1 512 0 > mbr.1
If you want to find out what/how many partitions a disk image
contains, use the virt-filesystems program, eg:
virt-filesystems -a disk.img --partitions
HTH,
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW