Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2917589
  • 博文数量: 454
  • 博客积分: 4860
  • 博客等级: 上校
  • 技术积分: 6375
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-13 10:08
个人简介

10年工作经验,专研网站运维。

文章分类

全部博文(454)

文章存档

2017年(11)

2016年(13)

2015年(47)

2014年(36)

2013年(147)

2012年(64)

2011年(136)

分类: 系统运维

2016-10-07 16:17:46

Overview
    Put two hard drive in computer. One is source disk, another one is destination disk.
Method
1. Clone the hard drive into a file, save as /clonefile.img
2. Recover from clone file to hard drive.
Command
Install source hard drive and system hard drive.
fisk -l
(Check how many hard drive is there in computer, and recognize that which one is source drive, which one is destination drive.)
dd if=/dev/sdb of=/ubuntu.img
save file to local computer.
shutdown and change the destination hard drive.
start server
dd if=/ubuntu.img of=/dev/sdb
shutdown -h now
take off the hard drive.
阅读(1130) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~