Quote:
Originally Posted by Mark_667
I've used Clonezilla to backup a NTFS partition to a image on a local drive. I want to restore it to a new one where the partition size is smaller (the used space on the source partition is less than the destination partition size). Unfortunately when I try to restore it I get a error stating that I need to use -C to disable size checking. When I try to run the following command
Code:
/opt/drb1/sbin/ocs_sr -g auto -e1 auto -e2 -c -C -J2 -k -p true restore -parts "<img name here>" "sda1"
I get a unknown command error. Can anyone see where I'm going wrong?
|
I had the same problem as have a number of others if you look around on the web, I didn't see anyone else answer it so thought I'd chime in here. Clonezilla is good software but this was indeed quite annoying.
The option it's referencing actually needs to be passed to the partclone program, which the bash script /opt/drb1/sbin/ocs_sr (for me in the current version it's named ocs-sr not ocs_sr check the /tmp/ocs-* file for the name of the script) launches.
In the current version it's easy to remedy plus you can still use the gui. Go to the command prompt and edit ocs-sr (vi ocs-sr) and go to line 490. You should see
PARTCLONE_RESTORE_OPT="$PARTCLONE_RESTORE_OPT_INIT -N"
Just add the -C there
PARTCLONE_RESTORE_OPT="$PARTCLONE_RESTORE_OPT_INIT -C -N"
save and exit, exit out of the command line back to the gui, and run through the wizard again.
Just remember it will of course take effect if doing more than one operation, which you may not want. The change will of course be lost once you reboot.
hope that helps