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.
/root is the home directory of the root user (which you have allocated 4 GB), but the "root" filesystem is /. Are you sure it is saying that /root is full and not root? Since you haven't shown how much space you allocated to the root filesystem.
What is taking me so much from / in a new installation? I have just installed apache bind and webalizer. Do you suggest more space for / than 4GB? this is a shared hosting server. what partitions do you suggest please?
You have sort of a strange partition setup here. You have partitioned off all of the directories that are small, and left all the big stuff on the single partition.
The root filesystem (/) and /usr will take up probably 80-90% of the space on a fresh install, and you have them both on the single 4 GB partition; while directories which will never take up much space like /tmp and /var/log are pushed into their own. It is a good idea to push things like /var/log off to another partition for security reasons (though with modern log rotation and disk sizes, DoS via logging seems pretty unlikely), but you need to makes sure the core OS has enough space to operate.
There is no reason to put /boot onto it's own partition on modern hardware, so you can leave that on /. I would put / on at least 2 GB, and then /usr on another 4 GB. If you are going to leave / and /usr on the same partition, make it at least 10 GB.
btw I have a 146GB hard disk space. How shall I mount the data partition somewhere more appropriate? What do you mean by this please? Can you kindly elaborate more on this?
Thanks again for your cooperation.
UPDATE: I have just read that / (root direction) is the parent of all other partitions... am I understanding well please? So every other partition will fall under the / partition. This means that I MUST do the / partition the largest partition in size, right?
By default, everything belongs under / but you can decide to place certain subdirectories of / on their own partition - which is what you appear to be doing.
Frankly, it is often more convenient to leave everything - except swap, home and possibly boot - under /. It reduces the risk of this or that partition running out of space, makes backups easier, etc. Neither does having multiple partitions increase performance in any noticeable way; if you are really concerned about that kind of thing, you should spread your partitions over multiple drives instead.
"/" is the parent of all directories---not partitions. It is sometimes called the "root" of the filesystem tree--or directory tree.
Filesystems on partitions can be mounted (connected) to the directory tree. When we say "mount a partition", it would be more correct to say "connect the filesystem on the partition".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.