{"id":877,"date":"2013-02-09T04:12:48","date_gmt":"2013-02-09T04:12:48","guid":{"rendered":"http:\/\/kraftek.com\/blog\/?p=877"},"modified":"2013-02-09T04:12:48","modified_gmt":"2013-02-09T04:12:48","slug":"reduce-virtualbox-vdi-image","status":"publish","type":"post","link":"\/blog\/index.php\/reduce-virtualbox-vdi-image\/","title":{"rendered":"Reduce VirtualBox vdi image"},"content":{"rendered":"<p>if your vdi is larger than the space you&#8217;re using, you can reduce its size by installing &#8220;zerofree&#8221; inside your vm, and booting it in &#8220;recovery&#8221;, &#8220;failsafe&#8221; or &#8220;single user&#8221; mode, remount your &#8220;\/&#8221; filesystem readonly, and supposing &#8220;\/&#8221; is in \/dev\/sda1<\/p>\n<p># zerofree \/dev\/sda1<\/p>\n<p>Shutdown your vm and in the VirtualBox host<\/p>\n<p># VBoxManage modifyhd linuxy.vdi compact<\/p>\n","protected":false},"excerpt":{"rendered":"<p>if your vdi is larger than the space you&#8217;re using, you can reduce its size by installing &#8220;zerofree&#8221; inside your vm, and booting it in &#8220;recovery&#8221;, &#8220;failsafe&#8221; or &#8220;single user&#8221; mode, remount your &#8220;\/&#8221; filesystem readonly, and supposing &#8220;\/&#8221; is in \/dev\/sda1 # zerofree \/dev\/sda1 Shutdown your vm and in the VirtualBox host # VBoxManage [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-877","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/877","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=877"}],"version-history":[{"count":0,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/877\/revisions"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=877"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=877"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=877"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}