Menu

Ocs-Prerun script

Help
Anonymous
2014-02-12
2014-02-12
  • Anonymous

    Anonymous - 2014-02-12

    Hello,
    I have just installed Clonezilla live-hd on my hard-disk (/dev/sda6) and add 2 entry on grub2.

    1) One for loading Clonezilla normally.

    Grub2 part is like this

    menuentry "Clonezilla" {
    set root=(hd0,6)
    linux /live-hd/vmlinuz boot=live live-config noswap nolocales edd=on nomodeset ocs_live_run=\"ocs-live-general\" ocs_live_extra_param=\"\" keyboard-layouts=\"\" ocs_live_batch=\"no\" locales=\"en_US.UTF8\" vga=788 ip=frommedia nosplash live-media-path=/live-hd bootfrom=/dev/sda6 toram=filesystem.squashfs
    initrd /live-hd/initrd.img
    }

    When I boot selecting this option, all work perfectly

    2) One for loading Clonezilla as Batch

    Grub2 part is like this

    menuentry "Backup" {
    set root=(hd0,6)
    linux /live-hd/vmlinuz boot=live live-config noswap nolocales edd=on nomodeset ocs_prerun=\"mount /dev/sda6 /home/partimag\" ocs_live_run=\"ocs-sr -q2 -c -j2 -zip -i 2000 -p true saveparts Backup sda1\" ocs_live_extra_param=\"\" keyboard-layouts=\"\" ocs_live_batch=\"yes\" locales=\"\" vga=788 ip=frommedia nosplash live-media-path=/live-hd bootfrom=/dev/sda6 toram=filesystem.squashfs
    initrd /live-hd/initrd.img
    }

    When I boot selecting this option, the script is launching but the osc_prerun does'nt do anything so that there is nothing mounted to /home/partimag.

    How can I mount my own partition as /home/partimag ?

    Thanks a lot

     

    Last edit: Anonymous 2014-02-12
  • Anonymous

    Anonymous - 2014-02-12

    I figure out my error after several hours of research
    I have written ocs-prerun instead of ocs_prerun in my grub2 script.
    Reading my message above help me a lot ^^

     

    Last edit: Anonymous 2014-02-12

Log in to post a comment.