<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>406 Not Acceptable &#187; free hard drive space</title>
	<atom:link href="http://406notacceptable.com/tag/free-hard-drive-space/feed/" rel="self" type="application/rss+xml" />
	<link>http://406notacceptable.com</link>
	<description>406 Not Acceptable, not just an error message, but now a blog!</description>
	<lastBuildDate>Tue, 28 Jun 2011 15:13:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Free up your Eee&#8217;s Drive by Compression and Removing Unneeded Packages</title>
		<link>http://406notacceptable.com/hardware/laptops/eee-pc/free-up-your-eees-drive-by-compression-and-removing-unneeded-packages/</link>
		<comments>http://406notacceptable.com/hardware/laptops/eee-pc/free-up-your-eees-drive-by-compression-and-removing-unneeded-packages/#comments</comments>
		<pubDate>Mon, 07 Apr 2008 13:44:41 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[eee pc]]></category>
		<category><![CDATA[eeexubuntu]]></category>
		<category><![CDATA[free hard drive space]]></category>
		<category><![CDATA[shrinking operating system]]></category>

		<guid isPermaLink="false">http://www.406notacceptable.com/eee-pc/free-up-your-eees-drive-by-compression-and-removing-unneeded-packages/</guid>
		<description><![CDATA[With around 3GB of the 4GB of space on the standard Eee, you&#8217;ll either be needing to buy some extra storage in the shape of an SDHC card or free up some space on the hard drive. Now there are a few tricks to free up space on your Eee&#8217;s hard drive &#8212; I must [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>With around 3GB of the 4GB of space on the standard Eee, you&#8217;ll either be needing to buy some extra storage in the shape of an SDHC card or free up some space on the hard drive. Now there are a few tricks to free up space on your Eee&#8217;s hard drive &#8212; I must warn that I&#8217;ve not tried these on Xandros, as I don&#8217;t use it. Although, in principle, they should still work.I would recommend the first and third methods to most users, and leave the second one to advanced Linux users.</p>
<p><strong>Tidying up  apt-get</strong></p>
<p>The first method is to simply clean up your apt-get cache. You will only find this usefull if you&#8217;ve installed and removed programs on your machine; otherwise, I doubt it will do a thing, as the cache will already be empty. Numerous users have seen large amounts of space freed up from this, whilst others have barely seen a change. Therefore it&#8217;s not too difficult to conclude that results will vary. This process is very simple and is, in theory, completely harmless and no issues will ever arise due to its use.</p>
<p>All you need to do is fire up a terminal and run the following two commands:</p>
<p>sudo apt-get autoremove</p>
<p>sudo apt-get clean</p>
<p>The autoremove command will remove any orphaned packages; packages that are installed, but are not used by anything and can&#8217;t be used on their own. The clean command will then clean out the package cache.</p>
<p><strong>Removing unneeded drivers<br />
</strong></p>
<p>Be warned, this is an advanced method and doesn&#8217;t really give you much space back. As the video driver folder is only 5 megabytes in the first place; but even 5 megabytes are precious when you only have 4000 in the first place.</p>
<p>Please note that removing drivers that are needed will cause serious problems to your system. So I&#8217;d leave this one to those who know what they are doing (so make sure <em>you know what you doing</em>!) To be on the safe side I believe all the drivers referencing amd, ati, s3, nv, and savage are removable. As the Eee Pc doesn&#8217;t use any AMD, ATI, S3, or nVidia components.</p>
<p>To get to the folder in question, with the permission to delete files use this command in the terminal:</p>
<p>sudo nautilus /usr/lib/xorg/modules/drivers/</p>
<p><strong>Compressing the usr directory</strong></p>
<p>You&#8217;ll notice the usr directory is massive, even without doing anything to the operating system. It will most likely stand around 1.5GB for most users, and even if this only gets a third of that back it will be a great improvement.</p>
<p>The <a href="http://po-ru.com/diary/linux-liposuction-or-xubuntu-in-under-a-gig-on-the-eee-pc/" title="Linux Liposuction">following information was originally by Paul Battley</a>, I&#8217;ve made the odd change here and there. As I found the original guide to be so good I decided to use it as a base for the information provided here.</p>
<p><strong>squashfs</strong> lets you compress a filesystem, but itâ€™s read-only. <strong>unionfs</strong>, meanwhile, allows you to overlay a writable filesystem on top to allow changes to the data. Obviously, the more you change the data, the more disk space is used, but itâ€™s always possible to recompress and recover the space later on. So, you&#8217;d be better off installing and removing all the packages you think you will want, before running this process; in addition, it&#8217;s probably a good idea to run this process every now and again. Personally, I believe every 6 months will probably suffice, but this would vary depending on how much you change the installed components.</p>
<p>All the commands Iâ€™m going to give here need to be run as root, and Iâ€™m going to assume basic Linux competence. If it doesnâ€™t make sense to you, you probably shouldnâ€™t try it!</p>
<p>In order to run as root, run the following command</p>
<p>sudo su</p>
<p>You will then be asked for your password, please avoid using this command often. It makes it easy to break your system!</p>
<p>Step 1 is to install a couple of packages:</p>
<p>apt-get install squashfs-tools unionfs-tools</p>
<p>Then make a space for your compressed filesystem and overlay:</p>
<p>mkdir -p /.filesystems/usr/overlay</p>
<p>And compress your filesystem:</p>
<p>mksquashfs /usr /.filesystems/usr/usr.sqfs</p>
<p>Add these lines to /etc/modules:</p>
<p>unionfs<br />
squashfs<br />
loop</p>
<p>&#8230; and these lines to /etc/fstab:</p>
<p>/.filesystems/usr/usr.sqfs /usr squashfs ro,loop,nodev 0 0<br />
unionfs /usr unionfs nodev,noatime,dirs=/.filesystems/usr/overlay=rw:/usr=ro 0 0</p>
<p>Next, reboot from a live distribution on a USB stick, CD, or SD card, mount the internal root partition, and move aside the old <code>/usr</code> directory:</p>
<p>mkdir /mnt/sda1<br />
mount /dev/sda1 /mnt/sda1<br />
mv /mnt/sda1/usr /mnt/sda1/usr.old<br />
mkdir /mnt/sda1/usr</p>
<p>Reboot from the internal disk. Did it work? Then you can remove the <code>/usr.old</code> directory to reclaim the space.</p>
<p>Again thanks to <a href="http://po-ru.com/diary/linux-liposuction-or-xubuntu-in-under-a-gig-on-the-eee-pc/" title="Shrinking eeeXubuntu">Paul Battley for the compression  information.</a></p>


<p>No related posts.</p><hr />
<p><small>&copy; jim for <a href="http://406notacceptable.com">406 Not Acceptable</a>, 2008. |
<a href="http://406notacceptable.com/hardware/laptops/eee-pc/free-up-your-eees-drive-by-compression-and-removing-unneeded-packages/">Permalink</a> |
<a href="http://406notacceptable.com/hardware/laptops/eee-pc/free-up-your-eees-drive-by-compression-and-removing-unneeded-packages/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://406notacceptable.com/hardware/laptops/eee-pc/free-up-your-eees-drive-by-compression-and-removing-unneeded-packages/&amp;title=Free up your Eee&#8217;s Drive by Compression and Removing Unneeded Packages">del.icio.us</a>
<br/>
Post tags: <a href="http://406notacceptable.com/tag/eee-pc/" rel="tag">eee pc</a>, <a href="http://406notacceptable.com/tag/eeexubuntu/" rel="tag">eeexubuntu</a>, <a href="http://406notacceptable.com/tag/free-hard-drive-space/" rel="tag">free hard drive space</a>, <a href="http://406notacceptable.com/tag/shrinking-operating-system/" rel="tag">shrinking operating system</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://406notacceptable.com/hardware/laptops/eee-pc/free-up-your-eees-drive-by-compression-and-removing-unneeded-packages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

