Mount a Partition from inside a Disk Image

Diposkan oleh Unknown on Wednesday, April 15, 2009

You need sfdisk and losetup.


sfdisk -l -uS disk_image.raw
# look for the start sector of the partition, e.g. 2

mount -o loop,offset=$((2 * 512)) disk_image.raw /mnt
#mount the partition to /mnt (replace 2 with the output from sfdisk)


You could of course also use kpartx to create special device files for the partitions.

{ 0 komentar... read them below or add one }

Post a Comment

Come on share your comment, but please do not spam