Menu

Recovering a Clonezilla image of ntfs partition

Help
2014-09-24
2014-10-01
  • Pete Trenholm

    Pete Trenholm - 2014-09-24

    I have a PC that was running windows 7 dual boot with Linux Mint 17. A power outage corrupted Windows 7 and it would no longer boot but Linux was fine. This is where I decided to trash Windows, rather than take the time and expense to fix it, and go 100% Linux.

    I made a backup of the windows ntfs partition using Clonezilla Live 2.2.3-25, then I copied all the data files to Linux /home, at least I thought it was "all", but that is ok I have a backup, right? It did not copy the sub directories of the documents folder but I did not realize that at this time.

    Now I need more space for /home so I needed to get that from the windows partition. Since windows is corrupted I can delete that partition (first mistake) and add that space to /home. That deleted sda1 which was the backup location for the Clonezilla backup so now I can't restore the backup because Clonzilla restores to the same location only. I needed to mount the Clonezilla image so that I could copy the needed files to Linux /home. I found several procedures to do that on the web, all basically the same, but I can't get them to work. This is an example: http://www.mondaiji.com/blog/other/it/1 ... lla-images.

    Here is the command I used:
    cat /home/partimag/sda1.ntfs-ptcl-img.gz.* | gzip -d -c | sudo partclone.ntfs -C -s - -O image-file.img

    The first two parts of this command work ok and I was able to create an unzipped file of the image (186GB) but partclone gives the following results no matter what options I use:

    pete-main / # partclone.ntfs -C -s /home/partimag/sda1-unzipped.img -O /backup/sda1.img
    partclone.ntfs v0.2.70 http://partclone.org
    Usage: partclone.ntfs [OPTIONS]
    Efficiently clone to an image, device or standard output.

    -o, --output FILE Output FILE
    -O --overwrite FILE Output FILE, overwriting if exists
    -W --restore_raw_file create special raw file for loop device
    -s, --source FILE Source FILE
    -L, --logfile FILE Log FILE
    -c, --clone Save to the special image format
    -r, --restore Restore from the special image format
    -b, --dev-to-dev Local device to device copy mode
    -D, --domain Create ddrescue domain log from source device
    --offset_domain=X Add offset X (bytes) to domain log values
    -R, --rescue Continue clone while disk read errors
    -w, --skip_write_error Continue restore while write errors
    -dX, --debug=X Set the debug level to X = [0|1|2]
    -C, --no_check Don't check device size and free space
    -N, --ncurses Using Ncurses User Interface
    -I, --ignore_fschk Ignore filesystem check
    -i, --ignore_crc Ignore crc check error
    -F, --force Force progress
    -f, --UI-fresh Fresh times of progress
    -B, --no_block_detail Show progress message without block detail
    -z, --buffer_size SIZE Read/write buffer size (default: 1048576)
    -q, --quiet Disable progress message
    -E, --offset=X Add offset X (bytes) to OUTPUT
    -v, --version Display partclone version
    -h, --help Display this help

    All this was run as root. What is this output telling me? Is this an error or is there something wrong with the options?
    Partclone is installed on the HD, not on the Clonezilla Live CD.
    Is there another way to read the files in the image?

    Thanks,
    Pete

     
  • Fuchs

    Fuchs - 2014-10-01

    I would
    write it to an other drive with 'diffpart.sh' (in the attachment) and 'clonezilla live'
    -Use a memory stick, a SD card, an external drive (or the internal drive).
    -Look for sda1 in the blkdev.list of your image.
    -The new partition sdb1 (or sda9) or so should be equal or greater then the old sda1.
    -With 'gparted live' can you make the partition (NTFS).

    -In the clonezilla upper directory should be added
    'diffpart.sh'
    -In /syslinux/syslinux.cfg append .. line without newline(!)
    'ocs_prerun11=/lib/live/mount/medium/diffpart.sh'

    -Start clonezilla. Then 'diffpart.sh' is waiting for the repository device and the output device...
    You can all devices connect before the start too.
    -restoreparts e.g. ..img_to_sdd2

    That's all.

    (Last one tested with clonezilla-live-2.2.4-12-i686-pae)

     

    Last edit: Fuchs 2014-10-02

Log in to post a comment.