On 02/20/2016 07:19 AM, John Thornton wrote:
> Hi Philipp,
>
> What I'm trying to do is plug in a hard drive to a working LinuxCNC
> computer and make a clone of that computer to use in another PC. So it
> looks like dd is the way to go for me. So dd if=/dev/sda of=/dev/sdb
> bs=1M looks like the ticket for me. Is there a fast way to tell which
> harddrive has no data on it? Do I need to format the new drive or will
> dd copy that info as well?
>
>
dd is the simplest way to do it.  tar will give you a clean 
file system on the copy, but you will have to run grub-setup 
to create the boot block.  However, if it has the common 3 
partitions (/boot, / and swap) then you can create 
partitions as you wish, tar the first two partitions, and 
then use dd to copy just the MBR.  Finally there is a 
command to initialize the swap partition, you can wait until 
the copied system is up to do that.  You can find the dd 
commands to copy the MBR with a Google search.

Jon

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to