How to copy entire operation system to another place without `dd`
2016-11-30 09:50
127 查看
How to copy entire operation system to another place without command
For example, you bought a new hard disk, but there were no OS. You wanted to copy all the file to the new disk, even the entire OS.
How to do that?
To improve the copy speed, add -W (–whole-file), to avoid calculating deltas/diffs of the files. This is the default when both the source and destination are specified as local paths, since the real benefit of rsync’s delta-transfer algorithm is reducing network usage.
Also consider adding –numeric-ids to avoid mapping uid/gid values by user/group name.
Download boot-repair or boot-repair-disk to fix your new os.
dd.
For example, you bought a new hard disk, but there were no OS. You wanted to copy all the file to the new disk, even the entire OS.
How to do that?
rsync
This command can be used to synchronize a folder, and also resume copying when it’s aborted half way. The command to copy one disk is:rsync -avxHAX --progress / /new-disk/ The options are: -a : all files, with permissions, etc.. -v : verbose, mention files -x : stay on one file system -H : preserve hard links (not included with -a) -A : preserve ACLs/permissions (not included with -a) -X : preserve extended attributes (not included with -a)
To improve the copy speed, add -W (–whole-file), to avoid calculating deltas/diffs of the files. This is the default when both the source and destination are specified as local paths, since the real benefit of rsync’s delta-transfer algorithm is reducing network usage.
Also consider adding –numeric-ids to avoid mapping uid/gid values by user/group name.
Step1. Copy File
Just use this sample command to copy entire file to another place:$ rsync -avxHAXW --progress --numeric-ids /old-disk/ /new-disk/
Step2. Boot Repair
Then to boot your ‘new’ operation system, you also need repair your grub.Download boot-repair or boot-repair-disk to fix your new os.
What’s More
You can use this command to synchronize any file, even to copy a virtual disk to a physical disk! Nothing different between your virtual machine and your physical machine.相关文章推荐
- How To Copy a System Image from One Device to Another
- [HTML] how to redirect to another page automactilly without js
- How to Copy Archivelog Files From ASM to Filesystem and vice versa
- How to Move or Copy a Tablespace to Another Database【每日一译】--2012-11-03
- How to solve Exception raised during rendering: java.lang.System.arraycopy([CI[CII)V in Android
- How to Copy an Assembly From the GAC to the File System
- How to solve Exception raised during rendering: java.lang.System.arraycopy([CI[CII)V in Android
- How to copy a datafile from ASM to a file system not using RMAN (Doc ID 428893.1)
- vi tips -- how to copy to / paste from system clipboard
- How to Copy an Entire Directory in VB6?
- How to save the currently edited row without moving to another row
- How to copy files remotely from another machine
- How to copy values of an array into another array
- How do you copy the contents of an array to a std::vector in C++ without looping? (From stack over flow)
- How to update Sun System Firmware without Solaris, using ILOM or ALOM CLI.
- How to move a root volume from one storage system to another.
- How to copy a datafile from ASM to a file system not using RMAN
- How to solve Exception raised during rendering: java.lang.System.arraycopy([CI[CII)V in Android
- How to monitor Web server performance by using counter logs in System Monitor in IIS
- how to SSH Login Without Password