2015年8月28日 星期五

Clonezilla 隨身碟 一鍵還原設定

參考資料:
http://clonezilla.org/fine-print-live-doc.php?path=./clonezilla-live/doc/05_Preseed_options_to_do_job_after_booting&fullmode=1

http://wdpsestea.blogspot.tw/search?q=clonezilla

http://clonezilla.org/show-live-doc-content.php?topic=clonezilla-live/doc/99_Misc

https://raymii.org/s/tutorials/Customize-your-clonezilla-live-CD.html#example


EFI開機選項設定檔:
/EFI/boot/grub.cfg

BIOS
syslinux/isolinux.cfg   (光碟開機專用)
syslinux/syslinux.cfg



menuentry "clonezilla live with img 2015-08-18-04-imgca (Default settings, VGA 1024x768) ram nokey"{
  search --set -f /live/vmlinuz

  linux /live/vmlinuz boot=live union=overlay username=user config components  noswap edd=on nomodeset nodmraid noeject locales=zh_TW.UTF-8 keyboard-layouts=NONE ocs_live_run="ocs-sr --batch -g auto -e1 auto -e2 -r -j2 -k -p poweroff restoredisk 2015-08-18-04-imgca sda" ocs_live_extra_param="" ocs_live_batch=yes vga=791 ip= net.ifnames=0 quiet nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1 toram=filesystem.squashfs  ocs_prerun1="dhclient -v eth0" ocs_prerun2="sleep 2" ocs_prerun3="mount -t cifs //172.22.100.16/images /home/partimag" ocs_prerun4="sleep 3"

  initrd /live/initrd.img
}








menuentry "clonezilla live with img 2015-08-18-04-imgca (Default settings, VGA 1024x768) ram nokey"{
  search --set -f /live/vmlinuz

  linux /live/vmlinuz boot=live union=overlay username=user config components  noswap edd=on nomodeset nodmraid noeject locales=zh_TW.UTF-8 keyboard-layouts=NONE ocs_live_run="ocs-sr --batch -g auto -e1 auto -e2 -r -j2 -k -p poweroff restoredisk 2015-08-18-04-imgca sda" ocs_live_extra_param="" ocs_live_batch=yes vga=791 ip= net.ifnames=0 quiet nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1 toram=filesystem.squashfs  ocs_prerun1="dhclient -v eth0" ocs_prerun2="sleep 2" ocs_prerun3="mount -o user=admin -t cifs //172.22.100.16/images /home/partimag" ocs_prerun4="sleep 3"

  initrd /live/initrd.img
}


















參考資料


GRUB format:

menuentry "Clonezilla live (Default settings, VGA 1024x768)"{
  search --set -f /live/vmlinuz

   linux /live/vmlinuz boot=live username=user hostname=utopic config quiet union=overlayfs noswap edd=on nomodeset nodmraid noeject vga=788 toram=filesystem.squashfs  splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1  locales=zh_TW.UTF-8 ocs_live_keymap="NONE" ocs_live_batch="no" ip= ocs_prerun1="dhclient -v eth0" ocs_prerun2="sleep 2" ocs_prerun3="mount 10.241.97.252:/volume1/ntpcimg /home/partimag" ocs_prerun4="sleep 2" ocs_live_run="ocs-sr -g auto -e1 auto -e2 -c -r -j2 -p poweroff restoredisk ntpcU-last-img sda "

  initrd /live/initrd.img
}




label Clonezilla live
  MENU DEFAULT
  # MENU HIDE
  MENU LABEL Clonezilla live restore ntpc img (To RAM. Boot media can be removed later)
  # MENU PASSWD
  kernel /live/vmlinuz
  append initrd=/live/initrd.img boot=live username=user hostname=utopic config quiet union=overlayfs noswap edd=on nomodeset nodmraid noeject vga=788 toram=filesystem.squashfs  splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1  locales=zh_TW.UTF-8 ocs_live_keymap="NONE" ocs_live_batch="no" ip= ocs_prerun1="dhclient -v eth0" ocs_prerun2="sleep 2" ocs_prerun3="mount 10.241.97.252:/volume1/ntpcimg /home/partimag" ocs_prerun4="sleep 2" ocs_live_run="ocs-sr -g auto -e1 auto -e2 -c -r -j2 -p poweroff restoredisk ntpcU-last-img sda "
  TEXT HELP
  All the programs will be copied to RAM, so you can
  remove boot media (CD or USB flash drive) later
  ENDTEXT

沒有留言:

張貼留言