On Wed, Sep 9, 2015 at 8:56 AM, Carlos E. R. <carlos.e.r@opensuse.org> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Hi,
If I create a full disk image with dd, is it possible to access the single partitions in it?
Perhaps attach a loop device to the image. But then, how do I get access to the partitions inside, separately?
I don't have the image yet, I intend to do it later, while I sleep. But if it is not possible to access the partitions, then perhaps I should do it differently.
Carlos, First mmls is a good tool for dumping the partition table from dd images. Then, ignoring LVM type volumes, you just use the offset arg of mount. It hides some of the complexity. "mount -loop -o <offset_in_bytes> <dd.img> <mnt_point>" A couple examples pulled from the web: # mount -t vfat -o loop,offset=32256,ro,noexec img.dd /mnt/tmp_1 # mount -t vfat -o loop,offset=20974464000,ro,noexec img.dd /mnt/tmp_2 The only hard part is remember the MBR tracks partition start in sectors, so you have to convert that to bytes for the mount command. Greg -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org