[clug] mount partition from image file
fudje at phreaker.net
Fri Apr 29 11:18:56 GMT 2005
What you need to do, is use the offset option of the loopback
This means you need to check the starting block of your partitions using
fdisk, or similar.
http://edseek.com/~jasonb/articles/linux_loopback.html explains the
process fairly well.
I've never had to specify the number of cylinders in a disk personally,
though (The -C option to fdisk), so you may be able to skip that bit :)
On Fri, 2005-04-29 at 20:47 +1000, Joel Plane wrote:
> I am attempting to recover data from a corrupt filesystem on an old HDD.
> I used
> dd if=/dev/sda of=/data/image.img
> to copy the entire hdd to an image file
> Is there a way I can then mount one partition from the image?
> Alternatively I could use dd if=/dev/sda3 of=.... to just get an image
> of the partition I want. the just use mount /data/image.img /mnt/image
> -o loop
> But since I've already imaged the entire disk, does anyone know how to
> mount a partition from this image?
> Joel Plane
More information about the linux