[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: I need some help
On Fri, Dec 03, 1999 at 10:27:22AM -0500, Andrew Falanga wrote:
> The first is a 400mb Maxtor and the second is a 200mb Maxtor.
400? Geeze, that's big! <g> (Bigger than the first I installed on
anyway...)
> Well, it's full. How do I move the contents from
> that drive to the other, and make everything work, without have to
> reinstall OpenBSD.
Answers (RTFM mix)
A1: man pax
A2: man dump
man restore
Answers (friendlier mix)
I did a lot of this when I was upgrading my hard disk. To keep track
of what you're doing, I recommend you do something like this:
mkdir /newusr
mount /dev/wd1a /usr
mount /dev/whatevah /newusr
pax with the -p e and -rw flags is one way to do what you want, see
the examples in the man pages; it'll be something like:
cd /usr; pax -p e -rw . /newusr
Since you're moving a complete file system, you can also use a
pipeline from dump | restore with appropriate parameters. This only
works right when you're moving a whole file system or partition around,
but will end up being a little faster. Again, there ought to be some
examples in the man pages, but it'll be similar to:
newfs /newusr
cd /newusr; dump -0 /usr | restore -r
--
Clifton Royston -- LavaNet Systems Architect -- cliftonr@lava.net
"An absolute monarch would be absolutely wise and good.
But no man is strong enough to have no interest.
Therefore the best king would be Pure Chance.
It is Pure Chance that rules the Universe;
therefore, and only therefore, life is good." - AC