{"id":2764,"date":"2020-11-26T18:35:40","date_gmt":"2020-11-26T18:35:40","guid":{"rendered":"https:\/\/orchid-panther-716643.hostingersite.com\/2020-11-26-linux-centos-full-root-partition-small-tip-for-manage-temporal-files\/"},"modified":"2026-01-15T10:28:09","modified_gmt":"2026-01-15T10:28:09","slug":"linux-centos-full-root-partition-small-tip-for-manage-temporal-files","status":"publish","type":"post","link":"https:\/\/jordalefou.com\/es\/2020\/11\/26\/linux-centos-full-root-partition-small-tip-for-manage-temporal-files\/","title":{"rendered":"\/\/ Consejos para evitar que se llene la partici\u00f3n raiz en Linux"},"content":{"rendered":"<div class=\"sqs-html-content\" data-sqsp-text-block-content>\n<p class=\"\" style=\"white-space:pre-wrap;\">(updated September 2022)<\/p>\n<\/div>\n<hr \/>\n<div class=\"sqs-html-content\" data-sqsp-text-block-content>\n<h2 style=\"white-space:pre-wrap;\">A fast way <strong>to avoid full root partion<\/strong> due to lack of space on older Centos.<\/h2>\n<\/div>\n<hr \/>\n<div class=\"sqs-html-content\" data-sqsp-text-block-content>\n<h2 style=\"white-space:pre-wrap;\">\/ First look<\/h2>\n<p class=\"\" data-rte-preserve-empty=\"true\" style=\"white-space:pre-wrap;\">\n<p class=\"\" style=\"white-space:pre-wrap;\">If you use automatic partitions on installing Linux Centos  <strong>you  get annoying messages soon about being full on \/root<\/strong> .<\/p>\n<p class=\"\" style=\"white-space:pre-wrap;\">On my workstation it was set around 50 Gb.<\/p>\n<blockquote>\n<pre><code>df \/ -h<\/code><\/pre>\n<pre><code>\/dev\/mapper\/cl-root   50G   28G   23G  55% \/<\/code><\/pre>\n<\/blockquote>\n<p class=\"\" data-rte-preserve-empty=\"true\" style=\"white-space:pre-wrap;\">\n<p class=\"\" style=\"white-space:pre-wrap;\">Sooner or later you would need to search a way to resize your \/root  which is irritating. <\/p>\n<p class=\"\" style=\"white-space:pre-wrap;\">So I wanna share a small TIP. This way you wouldnt need to resize anything.<\/p>\n<\/div>\n<div class=\"sqs-html-content\" data-sqsp-text-block-content>\n<h2 style=\"white-space:pre-wrap;\">\/ Check your troublemakers first:<\/h2>\n<p class=\"\" data-rte-preserve-empty=\"true\" style=\"white-space:pre-wrap;\">\n<p class=\"\" style=\"white-space:pre-wrap;\">First of all you must look as superuser <strong>whose are the main folders you use to get full <\/strong>recursively:<\/p>\n<blockquote>\n<pre><code>du -h --max-depth=1<\/code><\/pre>\n<p class=\"\" style=\"white-space:pre-wrap;\">If you prefer a graphic way use as user:<\/p>\n<pre><code>babobab<\/code><\/pre>\n<\/blockquote>\n<p class=\"\" data-rte-preserve-empty=\"true\" style=\"white-space:pre-wrap;\">\n<p class=\"\" style=\"white-space:pre-wrap;\">This way you can see graphically which are the most heavy folders that need to be cleened up.<\/p>\n<\/div>\n<p>      <img decoding=\"async\" src=\"https:\/\/images.squarespace-cdn.com\/content\/v1\/5c238bbaf93fd45c7ceada8c\/1606417435674-3OSEM9W2B66HP1CRKZ64\/Cache+Alias+2020-11-26+20-00-27.jpg?format=original\" alt=\"\"\/><\/p>\n<div class=\"sqs-html-content\" data-sqsp-text-block-content>\n<h3 data-rte-preserve-empty=\"true\" style=\"white-space:pre-wrap;\"><\/h3>\n<p class=\"\" style=\"white-space:pre-wrap;\">Usually you will notice some folders whose are recursively filled by data and you need to recursively empty from time to time. <br \/>The global <strong>temporary<\/strong> directories are \/<strong>tmp<\/strong> and \/var\/<strong>tmp<\/strong><\/p>\n<p class=\"\" style=\"white-space:pre-wrap;\">I use to play a comand for empty this files<\/p>\n<blockquote>\n<pre><code>rm -rf ~\/.local\/share\/Trash\/*<\/code><\/pre>\n<pre><code>rm -rf ~\/tmp\/*<\/code><\/pre>\n<pre><code>etc<\/code><\/pre>\n<\/blockquote>\n<p class=\"\" data-rte-preserve-empty=\"true\" style=\"white-space:pre-wrap;\">\n<p class=\"\" style=\"white-space:pre-wrap;\">But again an againg you lost your time removing trash so, what Ive done is very simple:<\/p>\n<p class=\"\" style=\"white-space:pre-wrap;\">This is useful but just for temporal or shared folders, caches, etc. ; not a great idea for important root folders as it can do some damage or vulnerability to the system (you will see on rebboting).<\/p>\n<p>I just use it when some apps download their cache data to root partition instead of my default user; this use to happen on installing as root or by managing preferences in a bad way. <\/p>\n<p>A good example: Firefox downloads and Firefox cache. You can set up your download directory in preferences,<br \/>but there is also a cach\u00e9 folder which goes to <strong>\/tmp\/mozilla_user0<\/strong> so I use my tip on this one also.  When I dowload a lot of data I don\u2019t want to full my root drive.<\/p>\n<p class=\"\" style=\"white-space:pre-wrap;\">So now we go to a very simple tip:<\/p>\n<p class=\"\" data-rte-preserve-empty=\"true\" style=\"white-space:pre-wrap;\">\n<h2 style=\"white-space:pre-wrap;\">\/ TIP, move \/tmp folder to another disk:<\/h2>\n<p class=\"\" data-rte-preserve-empty=\"true\" style=\"white-space:pre-wrap;\">\n<p class=\"\" style=\"white-space:pre-wrap;\">Look for your \/tmp folder from your root partition.<\/p>\n<blockquote>\n<pre><code>\/tmp<\/code><\/pre>\n<\/blockquote>\n<p class=\"\" style=\"white-space:pre-wrap;\">Copy that tmp folder at your \/Documents or any place you prefer, or create one from scratch.<\/p>\n<blockquote>\n<pre><code>\/home\/user\/Documents\/temporalRoot\/tmp<\/code><\/pre>\n<\/blockquote>\n<p class=\"\" style=\"white-space:pre-wrap;\"><strong>Create a \u201ctmp\u201d folder alias (dynamic link in linux) <\/strong>and place it where root use to have the original folder.<br \/>You will need first to delete the original one in \/.<br \/>As simple as it is: you are linking the data to other drive area.<\/p>\n<p class=\"\" style=\"white-space:pre-wrap;\">Finally manage permissions by chmod 775 or whatever you need.  <\/p>\n<blockquote>\n<pre><code>chmod 775  \/home\/user\/Documents\/temporalRoot\/tmp<\/code><\/pre>\n<\/blockquote>\n<p class=\"\" style=\"white-space:pre-wrap;\">Generally there is some confusion about permissions, so you need to know:  <\/p>\n<p class=\"\" style=\"white-space:pre-wrap;\"><strong>There is a root folder (generally \/tmp, which belongs to root) <\/strong><\/p>\n<p class=\"\" style=\"white-space:pre-wrap;\"><strong>There are other user folders (inside \/tmp we can have user folders)<\/strong>  <\/p>\n<p class=\"\" style=\"white-space:pre-wrap;\">For example in case of Firefox, it will be the user folder, as it is user who has the right permissions (can write and delete, etc).   <\/p>\n<blockquote>\n<p class=\"\" style=\"white-space:pre-wrap;\">d rwx &#8212; &#8212;  2 user user   mozilla_user0  <\/p>\n<\/blockquote>\n<p class=\"\" style=\"white-space:pre-wrap;\"><strong>In case of nuke folder<\/strong> should be similar: <strong>but due to license, nuke can be owner by user or root,<\/strong> so maybe you are running the app as user, but the real owner is root.<\/p>\n<\/div>\n<div class=\"sqs-html-content\" data-sqsp-text-block-content>\n<h2 style=\"white-space:pre-wrap;\">\/ TIP for NUKE USERS:<\/h2>\n<p class=\"\" data-rte-preserve-empty=\"true\" style=\"white-space:pre-wrap;\">\n<p class=\"\" style=\"white-space:pre-wrap;\"><strong>When you run Nuke on first time, cache derivates to root device<\/strong> so usually this goes to \/var\/tmp\/nuke-u100 so, any time you reinstall a new version you need to check that folder. <\/p>\n<p class=\"\" style=\"white-space:pre-wrap;\">Very often this folder gets full and freezes your system while your \/home user folder keeps being full of space.<\/p>\n<p class=\"\" style=\"white-space:pre-wrap;\">I have a dynamic link on my root partition, so the temporal data goes to my home.<\/p>\n<blockquote>\n<pre><code>\/home\/user\/Documents\/TemporalRoot\/nuke-u1000<\/code><\/pre>\n<\/blockquote>\n<p class=\"\" data-rte-preserve-empty=\"true\" style=\"white-space:pre-wrap;\">\n<p class=\"\" style=\"white-space:pre-wrap;\">Now my root partition use to get enough space and I can empty  my temporal folders as non root user. <\/p>\n<p class=\"\" style=\"white-space:pre-wrap;\">In case Nuke crashes or you would get an update, your cache won\u2019t fill your \/root partition if you forget to set up the preferences, because it will always search this folder.<\/p>\n<p><strong><em>I setup my permisses on this nuke-u1000 for my Owner User Create and delete, Group User can Access files and Others can also Acces files. This way just Nuke User and Root can write on this folder. As general rule Nuke use to be instaled as User.<\/em><\/strong><\/p>\n<p class=\"\" style=\"white-space:pre-wrap;\">You can check your nuke default cache location in your preferences.<\/p>\n<blockquote>\n<p class=\"\" style=\"white-space:pre-wrap;\"><strong>Nuke default cache location<\/strong><\/p>\n<p class=\"\" style=\"white-space:pre-wrap;\">Linux and macOS:<\/p>\n<pre><code>\"\/var\/tmp\/nuke-{uid}\/\"&nbsp;<\/code><\/pre>\n<p class=\"\" style=\"white-space:pre-wrap;\">where {uid} is the users user ID on the machine, e.g. \/var\/tmp\/<strong>nuke-u1737<\/strong>\/<\/p>\n<\/blockquote>\n<p class=\"\" style=\"white-space:pre-wrap;\">\n<p>And here a reminder about permissions:<\/p>\n<blockquote>\n<pre><code>rwx = 111 in binary = 7<\/code><\/pre>\n<pre><code>rw- = 110 in binary = 6<\/code><\/pre>\n<pre><code>r-x = 101 in binary = 5<\/code><\/pre>\n<pre><code>r-- = 100 in binary = 4<\/code><\/pre>\n<\/blockquote>\n<p class=\"\" data-rte-preserve-empty=\"true\" style=\"white-space:pre-wrap;\">\n<h2 style=\"white-space:pre-wrap;\">\/ BONUS TIP: remove old kernels<\/h2>\n<p class=\"\" data-rte-preserve-empty=\"true\" style=\"white-space:pre-wrap;\">\n<p class=\"\" style=\"white-space:pre-wrap;\">As additional tip you can also remove all older kernels. <\/p>\n<p class=\"\" style=\"white-space:pre-wrap;\">Centos keeps updating all the time, so at the end of the year you have lots of updates filling space. A way to clean them up is typing the next commands:<\/p>\n<blockquote>\n<pre><code># list actual kernel\nuname -a\n\n# list older kernels\nrpm -q kernel\n# list more detailed\ndnf list installed kernel\n\n# remove all except latest 1\npackage-cleanup --oldkernels --count=1\n# remove kernel version manually\nsudo dnf remove kernel-5.14.0-70.13.1.el9\n<\/code><\/pre>\n<p class=\"\" style=\"white-space:pre-wrap;\"># automatic remove (Rocky)<br \/>sudo dnf install dnf-automatic<\/p>\n<\/blockquote>\n<p class=\"\" data-rte-preserve-empty=\"true\" style=\"white-space:pre-wrap;\">\n<\/div>\n<hr \/>","protected":false},"excerpt":{"rendered":"<p>(updated September 2022) A fast way to avoid full root partion due to lack of space on older Centos. \/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[23,24],"tags":[17,18,16,22,21,19,20],"class_list":["post-2764","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-pipeline","tag-centos","tag-linux","tag-nuke","tag-pipeline","tag-root-full","tag-temporal-files","tag-tip"],"uagb_featured_image_src":{"full":["https:\/\/jordalefou.com\/wp-content\/uploads\/2021\/11\/linuxito.webp",1920,1080,false],"thumbnail":["https:\/\/jordalefou.com\/wp-content\/uploads\/2021\/11\/linuxito-150x150.webp",150,150,true],"medium":["https:\/\/jordalefou.com\/wp-content\/uploads\/2021\/11\/linuxito-300x169.webp",300,169,true],"medium_large":["https:\/\/jordalefou.com\/wp-content\/uploads\/2021\/11\/linuxito-768x432.webp",768,432,true],"large":["https:\/\/jordalefou.com\/wp-content\/uploads\/2021\/11\/linuxito-1024x576.webp",1024,576,true],"1536x1536":["https:\/\/jordalefou.com\/wp-content\/uploads\/2021\/11\/linuxito-1536x864.webp",1536,864,true],"2048x2048":["https:\/\/jordalefou.com\/wp-content\/uploads\/2021\/11\/linuxito.webp",1920,1080,false],"trp-custom-language-flag":["https:\/\/jordalefou.com\/wp-content\/uploads\/2021\/11\/linuxito.webp",18,10,false]},"uagb_author_info":{"display_name":"jordal","author_link":"https:\/\/jordalefou.com\/es\/author\/jordalefougmail-com\/"},"uagb_comment_info":0,"uagb_excerpt":"(updated September 2022) A fast way to avoid full root partion due to lack of space on older Centos. \/ [&hellip;]","_links":{"self":[{"href":"https:\/\/jordalefou.com\/es\/wp-json\/wp\/v2\/posts\/2764","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jordalefou.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jordalefou.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jordalefou.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jordalefou.com\/es\/wp-json\/wp\/v2\/comments?post=2764"}],"version-history":[{"count":1,"href":"https:\/\/jordalefou.com\/es\/wp-json\/wp\/v2\/posts\/2764\/revisions"}],"predecessor-version":[{"id":3252,"href":"https:\/\/jordalefou.com\/es\/wp-json\/wp\/v2\/posts\/2764\/revisions\/3252"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jordalefou.com\/es\/wp-json\/wp\/v2\/media\/8"}],"wp:attachment":[{"href":"https:\/\/jordalefou.com\/es\/wp-json\/wp\/v2\/media?parent=2764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jordalefou.com\/es\/wp-json\/wp\/v2\/categories?post=2764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jordalefou.com\/es\/wp-json\/wp\/v2\/tags?post=2764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}