Menu

Password ignored with ocs-sr. Unattended imaging and encryption

Help
Nes Man64
2018-01-30
2018-02-10
  • Nes Man64

    Nes Man64 - 2018-01-30

    I love Clonezilla. I use it to refresh laptops that are circulated by my public library. Clonezilla made it easy for me to automate so the checkin staff wouldn't need much training.

    I am trying to encrypt my image and I am using ocs-sr from clonezilla-3.30.24 and it is ignoring my -pe or -pfe flags. I don't know if I'm doing something wrong, but it always prompts me for a password. I've tried it with -pe and -pfe. I've tried double and single quotes around the password and also with no quotes. It still wants me to enter the password.

    sudo /usr/sbin/ocs-sr -q2 -j2 -z1p -i 2000 -p true -enc -pe "testpass" saveparts circulating sda1
    

    I can work around this when I restore with echo "testpass" | sudo /usr/sbin/ocs-sr... but that's probably not the right way to fix it. I have it installed on Xubuntu 17.10. I originally installed the supplied version for Ubuntu, but ended up installing it from source to make sure I had the newest version.

    Can you suggest anyting I might do to troubleshoot?

     
  • Steven Shiau

    Steven Shiau - 2018-01-31

    So which version of Clonezilla live did you use? Or you use it in the server edition?
    Thanks.

    Steven

     
  • Nes Man64

    Nes Man64 - 2018-01-31

    Hi, Steven. Thanks for the reply.

    I'm not using the Live or the Server version. I've downloaded the package from http://clonezilla.org/downloads/src/sourcecodes.php (clonezilla-3.30.24.tar.xz) and installed it on a persistant bootable Xubuntu stick. I did it this way so that non-techs could restore an image from a shortcut within the gui.

    Each laptop has an ext2 partition where the Windows install for that machine is backed up. We restore this image after a patron returns the laptop so that Windows doesn't want to activate again.

    I'm open to trying something with Clonezilla Live if you think that would be better. I just thought this would be easier. Everything is working perfectly, except for passing the password to the script. Before I learned that encryption was an option, I was just using the Clonezilla package provided by Ubuntu.

     
  • Steven Shiau

    Steven Shiau - 2018-02-10

    Did you also update DRBL on your system? Please make sure you have the latest packages of DRBL and Clonezilla, then this command should work:
    sudo /usr/sbin/ocs-sr -q2 -j2 -z1p -i 2000 -p true -enc -pe "testpass" saveparts circulating sda1

    Or you can try this command first in Clonezilla live. I just did a test here and it works. The password is used correctly.

    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.