{"id":374,"date":"2014-10-22T15:49:36","date_gmt":"2014-10-22T13:49:36","guid":{"rendered":"http:\/\/dev.flauschig.ch\/wordpress\/?p=374"},"modified":"2014-10-22T15:49:36","modified_gmt":"2014-10-22T13:49:36","slug":"increase-diskspace-on-ubuntu-server-in-virtualbox-windows-host","status":"publish","type":"post","link":"http:\/\/dev.flauschig.ch\/wordpress\/?p=374","title":{"rendered":"Increase Diskspace on Ubuntu Server in Virtualbox (Windows Host)"},"content":{"rendered":"<p>Phew, that one took a while to finally figure out.<\/p>\n<p>Here&#8217;s how I could succeed in doing this:<\/p>\n<ul>\n<li>Shutdown the Virtual Machine<\/li>\n<li>Increase the size of the HD:\u00a0<code>VBoxManage.exe modifyhd &lt;absolute path to file&gt; --resize &lt;new total size in MB&gt;<\/code><\/li>\n<li>Download the gparted iso, mount it in your VM, start it from this iso<\/li>\n<li>Increase the partition in gparted (you might need to adjust the &#8220;outer&#8221; partition as well)<\/li>\n<li>Reboot and remove the gparted iso<\/li>\n<li>Extend the logical volume:\u00a0<code>sudo lvextend -L30G \/dev\/mapper\/your-partition-name-root<\/code><\/li>\n<li>Resize the filesystem:\u00a0<code>sudo resize2fs \/dev\/your-partition-name\/root<\/code><\/li>\n<li>Check that everything worked: <code>sudo lsblk<\/code><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Phew, that one took a while to finally figure out. Here&#8217;s how I could succeed in doing this: Shutdown the Virtual Machine Increase the size of the HD:\u00a0VBoxManage.exe modifyhd &lt;absolute path to file&gt; &#8211;resize &lt;new total size in MB&gt; Download the gparted iso, mount it in your VM, start it from this iso Increase the &hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-roemer","4":"post-374","6":"format-standard","7":"category-uncategorized"},"acf":[],"views":1366,"_links":{"self":[{"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/374"}],"collection":[{"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=374"}],"version-history":[{"count":0,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/374\/revisions"}],"wp:attachment":[{"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=374"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}