Menu

restoreparts -f parameter

Help
Lex24
2018-04-14
2018-04-17
  • Lex24

    Lex24 - 2018-04-14

    I have recently decided to run Clonezilla restoreparts in interactive mode (just to double-check the default parameters) and the command line generated at the end of the process included -f switch. It apparently converts the existing image to some temporary file. I can't find any information about this parameter in the documentation.

    :: restoring Ntfs partition
    /usr/sbin/ocs-sr -e1 auto -e2 -c -t -r -j2 -k -p true -f sda1  restoreparts ask_user sda1
    
    :: restoring Ext4 partition
    /usr/sbin/ocs-sr -e2 -c -t -r -j2 -k -p true -f sdb12  restoreparts ask_user sdb12
    

    The message shown is as follows:

     Creating a tmp Clonezilla image "imagename-tmp-cnvted" based on the image "imagename" so that we can restore the image imagename (was saved from sdb) to sdb ...
    

    I have always run those commands without -f sda1 or -f sdb12 and never had any problems.

    I'm using "Clonezilla-live-20141215-utopic-amd64", an older version which works perfectly on my hardware.

    The saveparts commands are as follows:

    :: Ntfs
    /usr/sbin/ocs-sr -q2 -j2 -rm-win-swap-hib -z1p -i 2048000 -p true saveparts imagename sda1
    
    :: Ext4
    /usr/sbin/ocs-sr -q2 -j2 -z1p -i 2048000 -fsck-src-part-y -p true saveparts imagename sdb12
    
     

    Last edit: Lex24 2018-04-15
  • Steven Shiau

    Steven Shiau - 2018-04-17

    " It apparently converts the existing image to some temporary file." -> So you need the command about this? If so, run:
    create-ocs-tmp-img --help

    Steven

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.