Re: [gentoo-user] duplicate HD drives

2014-09-13 Thread J. Roeleveld
On Friday, September 12, 2014 09:17:41 PM Joseph wrote: On 09/12/14 23:52, Neil Bothwick wrote: On Fri, 12 Sep 2014 15:53:19 -0600, Joseph wrote: I have two identical HD in a box and want to duplicate sda to sdb I want sdb to be bootable just in case something happens to sda so I can swap

Re: [gentoo-user] duplicate HD drives

2014-09-13 Thread Kerin Millar
On 13/09/2014 04:17, Joseph wrote: On 09/12/14 23:52, Neil Bothwick wrote: On Fri, 12 Sep 2014 15:53:19 -0600, Joseph wrote: I have two identical HD in a box and want to duplicate sda to sdb I want sdb to be bootable just in case something happens to sda so I can swap the drives and boot. Do

Re: [gentoo-user] duplicate HD drives

2014-09-13 Thread Joseph
On 09/13/14 08:07, Kerin Millar wrote: On 13/09/2014 04:17, Joseph wrote: On 09/12/14 23:52, Neil Bothwick wrote: On Fri, 12 Sep 2014 15:53:19 -0600, Joseph wrote: I have two identical HD in a box and want to duplicate sda to sdb I want sdb to be bootable just in case something happens to

Re: [gentoo-user] duplicate HD drives

2014-09-13 Thread Alan McKinnon
On 13/09/2014 18:31, Joseph wrote: On 09/13/14 08:07, Kerin Millar wrote: On 13/09/2014 04:17, Joseph wrote: On 09/12/14 23:52, Neil Bothwick wrote: On Fri, 12 Sep 2014 15:53:19 -0600, Joseph wrote: I have two identical HD in a box and want to duplicate sda to sdb I want sdb to be bootable

Re: [gentoo-user] duplicate HD drives

2014-09-13 Thread Neil Bothwick
On Fri, 12 Sep 2014 23:52:57 +0100, Neil Bothwick wrote: If you remove the cunt argument as already mentioned, this will copy the whole drive, but it will be incredibly slow unless you add bs=4k. It also only copies it once, as soon as you start using sda, sdb will be out of date. Set up a

Re: [gentoo-user] duplicate HD drives

2014-09-13 Thread Kerin Millar
On 13/09/2014 17:45, Alan McKinnon wrote: snip If I do: fdisk /dev/sda t 1 fd Won't it destroy data on /dev/sda? No. Although mdadm will. A simple solution is to create the array with only the second disk as the initial member and designate the other device as literally missing. The

Re: [gentoo-user] duplicate HD drives

2014-09-13 Thread Alan McKinnon
On 13/09/2014 19:38, Neil Bothwick wrote: On Fri, 12 Sep 2014 23:52:57 +0100, Neil Bothwick wrote: If you remove the cunt argument as already mentioned, this will copy the whole drive, but it will be incredibly slow unless you add bs=4k. It also only copies it once, as soon as you start

Re: [gentoo-user] duplicate HD drives

2014-09-13 Thread Neil Bothwick
On 13 September 2014 19:56:06 BST, Alan McKinnon alan.mckin...@gmail.com wrote: On 13/09/2014 19:38, Neil Bothwick wrote: On Fri, 12 Sep 2014 23:52:57 +0100, Neil Bothwick wrote: If you remove the cunt argument as already mentioned, this will copy the whole drive, but it will be

Re: [gentoo-user] duplicate HD drives

2014-09-13 Thread Neil Bothwick
On 13 September 2014 19:56:06 BST, Alan McKinnon alan.mckin...@gmail.com wrote: On 13/09/2014 19:38, Neil Bothwick wrote: On Fri, 12 Sep 2014 23:52:57 +0100, Neil Bothwick wrote: If you remove the cunt argument as already mentioned, this will copy the whole drive, but it will be

[gentoo-user] duplicate HD drives

2014-09-12 Thread Joseph
I have two identical HD in a box and want to duplicate sda to sdb I want sdb to be bootable just in case something happens to sda so I can swap the drives and boot. Do I boot from USB and run: dd if=/dev/sda of=/dev/sdb bs=512 count=1 fdisk -l /dev/sda Disk /dev/sda: 596.2 GiB, 640135028736

Re: [gentoo-user] duplicate HD drives

2014-09-12 Thread Ivan Viso Altamirano
You are only cloning the first 512 bytes , remove the count parameter . It is usefull if you need to copy/restore the mbr . El 12/09/2014 23:53, Joseph syscon...@gmail.com escribió: I have two identical HD in a box and want to duplicate sda to sdb I want sdb to be bootable just in case

Re: [gentoo-user] duplicate HD drives

2014-09-12 Thread Ivan Viso Altamirano
El 13/09/2014 00:18, Ivan Viso Altamirano ivanviso...@gmail.com escribió: You are only cloning the first 512 bytes , remove the count parameter . It is usefull if you need to copy/restore the mbr . El 12/09/2014 23:53, Joseph syscon...@gmail.com escribió: I have two identical HD in a box and

Re: [gentoo-user] duplicate HD drives

2014-09-12 Thread Neil Bothwick
On Fri, 12 Sep 2014 15:53:19 -0600, Joseph wrote: I have two identical HD in a box and want to duplicate sda to sdb I want sdb to be bootable just in case something happens to sda so I can swap the drives and boot. Do I boot from USB and run: dd if=/dev/sda of=/dev/sdb bs=512 count=1 If

Re: [gentoo-user] duplicate HD drives

2014-09-12 Thread Alexander Puchmayr
On Freitag, 12. September 2014, 15:53:19 Joseph wrote: I have two identical HD in a box and want to duplicate sda to sdb OK, do you want to copy just the boot sector or clone the whole disk with all data on it? I want sdb to be bootable just in case something happens to sda so I can swap the

Re: [gentoo-user] duplicate HD drives

2014-09-12 Thread Joseph
On 09/12/14 23:52, Neil Bothwick wrote: On Fri, 12 Sep 2014 15:53:19 -0600, Joseph wrote: I have two identical HD in a box and want to duplicate sda to sdb I want sdb to be bootable just in case something happens to sda so I can swap the drives and boot. Do I boot from USB and run: dd