{"id":239,"date":"2006-12-22T04:19:03","date_gmt":"2006-12-22T01:19:03","guid":{"rendered":"http:\/\/www.void.gr\/kargig\/blog\/?p=239"},"modified":"2006-12-22T04:19:29","modified_gmt":"2006-12-22T01:19:29","slug":"no-space-left-on-device","status":"publish","type":"post","link":"https:\/\/www.void.gr\/kargig\/blog\/2006\/12\/22\/no-space-left-on-device\/","title":{"rendered":"No space left on device"},"content":{"rendered":"<p>Last night I decided to do some tests with portage inside a virtual machine using <a href=\"http:\/\/ilug.void.gr\/iloog\/\">iloog livecd<\/a>. I fired up <a href=\"http:\/\/www.vmware.com\/products\/player\/\">vmware player<\/a> (it&#8217;s free) and created one 1Gb partition, type Linux and one 1Gb partition, type swap with fdisk. Then I issued :<br \/>\n<code><br \/>\n#mke2fs -j \/dev\/hda1<br \/>\n#mkdir \/mnt\/hda1<br \/>\n#mount \/dev\/hda1 \/mnt\/hda1<br \/>\n#mkdir \/mnt\/hda1\/portage<br \/>\n#mkdir \/usr\/portage<br \/>\n#mount --bind \/mnt\/hda1\/portage \/usr\/portage<br \/>\n#emerge --sync<br \/>\n<\/code><\/p>\n<p>The syncing with gentoo portage had started.. After a while though, my screen got full off errors about not having enough space left on the device.  That was a bit weird since 1Gb is more than enough for just the portage without any distfiles or packages&#8230; Issuing a &#8220;df -HT&#8221; gave me something like this:<br \/>\n<code><br \/>\n\/dev\/hda1 ext3 985M 557M 379M 60% \/mnt\/hda1<br \/>\n<\/code><\/p>\n<p>So, I do have space free&#8230;where was the problem ? Luckilly some friends on IRC gave me the answer&#8230;<br \/>\n<code><br \/>\n#df -i<br \/>\n\/dev\/hda1 120000 120000  0 100% \/mnt\/hda1<br \/>\n<\/code><\/p>\n<p>I was out of <a href=\"http:\/\/en.wikipedia.org\/wiki\/Inode\">inodes<\/a>&#8230;The portage has so many small files that made me run out of  inodes and the only  solution was to run mke2fs again but with options that look like the following, in order to increase the inode number by decreasing the block size:<br \/>\n<code>mke2fs -j -b 1024 -i 1024 \/dev\/hda1<\/code><\/p>\n<p>That gave me enough inodes to store the portage \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last night I decided to do some tests with portage inside a virtual machine using iloog livecd. I fired up vmware player (it&#8217;s free) and created one 1Gb partition, type Linux and one 1Gb partition, type swap with fdisk. Then I issued : #mke2fs -j \/dev\/hda1 #mkdir \/mnt\/hda1 #mount \/dev\/hda1 \/mnt\/hda1 #mkdir \/mnt\/hda1\/portage #mkdir \/usr\/portage [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-239","post","type-post","status-publish","format-standard","hentry","category-linux"],"aioseo_notices":[],"views":7266,"_links":{"self":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/comments?post=239"}],"version-history":[{"count":0,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/239\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/media?parent=239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/categories?post=239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/tags?post=239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}