热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

pxe 引导clonezilla live万能备份与还原

pxe引导clonezillalive万能备份与还原官方链接:http:www.clonezilla.orghttp:www.clonezilla.orgdownlo
pxe 引导clonezilla live万能备份与还原

官方链接&#xff1a;pxe <wbr>引导clonezilla <wbr>live万能备份与还原
http://www.clonezilla.org/
http://www.clonezilla.org/downloads.php




参考文档&#xff1a;
http://www.debian-administration.org/article/478/Setting_up_a_server_for_PXE_network_bootinghttp://drbl.sourceforge.net
http://clonezilla.nchc.org.tw/clonezilla-live/livepxe.php
http://clonezilla.nchc.org.tw/clonezilla-live/doc/fine-print.php?path&#61;./99_Misc/00_live-initramfs-manual.doc#00_live-initramfs-manual.doc

clonezilla-live-20140915-trusty-amd64.iso为例&#xff1a;

一. 简介&#xff1a;

What is Clonezilla?

Clonezilla is a partition and disk imaging/cloning program similar to True Image® or Norton Ghost®. It helps you to do system deployment, bare metal backup and recovery. Two types of Clonezilla are available, Clonezilla live and Clonezilla SE (server edition). Clonezilla live is suitable for single machine backup and restore. While Clonezilla SE is for massive deployment, it can clone many (40 plus!) computers simultaneously. Clonezilla saves and restores only used blocks in the harddisk. This increases the clone efficiency. With some high-end hardware in a 42-node cluster, a multicast restoring at rate 8 GB/min was reported.

Features:

  • Free (GPL) Software.
  • Filesystem supported: (1) ext2, ext3, ext4, reiserfs, reiser4, xfs, jfs, btrfs of GNU/Linux, (2) FAT12, FAT16, FAT32, NTFS of MS Windows, (3) HFS&#43; of Mac OS, (4) UFS of FreeBSD, NetBSD, and OpenBSD, (5) minix of Minix, and (6) VMFS3 and VMFS5 of VMWare ESX. Therefore you can clone GNU/Linux, MS windows, Intel-based Mac OS, FreeBSD, NetBSD, OpenBSD, Minix and VMWare ESX, no matter it&#39;s 32-bit (x86) or 64-bit (x86-64) OS. For these file systems, only used blocks in partition are saved and restored. For unsupported file system, sector-to-sector copy is done by dd in Clonezilla.
  • LVM2 (LVM version 1 is not) under GNU/Linux is supported.
  • Boot loader, including grub (version 1 and version 2) and syslinux, could be reinstalled.
  • Both MBR and GPT partition format of hard drive are supported. Clonezilla live also can be booted on a BIOS or uEFI machine.
  • Unattended mode is supported. Almost all steps can be done via commands and options. You can also use a lot of boot parameters to customize your own imaging and cloning.
  • One image restoring to multiple local devices is supported.
  • Multicast is supported in Clonezilla SE, which is suitable for massively clone. You can also remotely use it to save or restore a bunch of computers if PXE and Wake-on-LAN are supported in your clients.
  • The image file can be on local disk, ssh server, samba server, or NFS server.
  • Based on Partclone (default), Partimage (optional), ntfsclone (optional), or dd to image or clone a partition. However, Clonezilla, containing some other programs, can save and restore not only partitions, but also a whole disk.
  • By using another free software drbl-winroll, which is also developed by us, the hostname, group, and SID of cloned MS windows machine can be automatically changed.

Minimum System Requirements for Clonezilla live:

  • X86 or x86-64 processor
  • 196 MB of system memory (RAM)
  • Boot device, e.g. CD/DVD Drive, USB port, PXE, or hard drive

Limitations:

  • The destination partition must be equal or larger than the source one.
  • Differential/incremental backup is not implemented yet.
  • Online imaging/cloning is not implemented yet. The partition to be imaged or cloned has to be unmounted.
  • Software RAID/fake RAID/firmware RAID is not supported by default. It can be done manually only.
  • Due to the image format limitation, the image can not be explored or mounted. You can _NOT_ recovery single file from the image. However, you still have workaround to make it, read this.
  • Recovery Clonezilla live with multiple CDs or DVDs is not implemented yet. Now all the files have to be in one CD or DVD if you choose to create the recovery iso file.

License:

  • Clonezilla itself is licensed under the GNU General Public License (GPL) Version 2. However, to run Clonezilla, a lot of free and open source software, e.g. the Linux kernel, a mininal GNU/Linux OS, are required.


二. 搭建PXE环境&#xff1a;

gparted live cd是基于debian-live&#xff0c;所以&#xff0c;syslinux参数和红帽的有些区别&#xff0c;具体的可以参看文章开头的参考文档。

有兴趣的朋友可以参考在下的拙篇&#xff0c;这里就不再细述&#xff0c;欢迎大家批评指正

CenOS6 nginx&#43;pxe&#43;tftpd&#43;samba/nfs&#43;dhcpd 无盘安装windows & linux

Ubuntu12.04 nginx&#43;pxe&#43;tftpd&#43;samba/nfs&#43;dhcpd 无盘安装windows & linux


三. 定义clonezilla pxe菜单:

mount -o loop /mnt/ISO/linux/clonezilla-live-20140915-trusty-amd64.iso /mnt/iso/

mkdir /var/lib/tftpboot/clonezilla

cp -av /mnt/iso/live /var/lib/tftpboot/clonezilla

cp -av /mnt/iso/live/filesystem.squashfs /var/www/pub/ftp/clonezilla

cp -av /mnt/iso/syslinux/syslinux.cfg /var/lib/tftpboot/clonezilla/default

以下是我个人的clonezilla pxe菜单/var/lib/tftpboot/clonezilla/default&#xff0c;把iso中的syslinux.cfg另存为default再加以修改即可&#xff0c;仅供参考。

注&#xff1a;这里最重要的就是filesystem.squashfs这个文件&#xff0c;fetch支持tftp,ftp,http这几种模式&#xff0c;我这里选用的是http模式&#xff0c;所以看的到是fetch&#61;http://192.168.8.254/ftp/clonezilla/filesystem.squashfs


default /clonezilla/vesamenu.c32
#prompt 1
timeout 600

display /clonezilla/boot.cat

menu background /clonezilla/ocswp.png
menu title Clonezilla Live(Linux trusty 3.13.0-35-generic)
menu color border 0 #ffffffff #00000000
menu color sel 7 #ffffffff #ff000000
menu color title 0 #ffffffff #00000000
menu color tabmsg 0 #ffffffff #00000000
menu color unsel 0 #ffffffff #00000000
menu color hotsel 0 #ff000000 #ffffffff
menu color hotkey 7 #ffffffff #ff000000
menu color scrollbar 0 #ffffffff #00000000

# MENU MASTER PASSWD

say **********************************************************************
say Clonezilla, the OpenSource Clone System.
say NCHC Free Software Labs, Taiwan.
say clonezilla.org, clonezilla.nchc.org.tw
say THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
say **********************************************************************

# Allow client to edit the parameters
ALLOWOPTIONS 1

# simple menu title
MENU TITLE clonezilla.org, clonezilla.nchc.org.tw

# Since no network setting in the squashfs image, therefore if ip&#61;, the network is disabled. That&#39;s what we want.
label Clonezilla live (To RAM)
  MENU DEFAULT
  # MENU HIDE
  MENU LABEL Clonezilla Live (To ^RAM. Boot media can be removed later)
  # MENU PASSWD
 kernel /clonezilla/live/vmlinuz
  append initrd&#61;/clonezilla/live/initrd.img boot&#61;live username&#61;user hostname&#61;trusty config quiet union&#61;overlayfs noswap edd&#61;on nomodeset noeject locales&#61; keyboard-layouts&#61; ocs_live_run&#61;"ocs-live-general" ocs_live_extra_param&#61;"" ocs_live_batch&#61;no vga&#61;788 toram&#61;filesystem.squashfs ip&#61;  nosplash i915.blacklist&#61;yes radeonhd.blacklist&#61;yes nouveau.blacklist&#61;yes vmwgfx.enable_fbdev&#61;1 fetch&#61;http://192.168.8.254/ftp/clonezilla/filesystem.squashfs

  TEXT HELP
  All the programs will be copied to RAM, so you can
  remove boot media (CD or USB flash drive) later
  ENDTEXT


MENU BEGIN Other modes of Clonezilla live
label Clonezilla live
  # MENU HIDE
  MENU LABEL Clonezilla live (Default settings, VGA 800x600)
  # MENU PASSWD
  kernel /clonezilla/live/vmlinuz
  append initrd&#61;/clonezilla/live/initrd.img boot&#61;live username&#61;user hostname&#61;trusty config quiet union&#61;overlayfs noswap edd&#61;on nomodeset noeject locales&#61; keyboard-layouts&#61; ocs_live_run&#61;"ocs-live-general" ocs_live_extra_param&#61;"" ocs_live_batch&#61;no vga&#61;788 ip&#61;  splash i915.blacklist&#61;yes radeonhd.blacklist&#61;yes nouveau.blacklist&#61;yes vmwgfx.enable_fbdev&#61;1 fetch&#61;http://192.168.8.254/ftp/clonezilla/filesystem.squashfs
  TEXT HELP
  * Boot menu for BIOS machine
  * Clonezilla live version: 20140915-trusty-amd64. (C) 2003-2014, NCHC, Taiwan
  * Disclaimer: Clonezilla comes with ABSOLUTELY NO WARRANTY
  ENDTEXT
label Clonezilla live 1024x768
  # MENU DEFAULT
  # MENU HIDE
  MENU LABEL Clonezilla live (Default settings, VGA 1024x768)
  # MENU PASSWD
  kernel /clonezilla/live/vmlinuz
  append initrd&#61;/clonezilla/live/initrd.img boot&#61;live username&#61;user hostname&#61;trusty config quiet union&#61;overlayfs noswap edd&#61;on nomodeset noeject locales&#61; keyboard-layouts&#61; ocs_live_run&#61;"ocs-live-general" ocs_live_extra_param&#61;"" ocs_live_batch&#61;no vga&#61;791 ip&#61;  splash i915.blacklist&#61;yes radeonhd.blacklist&#61;yes nouveau.blacklist&#61;yes vmwgfx.enable_fbdev&#61;1 fetch&#61;http://192.168.8.254/ftp/clonezilla/filesystem.squashfs
  TEXT HELP
  VGA mode 1024x768. OK for most of VGA cards.
  ENDTEXT

label Clonezilla live 640x480
  # MENU DEFAULT
  # MENU HIDE
  MENU LABEL Clonezilla live (Default settings, VGA 640x480)
  # MENU PASSWD
  kernel /clonezilla/live/vmlinuz
  append initrd&#61;/clonezilla/live/initrd.img boot&#61;live username&#61;user hostname&#61;trusty config quiet union&#61;overlayfs noswap edd&#61;on nomodeset noeject locales&#61; keyboard-layouts&#61; ocs_live_run&#61;"ocs-live-general" ocs_live_extra_param&#61;"" ocs_live_batch&#61;no vga&#61;785 ip&#61;  splash i915.blacklist&#61;yes radeonhd.blacklist&#61;yes nouveau.blacklist&#61;yes vmwgfx.enable_fbdev&#61;1 fetch&#61;http://192.168.8.254/ftp/clonezilla/filesystem.squashfs
  TEXT HELP
  VGA mode 640x480. OK for most of VGA cards.
  ENDTEXT

label Clonezilla live KMS
  # MENU DEFAULT
  # MENU HIDE
  MENU LABEL Clonezilla live (Default settings, KMS)
  # MENU PASSWD
  kernel /clonezilla/live/vmlinuz
  append initrd&#61;/clonezilla/live/initrd.img boot&#61;live username&#61;user hostname&#61;trusty config quiet union&#61;overlayfs noswap edd&#61;on noeject locales&#61; keyboard-layouts&#61; ocs_live_run&#61;"ocs-live-general" ocs_live_extra_param&#61;"" ocs_live_batch&#61;no vga&#61;791 ip&#61;  splash fetch&#61;http://192.168.8.254/ftp/clonezilla/filesystem.squashfs
  TEXT HELP
  KMS mode. OK for ATI, Intel and NVIDIA VGA cards.
  ENDTEXT


label Clonezilla live without framebuffer
  # MENU DEFAULT
  # MENU HIDE
  MENU LABEL Clonezilla live (Safe graphic settings, vga&#61;normal)
  # MENU PASSWD
  kernel /clonezilla/live/vmlinuz
  append initrd&#61;/clonezilla/live/initrd.img boot&#61;live username&#61;user hostname&#61;trusty config quiet union&#61;overlayfs noswap edd&#61;on nomodeset noeject locales&#61; keyboard-layouts&#61; ocs_live_run&#61;"ocs-live-general" ocs_live_extra_param&#61;"" ocs_live_batch&#61;no ip&#61; nomodeset vga&#61;normal nosplash fetch&#61;http://192.168.8.254/ftp/clonezilla/filesystem.squashfs
  TEXT HELP
  Disable console frame buffer support
  ENDTEXT

label Clonezilla live failsafe mode
  # MENU DEFAULT
  # MENU HIDE
  MENU LABEL Clonezilla live (Failsafe mode)
  # MENU PASSWD
  kernel /clonezilla/live/vmlinuz
  append initrd&#61;/clonezilla/live/initrd.img boot&#61;live username&#61;user hostname&#61;trusty config quiet union&#61;overlayfs noswap edd&#61;on nomodeset noeject locales&#61; keyboard-layouts&#61; ocs_live_run&#61;"ocs-live-general" ocs_live_extra_param&#61;"" ocs_live_batch&#61;no acpi&#61;off irqpoll noapic noapm nodma nomce nolapic nosmp ip&#61; nomodeset vga&#61;normal nosplash fetch&#61;http://192.168.8.254/ftp/clonezilla/filesystem.squashfs
  TEXT HELP
  acpi&#61;off irqpoll noapic noapm nodma nomce nolapic
  nosmp nomodeset vga&#61;normal nosplash
  ENDTEXT

MENU END
label local
  # MENU DEFAULT
  # MENU HIDE
  MENU LABEL Local operating system in harddrive (if available)
  # MENU PASSWD
  # 2 method to boot local device:
  # (1) For localboot 0, it is decided by boot order in BIOS, so uncomment the follow 1 line if you want this method:
  # localboot 0

  # (2) For chain.c32, you can assign the boot device.
  # Ref: extlinux.doc from syslinux
  # Syntax: APPEND [hd|fd] []
  # [] is optional.
  # Ex:
  # Second partition (2) on the first hard disk (hd0);
  # Linux would *typically* call this /dev/hda2 or /dev/sda2, then it&#39;s "APPEND hd0 2"
  #
  kernel chain.c32
  append hd0
  TEXT HELP
  Boot local OS from first hard disk if it&#39;s available
  ENDTEXT

MENU BEGIN Memtest & FreeDOS

# Note! *.bin is specially purpose for syslinux,
# Do NOT use memtest.bin, use memtest instead of memtest.bin
label memtest
  # MENU DEFAULT
  # MENU HIDE
  MENU LABEL Memory test using Memtest86&#43;
  # MENU PASSWD
  kernel /clonezilla/live/memtest
  TEXT HELP
  Run memory test using Memtest86&#43;
  ENDTEXT

label FreeDOS
  # MENU DEFAULT
  # MENU HIDE
  MENU LABEL FreeDOS
  # MENU PASSWD
  kernel memdisk
  append initrd&#61;/clonezilla/live/freedos.img
  TEXT HELP
  Run FreeDOS
  ENDTEXT

MENU END
label iPXE
  # MENU DEFAULT
  # MENU HIDE
  MENU LABEL Network boot via iPXE
  # MENU PASSWD
  kernel /clonezilla/live/ipxe.lkn
  TEXT HELP
  Run iPXE to enable network (PXE) boot
  ENDTEXT

MENU END


四. 效果图&#xff1a;
pxe <wbr>引导clonezilla <wbr>live万能备份与还原

pxe <wbr>引导clonezilla <wbr>live万能备份与还原

pxe <wbr>引导clonezilla <wbr>live万能备份与还原

pxe <wbr>引导clonezilla <wbr>live万能备份与还原
语言可以自由选择。

pxe <wbr>引导clonezilla <wbr>live万能备份与还原

pxe <wbr>引导clonezilla <wbr>live万能备份与还原

pxe <wbr>引导clonezilla <wbr>live万能备份与还原

pxe <wbr>引导clonezilla <wbr>live万能备份与还原
通过进入shell命令行&#xff0c;我们可以看到&#xff0c;lonezilla-live-20140915-trusty-amd64.iso这个版本是基于Ubuntu14.04.1 LTS&#xff0c;内核也是比较新的3.13.0内核。


示例:
将本地某分区备份到远程smb主机

pxe <wbr>引导clonezilla <wbr>live万能备份与还原

pxe <wbr>引导clonezilla <wbr>live万能备份与还原

pxe <wbr>引导clonezilla <wbr>live万能备份与还原

pxe <wbr>引导clonezilla <wbr>live万能备份与还原
这里填smb主机的地址

pxe <wbr>引导clonezilla <wbr>live万能备份与还原
smb主机的domain&#xff0c;可以为空

pxe <wbr>引导clonezilla <wbr>live万能备份与还原
合法的smb用户

pxe <wbr>引导clonezilla <wbr>live万能备份与还原
smb主机目录&#xff0c;存放备份之用。

pxe <wbr>引导clonezilla <wbr>live万能备份与还原

pxe <wbr>引导clonezilla <wbr>live万能备份与还原

pxe <wbr>引导clonezilla <wbr>live万能备份与还原
输入smb用户的密码。

pxe <wbr>引导clonezilla <wbr>live万能备份与还原

pxe <wbr>引导clonezilla <wbr>live万能备份与还原

pxe <wbr>引导clonezilla <wbr>live万能备份与还原

pxe <wbr>引导clonezilla <wbr>live万能备份与还原
备份的文件名。


转:https://www.cnblogs.com/lixuebin/p/10814483.html



推荐阅读
  • PatchODAX8: ... [详细]
  • 搭建Windows Server 2012 R2 IIS8.5+PHP(FastCGI)+MySQL环境的详细步骤
    本文详细介绍了搭建Windows Server 2012 R2 IIS8.5+PHP(FastCGI)+MySQL环境的步骤,包括环境说明、相关软件下载的地址以及所需的插件下载地址。 ... [详细]
  • 本文介绍了三种方法来实现在Win7系统中显示桌面的快捷方式,包括使用任务栏快速启动栏、运行命令和自己创建快捷方式的方法。具体操作步骤详细说明,并提供了保存图标的路径,方便以后使用。 ... [详细]
  • 本文介绍了在Windows环境下如何配置php+apache环境,包括下载php7和apache2.4、安装vc2015运行时环境、启动php7和apache2.4等步骤。希望对需要搭建php7环境的读者有一定的参考价值。摘要长度为169字。 ... [详细]
  • C++字符字符串处理及字符集编码方案
    本文介绍了C++中字符字符串处理的问题,并详细解释了字符集编码方案,包括UNICODE、Windows apps采用的UTF-16编码、ASCII、SBCS和DBCS编码方案。同时说明了ANSI C标准和Windows中的字符/字符串数据类型实现。文章还提到了在编译时需要定义UNICODE宏以支持unicode编码,否则将使用windows code page编译。最后,给出了相关的头文件和数据类型定义。 ... [详细]
  • 本文介绍了如何使用C#制作Java+Mysql+Tomcat环境安装程序,实现一键式安装。通过将JDK、Mysql、Tomcat三者制作成一个安装包,解决了客户在安装软件时的复杂配置和繁琐问题,便于管理软件版本和系统集成。具体步骤包括配置JDK环境变量和安装Mysql服务,其中使用了MySQL Server 5.5社区版和my.ini文件。安装方法为通过命令行将目录转到mysql的bin目录下,执行mysqld --install MySQL5命令。 ... [详细]
  • Windows7 64位系统安装PLSQL Developer的步骤和注意事项
    本文介绍了在Windows7 64位系统上安装PLSQL Developer的步骤和注意事项。首先下载并安装PLSQL Developer,注意不要安装在默认目录下。然后下载Windows 32位的oracle instant client,并解压到指定路径。最后,按照自己的喜好对解压后的文件进行命名和压缩。 ... [详细]
  • 本文介绍了使用哈夫曼树实现文件压缩和解压的方法。首先对数据结构课程设计中的代码进行了分析,包括使用时间调用、常量定义和统计文件中各个字符时相关的结构体。然后讨论了哈夫曼树的实现原理和算法。最后介绍了文件压缩和解压的具体步骤,包括字符统计、构建哈夫曼树、生成编码表、编码和解码过程。通过实例演示了文件压缩和解压的效果。本文的内容对于理解哈夫曼树的实现原理和应用具有一定的参考价值。 ... [详细]
  • Android日历提醒软件开源项目分享及使用教程
    本文介绍了一款名为Android日历提醒软件的开源项目,作者分享了该项目的代码和使用教程,并提供了GitHub项目地址。文章详细介绍了该软件的主界面风格、日程信息的分类查看功能,以及添加日程提醒和查看详情的界面。同时,作者还提醒了读者在使用过程中可能遇到的Android6.0权限问题,并提供了解决方法。 ... [详细]
  • 本文介绍了如何在Azure应用服务实例上获取.NetCore 3.0+的支持。作者分享了自己在将代码升级为使用.NET Core 3.0时遇到的问题,并提供了解决方法。文章还介绍了在部署过程中使用Kudu构建的方法,并指出了可能出现的错误。此外,还介绍了开发者应用服务计划和免费产品应用服务计划在不同地区的运行情况。最后,文章指出了当前的.NET SDK不支持目标为.NET Core 3.0的问题,并提供了解决方案。 ... [详细]
  • CentOS7.8下编译muduo库找不到Boost库报错的解决方法
    本文介绍了在CentOS7.8下编译muduo库时出现找不到Boost库报错的问题,并提供了解决方法。文章详细介绍了从Github上下载muduo和muduo-tutorial源代码的步骤,并指导如何编译muduo库。最后,作者提供了陈硕老师的Github链接和muduo库的简介。 ... [详细]
  • 微软评估和规划(MAP)的工具包介绍及应用实验手册
    本文介绍了微软评估和规划(MAP)的工具包,该工具包是一个无代理工具,旨在简化和精简通过网络范围内的自动发现和评估IT基础设施在多个方案规划进程。工具包支持库存和使用用于SQL Server和Windows Server迁移评估,以及评估服务器的信息最广泛使用微软的技术。此外,工具包还提供了服务器虚拟化方案,以帮助识别未被充分利用的资源和硬件需要成功巩固服务器使用微软的Hyper - V技术规格。 ... [详细]
  • PG12新增的VACUUM命令的SKIP_LOCKED选项
    PG12版本的VACUUM命令新增了SKIP_LOCKED选项,该选项使得vacuum命令在遇到被lock住的table时可以跳过并被视为成功执行。之前的版本中,vacuum命令会一直处于等待状态。本文还提到了PostgreSQL 12.1版本的相关信息。 ... [详细]
  • 通过Anaconda安装tensorflow,并安装运行spyder编译器的完整教程
    本文提供了一个完整的教程,介绍了如何通过Anaconda安装tensorflow,并安装运行spyder编译器。文章详细介绍了安装Anaconda、创建tensorflow环境、安装GPU版本tensorflow、安装和运行Spyder编译器以及安装OpenCV等步骤。该教程适用于Windows 8操作系统,并提供了相关的网址供参考。通过本教程,读者可以轻松地安装和配置tensorflow环境,以及运行spyder编译器进行开发。 ... [详细]
  • PeopleSoft安装镜像版本及导入语言包的方法
    本文介绍了PeopleSoft安装镜像的两个版本,分别是VirtualBox虚拟机版本和NativeOS版本,并详细说明了导入语言包的方法。对于Windows版本,可以通过psdmt.exe登录进入,并使用datamover脚本导入语言包。对于Linux版本,同样可以使用命令行方式执行datamover脚本导入语言包。导入语言包后,可以实现多种语言的登录。参考文献提供了相关链接以供深入了解。 ... [详细]
author-avatar
不如藏拙_487
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有