Menu

Semi Automated Restore Works/Image Does Not?

Help
Alphanaut
2011-02-07
2013-04-05
  • Alphanaut

    Alphanaut - 2011-02-07

    So here's my setup:

    /hda2 is the partition I want to image
    /hda3/Images is the folder on another partition (same drive) that stores the images (i also keep an image copy on my server)

    So I edited syslinux.cfg to do this in a semi-automated way, and the restore works great, however when I try to make an image it fails.  I can't tell why it's failing as the screen is scrolling text fora bout 5 or 6 seconds and I'm assuming the error is off screen somewhere.  Can any see a reason why my .cfg (below) is failing to image?  Also, if there's a way to save the screen text please let me know.  Should I just invoke the command manually and pipe it to a text file?

    Thanks in advance!

    default vesamenu.c32
    timeout 150
    prompt 1
    noescape 1
    MENU MARGIN 5
    MENU BACKGROUND ocswp.png
    MENU COLOR UNSEL 7;32;41 #c0000090 #00000000
    MENU COLOR TIMEOUT_MSG 7;32;41 #c0000090 #00000000
    MENU COLOR TIMEOUT 7;32;41 #c0000090 #00000000
    MENU COLOR HELP 7;32;41 #c0000090 #00000000

    # Allow client to edit the parameters
    ALLOWOPTIONS 0

    # simple menu title
    MENU TITLE Choose from the options below:

    label Clonezilla Live
      MENU DEFAULT
      # MENU HIDE
      MENU LABEL Clonezilla Live
      # MENU PASSWD
      kernel /live/vmlinuz
      append initrd=/live/initrd.img boot=live config  noswap nolocales edd=on nomodeset noprompt ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="NONE" ocs_live_batch="no" ocs_lang="en_US.UTF-8" vga=788 ip=frommedia  nosplash

    label Restore Image
      MENU DEFAULT
      # MENU HIDE
      MENU LABEL Restore Image
      # MENU PASSWD
      kernel /live/vmlinuz
    append initrd=/live/initrd.img boot=live config noswap nolocales edd=on nomodeset noprompt ocs_prerun="mount /dev/sda3 /mnt" ocs_prerun1="mount -bind /mnt/Images /home/partimag/" ocs_live_run="ocs-sr -g auto -e1 auto -e2 -c -r -j2 -k -p poweroff restoreparts ask_user sda2" ocs_live_extra_param="" ocs_live_keymap="NONE" ocs_live_batch="no" ocs_lang="en_US.UTF-8" vga=788 ip=frommedia nosplash

    label Backup Image
      # MENU DEFAULT
      # MENU HIDE
      MENU LABEL Backup Image
      # MENU PASSWD
      kernel /live/vmlinuz
    append initrd=/live/initrd.img boot=live config noswap nolocales edd=on nomodeset noprompt ocs_prerun="mount /dev/sda3 /mnt" ocs_prerun1="mount -bind /mnt/Images /home/partimag/" ocs_live_run="ocs-sr -q2 -c -j2 -zip -i 2000 -p true saveparts asu_user sda2" ocs_live_extra_param="" ocs_live_keymap="NONE" ocs_live_batch="no" ocs_lang="en_US.UTF-8" vga=788 ip=frommedia nosplash
     
    MENU END

     
  • Alphanaut

    Alphanaut - 2011-02-07

    Oh, and my actual .cfg is "ask_user" for the image name under Backup Image, not "asu_user".  Also, is there a way to automatically bypass my needing to press Y and Y twice when it's asking me if I "really" want to restore the image?  I know it's a safety measure but I'm not all that concerned with it as I have so many image backups.

     
  • Steven Shiau

    Steven Shiau - 2011-02-10

    "is there a way to automatically bypass my needing to press Y and Y twice " -> replace the option "-c" with "-b", i.e.
    ocs_live_run="ocs-sr -g auto -e1 auto -e2 -b -r -j2 -k -p poweroff restoreparts ask_user sda2"

    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.