> Maybe I didn't really understand your setup, but... isn't your mbr simply on /dev/loop1?<br><br>Yes, you are right. <br><br>root@sysresccd /mnt/hitachi/test % fdisk -l /dev/loop1<br><br>Disk /dev/loop1: 53.7 GB, 53687091200 bytes<br>
255 heads, 63 sectors/track, 6527 cylinders<br>Units = cylinders of 16065 * 512 = 8225280 bytes<br>Disk identifier: 0x2b362b35<br><br>      Device Boot      Start         End      Blocks   Id  System<br>/dev/loop1p1   *           1        6526    52420063+   7  HPFS/NTFS<br>
<br>I am so used with device nomenclature of harddisks being /dev/hda, /dev/hdb, /dev/sda, /dev/md0, /dev/xvda, etc that it didn't occur to me that the device node of my virtual machine in a logical volume is very simply /dev/loop1 after I have performed the "losetup /dev/loop1 /dev/volumegroup/logicalvolume" step.<br>
<br>Thank you very much for enlightening me! Now I can proceed with writing the backup and restore script for my Fedora 11 Dom0 (all partitions using LVM2 logical volumes) and all of my Xen virtual machines (contained in logical volumes).<br>
<br>-- <br>Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering)<br>Alma Maters:<br>(1) Singapore Polytechnic<br>(2) National University of Singapore<br>My Primary Blog: <a href="http://teo-en-ming-aka-zhang-enming.blogspot.com">http://teo-en-ming-aka-zhang-enming.blogspot.com</a><br>
My Secondary Blog: <a href="http://enmingteo.wordpress.com">http://enmingteo.wordpress.com</a><br>My Youtube videos: <a href="http://www.youtube.com/user/enmingteo">http://www.youtube.com/user/enmingteo</a><br>Email: <a href="mailto:space.time.universe@gmail.com">space.time.universe@gmail.com</a><br>
Mobile Phone (Starhub Prepaid): +65-8369-2618<br>Street: Bedok Reservoir Road<br>Country: Singapore<br><br><div class="gmail_quote">On Thu, Nov 12, 2009 at 9:38 AM, Roberto Ragusa <span dir="ltr"><<a href="mailto:mail@robertoragusa.it">mail@robertoragusa.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Mr. Teo En Ming (Zhang Enming) wrote:<br>
<br>
> # kpartx -av /dev/loop1<br>
[...]<br>
<div class="im">> But the problem is that I can only backup/clone the filesystems of my<br>
> virtual machine within a logical volume. I can't backup the Master Boot<br>
> Record (MBR) of the virtual machine within a logical volume. For example,<br>
><br>
> dd if=/dev/hda of=mbr.hda bs=512 count=1<br>
><br>
> Because /dev/hda resides in a logical volume. The logical volume is a<br>
> virtual harddisk for my virtual machine.<br>
<br>
</div>Maybe I didn't really understand your setup, but... isn't your mbr<br>
simply on /dev/loop1?<br>
<br>
--<br>
   Roberto Ragusa    mail at <a href="http://robertoragusa.it" target="_blank">robertoragusa.it</a><br>
<font color="#888888"><br>
--<br>
fedora-list mailing list<br>
<a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>
To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-list</a><br>
Guidelines: <a href="http://fedoraproject.org/wiki/Communicate/MailingListGuidelines" target="_blank">http://fedoraproject.org/wiki/Communicate/MailingListGuidelines</a><br>
</font></blockquote></div><br><br clear="all"><br><br>