Skip to main content

Mount disk images

I've been using a Xen guest under RHEL 5.2 to hold this webserver, and because of failures, I choose to keep a copy of the full disk image on another machine. Having to transfer the full disk in the network means stop the server (xen guest), rsync the image on disk (wait 40 minutes), then start guest again. After doing the initial image transfer, it would be easier to just sync updated files, but... how to loop mount a full disk? In my case, the hdd image contained a partition for /boot (...)