Skip to content

Backup verification phase seems to ignore batch mode #154

Open

Description

@lisz8

I run ocs-sr with the -batch parameter and pass ocs_live_batch=yes to the Clonezilla parameters, as well as noprompt to the kernel parameters. However, when the backup verification phase encounters problems, it hangs waiting for ENTER. Clonezilla live-3.2.2-15 and live-3.3.0-6 behave the same.
You can trigger this with Proxmox + thin pool + any VM or LXC inside it.

Image

Activity

  1. stevenshiau commented on Sep 2, 2025

    @stevenshiau
    Owner

    What's the complete command you ran?
    Any log file you can share? e.g., /var/log/clonezilla.log

  2. lisz8 commented on Sep 2, 2025

    @lisz8
    Author

    The command was /usr/sbin/ocs-sr -q2 -batch -j2 -z9p -i 0 -sfsck -senc -p true savedisk 2025-08-30-15-48 sda
    I ran it through screen, like this:

    screen bash -c '(TERM=dumb ocs-sr -q2 -batch -j2 -z9p -i 0 -sfsck -senc -p true savedisk $mydir sda; echo $? > /opt/screenlog.0) |& tee -a /opt/screenlog.1'
    

    and you can actually read the "Press "Enter" to continue......" line in the screen.log, near the end.

    clonezilla.zip

  3. stevenshiau commented on Sep 2, 2025

    @stevenshiau
    Owner

    Thanks for your bug report. This issue was fixed and the next testing version of Clonezilla live will address this issue.

  4. stevenshiau commented on Sep 5, 2025

    @stevenshiau
    Owner

    The command was /usr/sbin/ocs-sr -q2 -batch -j2 -z9p -i 0 -sfsck -senc -p true savedisk 2025-08-30-15-48 sda I ran it through screen, like this:

    screen bash -c '(TERM=dumb ocs-sr -q2 -batch -j2 -z9p -i 0 -sfsck -senc -p true savedisk $mydir sda; echo $? > /opt/screenlog.0) |& tee -a /opt/screenlog.1'
    

    and you can actually read the "Press "Enter" to continue......" line in the screen.log, near the end.

    clonezilla.zip

    BTW, this screen command inspired me we should have an option for people to use in the "run again" script. We will borrow this and use that in the future release of Clonezilla.
    Thank you very much for sharing that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions