From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NxVsm-00012R-A8 for garchives@archives.gentoo.org; Fri, 02 Apr 2010 01:41:12 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5B965E079F; Fri, 2 Apr 2010 01:40:05 +0000 (UTC) Received: from mail.shawcable.com (shawmail.shawcable.com [64.59.128.220]) by pigeon.gentoo.org (Postfix) with ESMTP id 3C26AE079F for ; Fri, 2 Apr 2010 01:40:05 +0000 (UTC) Received: from bpd2mi2no-svcs.prod.shawcable.com ([10.0.184.121]) by bpd2mo3no-ssvc.prod.shawcable.com with ESMTP; 01 Apr 2010 19:40:04 -0600 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.0 c=1 a=D22SNUiMhGYA:10 a=VphdPIyG4kEA:10 a=8nJEP1OIZ-IA:10 a=dgx804EzjhD8CRYpIFkhZA==:17 a=pGLkceISAAAA:8 a=1-lBEYP_oG661RJQLxIA:9 a=hpVNAbKh5kWPjOlwK-FIgLyEsiAA:4 a=wPNLvfGTeEIA:10 a=MSl-tDqOz04A:10 X-IronPort-AV: E=Sophos;i="4.51,351,1267426800"; d="scan'208";a="279548720" Received: from unknown (HELO bpd2mi2no-cmts.prod.shawcable.com) ([192.168.183.121]) by bpd2mi2no-cmts.prod.shawcable.com with ESMTP; 01 Apr 2010 19:40:04 -0600 X-reinject: true Received: from unknown (HELO syscon4.localdomain) ([68.148.245.78]) by bpd2mi2no-dmz.prod.shawcable.com with ESMTP; 01 Apr 2010 19:40:04 -0600 Received: by syscon4.localdomain (Postfix, from userid 1000) id 6CC22C41D8; Thu, 1 Apr 2010 19:40:00 -0600 (MDT) Date: Thu, 1 Apr 2010 19:40:00 -0600 From: Joseph To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Duplicate identical Hard Disk Message-ID: <20100402014000.GD5637@syscon4.inet> References: <20100401224820.GA5637@syscon4.inet> 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-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Archives-Salt: 2bf5ad17-ab06-4e92-a7e5-71fc353558e4 X-Archives-Hash: aea4435c8dd6a43f823f460ebf386169 On 04/01/10 17:43, Mark Knecht wrote: >On Thu, Apr 1, 2010 at 4:02 PM, Paul Hartman > wrote: >> On Thu, Apr 1, 2010 at 5:48 PM, Joseph wrote: >>> I have two identical HD in the box and want to duplicate sda to sdb; >>> sdb is not even partitioned. >>> I think I could do: >>> dd if=/dev/sda of=/dev/sdb >>> but I need to boot from CD isn't it? >> >> Yes, basically, boot from USB or CD and use ddrescue to clone it, then >> edit your fstab and I think you should be good. >> >> RAID1 would help if a drive physically dies, but if you had any >> filesystem corruption or anything you'd just have an identically >> corrupt copy on the second disk. > >A big part of my struggles over the last few days has been with mdadm >& RAID1. I'm learning that we don't want to send someone down that >path unless he has the right sort of disks. I'm having to deal with >returns and reordering due to this. > >People should be aware of what is really required to do RAID before >they get started so they don't duplicate my trials. I wasn't and I'm >paying for it. (Almost literally if I don't get the drives in the >mail!) ;-) > >Cheers, >Mark So what you are folks saying is to stay away from RAID-1, beside as Paul mention if I get any corruption and/or configuration (due to ebuild) with RAID I'll be screwed anyhow. So my best option is bootable CD and: dd if=/dev/sda of=/dev/sdb But I'm kind of confused as to how to edit the "sdb" second drive. I know I'll have to edit at lest: grub.conf and fstab But how? 1.) Both disk are bootable, (have a boot sector) if I disconnect first one sda, I think the second one will be recognize automatically as "sda" isn't it? 2.) If configure second drive after copying as "sdb" will it still boot if fist disk is disconnected? -- Joseph