Home Directory on Second Hard Drive


Well-Known Member
Jun 9, 2008

We're using a server configuration with two separate drives, and we aren't going RAID. So we need to make sure that cPanel uses both drives for creating accounts.

By default, the second drive is /disk2.

I've read the instructions for having cPanel automatically add accounts to the drive (or partition) with the most free space, however I'm not clear on some points:

  1. If I leave the default settings, does the drive have to be mounted with "home" in the name? Or can we leave it "disk2" and simply create a directory with "home" in the name?
  2. If we can just create a directory, does it have to have a unique name (e.g., "home2")? Or can it be "home" (even though there is a "home" directory on the first disk)?
  3. Does cPanel put all user data in the user's home directory? Or will it still put users' databases on the main drive?




Well-Known Member
Aug 19, 2010
Gods Own Country
cPanel Access Level
Root Administrator

To get the answers for your questions, you just have to look at the "Basic cPanel & WHM Setup" in your WHM. Read the below portions over there..

Enter the location where you wish for new users’ home directories to be created. By default all directories matching the "Home Directory Prefix" are checked for available disk space and the directory with the most free space will be used.

Example: /home

/home default

Additional home directories matching the following value will also be used for new home directory creations. (Leaving this value blank disables the feature.) This option only takes one value.

Examples: “home” matches /home, /home2, /newhome, /usr/home, /anythingwith/homeinit

The databases are stored in mysql data directory ( /var/lib/mysql by default ).

Thank you,
Last edited:
  • Like
Reactions: Optimizr


Quality Assurance Analyst
Staff member
Oct 2, 2010
somewhere over the rainbow
cPanel Access Level
Root Administrator
To answer your specific questions, you would want to mount second drive as home2 if possible. For the name, it does need to be home2 rather than home, since it would be incredibly confusing to use two mounts with home in them. Finally, if you have both /home and /home2, then cPanel will check during account creation which has the most disk space percentage available and use the one with the most free space. This means some accounts will go into /home and some will go into /home2
  • Like
Reactions: Optimizr