{"id":7150,"date":"2014-05-26T07:47:30","date_gmt":"2014-05-26T07:47:30","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/26\/out-of-disk-space-whats-the-source-collection-of-common-programming-errors\/"},"modified":"2014-05-26T07:47:30","modified_gmt":"2014-05-26T07:47:30","slug":"out-of-disk-space-whats-the-source-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/26\/out-of-disk-space-whats-the-source-collection-of-common-programming-errors\/","title":{"rendered":"Out of disk space, what&#39;s the source?-Collection of common programming errors"},"content":{"rendered":"<p>It seems like <code>\/var\/lib\/ureadahead\/debugfs<\/code> may be a red-herring. Here&#8217;s why&#8230;<\/p>\n<p>While <code>\/var\/lib\/ureadahead\/debugfs<\/code> does exist in <code>\/etc\/mtab<\/code>, it is not found in <code>\/proc\/mounts<\/code>:<\/p>\n<pre><code>$ mount | grep debug\nnone on \/sys\/kernel\/debug type debugfs (rw)\nnone on \/var\/lib\/ureadahead\/debugfs type debugfs (rw,relatime)\n\n$ cat \/proc\/mounts | grep debug\nnone \/sys\/kernel\/debug debugfs rw,relatime 0 0\n<\/code><\/pre>\n<p>The <code>df<\/code> command seems to be reporting exactly the same thing for <code>\/var\/lib\/ureadahead\/debugfs<\/code> and <code>\/<\/code><\/p>\n<pre><code>$ df\nFilesystem           1K-blocks      Used Available Use% Mounted on\n\/dev\/sda1             10321208   1681128   8115792  18% \/\nnone                    830388       120    830268   1% \/dev\nnone                    880752         0    880752   0% \/dev\/shm\nnone                    880752        60    880692   1% \/var\/run\nnone                    880752         0    880752   0% \/var\/lock\nnone                    880752         0    880752   0% \/lib\/init\/rw\nnone                  10321208   1681128   8115792  18% \/var\/lib\/ureadahead\/debugfs\n\/dev\/sdb             153899044    192068 145889352   1% \/mnt\n<\/code><\/pre>\n<p>Creating a 1GB file in <code>\/tmp<\/code>:<\/p>\n<pre><code>$ dd if=\/dev\/zero of=\/tmp\/carypjunk.out bs=1M count=1024\n1024+0 records in\n1024+0 records out\n1073741824 bytes (1.1 GB) copied, 52.7234 s, 20.4 MB\/s\n<\/code><\/pre>\n<p>Shows the size reported in both places:<\/p>\n<pre><code>$ df\nFilesystem           1K-blocks      Used Available Use% Mounted on\n\/dev\/sda1             10321208   2730216   7066704  28% \/\nnone                    830388       120    830268   1% \/dev\nnone                    880752         0    880752   0% \/dev\/shm\nnone                    880752        60    880692   1% \/var\/run\nnone                    880752         0    880752   0% \/var\/lock\nnone                    880752         0    880752   0% \/lib\/init\/rw\nnone                  10321208   2730216   7066704  28% \/var\/lib\/ureadahead\/debugfs\n\/dev\/sdb             153899044    192068 145889352   1% \/mnt\n<\/code><\/pre>\n<p>So, it seems like <code>\/var\/lib\/ureadahead\/debugfs<\/code> device is a red-herring as it is just mirroring the stats from <code>\/<\/code>. If you are running out of space, it is due to something filling up your root filesystem. I would check your \/var\/log first.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It seems like \/var\/lib\/ureadahead\/debugfs may be a red-herring. Here&#8217;s why&#8230; While \/var\/lib\/ureadahead\/debugfs does exist in \/etc\/mtab, it is not found in \/proc\/mounts: $ mount | grep debug none on \/sys\/kernel\/debug type debugfs (rw) none on \/var\/lib\/ureadahead\/debugfs type debugfs (rw,relatime) $ cat \/proc\/mounts | grep debug none \/sys\/kernel\/debug debugfs rw,relatime 0 0 The df command seems [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7150","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7150"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7150\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}