Why place points apart from/ residence to a different partition?

So lately a Debian 5.0.5 installer supplied me to have different /usr, /home, /var and also /tmp dividings (on one physical disk).

What is the sensible factor for this? I recognize that /home can be useful to place on a different partition, due to the fact that customer documents can be encrypted independently, yet why for anything else?

0
2019-05-05 22:38:33
Source Share
Answers: 8

I placed /tmp on a tmpfs, so the materials are saved in RAM as opposed to on disk. That would not serve for /etc or /usr nonetheless.

Yet having the ability to place various directory sites on various filesystems can be valuable ; i.e. /home on a fast/experimental filesystem like ext4 vs a stable/reliable filesystem like ext2 for /etc.

0
2019-05-31 12:13:16
Source

A folder I occasionally placed on a different partition is /usr/local/ to make sure that any kind of software program I've constructed and also mounted independently from my distro's plan supervisor can perhaps be re - made use of if I change/upgrade my distro or by an additional distro mounted along side it. It's clearly not assured to function throughout all feasible mixes yet it does no injury.

0
2019-05-08 13:27:08
Source
  1. Minimizing loss : If /usr gets on a different partition, a harmed /usr does not suggest that you can not recoup /etc.
  2. Protection : / can not be constantly ro (/root might require to be rw etc) yet /usr can. It can be made use of to make ro as high as feasible.
  3. Making use of various FS : I might intend to make use of a various system for /tmp (not trusted yet rapid for several documents) and also /home (needs to be trusted). Similary /var has information while /usr does not so /usr security can be sacrifice yet not even /tmp.
  4. Period of fsck : Smaller dividings suggest that examining one is much faster.
  5. Stated filling out of partions, although various other method is allocations.
0
2019-05-08 11:10:53
Source

A different /usr can be valuable if you have numerous equipments sharing the very same OS. They can share a solitary main /usr as opposed to replicating it on every system. /usr can be placed read - just.

/var and also /tmp can be filled out by customer programs or daemons. Consequently it can be secure to have these in different dividings that would certainly protect against /, the origin partition, to be 100% complete, and also would certainly strike your system severely. To stay clear of having 2 distinctive dividings for these, it is not unusual to see /tmp being a symlink to /var/tmp.

0
2019-05-08 11:04:22
Source

The concern is that a complete origin fs makes the linux system unoperable to an expand that also an admin solution it without a recuperation CD or comparable. When /tmp and also /var and also specifically /home remain in a different partition, the origin fs can not never ever fill out without an admin doing it. Take /usr right into the mix in which all the common installs will certainly be positioned, and also also mounting new software program can not create this trouble.

0
2019-05-08 10:58:09
Source

In basic, the debates for having different dividings are :

  1. Security : you can, as an example, place a partition read - just to maintain destructive customers (or procedures) from overwriting or changing binaries there with trojans. So if your ssh binary lives in/ usr/local/bin and also/ usr/local is placed read - just, it's mosting likely to be difficult for any person to change that binary.

  2. Flexibility/Convenience : as an example, if you set up/ var by itself partition and also it reaches 80% complete, you can resize it, or perhaps relocate to an additional disk if demand be. I would certainly instead need to do that than manage a system whose '/' is 100% complete due to the fact that logs under/ var have actually gone crazy somehow. Various dividings can additionally have various filesystems totally, permitting your OS to make use of ext3 (as an example) and also your database to make use of ext4, or your object database to make use of XFS, or your personalized application to make use of ... raw tools!

0
2019-05-08 10:55:25
Source

Because average customers can create points to be contacted /var and also /tmp, and also hence possibly create troubles for the entire system. In this manner customer procedures can fill out /var and also /tmp, yet not the origin fs. A different /usr serves for /usr over NFS, or various other remote fs.

(I wish this is clear, I have not had any kind of coffee yet)

0
2019-05-08 10:23:07
Source

Formatting a filesystem can additionally be faster than rm -rf' ing it. Specifically if you have hundreds of tiny documents to get rid of. Squid cache you intend to totally re-create ... lots of photo documents that your demand for handling yet can be thrown out after completion outcome is developed. obj documents from massive assembles ... and so on

0
2019-05-08 02:39:04
Source