{"id":244,"date":"2008-05-10T13:34:01","date_gmt":"2008-05-10T13:34:01","guid":{"rendered":"http:\/\/ubuntucat.wordpress.com\/?p=244"},"modified":"2008-05-10T13:34:01","modified_gmt":"2008-05-10T13:34:01","slug":"should-you-keep-unionfs-on-your-eee-pc","status":"publish","type":"post","link":"https:\/\/www.psychocats.net\/ubuntucat\/should-you-keep-unionfs-on-your-eee-pc\/","title":{"rendered":"Should you keep unionfs on your Eee PC?"},"content":{"rendered":"<p><b>Introduction<\/b><br \/> When I announced to the other Ubuntu Forums staff members I was getting an Eee PC and planning to stick with Xandros (as opposed to installing Ubuntu on it), one of the first pieces of advice I got was to remove <i>unionfs<\/i> from the Eee to free up space. <\/p>\n<p> <b>What&#8217;s the deal with <i>unionfs<\/i> anyway?<\/b><br \/>Just a quick primer on <i>unionfs<\/i> (as well as I can understand it): one of the great features the Eee has is the ability to restore factory settings with the press of a couple of buttons at bootup (tap F9 quickly and then select the restore option from the menu). One person made a YouTube video of the process and clocked the restore at two minutes. I did the restore myself and it took about ten seconds (not kidding). <\/p>\n<p>This works because the Eee has two major hard drive partitions (and two random smaller partitions at the end&mdash;I don&#8217;t know what those are for). The first is mounted at boot as read-only and contains the factory settings. The second is mounted as read-write and is the user partition you modify after you start using the Eee. While having those two partitions makes restoring (in case you mess up something) easy and quick, it also sucks up a lot of hard drive space on a drive that is already pretty small (4 GB on the 701 version). <\/p>\n<p> <b>My experience with <i>unionfs<\/i> and reasons for removing it<\/b><br \/> Even though the advice I got turned out to be good advice, at first I was hesitant to remove <i>unionfs<\/i> for two reasons: <\/p>\n<ol>\n<li>I knew I&#8217;d be tweaking Xandros a lot and wanted an easy way to restore the default installation in case I messed things up.\n<li>I didn&#8217;t have an external DVD-ROM drive to use for the restore DVD that came with the Eee, and I was intimidated by the tutorials about making USBs into bootable live &#8220;CDs.&#8221;<\/ol>\n<p> Well, after a lot of tweaks, I did manage to mess up the Eee badly enough that I <i>could<\/i> fix it by undoing all the tweaks, but I was glad to have the option to quickly restore it. And, more importantly&mdash;too cheap to buy an external DVD-ROM drive&mdash;I rolled up my sleeves and actually followed a tutorial on making a USB device into a live &#8220;CD.&#8221; It wasn&#8217;t as difficult as I thought it would be. <\/p>\n<p> So, with the ability to back up my installation (I used the <i>dd<\/i> command to back up the entire Eee PC hard drive to a .img file on an external hard drive), I had fewer qualms about removing <i>unionfs<\/i>. I also realized through regular use with <i>unionfs<\/i> that a little less than 2 GB is not a lot to work with after you have applications installed. I don&#8217;t want to store my entire music and photo collections on the Eee, but I&#8217;d like to have some selection available there. <\/p>\n<p> <b>The removal process<\/b><br \/> Emboldened by how much easier the make-a-USB-live-&#8220;CD&#8221; process was, I went ahead and tried the <a href=\"http:\/\/wiki.eeeuser.com\/howto:removeunionfs\">Removing UnionFS\/aufs tutorial on the EeeUser Wiki<\/a>, and the process could have been a lot smoother. I basically ended up following the instructions, messing everything up, and then having to restore my Xandros .img with <i>dd<\/i> and then redo the instructions again. <\/p>\n<p> If you&#8217;re planning to follow the instructions, here are a few things to keep in mind: <\/p>\n<ul>\n<li>You do not need to enable (i.e., add as a permanent boot option) single-user mode or recovery mode on the Eee, but it&#8217;s probably a good idea to know how to make it available for one-time use.\n<li>If you have an easy way to back up the Eee (the <i>dd<\/i> command, for example, or an external DVD-ROM drive with the Eee PC DVD), you can simplify the process by using a live CD (or live &#8220;CD&#8221; USB stick) to make all the changes to \/dev\/sda1. You should be familiar with mounting partitions, but it&#8217;ll save you the trouble of going into recovery mode and using <i>vi<\/i> and all that. You also won&#8217;t have to constantly reboot and test things (again, you should have backed everything up first; otherwise, testing is a good thing).\n<li>There are instructions in the middle of the page about growing the \/dev\/sda1 partition using GParted, but then there is a warning at the bottom of the page about how using GParted won&#8217;t work and how you should use <i>fdisk<\/i> and some other command-line options instead to merge partitions. Please heed this bottom-of-the-page warning. I tried to grow the \/dev\/sda1 partition in GParted to fill the space and got an error message and the \/dev\/sda1 partition then appeared to fill all 3.7 GB but was also almost completely full. When I rebooted into Xandros, the drive was reported as being only 2 GB large and almost full. If you want the non-<i>unionfs<\/i>-ed partition to fill the whole drive, follow the instructions about using the command-line to do it.\n<li>The other thing I learned is that the commands given seem counterintuitive to the uninitiated. To expand the first partition to fill the space, they actually have you delete <i>all<\/i> the partitions and then create a new partition. My intuition was telling me, &#8220;Hey, this is wrong! I don&#8217;t want to delete the partition. I just want to expand it.&#8221; But if you follow the instructions and delete all the partitions and recreate a new one, it actually has the same effect as expanding the first partition. Don&#8217;t ask me how that works, but it does. You backed everything up anyway, right? There should be nothing to lose.<\/ul>\n<p> <b>Conclusion<\/b><br \/> My advice to owners of any Eee PC that has a 4 GB hard drive or smaller is to find a way to back up and\/or restore your Xandros installation and then get rid of <i>unionfs<\/i> as quickly as possible in order to reclaim hard drive space. The quick restore tool is fun and amazing, but it takes up too much space. I&#8217;m so glad I now have 1.8 GB of free space on my Eee instead of 400 MB.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction When I announced to the other Ubuntu Forums staff members I was getting an Eee PC and planning to stick with Xandros (as opposed to installing Ubuntu on it), one of the first pieces of advice I got was to remove unionfs from the Eee to free up space. What&#8217;s the deal with unionfs&hellip; <a class=\"more-link\" href=\"https:\/\/www.psychocats.net\/ubuntucat\/should-you-keep-unionfs-on-your-eee-pc\/\">Continue reading <span class=\"screen-reader-text\">Should you keep unionfs on your Eee PC?<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[909,349],"class_list":["post-244","post","type-post","status-publish","format-standard","hentry","category-asus-eee-pc","tag-eee-pc","tag-unionfs","entry"],"_links":{"self":[{"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/posts\/244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/comments?post=244"}],"version-history":[{"count":0,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/posts\/244\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/media?parent=244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/categories?post=244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/tags?post=244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}