Koozali.org: home of the SME Server

second hdd for ibay + home dirs

sabu

second hdd for ibay + home dirs
« on: August 26, 2002, 07:08:28 AM »
i've mounted my second hdd to an ibay
and i've made a 'homedirs' dir which has a dir for everyone in it all with the right permissions

what i need to do now is simlink from /home/e-smith/files/users/user-name/home to the ibay, /home/e-smith/files/ibays/data/homedirs/user-name/
and make it do it on boot aswell (with multiple users)

can anyone help me with this?
or is there a better/easier way to do it?

sabu

Kees Blokland

Re: second hdd for ibay + home dirs
« Reply #1 on: August 26, 2002, 12:57:46 PM »
I would do it like this. (Disconnect your second drive, or umount it ) Make a dir:
 
/home/e-smith/files/ibays/data/homedirs on your first drive.

(connect/mount your second drive)
mount your second drive as:   /dev/hdx /home/e-smith/files/ibays/data/homedirs

(and put that in your /etc/fstab after it works!, look at the other entries in fstab to see what the proper format is)

If you already have stuff on the second drive, then that will now be visible in
/home/e-smith/files/ibays/data/homedirs/home/e-smith/files/ibays/data/homedirs/user-name/

(I would simlpe remove everything form the second drive..)
Now you can make directories /user_name/  and they will all be on the second drive.

If you want to copy existing data, ( man cp will tell you all the secret options)
I would use 'mc' or by hand 'cp -pr ...'  (preserve file attributes,recursive)

This makes a much cleaner installation, and the beaty is, that you can throw away your primary disk, build a brand new system, stick this drive back, and all your data is there!.

good luck.

Kees Blokland


sabu

Re: second hdd for ibay + home dirs
« Reply #3 on: August 26, 2002, 05:48:18 PM »
yep, i did it a bit like you said

formatted the second hdd to ext2 with one 40gb partition
then moved /home/e-smith/files/ to /home/e-smith/backup
then mounted the second hdd to /home/e-smith/files and then moved /home/e-smith/backup back, and all is well :)

thanks

sabu

Jáder Marasca

Re: second hdd for ibay + home dirs
« Reply #4 on: October 07, 2002, 05:54:45 PM »
Did you try to create a new user?
The new user generated a pseudonym?

I was trying to use SME 5.6Beta and a second HDD and do not generate pseudonyms to users added later than 2nd HDD insertion!

Could you please verify that just creating a new user like jader (Jader Marasca) ?

Thanks!

Jáder