From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 38E1813838B for ; Sat, 13 Sep 2014 06:53:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 79C9BE0845; Sat, 13 Sep 2014 06:53:39 +0000 (UTC) Received: from smtpq1.tb.mail.iss.as9143.net (smtpq1.tb.mail.iss.as9143.net [212.54.42.164]) by pigeon.gentoo.org (Postfix) with ESMTP id 56257E0814 for ; Sat, 13 Sep 2014 06:53:38 +0000 (UTC) Received: from [212.54.42.136] (helo=smtp5.tb.mail.iss.as9143.net) by smtpq1.tb.mail.iss.as9143.net with esmtp (Exim 4.76) (envelope-from ) id 1XShDF-00056w-8L for gentoo-user@lists.gentoo.org; Sat, 13 Sep 2014 08:53:37 +0200 Received: from 53579160.cm-6-8c.dynamic.ziggo.nl ([83.87.145.96] helo=data.antarean.org) by smtp5.tb.mail.iss.as9143.net with esmtp (Exim 4.76) (envelope-from ) id 1XShDE-0003ig-Rk for gentoo-user@lists.gentoo.org; Sat, 13 Sep 2014 08:53:37 +0200 Received: from andromeda.localnet (unknown [10.20.13.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by data.antarean.org (Postfix) with ESMTPSA id D57084B for ; Sat, 13 Sep 2014 08:53:19 +0200 (CEST) From: "J. Roeleveld" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] duplicate HD drives Date: Sat, 13 Sep 2014 08:53:49 +0200 Message-ID: <1908508.PEO1Yl2WpA@andromeda> Organization: Antarean User-Agent: KMail/4.12.5 (Linux/3.14.14-gentoo; KDE/4.12.5; x86_64; ; ) In-Reply-To: <20140913031741.GB13628@syscon7> References: <20140912215319.GA13628@syscon7> <20140912235257.1b7d0e18@digimed.co.uk> <20140913031741.GB13628@syscon7> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Ziggo-spambar: --- X-Ziggo-spamscore: -3.5 X-Ziggo-spamreport: ALL_TRUSTED=-1,BAYES_00=-1.9,PROLO_TRUST_RDNS=-3,RDNS_DYNAMIC=0.982,SARE_ADULT2=1.42 X-Ziggo-Spam-Status: No X-Spam-Status: No X-Spam-Flag: No X-Archives-Salt: c184110a-4195-4a43-b8e7-3d4dbc55ff25 X-Archives-Hash: 34a480bbf65dd1cac46fa2bc9cf9b076 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 the drives and boot. > >> > >> Do I boot from USB and run: > >> dd if=/dev/sda of=/dev/sdb bs=512 count=1 > > > >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 RAID-1 array with the two drives, then install GRUB to the > >boot sector of each drive, using grub2-install and you will always be > >able to boot in the event of a failure of either drive. > > I'll be interested in setting up RAID-1. Is it hard? > I've never done it and I know there is plenty of information on line about > RAID-1 > > I'm not going to grub2 anytime soon. This machine has BIOS and the HD has > MBR partition. With recent problem I had with my other older box (that has > BIOS) and grub2 I'm not going to play with it. > > Is it hard to set it UP RAID-1 Grub2 can work with older style BIOS and MBR partitioning. I believe the issues you were facing was caused by the partitioning you were trying. But even with legacy grub, the steps are, mostly, the same. Check the Gentoo documentation for RAID+LVM installs and if you only want to use RAID, ignore the LVM steps. -- Joost