Jeg ved ikke med /var og /tmp, men fordelen ved en separat /home er at du fx kan geninstallere OS og stadig beholde dine data og konfigurationer. Du skal så bare sørge for ved den nye installation at bruge samme partition til /home som før.
"I always do this. The advantage is that /var is disproportionately likely to fill with spurious junk, and fixing a full /var is significantly easier than fixing a full /.
Most of the directories under / are mostly static—/usr, /etc, etc. are generally not touched by automatic processes other than the package manager. /var is a notable exception. Particularly /var/log and /var/cache accumulate automated output from a variety of processes, and can balloon rapidly with spurious logging or mismanaged caching.
(Other more-dynamic directories under / include /home—which is often separated, since there are other benefits for it—and /srv, which mostly goes unused in desktop systems.)
Ideal proportions will depend on your use. My /var is 10GB and / is 20GB; but for example if you're using docker, it will want to store images under /var, so you'll either want it to be much bigger or want to relocate image storage."
Hvis du vil kunne overleve massivt, eventuelt uforudsigelig, overforbrug af diskforbug, deler du med fordel root disken op. Når rootdisken er fuld starter problemerne.
Det var mere nødvendigt i gamle dage. Tit er tmp og /var/tmp nu lavet med tmpfs/ramdisk
Kommentarer4
Jeg ved ikke med /var og
Brugeren grelphy skriver på
Brugeren grelphy skriver på Reddit, jeg citerer:
"I always do this. The advantage is that /var is disproportionately likely to fill with spurious junk, and fixing a full /var is significantly easier than fixing a full /.
Most of the directories under / are mostly static—/usr, /etc, etc. are generally not touched by automatic processes other than the package manager. /var is a notable exception. Particularly /var/log and /var/cache accumulate automated output from a variety of processes, and can balloon rapidly with spurious logging or mismanaged caching.
(Other more-dynamic directories under / include /home—which is often separated, since there are other benefits for it—and /srv, which mostly goes unused in desktop systems.)
Ideal proportions will depend on your use. My /var is 10GB and / is 20GB; but for example if you're using docker, it will want to store images under /var, so you'll either want it to be much bigger or want to relocate image storage."
//Citat slut.
Brugeren grelphy skriver
Tak for info det giver mening
Hvis du vil kunne overleve
Det var mere nødvendigt i gamle dage. Tit er tmp og /var/tmp nu lavet med tmpfs/ramdisk