{"id":53,"date":"2010-01-07T16:58:16","date_gmt":"2010-01-07T21:58:16","guid":{"rendered":"http:\/\/dan.verweire.com\/?p=53"},"modified":"2010-01-07T17:50:14","modified_gmt":"2010-01-07T22:50:14","slug":"resizing-personal-storage-on-ubuntu-bootable-usb-thumbdrive","status":"publish","type":"post","link":"http:\/\/dan.verweire.com\/?p=53","title":{"rendered":"Resizing personal storage on Ubuntu bootable usb"},"content":{"rendered":"<p>I recently created a bootable usb thumb drive for installing Kubuntu on different computers at work. I also planned to to use this device as a live system for the rare instances where I need another Linux system in my office to test things. Creating the bootable drive was a piece of cake with the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Ubuntu_Live_USB_creator\">usb-creator-gtk<\/a> package.<\/p>\n<p>Today I wanted to test out some cool stuff like dns2tcp, ptunnel, stunnel and ppp. I pulled out my thumb drive, smacked it into an available machine and booted off the cool little guy. I quickly found that I needed to install more packages and as I did, I ran out of space in the 128 MB that I had allocated for &#8220;extra space&#8221; on the 4GB drive.<\/p>\n<p>Yeah it was obviously a dumb move to only allocate 128 MB for my \/home and customizations. The fun thing about Linux is where there is a stupid mistake there is a chance to learn something new and do something fun, if you like that sort of thing.<\/p>\n<p>As it turns out usb-creator-gtk creates a file in the root of the drive called casper-rw. This file is an ext3 filesystem image and is what contains most of the writable data in your live environment. All I needed to do to get some more space (provided that drive wasn&#8217;t physically full) was to enlarge this file and then resize the ext3 filesystem inside the file to be able to use all of the newly available space in the file.<\/p>\n<p><strong>Oblig Warning: Only do this if you understand what these commands do and agree that they are the best course of action for your situation. Use at your own risk.<\/strong><\/p>\n<p>The following steps where taken from a computer which was running Kubuntu Karmic. You must not be running in the live environment on the usb device when doing this procedure.<\/p>\n<div class=\"dean_ch\" style=\"white-space: wrap;\">\n<ol>\n<li class=\"li1\">\n<div class=\"de1\">span class=&#8221;st0&#8243;>&#8217;e2fsck -f casper-rw&#8217;<\/span<\/div>\n<\/li>\n<\/ol>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I recently created a bootable usb thumb drive for installing Kubuntu on different computers at work. I also planned to to use this device as a live system for the rare instances where I need another Linux system in my office to test things. Creating the bootable drive was a piece of cake with the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[18,20,27,17,19,15,16,21],"_links":{"self":[{"href":"http:\/\/dan.verweire.com\/index.php?rest_route=\/wp\/v2\/posts\/53"}],"collection":[{"href":"http:\/\/dan.verweire.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/dan.verweire.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/dan.verweire.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/dan.verweire.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=53"}],"version-history":[{"count":14,"href":"http:\/\/dan.verweire.com\/index.php?rest_route=\/wp\/v2\/posts\/53\/revisions"}],"predecessor-version":[{"id":67,"href":"http:\/\/dan.verweire.com\/index.php?rest_route=\/wp\/v2\/posts\/53\/revisions\/67"}],"wp:attachment":[{"href":"http:\/\/dan.verweire.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=53"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/dan.verweire.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=53"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/dan.verweire.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}