Mount partclone image on Ubuntu 12.04 LTS

Install partclone-utils from here: http://www.idealworldinc.com/partclone-utils/

sudo dpkg -i partclone-utils_0.1-1_i386.deb

Install nbd-client

sudo sudo apt-get install nbd-client

Assign network block device to partclone image

sudo imagemount -d /dev/nbd0 -f sda1-partclone.img

Mount

sudo mount /dev/nbd0 /media/temp

2 thoughts on “Mount partclone image on Ubuntu 12.04 LTS”

  1. Mounting an ntfs partition works for me like this:

    cat sda2.ntfs-ptcl-img.gz.aa | gzip -d > sda2.ntfs-ptcl-img
    imagemount -d /dev/nbd0 -f sda2.ntfs-ptcl-img -m /media/temp -t ntfs

    mount always returned an error:

    mount -t ntfs /dev/nbd0 /media/temp

    Failed to read last sector (1953314815): Invalid argument

    HINTS: Either the volume is a RAID/LDM but it wasn’t setup yet,
    or it was not setup correctly (e.g. by not using mdadm –build …),
    or a wrong device is tried to be mounted,
    or the partition table is corrupt (partition is smaller than NTFS),
    or the NTFS boot sector is corrupt (NTFS size is not valid).
    Failed to mount ‘/dev/nbd0′: Invalid argument
    The device ‘/dev/nbd0′ doesn’t seem to have a valid NTFS.
    Maybe the wrong device is used? Or the whole disk instead of a
    partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

  2. In general, the solution here seems to be unstable. I recommend to use the option –restore_row_file in partclone and instead mount the raw file as a loop device.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>