From owner-freebsd-questions@FreeBSD.ORG Tue Aug 3 06:53:18 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6704316A4CE for ; Tue, 3 Aug 2004 06:53:18 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D44D43D2D for ; Tue, 3 Aug 2004 06:53:18 +0000 (GMT) (envelope-from finitesoup@gmail.com) Received: by mproxy.gmail.com with SMTP id 76so154592rnl for ; Mon, 02 Aug 2004 23:53:17 -0700 (PDT) Received: by 10.38.82.68 with SMTP id f68mr140368rnb; Mon, 02 Aug 2004 23:53:17 -0700 (PDT) Message-ID: <1e4909970408022353424276f@mail.gmail.com> Date: Tue, 3 Aug 2004 08:53:17 +0200 From: Matt To: questions@freebsd.org In-Reply-To: <20040803083942.C82126@gwdu60.gwdg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <1e490997040802231017bc78bf@mail.gmail.com> <20040803083942.C82126@gwdu60.gwdg.de> Subject: Re: using a disk "mirrored" with dd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2004 06:53:18 -0000 On Tue, 3 Aug 2004 08:43:24 +0200 (CEST), Konrad Heuer wrote: > > > > On Tue, 3 Aug 2004, Matt wrote: > > > I have a machine running 4.10-RELEASE-p2 with two identical hard disks > > -- ad0 and ad2. I would like to make a complete copy of the first disk > > to the second disk nightly for quick disaster recovery. > > > > I've dd'ed the disk as follows > > > > # dd if=/dev/ad0 of=/dev/ad2 > > > > and edited the disklabel of the second disk to change ad0s1 to ad2s1 as follows > > > > # disklabel -e -r ad2 > > > > However, I'm still unable to mount the root partion (or any other > > partition) of the second disk to tweak /etc/fstab etc. even though > > > > # mount /dev/ad2s1a /mnt > > mount: /dev/ad2s1a: Operation not permitted > > [snip] > > Thanks for any insight, and let me know if you need to see anything else. > > Did you do the dd-copy while the system was running multi-user from the > first disk? I'd expect larger problems then because the file systems > inconsistencies on the second disk may never be resolved. > > If you did it in single user mode, a 'fsck -y' for each file system on the > second disk before trying to mount may help. Yep, fsck -y did the trick. Thanks Konrad