Hi, can you tell me please, how to dump the volume boot record of a VM image's partition? Cheers, adrelanos
Richard W.M. Jones
2013-Dec-04 19:40 UTC
Re: [Libguestfs] dump VBR of a VM image's partition
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
Maybe Matching Threads
- Auditing a vm image - virt-diff - was: Read MBR and store in a file?
- Re: Auditing a vm image - virt-diff - was: Read MBR and store in a file?
- Read MBR and store in a file?
- Re: Auditing a vm image - virt-diff - was: Read MBR and store in a file?
- [Bug 1078] New: please provide a firewall scripts drop-in folder