LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-30-2009, 10:23 AM   #1
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 12.10
Posts: 257

Rep: Reputation: 25
Running clonezilla from command line on live CD


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?
 
Old 08-31-2009, 05:45 AM   #2
and235100
LQ Newbie
 
Registered: Feb 2007
Distribution: SuSE 11.1/11.0, Fedora, RHEL
Posts: 24

Rep: Reputation: 16
I would have thought that you required a -r switch to enable restore?
Also - according to some information I found, the partition that you are intending to restore to shopuld be clean and formatted correctly for the image you are trying to restore. Is this the case?
-C should be correct, from the information I have seen.
 
Old 01-30-2011, 10:47 PM   #3
umyeah
LQ Newbie
 
Registered: Jan 2011
Posts: 1

Rep: Reputation: 1
Talking

Quote:
Originally Posted by Mark_667 View Post
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
 
1 members found this post helpful.
Old 09-06-2011, 05:31 PM   #4
be1952
LQ Newbie
 
Registered: Sep 2011
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by umyeah View Post
hope that helps
Thanks very much for that, saved me a lot of time.
 
Old 05-17-2012, 10:44 AM   #5
Pankov
LQ Newbie
 
Registered: May 2012
Posts: 1

Rep: Reputation: Disabled
Thank you so much

This saved me so much time, I was pretty sure I was suppose to add the "-C" to the command itself..
 
Old 02-08-2014, 05:58 PM   #6
ironhand41
LQ Newbie
 
Registered: Mar 2013
Posts: 6

Rep: Reputation: Disabled
Question need help with clonzilla

This is most likely a reply that is not relevant nor timley to this thread, but after scanning the LQ pages for a while I still don't know how to start a new thread and ask a question, so I'll do it here and hope I don't get flammed too bad. Here's the issue. I'm new to Ubuntu (Zorin 6) but during my year-long learning period, I have used Clonzilla successfully on many occasions to both back up and restore images to my dual boot machine (win7-zorin). Each time I back my PC (both Win & Zorin) I see on the screen later in the process a message to the effect that there is a file that contains a script that I could run (probably from the command line) that would do exactly what I do each time I back up my PC with Clonezilla. The message states that there is a file "/tmp/ocs-2014-02-08-09-img-2014-02-08-09-36" that (apparantly) contains all the commands Clonezilla needs to back up my system without having to plow through all the screens that Clonezilla presents and answering the same questions all over again. My difficulty is I can't find that file or folder. Where is it? On my PC hard disk, the bootable usb drive I use to actually run Clonzilla, or on the usb disk drive where the cloned images are stored? Thanks.
-------------------------------------------------------------------------------------------------------
Zorin-OS 6 64bit/Win7x64 dual boot: Linux Kernel: 3.2.0-48.
SYX Venture A 1851 All-in-one PC; Model: SYX-GB-AEBN-SI.
Genuine Intel® CPU i3-2120 @ 3.30 GHzx4:Ram 8 GiB DDR3.
LCD 18.5": Resolution 1366x768.
802.11b/g/n Wireless.
Wired Verizon Fios Connection: 1000 Mb/s.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help using Clonezilla live CD vinic222 Linux - Desktop 6 12-14-2011 10:52 PM
Clonezilla Live: Cloning to smaller HD Codegen Linux - Software 3 02-04-2010 05:32 PM
Booting a Live CD from a command line prompt using a boot floppy dizzi Linux - General 4 07-13-2008 08:48 PM
LXer: Manage partitions and disks with GParted-Clonezilla live CD LXer Syndicated Linux News 0 07-02-2007 10:46 PM
Can Gnome and the command line live together? doowttam Linux - Newbie 3 07-06-2006 11:52 PM


All times are GMT -5. The time now is 05:48 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration