Menu

Almost Automated restore with USB disk

Help
fowlerm
2007-10-17
2013-04-05
  • fowlerm

    fowlerm - 2007-10-17

    I'm trying to boot from USB disk and automate clonezilla up to the point where you select the image you want to restore.

    I can get the USB bootable with the images I want but when I try to add the parameters I would like to include it fails. Unfortunately I cannot get the exact errors as they scroll up the screen. However I'm certain its complainant is about the parameters,

    This is what I am using to build the USB disk:

    ocs-live-dev -d /dev/sda1 -g en -t -k NONE -e "-b -c restoredisk" Image1 Image2

    What I hope to do is boot clonzilla and minimize user interaction until they have to select the image to restore. Looks like it should be possible.

    FYI: I'm using the DRBL / Clonzilla server to build my USB disk.

    Thanks!

     
    • Steven Shiau

      Steven Shiau - 2007-10-17

      The key should be in the param after "-e".
      For the time being, what you want to do is not available, since in the batch mode, ocs-sr will exit if image name and target device are not assigned. Will try to add that in the future.
      On the other hand, a workaround for you:
      ocs-live-dev -d /dev/sda1 -g en -t -k NONE -e "-x" Image1 Image2

      BTW, you can use "shift-pageup" to scroll back the screen.

       
    • fowlerm

      fowlerm - 2007-10-17

      Steven,

      Thanks for your quick reply! I'll give it a try. What does the -X do in this instance?

      Also Thanks for sharing this great software!

       
      • Steven Shiau

        Steven Shiau - 2007-10-17

        "-x" is one of the parameters of ocs-sr. It's interactive mode for ocs-sr.
        For more info, please check
        /opt/drbl/sbin/ocs-sr --help

         
    • fowlerm

      fowlerm - 2007-10-17

      Great! Thanks again. One more question. I know the -e parameter passes the parameters to another program; I guess in this case it's ocs-sr. Is that always the case? Does ocs-live-dev always pass anything after the -e to ocs-sr? What  / when are the other programs like ocs=live-restore used?

       
      • Steven Shiau

        Steven Shiau - 2007-10-17

        Basically the answer is yes. Even if it's /opt/drbl/sbin/ocs-live-restore, it will pass the parameters to ocs-sr.
        It's ocs-sr that does the real job about saving/restoring.

         
    • fowlerm

      fowlerm - 2007-10-17

      I thought of another question I had:

      Why if I leave out the -e, does it also not work. Seems to me this should also work:

      ocs-live-dev -d /dev/sda1 -g en -t -k NONE Image1 Image2

      If I leave out all switches it works like this, it works..

      ocs-live-dev -d /dev/sda1 Image1 Image2

      Are the first switches, before the -e being passed to ocs-live-dev?

       
      • Steven Shiau

        Steven Shiau - 2007-10-17

        Ha, sure. You can just use "ocs-live-dev -d /dev/sda1 -g en -t -k NONE Image1 Image2".
        -g and -t are used for the clonezilla live environment (language and keymap). It's not for ocs-sr.

         

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.