<?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>The HyRax Macrocosm &#187; Hard-Drive</title>
	<atom:link href="http://www.serenux.com/tag/hard-drive/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.serenux.com</link>
	<description>Life, the Universe and Ubuntu.</description>
	<lastBuildDate>Tue, 10 Jan 2012 06:59:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>HowTo: Create a Diskless workstation that boots from PXE using Ubuntu</title>
		<link>http://www.serenux.com/2011/04/howto-create-a-diskless-workstation-that-boots-from-pxe-using-ubuntu/</link>
		<comments>http://www.serenux.com/2011/04/howto-create-a-diskless-workstation-that-boots-from-pxe-using-ubuntu/#comments</comments>
		<pubDate>Sat, 30 Apr 2011 13:25:04 +0000</pubDate>
		<dc:creator>HyRax</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Hard-Drive]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Lucid]]></category>
		<category><![CDATA[MythTV]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[PXE]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.serenux.com/?p=772</guid>
		<description><![CDATA[Diskless booting is where a PC starts up purely from a network connection. It does not have a physical hard-drive in it to start from in the traditional manner. Why would you want to do this? Well, say for example you have a MythTV Frontend PC. For the most part, most Frontends are dedicated PC&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Diskless booting is where a PC starts up purely from a network connection. It does not have a physical hard-drive in it to start from in the traditional manner.</p>
<p>Why would you want to do this? Well, say for example you have a MythTV Frontend PC. For the most part, most Frontends are dedicated PC&#8217;s connected to a TV or projector that are not used for any other purpose, so technically there is really no need to have a hard-drive inside one as nothing new will ever be stored (all the media is streamed from the Backend server). There&#8217;s also the added bonus of less noise by not having a hard-drive installed.</p>
<p>Another good example of using a Diskless boot environment is for performing offline virus scans of Windows based PC&#8217;s in a safe environment that is not Windows, using tools like ClamAV. In a corporate environment, having a &#8220;normal&#8221; installation makes it easier to setup default settings that normally don&#8217;t suit booting up from an Ubuntu Live CD, such as corporate Proxy settings. Making a Diskless Boot setup is far easier than creating a customised Live CD in this instance.</p>
<p>So how exactly do you create a diskless booting PC?</p>
<p><span id="more-772"></span><strong><em>Pre-requisites:</em></strong></p>
<ul>
<li>First up, you need a working PXE server. If you haven&#8217;t built one yet, you can refer to my <a title="HowTo: Setup your own PXE Boot Server using Ubuntu" href="http://www.serenux.com/2010/05/howto-setup-your-own-pxe-boot-server-using-ubuntu-server/" target="_blank">previous tutorial on how to build one</a>.</li>
<li>Sufficient space to store a typical Ubuntu Desktop install. I would recommend having at least 10GB free to allow space for both the OS and any additional apps you might install.</li>
<li>A PC that you will using as your diskless machine that has the ability to boot from PXE.</li>
<li>A temporary hard-drive for your diskless machine that we will be using to do our initial build on.</li>
<li>A fast network. Diskless booting is only useful if your network can transfer data quickly. I would recommend that you use a gigabit network.</li>
<li>It is recommended to have at least 2GB RAM on your diskless PC, primarily because we will not be running a swap file or swap partition (swapping over a network connection is just silly).</li>
<li>Ubuntu 10.04.2 LTS was used for this tutorial, but you should be able to use just about any release of Ubuntu. Note: The version of Ubuntu on your PXE server and the version of Ubuntu you are turning into diskless boot does <span style="text-decoration: underline;">not</span> have to be the same version, but I would recommend using 10.04.2 LTS or later.</li>
</ul>
<p><strong><em>What to do:</em></strong></p>
<ol>
<li>First up, install the temporary hard-disk into your PC that is going to become diskless. You can attach it in the traditional way or connect it via USB.<br />
.</li>
<li>Perform a normal installation of Ubuntu Desktop Edition onto the hard-drive of your PC.<br />
.</li>
<li>Once installed, update the system with any outstanding system updates.<br />
.</li>
<li>Install any additional apps you wish to utilise on this machine, such as MythTV.<br />
.</li>
<li>Once you are satisfied that your installation is setup the way you want it, we need to prepare the installation to be able to boot via PXE. Start by opening up a terminal and type in the following commands:
<pre><span style="color: #000080;">$ cd ~
$ sudo nano /etc/initramfs-tools/initramfs.conf</span></pre>
</li>
<li>You will now be looking at a text configuration file in the Nano text editor. This is the configuration file that controls how the boot-time RAM disk image is created. We need to modify it so that we can create a PXE-ready version of the RAM disk image instead of the usual type. Scroll down until you find the configuration line that looks like:
<pre><span style="color: #000080;">MODULES=most</span></pre>
<p>&#8230;and modify it so that is now looks like:</p>
<pre><span style="color: #000080;">MODULES=netboot</span></pre>
</li>
<li>Scroll down a little further until you see the line:
<pre><span style="color: #000080;">BOOT=local</span></pre>
<p>&#8230;and change it to read:</p>
<pre><span style="color: #000080;">BOOT=nfs</span></pre>
</li>
<li>Press CTRL+X, then &#8220;Y&#8221; and then &#8220;Enter&#8221; to save your changes. You will be returned to the Terminal prompt.<br />
.</li>
<li>Now let&#8217;s create our custom RAM Disk image using the following command:
<pre><span style="color: #000080;">$ sudo mkinitramfs -o ./initrd.img</span></pre>
</li>
<li>Once that has finished, we also need an unmodified copy of the current kernel you are running:
<pre><span style="color: #000080;">$ cp /boot/vmlinuz-`uname -r` ./vmlinuz</span></pre>
</li>
<li>Now we need to prep the server. First up, we need to setup a way to transfer our temporary hard-disk contents to the PXE server, and we also need to ready how the PXE server will serve the data to the diskless workstation when booting. We will be using the Network FileSystem or NFS for short. On your Ubuntu PXE Server, open a terminal and type in the following:
<pre><span style="color: #000080;">$ sudo apt-get install nfs-kernel-server</span></pre>
</li>
<li>Once the NFS server is installed, we need to setup the directory that will store and serve the Diskless system&#8217;s files. Assuming you have all your PXE related data under /srv/tftp, let&#8217;s create the following for our Diskless station data:
<pre><span style="color: #000080;">$ sudo mkdir -p /srv/nfs/disklessboot</span></pre>
</li>
<li>Now let&#8217;s tell the NFS server about this new directory:
<pre><span style="color: #000080;">$ sudo nano /etc/exports</span></pre>
</li>
<li>In the text file that appears in the Nano text editor, scroll to the bottom of the file and add the following line:
<pre><span style="color: #000080;">/srv/nfs/disklessboot          *(rw,no_root_squash,async)</span></pre>
<p>The above will allow read/write access to the path /srv/nfs/disklessboot on your PXE server from any incoming IP address.</li>
<li>Save your changes by pressing CTRL+X, then &#8220;Y&#8221; and then &#8220;Enter&#8221;.<br />
.</li>
<li>Now activate the new NFS share by using the following command:
<pre><span style="color: #000080;">$ sudo exportfs -a</span></pre>
</li>
<li>We&#8217;re nearly there! Now we just need to transfer the contents of our temporary workstation hard-drive to the new NFS share. On your soon-to-be-diskless PC (<span style="text-decoration: underline;">not</span> the server), and assuming that your PXE server&#8217;s IP address is 192.168.0.10, type the following in a Terminal:
<pre><span style="color: #000080;">$ mkdir /dev/shm/nfs
$ sudo mount -t nfs -onolock 192.168.0.10:/srv/nfs/disklessboot /dev/shm/nfs</span></pre>
<p>The above will create a directory in your RAM disk to mount the PXE server&#8217;s NFS share on and the second command will mount the NFS share /srv/nfs/disklessboot in the directory you just created in your RAM disk locally, thus allowing you to now read and write data to that NFS share by using /dev/shm/nfs locally.</li>
<li>Now let&#8217;s copy the OS files from the temporary hard-disk to the PXE server&#8217;s NFS share:
<pre><span style="color: #000080;">$ sudo cp -avx /. /dev/shm/nfs/.
$ sudo cp -avx /dev/. /dev/shm/nfs/dev/.</span></pre>
<p>The above commands will take a minute or two to finish and will show you a giant list of files being copied.</li>
<li>We are now done with the soon-to-be-diskless PC, so shut it down and remove your temporary hard-drive.<br />
.</li>
<li>Go back to your server and type in the following at the Terminal prompt:
<pre><span style="color: #000080;">$ sudo mkdir -p /srv/tftp/disklessboot
$ sudo cp /srv/nfs/disklessboot/home/USERNAME/vmlinuz /srv/tftp/disklessboot/
$ sudo cp /srv/nfs/disklessboot/home/USERNAME/initrd.img /srv/tftp/disklessboot/</span></pre>
<p>Note: Replace USERNAME above with whatever your username was on the temporary hard-disk setup, eg: &#8220;/home/jbloggs/&#8221;)</li>
<li>We now need to change the network setup of the diskless boot install so that it doesn&#8217;t try to configure itself with a new IP address on boot (since it&#8217;ll already have one when you do the initial PXE boot):
<pre><span style="color: #000080;">$ sudo nano /srv/nfs/disklessboot/etc/network/interfaces</span></pre>
</li>
<li>Look for a reference to &#8220;eth0&#8243; which is your first ethernet adapter. It will generally be the last line in the file and may look like:
<pre><span style="color: #000080;">auto eth0</span></pre>
<p>&#8230;or:</p>
<pre><span style="color: #000080;">iface eth0 inet dhcp</span></pre>
</li>
<li>Once you locate it, comment out that line by putting a hash symbol at the front like so:
<pre><span style="color: #000080;">#auto eth0</span></pre>
<p>&#8230;or:</p>
<pre><span style="color: #000080;">#iface eth0 inet dhcp</span></pre>
</li>
<li>Now add a new line with the following:
<pre><span style="color: #000080;">iface eth0 inet manual</span></pre>
</li>
<li>Save your changes with CTRL+X, then &#8220;Y&#8221; and then &#8220;Enter&#8221;.<br />
.</li>
<li>Now we need to ensure that the devices mounted by your diskless booting PC do not try to mount physical disk devices for things like /home and the root filesystem. Type in the following command:
<pre><span style="color: #000080;">$ sudo nano /srv/nfs/disklessboot/etc/fstab</span></pre>
</li>
<li>Once in the text editor, DELETE EVERYTHING and replace it all with the following:
<pre><span style="color: #000080;">proc            /proc           proc    defaults        0       0
/dev/nfs        /               nfs     defaults        1       1
none            /tmp            tmpfs   defaults        0       0
none            /var/run        tmpfs   defaults        0       0
none            /var/lock       tmpfs   defaults        0       0
none            /var/tmp        tmpfs   defaults        0       0</span></pre>
</li>
<li>Save your changes with CTRL+X, then &#8220;Y&#8221; and then &#8220;Enter&#8221;.<br />
.</li>
<li>That&#8217;s the Diskless setup ready to go. All that we now need to do is configure the PXE boot menu to give you an option to boot Diskless. To do this, edit your PXE boot menu configuration file. Assuming you called it /srv/tftp/mybootmenu.cfg, type in the following:
<pre><span style="color: #000080;">$ sudo nano /srv/tftp/mybootmenu.cfg</span></pre>
</li>
<li>In the text editor, scroll down to the bottom of your configuration file and add the following lines:
<pre><span style="color: #000080;">label My Diskless Boot PC
   kernel disklessboot/vmlinuz
   append initrd=disklessboot/initrd.img root=/dev/nfs nfsroot=192.168.0.10:/srv/nfs/disklessboot ip=dhcp rw</span></pre>
<p>The above menu configuration will tell PXE to load the kernel and custom RAM disk image from the TFTP directory and then transfer control of the boot process to the OS files located in /srv/nfs/disklessboot which will be mounted on the diskless system at /dev/nfs as the root filesystem.</li>
<li>Save your changes by pressing CTRL+X, then &#8220;Y&#8221; and then &#8220;Enter&#8221;.<br />
.</li>
<li>Finally, make sure that the TFTP daemon can read the new files you added to it with the following command:
<pre><span style="color: #000080;">$ sudo chmod 777 -R /srv/tftp</span></pre>
</li>
<li>That&#8217;s it! You are now ready to boot! Turn on your now-diskless PC and tell it to boot from PXE. When the PXE boot menu appears, choose &#8220;My Diskless Boot PC&#8221; and watch in wonder and amazement as Ubuntu boots up without a hard-disk as if by magic!</li>
</ol>
<p>NOTE: Whilst the Diskless PC will boot and operate much like any ordinary PC and in fact you can indeed perform future system updates this way, be aware that the kernel itself will NOT get automatically updated. Newer kernels will get installed to the NFS mount as you would expect, however the kernel actually boots from your TFTP directory, not the NFS share, so if you do update the kernel in future, you must create a new RAM disk image manually as per step 9 and copy both it and the new kernel file into your TFTP&#8217;s directory (in this case /srv/tftp/disklessboot/) otherwise your updated system will not boot anymore. Alternatively, simply allow all updates to be performed <span style="text-decoration: underline;">except</span> for kernel updates.</p>
<p>Finally, hardware drivers: If you install the NVidia proprietary drivers for your Diskless Boot system, ensure that you don&#8217;t try to boot other systems that do not contain NVidia graphics hardware otherwise X will break. The reason for this is that the NVidia driver installation makes a number of changes to system-level libraries to work, effectively binding that system to NVidia graphics-based systems only. If you intend to use your Diskless setup on multiple hardware platforms, such as NVidia, Intel and ATi, do not install the proprietary NVidia (or ATi) driver.</p>
<p>Enjoy! <img src='http://www.serenux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.serenux.com/2011/04/howto-create-a-diskless-workstation-that-boots-from-pxe-using-ubuntu/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>HowTo: Monitor the progress of dd.</title>
		<link>http://www.serenux.com/2011/02/howto-monitor-the-progress-of-dd/</link>
		<comments>http://www.serenux.com/2011/02/howto-monitor-the-progress-of-dd/#comments</comments>
		<pubDate>Fri, 04 Feb 2011 23:40:13 +0000</pubDate>
		<dc:creator>HyRax</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Applications]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Hard-Drive]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.serenux.com/?p=757</guid>
		<description><![CDATA[The dd command is a tool used to pipe data in from a source to a destination. It has a multitude of uses ranging from creating large dummy files of a specific size to duplicating hard-drives sector by sector to another disk or to a backup file. It&#8217;s also useful for fixing problems with hard-drives [...]]]></description>
			<content:encoded><![CDATA[<p>The <em>dd</em> command is a tool used to pipe data in from a source to a destination. It has a multitude of uses ranging from creating large dummy files of a specific size to duplicating hard-drives sector by sector to another disk or to a backup file. It&#8217;s also useful for fixing problems with hard-drives that Windows refuses to deal with.</p>
<p>But we&#8217;re not looking at the virtues of <em>dd</em> here. We&#8217;re looking at its annoyances and <em>dd</em> has one particularly glaring annoyance &#8211; a lack of display of progress. You could tell <em>dd</em> to start imaging your multi-terabyte hard-drive and not have any indication of how far it has gone &#8211; you just have to wait until it finishes. The <em>dd</em> command only outputs some information right at the very end of its job, which could well be several hours later. The only indicator that you have that something is happening is your hard-drive light madly flashing away.</p>
<p>Luckily while <em>dd</em> doesn&#8217;t show progress during its tasks, it can be prodded externally to give up information about itself as it runs, and we can achieve that by using the <em>kill</em> command without actually killing the <em>dd</em> command&#8217;s execution.</p>
<p><span id="more-757"></span></p>
<p>Now the <em>kill</em> command doesn&#8217;t just terminate tasks. It can also send other standard POSIX signals to applications. Many applications are written to acknowledge certain signals and perform an action on receiving them. In the case of <em>dd</em>, there is one signal that will make it output its summary information to the console as though it had finished, but rather than terminate, it keeps on going. The signal in question is USR1.</p>
<p>Here&#8217;s how to make use of it:</p>
<ol>
<li>First we need a <em>dd</em> process running. Let&#8217;s say we are imaging our first fixed hard-drive <em>/dev/sda</em> to an image file called <em>MyHDDBackup.img</em> using the following command:
<pre><span style="color: #000080;">$ sudo dd if=/dev/sda of=/home/jbloggs/MyHDDBackup.img</span></pre>
</li>
<li>Now while that is running, open up a second terminal and type in the following followed by Enter:
<pre><span style="color: #000080;">$ sudo kill -USR1 `pgrep ^dd`
</span></pre>
<p>Breakdown of the above command:<em><br />
</em></p>
<ul>
<li><em>sudo</em> runs this command as root. In this case since we&#8217;re using <em>dd</em> as root, we also need to run the <em>kill</em> command as root or we won&#8217;t be able to send anything to <em>dd</em>.</li>
<li><em>kill</em> is the command we are using to send <em>dd</em> a signal with.</li>
<li><em>-USR1</em> is the signal we are sending to <em>dd</em>.</li>
<li><em>pgrep</em> is a program that will show you the process ID of a given application, in this case we use the argument &#8220;^dd&#8221; to say &#8220;locate any program that starts with the text &#8216;dd&#8217; only&#8221; otherwise we would get other processes that containg the letters &#8220;dd&#8221; together in their name if we left out the chevron character. Note that the <em>pgrep</em> command is enclosed in &#8220;`&#8221; quotes so that it is executed and returns just a process ID number to the <em>kill</em> command.</li>
</ul>
<p><span style="color: #000080;"> </span></li>
<li>Now have a look at the terminal that <em>dd</em> is running in. It has suddenly output some data about itself, specifically, how much of the task had been completed, but <em>dd</em> is still running! This is great &#8211; but how can we regularly have <em>dd</em> tell us where it&#8217;s up to without having to manually enter the above command each time? Simple, by combining it with the <em>watch</em> command:
<pre><span style="color: #000080;">$ watch 'sudo kill -USR1 `pgrep ^dd`'</span>
</pre>
<p>The <em>watch</em> command will will re-execute the <em>kill</em> command once every two seconds, giving you near-realtime status to what <em>dd</em> is doing. If you want to change how often the <em>watch</em> command polls for, you can change it with the <em>-n</em> parameter, for example to change the polling to every 5 seconds, you would use:</p>
<pre><span style="color: #000080;">$ watch -n5 'sudo kill -USR1 `pgrep ^dd`'</span></pre>
</li>
</ol>
<p>While not providing any means of showing you how long it will take for <em>dd</em> to ultimately finish, you can now make use of the transfer speed shown along with the data processed thus far and calculate a rough idea of when <em>dd</em> will complete its task now.</p>
<p>Pat yourself on the back. You can now rest easy knowing that you can find out at anytime where <em>dd</em> is up to. <img src='http://www.serenux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.serenux.com/2011/02/howto-monitor-the-progress-of-dd/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Mini-Review: Generic hot-swap eSATA Docking Bay with Ubuntu</title>
		<link>http://www.serenux.com/2010/02/mini-review-generic-hot-swap-esata-docking-bay-with-ubuntu/</link>
		<comments>http://www.serenux.com/2010/02/mini-review-generic-hot-swap-esata-docking-bay-with-ubuntu/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 12:59:08 +0000</pubDate>
		<dc:creator>HyRax</dc:creator>
				<category><![CDATA[Review]]></category>
		<category><![CDATA[Hard-Drive]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.serenux.com/?p=631</guid>
		<description><![CDATA[I regularly deal with external hard-drives, be it for data backup or if I&#8217;m rescuing a client&#8217;s hard-drive from uncertain death. Since the idea of opening my PC on a regular basis to connect a drive is a bit of a turn off, I used to use an external USB drive enclosure. This works fine, [...]]]></description>
			<content:encoded><![CDATA[<p>I regularly deal with external hard-drives, be it for data backup or if I&#8217;m rescuing a client&#8217;s hard-drive from uncertain death.</p>
<p>Since the idea of opening my PC on a regular basis to connect a drive is a bit of a turn off, I used to use an external USB drive enclosure. This works fine, but it&#8217;s a bit slow (well, at least until USB 3.0 makes its debut). The eSATA standard allows you to connect external drives at full SATA speed, but it&#8217;s not cost-effective to buy an enclosure for every external drive you have.</p>
<p>Enter the Docking Bay. This is a simple weighed base that allows you to connect a hard-drive in a similar way to how you used to plug in game cartridges into a classic game console like the Atari 2600. You can then eject the hard-drive and plug another one in, all without restarting the PC.</p>
<p>This is a review of one such Docking Bay and how it works with Ubuntu, including the wonders of hot-swapping.</p>
<p><span id="more-631"></span>I came across this generic eSATA Docking Bay whilst browsing my local PC store. eSATA Docking Bays have been around for awhile now, but I never got around to getting one so I figured I may as well try this one and see how it went under Ubuntu.</p>
<p style="text-align: center;">
<div id="attachment_684" class="wp-caption aligncenter" style="width: 287px"><a href="http://www.serenux.com/wp-content/uploads/2010/02/DockingBay1.jpeg"><img class="size-large wp-image-684  " title="eSATA HDD Docking Bay" src="http://www.serenux.com/wp-content/uploads/2010/02/DockingBay1-768x1024.jpg" alt="" width="277" height="368" /></a><p class="wp-caption-text">With a HDD inserted into the dock.</p></div>
<div id="attachment_685" class="wp-caption aligncenter" style="width: 378px"><a href="http://www.serenux.com/wp-content/uploads/2010/02/DockingBay2.jpeg"><img class="size-large wp-image-685  " title="eSATA HDD Docking Bay 2" src="http://www.serenux.com/wp-content/uploads/2010/02/DockingBay2-1024x768.jpg" alt="" width="368" height="277" /></a><p class="wp-caption-text">Without the HDD inserted into the dock.</p></div>
<p>There is unit was branded &#8220;A-Power&#8221; but I&#8217;ve seen several of these drives with various brand names on it, so this one is as generic as they come, but it comes in one of three variants:</p>
<ol>
<li>eSATA and USB Docking Bay</li>
<li> eSATA and USB Docking Bay with in-built USB card-reader</li>
<li>USB-only Docking Bay with in-built USB card-reader</li>
</ol>
<p>In my case, I got the first variant as I already have a separate card-reader.</p>
<p><strong><span style="text-decoration: underline;">Hooking Up</span></strong></p>
<p>The Docking Bay is very easy to hook up. The package comes with the following components:</p>
<ul>
<li>The Docking Bay unit</li>
<li>Power Supply</li>
<li>eSATA cable</li>
<li>USB cable</li>
</ul>
<p>After connecting power, the Docking Bay is connected to the PC by the eSATA cable to a spare eSATA port on the back of your PC. You then insert the hard-drive into the slot on the top of the unit &#8211; it caters for both 3.5&#8243; desktop hard-drives and 2.5&#8243; notebook hard-drives. Once inserted, power on the drive using the power button at the back of the unit. The power light on the top of the Docking Bay will light up and you can now switch on your PC.</p>
<p><span style="text-decoration: underline;"><strong>Configuration</strong></span></p>
<p>eSATA Docking Bays don&#8217;t actually need any configuration as such. If you wish to make use of SATA&#8217;s ability to hot-swap, you will need to enable the Advanced Configuration Host Interface (AHCI) in your PC&#8217;s BIOS. Not every motherboard has AHCI, but if your machine is a recent machine, you should have AHCI capabilities. If you do not enable AHCI, you can still use your Docking Bay, however you will not be able to hot-swap a new drive without shutting down your PC first.</p>
<p><span style="text-decoration: underline;"><strong>Using the Docking Bay</strong></span></p>
<p>Drives inserted into the Docking bay appear like any ordinary permanently installed hard-drive inside your PC. You can format them, partition them, read and write data to them and see their SMART status like any other drive.</p>
<p>Doing an unscientific benchmarks using the <em>dd</em> app with a 7200rpm Seagate 1TB HDD, I was able to write straight zeros to the drive at a rate of about 116MB/s and read at about 120MB/s.</p>
<p>Real-world file copying transferred data at about 86MB/s which is consistent with normal single-drive copy speeds.</p>
<p>Doing a fresh installation of Ubuntu Karmic 9.10 on the hard-drive and booting my system from the docking bay and then repeating the boot test with the drive attached directly to the internal SATA connection as normal, Ubuntu booted in precisely the same amount of time, as one would expect. I was also able to dual-boot Ubuntu with Windows 7 without any issue.</p>
<p>Hot-swapping works well also. While Ubuntu is running, I insert my hard-drive into the dock, power on the drive and wait a few seconds. The drive appears in the Places menu, you choose it, enter your sudo password to mount the drive, and the drive appears on your desktop. When you are done with the drive, you simply do a right-mouse-click on the drive&#8217;s icon, choose &#8220;Unmount&#8221; and wait for any data to be written to the drive. Once the drive icon disappears off the desktop, you can then power off the drive in the docking bay, then press the eject button to remove the drive.</p>
<p>Dealing with differently sized drives, I tried a half-height Seagate 500GB I have (see photos). The spring-loaded flap on the top of the drive was able to hold the drive in place without a problem. Trying with a 2.5&#8243; notebook HDD, the docking bay provides a cut-out section that allows you to insert the 2.5&#8243; HDD but the flap does not press directly against the drive.</p>
<p><span style="text-decoration: underline;"><strong>Conclusion</strong></span></p>
<p>The convenience of a hard-drive docking station cannot be understated. This unit provides a simple, effective interface. For AUD$25 it&#8217;s cheap and in the last couple of months I&#8217;ve been using this unit, it has proven to be very reliable.</p>
<p>While this unit is not exactly the most elegant-looking of devices, it does the job and does it well.</p>
<p><span style="color: #0000ff;"><strong>Review score: 9 out of 10</strong></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.serenux.com/2010/02/mini-review-generic-hot-swap-esata-docking-bay-with-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>HowTo: Reclaim reserved disk space on non-system drives taken by the Ext3 filesystem.</title>
		<link>http://www.serenux.com/2009/04/howto-reclaim-reserved-disk-space-on-non-system-drives-taken-by-the-ext3-filesystem/</link>
		<comments>http://www.serenux.com/2009/04/howto-reclaim-reserved-disk-space-on-non-system-drives-taken-by-the-ext3-filesystem/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 14:53:49 +0000</pubDate>
		<dc:creator>HyRax</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Hard-Drive]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Recovery]]></category>
		<category><![CDATA[Storage]]></category>

		<guid isPermaLink="false">http://www.serenux.com/?p=471</guid>
		<description><![CDATA[I made a rather alarming discovery today, quite by accident. Like most people, I use an external hard-drive to backup data to, or to shift things around if I&#8217;m low on space on my PC&#8217;s internal drive. Well, today that external drive reported that it was full. Damn. So I fire up Ubuntu&#8217;s Disk Usage [...]]]></description>
			<content:encoded><![CDATA[<p>I made a rather alarming discovery today, quite by accident.</p>
<p>Like most people, I use an external hard-drive to backup data to, or to shift things around if I&#8217;m low on space on my PC&#8217;s internal drive. Well, today that external drive reported that it was full. Damn.</p>
<p>So I fire up Ubuntu&#8217;s Disk Usage Analyser, aka Boabab, to find out what&#8217;s consuming the most space. I use a 1TB external drive and it&#8217;s formatted total is about 916GB, which is about right, however Boabab reported that the total consumption of data on the drive only added up to about 860GB &#8211; wtf? Even Nautilus&#8217;s Volume Properties window was reporting that the drive still had 50GB-odd free, so why is the system telling me it&#8217;s full?</p>
<p>I use Ext3 on my drives and, being a journalled filesystem, some space on the drive is reserved to record these journals among other functions which is expected, but 50GB worth? I did some research and found out that the Ext3 filesystem reserves 5% of disk space by default for itself! In this day and age of large drives, that&#8217;s a huge chunk of lost space!!</p>
<p>Thankfully there is a way to tell Linux not to reserve so much space. Read on&#8230;</p>
<p><span id="more-471"></span></p>
<ol>
<li>First up, unmount your drive. You can do that by either right-clicking on the drive icon on the desktop and choosing &#8220;Unmount volume&#8221; or by clicking on the Eject icon next to it in the Places pane of any Nautilus window.<br />
.</li>
<li>Next, open up a terminal and type the following:
<pre><span style="color: #000080;">$ sudo fdisk -l
</span></pre>
<p>This will list all your available drives. Identify which one is your external drive and take note of the device name, eg: in my case my external drive appears as /dev/sdb with one partition on it, sdb1.<br />
.</li>
<li>Now type in the following:
<pre><span style="color: #000080;">$ sudo tune2fs -m 1 /dev/sdb1
</span></pre>
<p>This will modify the filesystem on that drive, on that one partition, to only reserve 1% instead of the default 5%.<br />
.</li>
<li>Now re-mount your drive by clicking on its name in the Places pane in a Naultilus window.<br />
.</li>
<li>The Nautilus Device Properties window will still show the same free space as before, because it reports the true total free space, but any Nautilus File Manager window only reports <em>usable</em> free space, which in the case of my external drive had now freed up a very sizable 37GB!<br />
.</li>
<li>Lather, rinse, repeat on any other non-system drive partitions on the same or different drive you want to reclaim space back for.</li>
</ol>
<p>You learn something new everyday. <img src='http://www.serenux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.serenux.com/2009/04/howto-reclaim-reserved-disk-space-on-non-system-drives-taken-by-the-ext3-filesystem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mini-Review: The Fujitsu Dynadisq III 320GB USB Portable External HDD</title>
		<link>http://www.serenux.com/2008/11/mini-review-the-fujitsu-dynadisq-iii-320gb-usb-portable-external-hdd/</link>
		<comments>http://www.serenux.com/2008/11/mini-review-the-fujitsu-dynadisq-iii-320gb-usb-portable-external-hdd/#comments</comments>
		<pubDate>Sun, 09 Nov 2008 14:10:02 +0000</pubDate>
		<dc:creator>HyRax</dc:creator>
				<category><![CDATA[Review]]></category>
		<category><![CDATA[Fujitsu]]></category>
		<category><![CDATA[Hard-Drive]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[USB]]></category>

		<guid isPermaLink="false">http://www.serenux.com/?p=127</guid>
		<description><![CDATA[Actually, I tell a lie &#8211; the full title for this product is the &#8220;Dynadisq III High Speed USB 2.0 Portable Storage &#38; Backup Solution for Fujitsu 2.5&#8243; SATA Disk Drives&#8221; (say that in one breath 5 times)! Title aside, this is one of yet another series of pre-packaged drive &#38; enclosure solutions being bandied [...]]]></description>
			<content:encoded><![CDATA[<p>Actually, I tell a lie &#8211; the full title for this product is the <em>&#8220;Dynadisq III High Speed USB 2.0 Portable Storage &amp; Backup Solution for Fujitsu 2.5&#8243; SATA Disk Drives&#8221;</em> (say that in one breath 5 times)!</p>
<p>Title aside, this is one of yet another series of pre-packaged drive &amp; enclosure solutions being bandied about the market today. These solutions are gaining interest with a lot of consumers because they generally manage to undercut the combined cost of buying the same hard-drive and enclosure separately, so much in fact that many users who only need the drive, buy the solution package, rip out the drive and discard the case because in some cases (pun not intended), it can be cheaper this way.</p>
<p>Cost aside, what if you simply need to have a cost-effective external portable backup solution with minimal hassles? That immediately calls for a notebook hard-drive that can be powered by the USB data cable.</p>
<p><span id="more-127"></span></p>
<p>A quick trip down to the weekly gatherings of some of my favourite vendors saw me come across Fujitsu&#8217;s answer to the masses &#8211; the intriguingly named <em>Dynadisq III</em> unit, available in several sizes. I am using the 320GB model for this review.</p>
<p>For AUD$130 you get:</p>
<ul>
<li>A single 320GB SATA 2.5&#8243; notebook-sized hard-drive.</li>
<li>Smart-looking matte silver enclosure with mini-USB, 5v external power and a small &#8220;Backup&#8221; button with some moderate styling and the Fujitsu logo embossed on top (the hard-drive is already pre-installed in the enclosure). The top side also features two LED&#8217;s &#8211; one green one for power and a red one for the obligatory activity notification. No blue LED&#8217;s in sight.</li>
<li>A nice fake-leather pouch with a pocket and elastic strap to hold the drive, and several side pockets for cards and, er&#8230; stuff.</li>
<li>A USB to mini-USB data lead.</li>
<li>A USB to 5v-power lead.</li>
<li>One-page &#8220;getting started&#8221; instructions (for Windows users only despite saying the unit will work on a &#8220;range of different computer operating systems&#8221;).</li>
<li>A 50MB backup application installation CD-ROM (again, for Windows only).</li>
</ul>
<p>The components come all packaged in a neatly presented and protected cardboard package.</p>
<p style="text-align: center;"><a href="http://www.serenux.com/wp-content/uploads/2008/11/fujitsubox.jpg"><img title="Fujitsu Drive Packaging" src="http://www.serenux.com/wp-content/uploads/2008/11/fujitsubox_thumb.jpg" alt="" /> </a><a href="http://www.serenux.com/wp-content/uploads/2008/11/fujitsucontent.jpg"><img title="Fujitsu Drive Content" src="http://www.serenux.com/wp-content/uploads/2008/11/fujitsucontent_thumb.jpg" alt="" /></a></p>
<p>The drive and case itself is lightweight and generally attractive to look at, with the fake leather pouch putting a bit of sophistication into the package, but then again, who buys an external hard-drive to be sophisticated?</p>
<p style="text-align: center;"><a href="http://www.serenux.com/wp-content/uploads/2008/11/fujitsudriverear.jpg"><img title="Fujitsu Drive Rear" src="http://www.serenux.com/wp-content/uploads/2008/11/fujitsudriverear_thumb.jpg" alt="" /> </a><a href="http://www.serenux.com/wp-content/uploads/2008/11/fujitsudriveandpouch.jpg"><img title="Fujitsu Drive and Pouch" src="http://www.serenux.com/wp-content/uploads/2008/11/fujitsudriveandpouch_thumb.jpg" alt="" /> </a><a href="http://www.serenux.com/wp-content/uploads/2008/11/fujitsudrivepouchandcables.jpg"><img title="Fujitsu Drive Pouch and Cables" src="http://www.serenux.com/wp-content/uploads/2008/11/fujitsudrivepouchandcables_thumb.jpg" alt="" /></a></p>
<p>Unfortunately, while the idea seems nice, the pouch just ain&#8217;t big enough to hold both the drive and cables together. <img src='http://www.serenux.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p style="text-align: center;"><a href="http://www.serenux.com/wp-content/uploads/2008/11/fujitsudrivepouchandcablesclosed.jpg"><img title="Fujitsu Drive Pouch and Cables Closed" src="http://www.serenux.com/wp-content/uploads/2008/11/fujitsudrivepouchandcablesclosed_thumb.jpg" alt="" /></a></p>
<h3>Plugging it in</h3>
<p>Upon plugging it in to my Ubuntu Intrepid desktop, dmesg reported the following:</p>
<pre><span style="color: #000080;">Nov  9 14:59:49 lamaar kernel: [ 1018.916011] usb 8-6: new high speed USB device using ehci_hcd and address 4
Nov  9 14:59:50 lamaar kernel: [ 1019.055454] usb 8-6: configuration #1 chosen from 1 choice
Nov  9 14:59:50 lamaar kernel: [ 1019.056230] scsi9 : SCSI emulation for USB Mass Storage devices
Nov  9 14:59:55 lamaar kernel: [ 1024.060657] scsi 9:0:0:0: Direct-Access     FUJITSU  DYNADISQ III     1.95 PQ: 0 ANSI: 2
Nov  9 14:59:55 lamaar kernel: [ 1024.062645] sd 9:0:0:0: [sdf] 625142445 512-byte hardware sectors (320073 MB)
Nov  9 14:59:55 lamaar kernel: [ 1024.063018] sd 9:0:0:0: [sdf] Write Protect is off
Nov  9 14:59:55 lamaar kernel: [ 1024.063640] sd 9:0:0:0: [sdf] 625142445 512-byte hardware sectors (320073 MB)
Nov  9 14:59:55 lamaar kernel: [ 1024.064017] sd 9:0:0:0: [sdf] Write Protect is off
Nov  9 14:59:55 lamaar kernel: [ 1024.064023]  sdf: sdf1
Nov  9 14:59:55 lamaar kernel: [ 1024.084377] sd 9:0:0:0: [sdf] Attached SCSI disk
Nov  9 14:59:55 lamaar kernel: [ 1024.084467] sd 9:0:0:0: Attached scsi generic sg6 type 0</span></pre>
<p>So far so good, but not less than a few seconds later when GNOME tried to present the drive, the following dialog reared its ugly head:</p>
<p style="text-align: center;"><a href="http://www.serenux.com/wp-content/uploads/2008/11/fujitsu_dirtydismount.jpg"><img class="size-full wp-image-128 aligncenter" title="Improperly unmounted Windows partition" src="http://www.serenux.com/wp-content/uploads/2008/11/fujitsu_dirtydismount.jpg" alt="" width="385" height="397" /></a></p>
<p style="text-align: left;">Well, that confirms that it&#8217;s formatted for Windows out-of-the-box. Shame on Fujitsu for not properly unmounting the drive during factory testing! And what an exciting volume name they gave it too. Rather than shamelessly promote themselves, Fujitsu simply left it as the Windows-standard &#8220;New Volume&#8221;. Yay.</p>
<p style="text-align: left;">I was curious to find out if there was any included software on the drive itself. Maybe If I was lucky there would be random photos of factory workers testing the drives? Maybe I could find secret launch codes for Ballistic Nerf Missiles in the Southern Atlantic? Who knows what I could find?</p>
<p style="text-align: left;">I quickly fired up Virtualbox, setup the Fujitsu drive as a USB device for my Windows XP Virtual Machine and fired up. Upon checking the content of the drive, I was presented with&#8230; nothing. Nada. Zip. Zilch. Totally empty. What a disappointment.</p>
<p style="text-align: left;">I did a proper disconnect on the drive and shut Windows down. I then fired up GParted to repartition the drive for Ext3.</p>
<p style="text-align: left;">GParted reports the drive as only containing 302GB of physical storage space, which follows the whole 1,000MB versus 1,024MB in a GB debate that always surrounds drive sizes.</p>
<p style="text-align: left;">Repartitioning the drive into a single giant 320GB partition took just over 3 minutes to complete.</p>
<h3 style="text-align: left;">Turtle or Hare?</h3>
<p style="text-align: left;">So let&#8217;s try some real-world file read/write tests.</p>
<p style="text-align: left;">I decided to go with the following basic tests involving the copying of data:</p>
<ol>
<li>Copy from my desktop hard-drive to RAM</li>
<li>Copy from my desktop hard-drive to my aging Samsung 160GB IDE external USB notebook HDD</li>
<li>Copy from my desktop hard-drive to the Fujitsu Dynadisq III 320GB SATA external USB notebook HDD</li>
</ol>
<p>Timing was done by hand with a stop watch from the triggering of the copy action to the closing of the file transfer progress window.</p>
<p>First up, let&#8217;s copy a single 2.2GB DV video file.</p>
<div id="attachment_132" class="wp-caption alignnone" style="width: 404px"><a href="http://www.serenux.com/wp-content/uploads/2008/11/reviewfujitsutimetocopylargefile.jpg"><img class="size-full wp-image-132" title="Time to copy large file" src="http://www.serenux.com/wp-content/uploads/2008/11/reviewfujitsutimetocopylargefile.jpg" alt="" width="394" height="268" /></a><p class="wp-caption-text">Figure 1: Time to copy a single large file</p></div>
<p>According to GNOME&#8217;s Nautilus, RAM was pulling a transfer rate of 85.4MB/s, the Samsung drive was pulling 30.2MB/s and our review Fujitsu was pulling 40.5MB/s &#8211; a notable difference over the Samsung.</p>
<p>Next up, we copy 7,762 small files all between 10K and 25K each (total 146.9MB) comprised of various image thumbnails:</p>
<div id="attachment_134" class="wp-caption alignnone" style="width: 401px"><a href="http://www.serenux.com/wp-content/uploads/2008/11/reviewfujitsutimetocopysmallfiles.jpg"><img class="size-full wp-image-134" title="Time to copy small files" src="http://www.serenux.com/wp-content/uploads/2008/11/reviewfujitsutimetocopysmallfiles.jpg" alt="Figure 2: Time to copy a series of small files" width="391" height="270" /></a><p class="wp-caption-text">Figure 2: Time to copy a series of small files</p></div>
<p>Nautilus didn&#8217;t have much time to evaluate the speed. RAM took less than a second to complete the copy, my Samsung drive took 3.65 seconds, and the Fujitsu took a paltry 2.98 seconds.</p>
<p>Finally, we go and copy 2,987 medium-sized files comprised of digital photos in various subfolders all between 250K and 1.5MB in size (2 megapixels max resolution).</p>
<div id="attachment_133" class="wp-caption alignnone" style="width: 395px"><a href="http://www.serenux.com/wp-content/uploads/2008/11/reviewfujitsutimetocopymediumfiles.jpg"><img class="size-full wp-image-133" title="Time to copy medium files" src="http://www.serenux.com/wp-content/uploads/2008/11/reviewfujitsutimetocopymediumfiles.jpg" alt="Figure 3: Time to copy a series of medium files" width="385" height="265" /></a><p class="wp-caption-text">Figure 3: Time to copy a series of medium files</p></div>
<p>Nautilus reported RAM pulling a transfer speed of 71MB/s, my Samsung drive did 32MB/s and the Fujitsu triumphed over the Samsung with 39MB/s.</p>
<p>So the Fujitsu shows an average 21% performance benefit over my little Samsung IDE unit. Not bad.</p>
<h3>The Backup Button</h3>
<p>Earlier I pointed out that there was a &#8220;Backup&#8221; button on the back of the drive labelled simply &#8220;Backup&#8221;. The intended use is to perform a one-touch backup of all your important data onto the external unit. Sounds great, except that it doesn&#8217;t work. Well, at least under Ubuntu it doesn&#8217;t work. The system does not recognise any press of the button &#8211; not even as a keyboard multimedia button.</p>
<p>The supplied CD-ROM contains the driver and backup application for use with the Backup Button, but unfortunately, it&#8217;s Windows only.</p>
<p>This is hardly a concern, though. You can easily throw an icon on your desktop to execute a script to backup all your important data and Linux in general has unparalleled methods for regularly backing up large volumes of data with ease, such as rsync.</p>
<h3>Aesthetics</h3>
<p>So what more can be said about this drive? Well, it&#8217;s quiet &#8211; barely a chirp from it. It also gets a little warm, but not overly hot when doing large file copies. No biggies.</p>
<p>It certainly looks like a nice unit &#8211; clean design, not trying to overtly stand out. The power and activity LED&#8217;s are non-intrusive as well unlike the bright blue LED&#8217;s you find on some units.</p>
<p>Probably the only real downer I can say about it is the juice consumption, but this is probably unavoidable, really. The main reason I still like my little 160GB IDE unit is that it is one of the last capacities to not really require additional power. Whilst conducting my tests on the Fujitsu, I did encounter moments where the drive was reporting back to the system hard-errors and at one point simply unmounted itself. Disconnecting and reconnecting it fixed these issues and a quick run of fsck showed that there were not any actual errors on the drive. Once I had hooked up the second USB power lead, the problems never manifested themselves again.</p>
<h3>Conclusion</h3>
<p>One of the main reasons people use notebook USB drives for portable storage is for their convenience. Not only for their size, but for the fact that you can do data and power over one lead. This one requires two for any major file operations, and while that may be an inconvenience for some, it&#8217;s still a helluva lot better than having to hook up a power brick to run a 3.5&#8243; desktop drive.</p>
<p>SSD&#8217;s (and to a lesser extent, USB flash drives) are still a long way off from completely replacing hard drives, and at this stage are far more expensive GB for GB, so until then, this little drive suffices nicely. It&#8217;s small, tidy, fairly quick, had a good pouch which will offer some knock protection, and while not as small as a USB flash drive, it easily fits into most pockets.</p>
<p>All up, this is a drive worthy of notice.</p>
<h3><span style="color: #0000ff;">Review score: 8 out of 10 </span></h3>
<p><em>Many thanks to fellow Ubuntu compatriot Blinky who supplied the unit for review.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.serenux.com/2008/11/mini-review-the-fujitsu-dynadisq-iii-320gb-usb-portable-external-hdd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

