Menu

How to specify target partition for image file

Help
Kirkx
2014-08-31
2014-09-03
  • Kirkx

    Kirkx - 2014-08-31

    I have installed Partclone on my partition with Xubuntu (/dev/sda23). Now I want to create an image of:

    /dev/sda21 (ext4, the partition contains Linux Lite)

    and save that image on:

    /dev/sda36 (xfs, dedicated partition for image files)

    I can't figure out how to do this. It seems that the image file can only be saved in:

    /home/my_username

    on the partition where Partclone is installed. So this command works ok:

    sudo partclone.ext4 -c -N -s /dev/sda21 -o sda21.img

    but when you try to specify the output path to another partition:

    sudo partclone.ext4 -c -N -s /dev/sda21 -o /dev/sda36/sda21.img

    the error message comes up:


    Partclone v0.2.51 http://partclone.org
    Starting to clone device (/dev/sda21) to image (/dev/sda36/sda21.img)
    open target fail /dev/sda36/sda21.img: Not a directory (20)
    Error exit


    If there is no way around this then one possible solution would be to install some mini version of Linux on my dedicated image partition (/dev/sda36) and run Partclone from there.

    I have tried Clonezilla+Partclone but Clonezilla is extremely slow at scanning partitions so I'd rather run a standalone version of Partclone. Besides, I was getting "split_error.L6wzCO" as described on Clonezilla thread here:

    https://sourceforge.net/p/clonezilla/discussion/Help/thread/260e77c4/

     
  • Kirkx

    Kirkx - 2014-09-02

    I have figured that out. First you need to mount the target partition and then run the partclone command:

    sudo mount /dev/sda36 /mnt/sda36
    sudo partclone.ext4 -c -N -s /dev/sda21 -o /mnt/sda36/sda21.img

    Of course the mount point doesn't need to be /mnt/sda36. If the target partition was mounted from Thunar in Xubuntu the mount point would be:

    /media/user_name/target_partition_label

     
  • Thomas

    Thomas - 2014-09-03

    2 ways
    1.
    clone (-c) and restore(-r)
    partclone.ext4 -d -c -s /dev/sda21 -o sda21.img
    then restore
    partclone.ext4 -d -r -s sda21.img -o /dev/sda36

    1. part-to-part (-b)
      partclone -d -b -s /dev/sda21 -o /dev/sda36

    Thomas.

     
  • Kirkx

    Kirkx - 2014-09-03

    Please ignore (post deleted by OP).

     

    Last edit: Kirkx 2014-09-03

Log in to post a comment.