Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jan 1996 17:12:15 -0500 (EST)
From:      Robert Watson <robert@fledge.watson.org>
To:        questions@freebsd.org
Subject:   Moving boot from wd0 to wd3 for disk swap -- replicate tree?
Message-ID:  <Pine.BSF.3.91.960114170537.680A-100000@fledge.watson.org>

next in thread | raw e-mail | index | archive | help

My current wd0 (a 1.2 gig Western Digital) is failing, and as such I am 
shipping it back to the vendor (Gateway 2000) -- I have purchased a 1.6 
gig drive to replace it in the meantime, and it is currently mounted on 
wd3.. I have a 540 meg Maxtor as wd1.  My problem is this: I want to move 
wd3 to be wd0, and to boot from it from now on (when the existing 1.2 gig 
drive returns, it'll get stuck in as wd3 and used for data) -- this means 
creating a bootable freebsd partition/tree that duplicates my existing 
1.2 gig config.  My 1.2 gig contained:

512 meg Win 95 partition (hardly ever used, mounted read only most of the 
time)
48 meg root partition (kernels, etc; SymLinks to /var, /tmp on /usr part)
325 meg /usr partition (contains aftermentioned tmp and var trees)
96 meg swap partition

My 1.6 gig is now configured to contain:

64 meg root partition (containing tmp, var)
400 meg /usr partition
900 meg /usr/homea partition
196 meg swap

My 540 has always contained (and will continue to contain) the /usr/home 
partition.  /usr/local may end up symlinked on /usr/homea

I need to copy over the existing root partition (and usr partition) to 
the new locations -- cp -R screws up hard links, is there any better way 
to do it?  I was going to just install the binary distribution on the new 
hard disk (and did so, only I found that I had installed a lot of stuff 
since I did the original installation.)  The system is a 2.1.0 dist 
upgraded from 2.0.5, and with varies pieces such as web servers, X 
servers, etc.  Will tar do what I need -- such as preserve the hard links 
in /sbin and /stand?

Thanks for any help rendered..

Robert Watson



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960114170537.680A-100000>