Menu

Auto restore image using usb flash drive

Help
Triskelen
2024-11-17
2024-11-22
  • Triskelen

    Triskelen - 2024-11-17

    hello

    I'm trying to create a usb stick that only has 1 goal. And that is to auto restore
    a set windows image locatted on the stick that i use to boot clonezilla itself.

    Z:\
    ├── auto-restore-windows\
    ├── boot\
    └── (other Clonezilla files)...
    

    I called the image "auto-restore-windows"

    then I adjusted the Grub file as following

    menuentry "Restore Windows Image (Automated)" {
        set gfxpayload=keep
        linux /live/vmlinuz boot=live config \
            ocs_live_run="ocs-sr -e1 auto -e2 -r -j2 -p poweroff restoredisk auto-restore-windows sda" \
            ocs_live_extra_param="" \
            keyboard-layouts="NONE" locales="en_US.UTF-8" vga=788 noswap noprompt \
            nosplash
        initrd /live/initrd.img
    }
    

    when running it it keeps failing with following error

    The jobs in /etc/ocs/ocs-live.d/ are finished. Start "ocs-sr -e1 auto -e2 -r -j2 -p poweroff restoredisk auto-restore-windows sda" now.
    ***************************************************************************
    Clonezilla image dir: /home/partimag
    ***************************************************************************
    The directory for this inputted image name does NOT exist: /home/partimag/auto-restore-windows
    Program terminated!!!
    Press "Enter" to continue...
    

    I tried difrent combinations but can't get it to work
    any help would be appreciated

     
  • Steven Shiau

    Steven Shiau - 2024-11-22

    You have to make the "linux /live/vmlinuz..." in one line. There is no way you can use "\" to continue it. It's not shell script.

    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.