{"id":4931,"date":"2026-08-10T22:00:41","date_gmt":"2026-08-10T22:00:41","guid":{"rendered":"https:\/\/netguide.io\/linux\/linux-speicherplatz-analysieren-df-du-ncdu\/"},"modified":"2026-08-10T23:46:29","modified_gmt":"2026-08-10T23:46:29","slug":"linux-speicherplatz-analysieren-df-du-ncdu","status":"publish","type":"post","link":"https:\/\/netguide.io\/linux\/de\/linux-speicherplatz-analysieren-df-du-ncdu\/","title":{"rendered":"Speicherplatz unter Linux analysieren: df, du &#038; ncdu"},"content":{"rendered":"<script type=\"text\/plain\" data-tcf=\"waiting-for-consent\" data-id=\"4797\" data-bid=\"2\" data-placement=\"4798\">PGRpdiBpZD0ibmV0Z3VpZGVhLTM2MTQ3NTk2ODAiIGNsYXNzPSJuZXRndWlkZWEtYmVmb3JlLWNvbnRlbnQgbmV0Z3VpZGVhLWVudGl0eS1wbGFjZW1lbnQiPjxkaXYgY2xhc3M9Im5ldGd1aWRlYS1hZGxhYmVsIj5BZHZlcnRpc2VtZW50czwvZGl2PjxzY3JpcHQgYXN5bmMgc3JjPSIvL3BhZ2VhZDIuZ29vZ2xlc3luZGljYXRpb24uY29tL3BhZ2VhZC9qcy9hZHNieWdvb2dsZS5qcz9jbGllbnQ9Y2EtcHViLTYyNTg1NTYyNTcyNDU5OTgiIGNyb3Nzb3JpZ2luPSJhbm9ueW1vdXMiPjwvc2NyaXB0PjxpbnMgY2xhc3M9ImFkc2J5Z29vZ2xlIiBzdHlsZT0iZGlzcGxheTpibG9jazsiIGRhdGEtYWQtY2xpZW50PSJjYS1wdWItNjI1ODU1NjI1NzI0NTk5OCIgCmRhdGEtYWQtc2xvdD0iMzQ5NDExNTM0MiIgCmRhdGEtYWQtZm9ybWF0PSJhdXRvIj48L2lucz4KPHNjcmlwdD4gCihhZHNieWdvb2dsZSA9IHdpbmRvdy5hZHNieWdvb2dsZSB8fCBbXSkucHVzaCh7fSk7IAo8L3NjcmlwdD4KPC9kaXY+<\/script>\n<p class=\"wp-block-paragraph\">\u201eNo space left on device&#8221; \u2013 diese Meldung legt Server lahm. Bevor du in Panik verf\u00e4llst, hilft ein systematischer Blick auf den Speicher. In dieser Anleitung lernst du, wie du den <strong>Speicherplatz unter Linux analysierst<\/strong>: mit <code>df<\/code> f\u00fcr den \u00dcberblick, <code>du<\/code> f\u00fcr einzelne Verzeichnisse und dem komfortablen <code>ncdu<\/code>. Au\u00dferdem zeigen wir, wie du eine volle Platte wieder frei bekommst.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u201eNo space left on device\u201c \u2013 diese Meldung legt Dienste lahm und l\u00e4sst Datenbanken abst\u00fcrzen. Bevor es so weit kommt, solltest du wissen, wie du den <strong>Speicherplatz unter Linux analysierst<\/strong>. Die drei Werkzeuge <code>df<\/code>, <code>du<\/code> und <code>ncdu<\/code> arbeiten dabei Hand in Hand: <code>df<\/code> zeigt dir den F\u00fcllstand deiner Dateisysteme, <code>du<\/code> die Gr\u00f6\u00dfe einzelner Verzeichnisse und <code>ncdu<\/code> macht die Suche nach Speicherfressern komfortabel interaktiv.<\/p>\n\n\n\t\t\t\t<div class=\"wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-1ffd1ad5      \"\n\t\t\t\t\tdata-scroll= \"1\"\n\t\t\t\t\tdata-offset= \"30\"\n\t\t\t\t\tstyle=\"\"\n\t\t\t\t>\n\t\t\t\t<div class=\"uagb-toc__wrap\">\n\t\t\t\t\t\t<div class=\"uagb-toc__title\">\n\t\t\t\t\t\t\tInhaltsverzeichnis\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uagb-toc__list-wrap \">\n\t\t\t\t\t\t<ol class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#df-der-\u00fcberblick-\u00fcber-alle-partitionen\" class=\"uagb-toc-link__trigger\">df: Der \u00dcberblick \u00fcber alle Partitionen<\/a><li class=\"uagb-toc__list\"><a href=\"#du-verzeichnisse-durchleuchten\" class=\"uagb-toc-link__trigger\">du: Verzeichnisse durchleuchten<\/a><li class=\"uagb-toc__list\"><a href=\"#ncdu-interaktiv-aufr\u00e4umen\" class=\"uagb-toc-link__trigger\">ncdu: Interaktiv aufr\u00e4umen<\/a><li class=\"uagb-toc__list\"><a href=\"#gro\u00dfe-dateien-gezielt-finden\" class=\"uagb-toc-link__trigger\">Gro\u00dfe Dateien gezielt finden<\/a><li class=\"uagb-toc__list\"><a href=\"#was-tun-wenn-die-platte-voll-ist\" class=\"uagb-toc-link__trigger\">Was tun, wenn die Platte voll ist?<\/a><li class=\"uagb-toc__list\"><a href=\"#nicht-vergessen-inodes\" class=\"uagb-toc-link__trigger\">Nicht vergessen: Inodes<\/a><li class=\"uagb-toc__list\"><a href=\"#df-du-und-ncdu-im-direkten-vergleich\" class=\"uagb-toc-link__trigger\">df, du und ncdu im direkten Vergleich<\/a><li class=\"uagb-toc__list\"><a href=\"#der-klassiker-gel\u00f6schte-datei-belegt-noch-platz\" class=\"uagb-toc-link__trigger\">Der Klassiker: gel\u00f6schte Datei belegt noch Platz<\/a><li class=\"uagb-toc__list\"><a href=\"#speicherfresser-systematisch-aufsp\u00fcren\" class=\"uagb-toc-link__trigger\">Speicherfresser systematisch aufsp\u00fcren<\/a><li class=\"uagb-toc__list\"><a href=\"#h\u00e4ufige-fragen\" class=\"uagb-toc-link__trigger\">H\u00e4ufige Fragen<\/a><li class=\"uagb-toc__list\"><a href=\"#warum-zeigen-df-und-du-unterschiedliche-werte\" class=\"uagb-toc-link__trigger\">Warum zeigen df und du unterschiedliche Werte?<\/a><li class=\"uagb-toc__list\"><a href=\"#wie-installiere-ich-ncdu\" class=\"uagb-toc-link__trigger\">Wie installiere ich ncdu?<\/a><li class=\"uagb-toc__list\"><a href=\"#wie-finde-ich-die-gr\u00f6\u00dften-dateien-in-einem-verzeichnis\" class=\"uagb-toc-link__trigger\">Wie finde ich die gr\u00f6\u00dften Dateien in einem Verzeichnis?<\/a><li class=\"uagb-toc__list\"><a href=\"#fazit\" class=\"uagb-toc-link__trigger\">Fazit<\/a><\/ol>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">df: Der \u00dcberblick \u00fcber alle Partitionen<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Der Befehl <code>df<\/code> (\u201edisk free&#8221;) zeigt dir, wie voll deine Dateisysteme sind. Mit <code>-h<\/code> werden die Gr\u00f6\u00dfen menschenlesbar (GB\/MB) ausgegeben:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>df -h<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #B392F0\">df<\/span><span style=\"color: #79B8FF\"> -h<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">In der Spalte \u201eUse%&#8221; siehst du sofort, welche Partition voll\u00e4uft. Das ist immer der erste Befehl bei Speicherproblemen.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">du: Verzeichnisse durchleuchten<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Wei\u00dft du, welche Partition voll ist, findest du mit <code>du<\/code> (\u201edisk usage&#8221;) die Verursacher. Dieser Befehl zeigt die Gr\u00f6\u00dfe der Unterverzeichnisse einer Ebene, absteigend sortiert:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>du -h --max-depth=1 \/var | sort -rh<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #B392F0\">du<\/span><span style=\"color: #79B8FF\"> -h<\/span><span style=\"color: #79B8FF\"> --max-depth=1<\/span><span style=\"color: #9ECBFF\"> \/var<\/span><span style=\"color: #F97583\"> |<\/span><span style=\"color: #B392F0\"> sort<\/span><span style=\"color: #79B8FF\"> -rh<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">So hangelst du dich Ebene f\u00fcr Ebene zum gr\u00f6\u00dften Speicherfresser vor. F\u00fcr das aktuelle Verzeichnis gen\u00fcgt <code>du -sh *<\/code>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">ncdu: Interaktiv aufr\u00e4umen<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Am komfortabelsten ist <code>ncdu<\/code> \u2013 ein interaktiver Verzeichnis-Browser f\u00fcrs Terminal. Installiere ihn und starte die Analyse:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>sudo apt install -y ncdu\nncdu \/<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #B392F0\">sudo<\/span><span style=\"color: #9ECBFF\"> apt<\/span><span style=\"color: #9ECBFF\"> install<\/span><span style=\"color: #79B8FF\"> -y<\/span><span style=\"color: #9ECBFF\"> ncdu<\/span><\/span>\n<span class=\"line\"><span style=\"color: #B392F0\">ncdu<\/span><span style=\"color: #9ECBFF\"> \/<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Nach dem Scan navigierst du mit den Pfeiltasten durch die Verzeichnisse, sortiert nach Gr\u00f6\u00dfe. Mit <code>d<\/code> l\u00f6schst du markierte Dateien direkt \u2013 ideal zum gezielten Aufr\u00e4umen.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Gro\u00dfe Dateien gezielt finden<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Manchmal ist eine einzelne riesige Datei schuld (etwa ein Log). Solche Ausrei\u00dfer findest du mit <code>find<\/code>. Der folgende Befehl listet alle Dateien \u00fcber 500 MB auf:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>sudo find \/ -type f -size +500M -exec ls -lh {} \\; 2&gt;\/dev\/null<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #B392F0\">sudo<\/span><span style=\"color: #9ECBFF\"> find<\/span><span style=\"color: #9ECBFF\"> \/<\/span><span style=\"color: #79B8FF\"> -type<\/span><span style=\"color: #9ECBFF\"> f<\/span><span style=\"color: #79B8FF\"> -size<\/span><span style=\"color: #9ECBFF\"> +500M<\/span><span style=\"color: #79B8FF\"> -exec<\/span><span style=\"color: #9ECBFF\"> ls<\/span><span style=\"color: #79B8FF\"> -lh<\/span><span style=\"color: #9ECBFF\"> {}<\/span><span style=\"color: #79B8FF\"> \\;<\/span><span style=\"color: #F97583\"> 2><\/span><span style=\"color: #9ECBFF\">\/dev\/null<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Was tun, wenn die Platte voll ist?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Ein paar bew\u00e4hrte Stellen, an denen sich schnell Platz gewinnen l\u00e4sst:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Systemd-Journal verkleinern:<\/strong> <code>sudo journalctl --vacuum-size=200M<\/code> begrenzt die Logs auf 200 MB.<\/li>\n\n\n\n<li><strong>Paket-Cache leeren:<\/strong> <code>sudo apt clean<\/code> entfernt heruntergeladene Paketarchive.<\/li>\n\n\n\n<li><strong>Docker aufr\u00e4umen:<\/strong> Ungenutzte Images und Container sind oft riesig \u2013 siehe <a href=\"https:\/\/netguide.io\/linux\/de\/docker-aufraeumen-speicherplatz-freigeben\/\">Docker aufr\u00e4umen<\/a>.<\/li>\n\n\n\n<li><strong>Container-Logs begrenzen:<\/strong> Wie du das dauerhaft l\u00f6st, steht in <a href=\"https:\/\/netguide.io\/linux\/de\/docker-logs-anzeigen-verwalten\/\">Docker Logs verwalten<\/a>.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Nicht vergessen: Inodes<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Ein Sonderfall: Die Platte meldet \u201evoll&#8221;, obwohl <code>df -h<\/code> freien Platz zeigt. Dann sind wahrscheinlich die <strong>Inodes<\/strong> aufgebraucht \u2013 das passiert bei sehr vielen kleinen Dateien. Pr\u00fcfe sie mit:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>df -i<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #B392F0\">df<\/span><span style=\"color: #79B8FF\"> -i<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Ist die Inode-Nutzung bei 100 %, hilft nur das L\u00f6schen vieler kleiner Dateien (h\u00e4ufig in Cache- oder Session-Verzeichnissen).<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">df, du und ncdu im direkten Vergleich<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Die drei Befehle beantworten unterschiedliche Fragen. <code>df<\/code> liefert die Vogelperspektive \u00fcber alle eingeh\u00e4ngten Dateisysteme, <code>du<\/code> geht in die Tiefe einzelner Ordner, und <code>ncdu<\/code> verbindet beides mit einer navigierbaren Oberfl\u00e4che im Terminal.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Werkzeug<\/th><th>Beantwortet<\/th><th>St\u00e4rke<\/th><\/tr><\/thead><tbody><tr><td><code>df -h<\/code><\/td><td>Wie voll ist welches Dateisystem?<\/td><td>Schneller \u00dcberblick<\/td><\/tr><tr><td><code>du -sh<\/code><\/td><td>Wie gro\u00df ist dieser Ordner?<\/td><td>Gezielte Analyse<\/td><\/tr><tr><td><code>ncdu<\/code><\/td><td>Wo genau liegen die Speicherfresser?<\/td><td>Interaktiv, sortiert<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Der Klassiker: gel\u00f6schte Datei belegt noch Platz<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Ein h\u00e4ufiges R\u00e4tsel: <code>df<\/code> meldet eine volle Platte, aber <code>du<\/code> findet die entsprechenden Daten nicht. Die Ursache ist meist eine gel\u00f6schte Datei, die von einem laufenden Prozess noch offen gehalten wird \u2013 der Speicher wird erst freigegeben, wenn der Prozess endet. Solche F\u00e4lle sp\u00fcrst du mit <code>lsof | grep deleted<\/code> auf und l\u00f6st sie, indem du den Dienst neu startest.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ein zweiter Klassiker sind Inodes: Ist deren Zahl ersch\u00f6pft, meldet Linux \u201eno space\u201c, obwohl <code>df -h<\/code> noch freien Platz zeigt. Pr\u00fcfe das mit <code>df -i<\/code>, wenn viele kleine Dateien im Spiel sind.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Speicherfresser systematisch aufsp\u00fcren<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Gehe bei vollen Platten immer von oben nach unten vor. Zuerst gibt <code>df -h<\/code> das betroffene Dateisystem preis, dann arbeitest du dich mit <code>du<\/code> oder <code>ncdu<\/code> in die Tiefe. Typische Verd\u00e4chtige sind schnell identifiziert. Ein bew\u00e4hrter Einzeiler ist <code>du -h --max-depth=1 \/ | sort -rh | head<\/code>: Er listet die gr\u00f6\u00dften Verzeichnisse der obersten Ebene sortiert auf, sodass du dich Ordner f\u00fcr Ordner nach unten hangeln kannst, bis der \u00dcbelt\u00e4ter feststeht.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Zwei Bereiche lohnen einen festen Blick. Das systemd-Journal kann \u00fcber die Zeit mehrere Gigabyte anwachsen \u2013 pr\u00fcfe seinen Verbrauch mit <code>journalctl --disk-usage<\/code> und begrenze ihn dauerhaft \u00fcber <code>SystemMaxUse<\/code> in der Journald-Konfiguration. Und bei Docker verschafft dir <code>docker system df<\/code> einen kompakten \u00dcberblick, wie viel Speicher Images, Container und Volumes jeweils belegen, bevor du mit <code>docker system prune<\/code> gezielt aufr\u00e4umst. Wer regelm\u00e4\u00dfig statt reaktiv pr\u00fcft, verwandelt hektische Notfallaktionen in eine planbare Routine.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Log-Dateien unter <code>\/var\/log<\/code>, die nicht rotiert werden.<\/li>\n\n<li>Verwaiste Docker-Images und Volumes unter <code>\/var\/lib\/docker<\/code>.<\/li>\n\n<li>Alte Paket-Caches, etwa unter <code>\/var\/cache\/apt<\/code>.<\/li>\n\n<li>Vergessene Backups oder gro\u00dfe Dateien im Home-Verzeichnis.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">H\u00e4ufige Fragen<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Die h\u00e4ufigsten Fragen zur Speicheranalyse unter Linux.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Warum zeigen df und du unterschiedliche Werte?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>df<\/code> misst auf Ebene des Dateisystems inklusive reservierter Bl\u00f6cke und offener, aber gel\u00f6schter Dateien. <code>du<\/code> summiert nur sichtbare Dateien. Abweichungen sind daher normal.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Wie installiere ich ncdu?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Unter Debian und Ubuntu gen\u00fcgt <code>sudo apt install ncdu<\/code>. Das Werkzeug ist klein und in praktisch jedem Paket-Repository verf\u00fcgbar.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Wie finde ich die gr\u00f6\u00dften Dateien in einem Verzeichnis?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Mit <code>du -ah \/pfad | sort -rh | head -n 20<\/code> bekommst du die zwanzig gr\u00f6\u00dften Eintr\u00e4ge sortiert. Noch bequemer geht es interaktiv mit <code>ncdu \/pfad<\/code>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Fazit<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Mit der Kombination aus <code>df<\/code> (\u00dcberblick), <code>du<\/code> (Details) und <code>ncdu<\/code> (interaktiv) findest du jeden Speicherfresser unter Linux zuverl\u00e4ssig. Denk bei \u201evoller&#8221; Platte trotz freien Speichers an die Inodes. Wenn du zus\u00e4tzlichen Platz brauchst, hilft dir <a href=\"https:\/\/netguide.io\/linux\/de\/linux-festplatte-einbinden-fstab\/\">eine weitere Festplatte einzubinden<\/a>.<\/p>\n<script type=\"text\/plain\" data-tcf=\"waiting-for-consent\" data-id=\"4799\" data-bid=\"2\" data-placement=\"4800\">PGRpdiBpZD0ibmV0Z3VpZGVhLTMwMDI1NjUyNzUiIGNsYXNzPSJuZXRndWlkZWEtYWZ0ZXItY29udGVudCBuZXRndWlkZWEtZW50aXR5LXBsYWNlbWVudCI+PGRpdiBjbGFzcz0ibmV0Z3VpZGVhLWFkbGFiZWwiPkFkdmVydGlzZW1lbnRzPC9kaXY+PHNjcmlwdCBhc3luYyBzcmM9Ii8vcGFnZWFkMi5nb29nbGVzeW5kaWNhdGlvbi5jb20vcGFnZWFkL2pzL2Fkc2J5Z29vZ2xlLmpzP2NsaWVudD1jYS1wdWItNjI1ODU1NjI1NzI0NTk5OCIgY3Jvc3NvcmlnaW49ImFub255bW91cyI+PC9zY3JpcHQ+PGlucyBjbGFzcz0iYWRzYnlnb29nbGUiIHN0eWxlPSJkaXNwbGF5OmJsb2NrOyIgZGF0YS1hZC1jbGllbnQ9ImNhLXB1Yi02MjU4NTU2MjU3MjQ1OTk4IiAKZGF0YS1hZC1zbG90PSI0NTU5Nzg1MDAyIiAKZGF0YS1hZC1mb3JtYXQ9ImF1dG8iPjwvaW5zPgo8c2NyaXB0PiAKKGFkc2J5Z29vZ2xlID0gd2luZG93LmFkc2J5Z29vZ2xlIHx8IFtdKS5wdXNoKHt9KTsgCjwvc2NyaXB0Pgo8L2Rpdj4=<\/script>","protected":false},"excerpt":{"rendered":"<p>Speicherplatz unter Linux analysieren mit df, du und ncdu: Partitionen pr\u00fcfen, gro\u00dfe Verzeichnisse finden, Platz freigeben und volle Festplatten retten.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_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":"default","ast-page-background-enabled":"default","ast-page-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":"","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-4)","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-4)","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-4)","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":[9],"tags":[],"class_list":["post-4931","post","type-post","status-publish","format-standard","hentry","category-linux"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Tobias Pries","author_link":"https:\/\/netguide.io\/linux\/author\/tobias-pries\/"},"uagb_comment_info":0,"uagb_excerpt":"Speicherplatz unter Linux analysieren mit df, du und ncdu: Partitionen pr\u00fcfen, gro\u00dfe Verzeichnisse finden, Platz freigeben und volle Festplatten retten.","brizy_media":[],"_links":{"self":[{"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/posts\/4931","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/comments?post=4931"}],"version-history":[{"count":2,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/posts\/4931\/revisions"}],"predecessor-version":[{"id":4994,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/posts\/4931\/revisions\/4994"}],"wp:attachment":[{"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/media?parent=4931"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/categories?post=4931"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/tags?post=4931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}