How to Backup and Restore MBR within Logical Volumes?

Roberto Ragusa mail at robertoragusa.it
Thu Nov 12 09:38:15 UTC 2009


Mr. Teo En Ming (Zhang Enming) wrote:

> # kpartx -av /dev/loop1
[...]
> But the problem is that I can only backup/clone the filesystems of my
> virtual machine within a logical volume. I can't backup the Master Boot
> Record (MBR) of the virtual machine within a logical volume. For example,
> 
> dd if=/dev/hda of=mbr.hda bs=512 count=1
> 
> Because /dev/hda resides in a logical volume. The logical volume is a
> virtual harddisk for my virtual machine.

Maybe I didn't really understand your setup, but... isn't your mbr
simply on /dev/loop1?

-- 
   Roberto Ragusa    mail at robertoragusa.it




More information about the users mailing list