Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Nov 2006 20:55:34 -0600
From:      David Kelly <dkelly@HiWAAY.net>
To:        FreeBSD-Questions@freebsd.org
Cc:        Richard McIntyre <rem@tco2.thecompanyonline.com>
Subject:   Re: Hard Drive Issues
Message-ID:  <E3C449BE-89D4-47FE-8F41-94C53842FB7D@HiWAAY.net>
In-Reply-To: <20061107234435.GB74330@Grumpy.DynDNS.org>
References:  <003a01c6ee0a$841e74f0$6908a8c0@pcmoperations> <dab71e150610121054s2c4fd6bdh88372c1143e29cd7@mail.gmail.com> <20061012182206.GA81008@Grumpy.DynDNS.org> <452FE303.90002@tco2.thecompanyonline.com> <452FEAD6.7030800@tomjudge.com> <4550FF54.80908@tco2.thecompanyonline.com> <20061107234435.GB74330@Grumpy.DynDNS.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Thinking about this a bit more. Don't mount all your new partitions  
before starting dump. Only mount the new root at /mnt. I think you  
*can* mount them all in advance but there are two sets of mode bits  
which apply to a mounted filesystem, those of the filesystem, and  
those of its mount point. I think if you let restore create the mount  
points you will most accurately clone the permissions. /tmp is  
particularly different.

On Nov 7, 2006, at 5:44 PM, David Kelly wrote:

> Use dump to read the old drive one partition at a time piped thru  
> stdout
> into restore. Double check the following as I'm typing off the top  
> of my
> head:
>
> # dump -0af - /    | ( cd /mnt; restore -rf - )

In copying / you should now have the mount points for other filesystems.

# mount /dev/<newdisk_etc> /mnt/etc

> # dump -0af - /etc | ( cd /mnt/etc; restore -rf - )

# mount /dev/<newdisk_var> /mnt/var

> # dump -0af - /var | ( cd /mnt/var; restore -rf - )

...

--
David Kelly N4HHE, dkelly@HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E3C449BE-89D4-47FE-8F41-94C53842FB7D>