Re: How to Move from 1 drive to another?
On Saturday 31 July 2004 07:30, Jonathan Wheelhouse wrote:
> Hi
>
> I am running Debian unstable on a 30GB drive (IBM Deskstar 75gxp)
> using ext3. I recently bought a 120GB drive (Western Digital WD1200).
>
> The family have 5 accounts.
>
> What I would like to do is to make the 120GB drive the main one (using
> ReiserFS) and use the 30GB drive for data.
>
> So, the plan is to install (via the sid installer) Debian on the 120GB
> drive. I know
> - to install the current packages I've got I can
> install them via dpkg --get-selections|--set-selections
> - use /etc/* file as configuration for new drive
>
Yes you seem to have the idea there.
Don't forget you may have some stuff in /usr/local that you have accumulated.
> My question is - what is the easiest|best way of copying|moving all
> the accounts and their data across? Do I simply have to recreate the
> users on the new drive and then copy across their home drives? Or can
> I just rely on everything being set up OK if I just copy across
> /etc/passwd and /etc/group.
The /etc/passwd /etc/group files contain information on numeric IDs which are
what is stored in the files.
I see no reason why copying over the home directories wouldn't work.
Worse come to worse and it doesn't work, you can always delete and recreate
the users, with userdel/deluser and useradd/adduser and then recursively set
the owner of their home directories with:
cd /home/
chown -R fred fred
chown -R jim jim
chown -R sally sally
Hope this helps,
Luke.
>
> Thanks in advance
> Jonathan
Reply to: