Koozali.org: home of the SME Server

Data Drive Question

Bob

Data Drive Question
« on: April 22, 2003, 10:29:28 AM »
I have installed v5.6 on a new machine.
On my old machine v5.5 I had a second drive mounted at /home/e-smith/files
I want to take this drive out and mount at the same point on the new one.
My question is do I need to create the ibays & the user accounts on the new install before mounting the second drive?
Or what is the best order to do it?

Thanks,

Bob.

Gene Cooper

Re: Data Drive Question
« Reply #1 on: April 23, 2003, 12:33:31 AM »
This is a very general guideline:

You'll want to back up the old disk using a method that preserves all attributes (tar -a?  I don't remember) then shut down, swap disks and reboot in single user (maintenance) mode.  I think you hit control-x at the boot menu then type 'linux single' at the prompt.

Then restore the /home/e-smith/files directory after verifying you have the new disk patitioned, formatted and mounted.

G

Bob

Re: Data Drive Question
« Reply #2 on: April 23, 2003, 04:47:08 AM »
Gene,

Thanks but I think you've misunderstood me.
The second drive has over 30gb of data on it and is not going to be formatted nor backed up, just physically moved and mounted at the the same point it was in the the old system.
What I'm asking is:
On the fresh install do I recreate the user accounts and the ibays before I mount the drive?
I understand that I will probably need to change the permissions on the directories on this second drive.

Thanks.

Gene Cooper

Re: Data Drive Question
« Reply #3 on: April 23, 2003, 09:52:12 PM »
You'll probably want to create all of the users and ibays first, them mount the old drive, then rework all of the Owner, Group and permissions.  

Note: even with the same user, group and i-bay names, the NUMERIC identities will most likely be different (unless you are VERY careful about how you recreate things).

You can cat the /etc/group and /etc/passwd files to see what I'm talking about.

G

Steve

Re: Data Drive Question
« Reply #4 on: April 24, 2003, 12:33:44 AM »
...Could you copy the /etc/group and /etc/passwd files to the new server?

Bob

Re: Data Drive Question
« Reply #5 on: April 25, 2003, 11:03:02 AM »
OK all done.
The ibays were pretty much fine but all the accounts had completely different permissions.
Every account was mixed with different owners and groups

Basically you need to  chown -R & chgrp -R on all the user directories located in
/home/e-smith/files/samba/profiles & /home/e-smith/files/users.

After that you need to remove and rejoin the PC's to the domain.

There are a few tricks to it but its working fine.

Thanks for you responses.

Bob.