Partitions on a loopback block device?
Date: Mon Dec 01 2003 - 07:41:39 EST
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
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
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/