Partitions on a loopback block device?
Hi,
I'm currently trying to do hard disk backups of some machines with different operating systems using a bootable Linux CD.
Backing up every single partition is fine, but overhead and requires additional backup of the partition table in order to be able to play it back.
What I would like to do is to have a full backup with
dd if=/dev/hda of=somewhere
and to mount the partitions of this file with the loopback block driver.
A simple approach would be to use losetup with the offset function for every single parttion (while I'm not sure whether this works through the CHS geometry).
Would it be possible to have a loopback blockdevice recognize partition tables and to provide partitions as any other block device?
Obviously, naming is not very elegant, but /dev/loopa0 would be a nice analogon to /dev/hda0 and /dev/sda0
regards
Hadmut
Quoted 5 lines · On Mon, 1 Dec 2003 13:40:34 +0100, [email protected] wrote:
Would it be possible to have a loopback blockdevice recognize partition tables and to provide partitions as any other block device?
Obviously, naming is not very elegant, but
/dev/loopa0would be a nice analogon to/dev/hda0and/dev/sda0
Hi,
try this patch.
ftp://ftp.hq.nasa.gov/pub/ig/ccd/enhanced_loopback/patches
Quoted 3 lines
regards
Hadmut
chau,
djgera
Signature · 4 lines
Gerardo Exequiel Pozzi ( djgera ) http://www.vmlinuz.com.ar http://www.djgera.com.ar KeyID: 0x1B8C330D Key fingerprint = 0CAA D5D4 CD85 4434 A219 76ED 39AB 221B 1B8C 330D