On Mar 04 07:22:55, [email protected] wrote:
> I decided to upgrade the internal drive, so I hooked up the new on on
> the CD's usual SATA channel and installed, having adjust the disklabel
> more to suit me (the auto partition of /usr left it really tight on
> space, and home was not big enough).
> 
> First method: mount all the slices in /tree and run a series of cp -R
> as root.

You said you installed on the new disk already.
Boot form it, and treat your old disk as backup.

What I usually do in a situation like this is
cd /home ; dump /old/home | restore rf -

> Files seemed to get there but something was not right with
> permissions when I tried booting the new disk

dump | restore beats almost anything else (when on the same machine).
Boot from the freshly installed new disk and copy from the old.
not the other way round.

> Nevertheless, I could log in as myself.

Again, boot your new system as soon as it is bootable,
and copy user data from the old disk; that includes
vipw(8) to retain the old accounts, the old /etc/*,
the old crontabs, the old /root.

> But running my usual packages at login didn't work: file
> not found.

Install them from scratch, and only copy over their configs fom /etc.
Hint: ls /old/var/db/pkg (only those you actually want, don't make
the package system think that you explicitly want e.g. libdvdcss-1.3.0
if it is just a dependency of what you actually want).

> Should I have not tried to save that much time? I thought tar | tar
> would get everything. Do I need to install the packages on the new
> disk?

It's the easiest way, and better that cp /usr/local
Also, you are running a different version of the OS now.

        Jan

Reply via email to