Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Aug 2004 08:53:17 +0200
From:      Matt <finitesoup@gmail.com>
To:        questions@freebsd.org
Subject:   Re: using a disk "mirrored" with dd
Message-ID:  <1e4909970408022353424276f@mail.gmail.com>
In-Reply-To: <20040803083942.C82126@gwdu60.gwdg.de>
References:  <1e490997040802231017bc78bf@mail.gmail.com> <20040803083942.C82126@gwdu60.gwdg.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 3 Aug 2004 08:43:24 +0200 (CEST), Konrad Heuer <kheuer2@gwdg.de> 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, <slaps self> fsck -y did the trick.

Thanks Konrad



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1e4909970408022353424276f>