LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   mapping home directories to different mount point (https://www.linuxquestions.org/questions/linux-general-1/mapping-home-directories-to-different-mount-point-112794/)

jjohnston62 11-05-2003 03:47 PM

mapping home directories to different mount point
 
Have a server which is primarily going to be samba.

Server is up and running, samba is running okay as PDC (no Window server authentication, etc.).

base OS is installed on primary drive, but I want all data stored on a RAID set. I've added the RAID set, and configured it under mount point /data. mounts fine on boot, etc.

However, what is the proper method of linking or moving data directories under that mount point? (user admin isn't my greatest strength in any unix).

Is setting home directories to /data/home/user the proper method? Creating a directory link? (etc. etc. etc.)

I'm not so worried about logging, etc, but all of the samba share points will be under /data. Looking for "best practice" info if nothing else.

Thanks....

Jon J.

david_ross 11-05-2003 03:50 PM

Just copy all your home data to the new partition then unmount /home and mount the new partition as /home.

I'll move this to Linux->General since it isn't Network related.

jjohnston62 11-05-2003 04:09 PM

Home is not a separate partition. Also /data will contain separate directories, and I'd hoped to contain it all on one partition (I don't want to manage separate partitions).

Does that make sense, or am I misunderstanding how the unix file system and partitioning structures work? I do struggle with completely understanding the file system on unix (linux) systems.

Is there a good reference on this somewhere? (Not what the directories are for, or mean, but the actual file system workings).

Jon

david_ross 11-05-2003 04:16 PM

In that case - yes I would use a symlink to /home - eg:
ln -s /data/home /home

This will keep paths etc happy.

jjohnston62 11-05-2003 04:34 PM

Thank you.

So - bottom line is mount pounts are associated with partitions and devices.

Directories and files can be linked, whether symbolic (pointers) or hard links.

Jon J.

david_ross 11-05-2003 04:42 PM

yeah.

Mount points are the directories where partitions are mounted.


All times are GMT -5. The time now is 06:33 AM.