These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for How to mount secondary HDD as the default home directory on the new forum.
Hello,
Newly created server with Cent OS 6 disk is limited to 30GB, i have added a 1 TB hdd to the server. Can someone help me out to add this 1 TB hdd as the default home directory. Like a shortcut where all the files are shown in the OS drive but actually stored in the secondary disk (to retain suexec features).
Thanks.
Howdy,
The way I would usually handle that is:
Mount the new drive on something like /mnt/newhome
Stop services such as Apache and Postfix
Use rsync to copy all the data from /home to /mnt/newhome (using something like "rsync -auv /home/ /mnt/newhome")
Move /home to /oldhome.
Unmount /mnt/newhome, and then mount it on /home.
-Eric
Works perfect. :)
Thank you so much.