What is the best Partitions of HDD if you are creating your own server?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What is the best Partitions of HDD if you are creating your own server?
Hi Keen Duds,
pls help. I experience almost of all log files are in /var even the mysql server resides on it. and the website is reside in /var/www....default in apache.
do I have to put higher partition in /var? how about if I add another users? what is the partition of /usr?
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
It largely depends on your needs.
For a server, I would have a partition for /, /home, /var and /usr. It can also be worth having a separate partition for /tmp (to prevent temporary files filling up your / partition).
Depending on what your server will be used for will dictate the size of each of these partitions. Make sure you leave ample space on / and /usr. /var will need to be big if you are running a mail server and your mail spool is in /var.
For a server, I would have a partition for /, /home, /var and /usr. It can also be worth having a separate partition for /tmp (to prevent temporary files filling up your / partition).
Depending on what your server will be used for will dictate the size of each of these partitions. Make sure you leave ample space on / and /usr. /var will need to be big if you are running a mail server and your mail spool is in /var.
I want to use as a single website server with 4 3rd party user.
That's still too broad. A website can hold lots of things, like mail, databases, or whatever info.
But I assume you just mean some kind of personal webpage, blogs or whatever. In that case, you probably want to save some space for /var, since that's where webs usually live, along with mail and databases. Having a separate /home helps when it comes to doing backups of your user's private data... The rest just depends on your concrete needs. Some people like having a separate partition for /boot, /usr/src/, /usr/ or /opt. I don't think that this makes much sense for a home server. But again, it all depends on what exactly do you want, your backup policies, your security requirements, the involved filesystems and many other factors.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.