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.
阅读(1191) | 评论(0) | 转发(0) |