Menu

Auto-Restore Partition From Hard Drive

Help
Quincy
2010-02-22
2013-04-05
  • Quincy

    Quincy - 2010-02-22

    I trying to auto restore a partition image and had some obvious questions that seem not so obvious in the Live-HD document. 

    Is it possible for me to select my ocs commands to use in my Grub2 menu?  Is a custom script required?  Should those commands be done in the syslinux.cfg instead?  Or both places plus the script? 

    I was hoping that I could simply pass the parameters along since I am stating where the program should be run in my grub menu.  Basically when this is run, it just loads the Clonezilla menu with no automation.  Any help would be appreciated.  Here is what I have in my Grub menu. 

    menuentry "Auto Restore" {
    set root=(hd0,4)
    linux /mnt/live-hd/vmlinuz boot=live union=aufs nolocales noprompt set gfxpayload=640x480x16,640x480 ip=frommedia live-media-path=/mnt/live-hd bootfrom=/dev/sda4/mnt toram=filesystem.squashfs
    ocs_live_run="ocs-live-restore"
    ocs_live_extra_param="-g auto -e1 auto -e2 -c -r -j2 -k -p true restoreparts Win7part-img sda2" ocs_live_keymap="NONE" ocs_live_batch="yes" ocs_lang="en_US.UTF-8"
    initrd /mnt/live-hd/initrd.img
    }

     
  • Steven Shiau

    Steven Shiau - 2010-02-27

    Yes, you can.
    Did you put those in a line? like this?
    linux /mnt/live-hd/vmlinuz boot=live union=aufs nolocales noprompt set gfxpayload=640x480x16,640x480 ip=frommedia live-media-path=/mnt/live-hd bootfrom=/dev/sda4/mnt toram=filesystem.squashfs  ocs_live_run="ocs-live-restore"  ocs_live_extra_param="-g auto -e1 auto -e2 -c -r -j2 -k -p true restoreparts Win7part-img sda2" ocs_live_keymap="NONE" ocs_live_batch="yes" ocs_lang="en_US.UTF-8"

    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.