<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[[实践OK]再生龙实现整盘拷贝包括MBR size is 440 bytes@clone the boot loader(exectable code area,the first 446 bytes) to:sdc，Linux下还有其它备份神器--Partimage分区数据备份，类Ghost，可惜不支持Ext4，而有一个台湾人写的再生龙支持Ext4格式的硬盘备份值得实践。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Unix/LinuxC技术]]></category>
<pubDate>Wed, 30 Jan 2013 05:36:37 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	Linux下的备份神器--Partimage分区数据备份，类Ghost，可惜不支持Ext4，而有一个台湾人写的再生龙支持Ext4格式的硬盘备份值得实践:<br/>http://blog.51cto.com/storysky/291587<br/>Download:http://clonezilla.nchc.org.tw/clonezilla-live/download/<br/><br/>实践发现：选那个默认的会出现错误，重新选那个KDE的就没有问题。<br/>但是进去后发现还能选简体中文呢，我的目的就是想克隆一整块硬盘，<br/>作为备份路由的CentOS7.4和爱快@KVM虚拟，只有一块盘/etc/sda，<br/>后来把那个外接的硬盘给上电就识别为/etc/sdc ,/etc/sdb是我那个USB做的UltraISO，<br/>用U盘装上再生龙的LiveCD开机启动的，http://jackxiang.com/post/6986/ ，<br/>台湾人做事情就是仔细会很耐心的提示你生怕你搞错了，/etc/sda是源，/etc/sdc是目标：<br/>1）询问进行拷贝整个盘到别一块盘是否要检查下源盘并修复，这个不用按默认就可以了。<br/>2）拷贝完后是重启还是关机，这个我选关机。（因为我得把那U盘和目标盘拔下来再开机。）<br/>3）/etc/sdc没有标签，两次提醒会OVERWRITE，于是就让它OverWrite得了。<br/>4）Do you want to clone the boot loader(exectable code area,the first 446 bytes) to:sdc? (这个太关键了，我就是想整盘拷贝，这张盘坏了直接上到这台机器硬盘位换下那块坏盘的备份盘，当然要拷贝。）<br/><br/>再生龙也是用的dd,经过询问，给你把参数加进去了，如下：<br/>I remembered reading one question how would you back up the MBR of a disk.<br/><br/>Two of the choices are<br/><br/>dd if=/dev/sda of=/dev/sdb bs=512 count=1<br/>dd if=/dev/sda of=/dev/sdb bs=440 count=1<br/>and the correct answer is<br/><br/>dd if=/dev/sda of=/dev/sdb bs=440 count=1<br/>I am confused. Is the MBR size 440B or 512B ?<br/><br/>dd是<br/><br/>down vote<br/>accepted<br/>The MBR IS 512 bytes. So the first example is how you would back it up. The partition table is at the end, in the area after 440 bytes in - so, if you wanted to back it up WITHOUT the partition table, then you could use the second example (why you&#039;d want that, I don&#039;t know).<br/>From:https://unix.stackexchange.com/questions/254657/mbr-size-is-440-bytes-or-512-bytes<br/>_____________________________________________________<br/><br/><br/><br/>里面说道，这个是以实际文件来备份的，如果一个盘符有20G，而文件只有10M，那就备份10M，有点像Ghost。<br/>可以通过它备份到一个自己创建的盘符里。<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;你是否一直在寻找在Linux下可以替代dd命令，类似Ghost的工具了，恭喜你不需要再寻找了，因为它就在你的面前--Partimage。<br/>我使用的是Ubuntu12.04，想要安装Partimage第一步：<br/>在终端输入，<br/>sudo aptitude update<br/>sudo aptitude install partimage<br/>现在开始使用：<br/>在终端输入，sudo partimage ，现在使用partimage的备份功能<br/>用Tab移动选项，选择你需要备份的区域，在“Image file to crate/use”中填写你将备份的文件存放到哪个目录，在“Action to be done”选项中选择&quot;Save partition into a new image file&quot;,这是说保存分区到新的备份文件，其他选项我就不介绍了，我的洋文不好，介绍起来心虚。用Tab键将光标移动到“&lt;Next&nbsp;&nbsp;(F5)&gt;”处进行下一步操作，当然你可以直接按“F5”，如图<br/>开始备份时partimage会提示是否进行压缩备份，有点类似Ghost备份时提示你“不压缩，压缩，高级压缩”的选项，我在这里选择的是第二个“压缩”，其余的选项是默认的，等待你自己去发掘：<br/>同样用Tab选中“&lt;Continue&nbsp;&nbsp;(F5)&gt;”或直接按“F5”进行下一步操作。进行备份前partimage会提示需要你填写备注，填写备注后按“OK”partimage会提示你备份的分区的一些信息，比如分区大小，已使用空间，剩余空间等等：<br/>上图就是partimage提示你填写一些备注，当然你也可以不填写<br/>partimage提示你分区的信息。选中“OK”后就开始备份了：<br/>备份中<br/>备份完后直接按“Enter”（回车键）退出partimage，到此我们就备份了我想要备份的分区，现在我想还原怎么样操作了？<br/>现在使用partimage进行还原的操作：<br/>在终端输入，sudo partimage<br/>如图，我们还是选择第三个分区，在在“Image file to crate/use”中填写你的备份文件，当然partimage会自动在你备份的文件名中加上类似“.000”的后缀，<br/>在“Action to be done”选项中选择“Restore partion from an image file”从一个备份文件中还原，然后按“F5”进行下步操作。<br/> 我使用的默认的值进行操作，直接按“F5”，在还原前会提示你备份时填写的备注信息，如图<br/>按“Enter”进行下一步操作，partimage会提示你分区的信息，如图：<br/> 选中“OK”进行还原：<br/>还原成功后，直接按“ok”就可以退出软件。<br/>参考：http://www.linuxcast.net/public/cast_show/32&nbsp;&nbsp; //centos需要修改yum的源<br/><br/><br/><br/>来自：http://www.ilovexinji.com/xinji-home/106-linux-ghost-partimage<br/>视频：http://www.linuxcast.net/public/cast_show/32
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [实践OK]再生龙实现整盘拷贝包括MBR size is 440 bytes@clone the boot loader(exectable code area,the first 446 bytes) to:sdc，Linux下还有其它备份神器--Partimage分区数据备份，类Ghost，可惜不支持Ext4，而有一个台湾人写的再生龙支持Ext4格式的硬盘备份值得实践。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>