Re: Hard Drive Issues
- From: David Kelly <dkelly@xxxxxxxxxx>
- Date: Tue, 7 Nov 2006 20:55:34 -0600
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@xxxxxxxxxx
========================================================================
Whom computers would destroy, they must first drive mad.
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- References:
- Re: Hard Drive Issues
- From: Richard McIntyre
- Re: Hard Drive Issues
- From: David Kelly
- Re: Hard Drive Issues
- Prev by Date: Re: need to get updates, packages, ports, etc. via Windows XP wireless
- Next by Date: php 5.2.0... go boom!
- Previous by thread: Re: Hard Drive Issues
- Next by thread: Re: Hard Drive Issues
- Index(es):
Relevant Pages
|