<?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; Windows</title>
	<atom:link href="http://www.serenux.com/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.serenux.com</link>
	<description>Life, the Universe and Ubuntu.</description>
	<lastBuildDate>Mon, 21 Jun 2010 10:45:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>HowTo: Restore the Windows Master Boot Record (without using a Windows CD) using Ubuntu Karmic.</title>
		<link>http://www.serenux.com/2009/10/howto-restore-the-windows-master-boot-record-mbr-without-using-a-windows-cd-using-ubuntu-karmic/</link>
		<comments>http://www.serenux.com/2009/10/howto-restore-the-windows-master-boot-record-mbr-without-using-a-windows-cd-using-ubuntu-karmic/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 12:41:05 +0000</pubDate>
		<dc:creator>HyRax</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apt]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Recovery]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.serenux.com/?p=634</guid>
		<description><![CDATA[You know how it is &#8211; you take a client&#8217;s Windows based machine, do a dual-boot installation of Ubuntu (which replaces the Windows Master Boot Record, or MBR, with GRUB and sets up an option to boot Ubuntu or Windows) so the client can evaluate Ubuntu, but then later on for whatever reason, Ubuntu is [...]]]></description>
			<content:encoded><![CDATA[<p>You know how it is &#8211; you take a client&#8217;s Windows based machine, do a dual-boot installation of Ubuntu (which replaces the Windows Master Boot Record, or MBR, with GRUB and sets up an option to boot Ubuntu or Windows) so the client can evaluate Ubuntu, but then later on for whatever reason, Ubuntu is no longer wanted. It&#8217;s removed and you need to restore the system&#8217;s ability to natively boot Windows directly without a GRUB menu.</p>
<p>You&#8217;re probably thinking &#8220;why the hell would anyone want to do that?!&#8221;&#8230; well, the fact of the matter is you sometimes come across a client who is just too mind-set and refuses to use anything but Windows, so yes &#8211; sometimes you need to restore the Windows MBR, but how do you do that when you don&#8217;t have a Windows CD handy?</p>
<p>Well, here&#8217;s how to do it using nothing but an Ubuntu 9.10 Karmic LiveCD.</p>
<p><span id="more-634"></span>It&#8217;s a little known fact that the Windows bootloader is nothing special. In fact it contains nothing proprietary to Windows at all. All the Windows bootloader does is simply look for the partition marked as &#8220;bootable&#8221; or &#8220;active&#8221; and transfer control of the boot process to it.</p>
<p>And would you know it? The Ubuntu LiveCD has a binary image of a generic open source bootloader that does just that!</p>
<ol>
<li> Boot your soon-to-be-Windows-only machine using the Ubuntu 9.10 Karmic LiveCD. Doesn&#8217;t matter if it&#8217;s the 32-bit or 64-bit version.<br />
.</li>
<li>Once booted on the LiveCD, open a terminal by going to the Applications menu and then choose Accessories and then Terminal.<br />
.</li>
<li>Find out what the designation of the Windows drive is (generally it will be the first drive, eg: /dev/sda or /dev/hda). If you are not sure, issue the command:
<pre><span style="color: #000080;">$ sudo fdisk -l
</span></pre>
<p>&#8230;and review the output, looking for your NTFS Windows partition. Make note of the <em>drive</em> that partition resides on (not the partition itself), eg: &#8220;/dev/sda&#8221;, <span style="text-decoration: underline;">not</span> &#8220;/dev/sda1&#8243;.</p>
<p><span style="color: #000080;"> </span></li>
<li>Now type in the following (remembering to substitute the correct drive device name for your setup in place of &#8220;/dev/sda&#8221;):
<pre><span style="color: #000080;">$ sudo dd if=/usr/lib/syslinux/mbr.bin of=/dev/sda</span></pre>
<p>&#8230;which will write the image of a standard MBR contained in the /usr/lib/syslinux directory of the LiveCD environment to the first hard-drive, overwriting GRUB. <span style="color: #ff0000;"><strong><em>WARNING: Do NOT use a partition designation, eg: &#8220;sda1&#8243; or &#8220;sda2&#8243;, etc. This will overwrite the start of that partition which will effectively destroy data. The MBR exists at the start of the drive only, so only specify &#8220;sda&#8221; with no number on the end.</em></strong></span></p>
<p><span style="color: #000080;"> </span></li>
<li>Shutdown and reboot. Windows should now start &#8220;natively&#8221; without GRUB appearing at all.<br />
.</li>
<li>Normally I&#8217;d say &#8220;pat yourself on the back&#8221; here, but it&#8217;s Windows&#8230; <img src='http://www.serenux.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.serenux.com/2009/10/howto-restore-the-windows-master-boot-record-mbr-without-using-a-windows-cd-using-ubuntu-karmic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo: Configure Ubuntu to be able to use and respond to NetBIOS hostname queries like Windows does</title>
		<link>http://www.serenux.com/2009/09/howto-configure-ubuntu-to-be-able-to-use-and-respond-to-netbios-hostname-queries-like-windows-does/</link>
		<comments>http://www.serenux.com/2009/09/howto-configure-ubuntu-to-be-able-to-use-and-respond-to-netbios-hostname-queries-like-windows-does/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 13:24:07 +0000</pubDate>
		<dc:creator>HyRax</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Jaunty]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.serenux.com/?p=616</guid>
		<description><![CDATA[Users in the Windows world are very used to referencing PC&#8217;s via their NetBIOS names instead of their IP address. If your PC has a dynamic IP address (DHCP-assigned) of 192.168.0.12 and its hostname (computer name) is &#8220;gordon&#8221;, Windows users can happily jump into a command line or an Explorer window and ping the name [...]]]></description>
			<content:encoded><![CDATA[<p>Users in the Windows world are very used to referencing PC&#8217;s via their NetBIOS names instead of their IP address. If your PC has a dynamic IP address (DHCP-assigned) of 192.168.0.12 and its hostname (computer name) is &#8220;gordon&#8221;, Windows users can happily jump into a command line or an Explorer window and ping the name &#8220;gordon&#8221; which will magically resolve to 192.168.0.12.</p>
<p>If your host is not configured with a Hosts file entry on your local PC or a DNS entry to associate a name with an IP address, Ubuntu can only use the IP address of that PC to communicate with it which means you have to remember what that IP address is with your feeble grey-matter in your head. Likewise, Ubuntu will not respond to a Windows PC pinging its NetBIOS name because Ubuntu does not use NetBIOS at all by default and so it will ignore such requests.</p>
<p>So how do we get Ubuntu to resolve NetBIOS names like Windows? And how can we allow Windows to ping Ubuntu like another Windows PC? Read on&#8230;</p>
<p><span id="more-616"></span></p>
<p>Let&#8217;s illustrate the problem first. You&#8217;ll need a Windows PC on your network to test this. For this article, the Ubuntu PC will be called &#8220;gordon&#8221; and the Windows PC will be called &#8220;alyx&#8221;.</p>
<p>On either PC, if you open a terminal or Command Line window and ping the opposing machine, eg:</p>
<pre><span style="color: #000080;">$ ping alyx</span></pre>
<p>or</p>
<pre><span style="color: #000080;">C:\&gt; ping gordon</span></pre>
<p>You get an error stating that the host cannot be found. Now in the case of Windows, if you were to ping another Windows PC instead of an Ubuntu PC, you can ping its name with no problem.</p>
<p>Let&#8217;s sort this out, shall we?</p>
<p><span style="color: #0000ff;"><em><strong>Allowing Ubuntu to ping Windows NetBIOS names</strong></em></span></p>
<p>Ubuntu is setup for Linux use, not Windows use, so we need to install a package that will allow Ubuntu to more readily mix in with Windows networks and use NetBIOS. This package is called &#8220;winbind&#8221;.</p>
<ol>
<li>Open a terminal and type in the following at the terminal prompt:
<pre><span style="color: #000080;">$ sudo apt-get install winbind</span></pre>
</li>
<li>Once installed, we need to tell Ubuntu to use WINS (as provided by winbind) to resolve host names. Type in:
<pre><span style="color: #000080;">$ sudo gedit /etc/nsswitch.conf</span></pre>
<p>&#8230;which will open the file into the Gnome Editor.<br />
.</li>
<li>Scroll down to the line that starts with &#8220;hosts:&#8221;. In Ubuntu Jaunty, it looks similar to this:
<pre><span style="color: #000080;">hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4</span></pre>
</li>
<li>Add the word &#8220;wins&#8221; on the end of this line such that is now looks like:
<pre><span style="color: #000080;">hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4 wins</span></pre>
</li>
<li>Save and exit the editor.<br />
.</li>
<li>Now let&#8217;s ping the name of our Windows box again.
<pre><span style="color: #000080;">$ ping alyx</span></pre>
<p>&#8230;and it now resolves!<br />
.</li>
<li>Pat yourself on the back.</li>
</ol>
<p><span style="color: #0000ff;"><em><strong>Allowing Windows to ping Ubuntu NetBIOS names</strong></em></span></p>
<p>This is just one half of the equation. We now need to allow Windows to be able to ping Ubuntu PC&#8217;s using its NetBIOS name. This requires Ubuntu to recognise and respond to that request. We need to setup a server daemon to do this. In Ubuntu, this particular server daemon is called Samba.</p>
<ol>
<li>Installing Samba is simplicity itself. Open a terminal and type in:
<pre><span style="color: #000080;">$ sudo apt-get install samba</span></pre>
</li>
<li>Once that has finished, your Ubuntu PC will automagically respond to all NetBIOS queries for its hostname straight away, and that&#8217;s not just from Windows machines, but other Ubuntu machines (configured with the &#8220;winbind&#8221; package) as well.<br />
.</li>
<li>Pat yourself on the back again. <img src='http://www.serenux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.serenux.com/2009/09/howto-configure-ubuntu-to-be-able-to-use-and-respond-to-netbios-hostname-queries-like-windows-does/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo: Image your hard-drive for transfer or backup using dd</title>
		<link>http://www.serenux.com/2008/11/howto-image-your-hard-drive-for-transfer-or-backup-using-dd/</link>
		<comments>http://www.serenux.com/2008/11/howto-image-your-hard-drive-for-transfer-or-backup-using-dd/#comments</comments>
		<pubDate>Sat, 01 Nov 2008 10:47:38 +0000</pubDate>
		<dc:creator>HyRax</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Imaging]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Recovery]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.serenux.com/?p=111</guid>
		<description><![CDATA[Imaging, also known as Ghosting in the Windows world, is the act of creating a sector-by-sector copy of a hard-drive and saving it to a file, or transferring it to another hard-drive. Such uses for imaging include: Backup to an image file Clone to another hard-drive (eg: building multiple identical workstations) either directly or via [...]]]></description>
			<content:encoded><![CDATA[<p>Imaging, also known as Ghosting in the Windows world, is the act of creating a sector-by-sector copy of a hard-drive and saving it to a file, or transferring it to another hard-drive. Such uses for imaging include:</p>
<ul>
<li>Backup to an image file</li>
<li>Clone to another hard-drive (eg: building multiple identical workstations) either directly or via an image file</li>
<li>Data recovery (it&#8217;s safer and easier to examine an image file than risk further damage to the hard-drive itself)</li>
</ul>
<p>Linux has a neat little command that can do this for us called simply &#8220;dd&#8221;. It is completely filesystem independent, so you can backup any hard-drive regardless of whether it was Linux formatted, Mac formatted or Windows formatted. It copies the drive bit by bit, sector by sector, not file by file.</p>
<p><span id="more-111"></span></p>
<p><span style="color: #ff0000;"><em><strong>WARNING:</strong> The following article describes commands that can destroy the information on your hard-drive with next-to-no-chance of being able to rescue what&#8217;s left. Make sure that you have full backups of your data prior to using these commands. You use these commands at your own risk!</em></span></p>
<p>First up, your drive/partition being backed up or written to should be unmounted before you begin. If you were trying to backup the partition containing your system&#8217;s root filesystem, you should boot up your system on a LiveCD so you can access your root partition unmounted.</p>
<p>You then need to determine which drive or partition you want to backup. Easiest way to do this is to fire up a terminal session and type in:</p>
<pre><span style="color: #000080;">$ sudo fdisk -l</span></pre>
<p>&#8230;which will list all your drives, their partitions and sizes. Note down the device name of the drive or partition you wish to backup, eg: /dev/sda for the whole of your first drive or /dev/sda1 for just the first partition of that drive, and you&#8217;re ready to begin backup.</p>
<p>At its simplest, backing up a drive takes two basic parameters &#8211; input device and output device or file as follows:</p>
<pre><span style="color: #000080;">$ sudo dd if=/dev/sda1 of=/dev/sdb1</span></pre>
<p>&#8230;will copy the content of the first partition on drive sda to the first partition of drive sdb (destroying whatever was in /dev/sdb1 previously).</p>
<pre><span style="color: #000080;">$ sudo dd if=/dev/sda1 of=~/mybackup.img</span></pre>
<p>&#8230;will copy the content of the first partition on drive sda to a file called mybackup.img in your Home directory.</p>
<p>If you wish to backup an entire drive rather than just a partition, drop the number on the drive name, ie: /dev/sda1 becomes /dev/sda instead.</p>
<p>To restore the image to a drive, simply reverse the parameters:</p>
<pre><span style="color: #000080;">$ sudo dd if=~/mybackup.img of=/dev/sda1</span></pre>
<p>How simple is that? The only issue with this method of backup, though, is that if you were to backup a 10GB partition containing only 5GB of actual data, the resulting image file will still be 10GB as dd does not simply copy active data from the drive, it copies <em>everything</em>.</p>
<p>So with that in mind, let&#8217;s compress the image, so any empty space on the drive doesn&#8217;t take up unnecessary space in the image file. We can do this by piping the data from dd into gzip before writing it to a file:</p>
<pre><span style="color: #000080;">$ sudo dd if=/dev/sda1 | gzip -9 &gt; ~/mybackup.img.gz</span></pre>
<p>&#8230;and to restore, we simply pipe the decompressed data into dd again for writing to the drive:</p>
<pre><span style="color: #000080;">$ gunzip -c ~/mybackup.img.gz | sudo dd of=/dev/sda1</span></pre>
<h3>But wait! There&#8217;s more!</h3>
<p>This just scratches the surface of what you can do with dd. For example, you can also use dd to destroy a drive&#8217;s content before you dispose of, or sell the drive by using the following:</p>
<pre><span style="color: #000080;">$ sudo dd if=/dev/random of=/dev/sda1</span></pre>
<p>&#8230;which will write random data to the partition sda1 using the virtual random device, completely obliterating it.</p>
<p>Or, if you want a more uniform destruction, try:</p>
<pre><span style="color: #000080;">$ sudo dd if=/dev/zero of=/dev/sda1</span></pre>
<p>&#8230;which will &#8211; no surprises here &#8211; write zeros across the entire partition.</p>
<p>Or perhaps you have a drive that isn&#8217;t playing nice, for example Microsoft Windows can get stroppy when working with, or removing partitions created by a foreign OS. The easiest way to fix this is to simply destroy the Master Boor Record (MBR). You can achieve this by specifying a blocksize parameter. The MBR is inside the first 512 bytes of the drive, so all we have to do is blank those 512 bytes out using:</p>
<pre><span style="color: #000080;">$ sudo dd if=/dev/zero of=/dev/sda bs=512 count=1</span></pre>
<p>The bs parameter specifies the block size in bytes (in this case 512) and the count parameter specifies how many blocks of 512 bytes we&#8217;re doing (only one in this case, the first 512 bytes of the drive where the MBR resides).</p>
<p>Any PC will now view this hard-drive as a brand new, never partitioned drive.</p>
<h3>Rescuing a dying hard-drive</h3>
<p>The dd command is particularly useful for recovering data on a drive that&#8217;s about to become a paperweight. As long as it can power up and identify itself to the system, you can attempt data recovery by taking an image of the drive and then try to recover the files from that image.</p>
<p>Since dying hard-drives are typically sown with errors, we need to tell dd to ignore them and keep pulling as much data off as possible. Taking our first imaging example, we add a couple of parameters to the command as follows:</p>
<pre><span style="color: #000080;">$ sudo dd if=/dev/sda of=~/mybackup.img conv=noerror,sync</span></pre>
<p>This will make a full backup of all partitions on drive /dev/sda to a file called mybackup.img in your Home directory, and the conv parameter tells dd to ignore any errors found during the read by skipping over them. The sync parameter tells dd to replace the errors with null values &#8211; blanks &#8211; so that the resulting image file is the same data length as the drive.</p>
<p>Once the backup is complete, you can then mount the image to view its content. As long as the MBR (the first 512 bytes of the hard-drive) were not damaged, you will be able to now recover most, if not all your files, without worrying about further failure to the drive or odd behaviour due to the physical errors on the drive itself.</p>
<p>To mount the image file, you do the following. First we need a mountpoint &#8211; a place to reference the mounted image volume:</p>
<pre><span style="color: #000080;">$ mkdir /dev/shm/myrecoveryimage</span></pre>
<p>This creates a directory called &#8220;myrecoverytimage&#8221; in your system&#8217;s RAM drive. Before you point out that you have less physical RAM than the capacity of your hard-drive, don&#8217;t worry &#8211; this is just a mount-point. The image will still be physically read from wherever you put it on another drive.</p>
<p>Now we mount the image. Let&#8217;s say we backed up a standard Linux ext3-formatted drive:</p>
<pre><span style="color: #000080;">$ sudo mount -t ext3 -o loop ~/.mybackup.img /dev/shm/myrecoveryimage</span></pre>
<p>&#8230;or for a Windows NTFS formatted backup image:</p>
<pre><span style="color: #000080;">$ sudo mount -t ntfs -o loop ~/.mybackup.img /dev/shm/myrecoveryimage</span></pre>
<p>We have told the system to mount an image file of filesystem type Ext3 (or NTFS). We have to specify the loopback device because an image file is not a block device like a hard-drive is. We then specify the filename of the image we are wanting to mount, and finally where we are mounting it to.</p>
<p>You can now simply switch over to the mountpoint directory and see the content of the image file as though it were any normally mounted hard-drive.</p>
<pre><span style="color: #000080;">$ cd /dev/shm/myrecoveryimage
$ ls -l</span></pre>
<p>There are a plethora of filesystems that the mount command can manage including FAT, NTFS network filesystems etc. Refer to the man page for the mount command for more details.</p>
<p>When you have finished with the image, you can unmount it with:</p>
<pre><span style="color: #000080;">$ sudo umount /dev/shm/myrecoveryimage</span></pre>
<p>&#8230;and that will make the /dev/shm/myrecoverimage directory revert back to an ordinary empty directory again (which, being in the RAM disk, will be lost when you reboot).</p>
<p>Happy dd&#8217;ing! <img src='http://www.serenux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class='wp_likes' id='wp_likes_post-111'><a class='like' href="javascript:wp_likes.like(111);" title='' ><img src="http://www.serenux.com/wp-content/plugins/wp-likes/images/like.gif" alt='' border='0'/>Like</a><span class='text'></span>
<div class='unlike'><a href="javascript:wp_likes.unlike(111);">Unlike</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.serenux.com/2008/11/howto-image-your-hard-drive-for-transfer-or-backup-using-dd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu vs Vista Resource Usage</title>
		<link>http://www.serenux.com/2008/10/ubuntu-vs-vista-resource-usage/</link>
		<comments>http://www.serenux.com/2008/10/ubuntu-vs-vista-resource-usage/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 12:24:56 +0000</pubDate>
		<dc:creator>HyRax</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[Hardy]]></category>
		<category><![CDATA[Intrepid]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.serenux.com/?p=105</guid>
		<description><![CDATA[Everyone always rambles on about how much of a resource hog Windows Vista is compared to Linux, so I figured why not find out exactly how much of a hog it really is? For this comparison, I have pitted the following versions of Ubuntu and Vista against each other: Microsoft Windows Vista Ultimate with Service [...]]]></description>
			<content:encoded><![CDATA[<p>Everyone always rambles on about how much of a resource hog Windows Vista is compared to Linux, so I figured why not find out exactly how much of a hog it really is?</p>
<p>For this comparison, I have pitted the following versions of Ubuntu and Vista against each other:</p>
<ul>
<li>Microsoft Windows Vista Ultimate with Service Pack 1 and all system updates to 29th October 2008</li>
<li>Ubuntu Linux 8.04.1 Hardy Heron with all system updates to 29th October 2008</li>
<li>Ubuntu Linux 8.10 Intrepid Ibex Release Candidate with all system updates to 29th October 2008 (just for kicks)</li>
</ul>
<p>The tests would be simple. A fresh vanilla install of Ubuntu and Vista doing four of the most common things a typical user might do everyday:</p>
<ol>
<li>Nothing</li>
<li>View a web page</li>
<li>Listen to an MP3 music track</li>
<li>Play Solitaire</li>
</ol>
<p><span id="more-105"></span></p>
<p>To keep things as fair as possible, I used <a title="Sun Microsystems xVM Virtualbox homepage" href="http://www.virtualbox.org" target="_blank">Virtualbox</a> 2.0.4 and created three VM&#8217;s each sporting 1GB RAM, 32MB video RAM and an 8GB HDD file each, except for Vista which needed more HDD estate, so it got a 20GB HDD file instead (this is not boding well for Vista already!).</p>
<p>The Ubuntu installs each had a 512MB swap partition created while Vista went ahead and stormed in with an automatically-created 2GB swap file. Shouldn&#8217;t be an issue as the tests are not going to tax the OS&#8217; anyway.</p>
<p>All installed OS&#8217; are the 32-bit versions. All had the Virtualbox Guest Additions drivers added, but since these drivers do not support acceleration, OpenGL and DirectX eye-candy (such as Compiz in Ubuntu and Aero in Vista) were automatically disabled by the system.</p>
<p>The host hardware for the VM&#8217;s is an Intel Quad-core Q9450 based machine with 8GB RAM running the 64-bit version of Ubuntu 8.04.1 Hardy Heron.</p>
<h3><strong>Installed Disk Usage</strong></h3>
<p>So let&#8217;s start with the simple stuff  &#8211; how much disk space does a vanilla install of each OS chew up? The following table shows a completely stock installation of each OS, including subsequently downloaded update files:</p>
<table style="text-align: left; height: 64px;" border="0" width="364">
<tbody>
<tr>
<td>Vista Ultimate SP1</td>
<td style="text-align: left;">11.9GB (!!)</td>
</tr>
<tr>
<td>Ubuntu 8.04.1 Hardy</td>
<td style="text-align: left;">2.7GB</td>
</tr>
<tr>
<td>Ubuntu 8.10 Intrepid RC</td>
<td style="text-align: left;">2.3GB</td>
</tr>
</tbody>
</table>
<p>Ubuntu has been dubbed by some to be the &#8220;Windows&#8221; of Linux distros in terms of its overall weight, but it&#8217;s anorexic compared to Vista. Why does any OS need over 10GB of disk space just for itself? Consider also that Ubuntu&#8217;s installed space also includes a full office suite &#8211; not even Vista has that, yet it&#8217;s so much bigger.</p>
<p>It was interesting to note that Ubuntu Intrepid consumed a whole 400MB less disk space than Ubuntu Hardy, however part of this could be attributed to possibly less extra update files downloaded compared to Hardy. In any case, both are well under 5GB, let alone 10GB!</p>
<p>So far one point to Linux and a big fat zero to Vista.</p>
<h3><strong>Idle RAM Usage</strong></h3>
<p>With disk usage now established, how does the RAM stack up? Each desktop was at its standard setup with standard wallpaper, panels, widgets, etc and only the resource manager window on-screen:</p>
<table style="text-align: center; height: 399px;" border="0" width="508">
<tbody>
<tr>
<td>Vista SP1</td>
<td>411MB</td>
<td><a href="http://www.serenux.com/wp-content/uploads/2008/10/vistaidleresources.jpg"><img class="aligncenter size-thumbnail wp-image-101" title="Vista Idle Resource Usage" src="http://www.serenux.com/wp-content/uploads/2008/10/vistaidleresources.jpg" alt="" width="135" height="150" /></a></td>
</tr>
<tr>
<td>Ubuntu 8.04.1 Hardy</td>
<td>122MB</td>
<td><a href="http://www.serenux.com/wp-content/uploads/2008/10/hardyidleresources.png"><img class="aligncenter size-thumbnail wp-image-91" title="Ubuntu Hardy Idle Resource Usage" src="http://www.serenux.com/wp-content/uploads/2008/10/hardyidleresources.png" alt="" width="150" height="114" /></a></td>
</tr>
<tr>
<td>Ubuntu 8.10 Intrepid RC</td>
<td>142MB</td>
<td><a href="http://www.serenux.com/wp-content/uploads/2008/10/intrepididleresources.png"><img class="aligncenter size-thumbnail wp-image-97" title="Ubuntu Intrepid Idle Resource Usage" src="http://www.serenux.com/wp-content/uploads/2008/10/intrepididleresources.png" alt="" width="150" height="113" /></a></td>
</tr>
</tbody>
</table>
<p>Another win for Ubuntu by a good 250MB. Also, again a surprise showing by Intrepid that despite the smaller HDD footprint, its resource usage was 20MB greater than Hardy, but what was alarming was that Vista was already using 387MB of its 2GB swap file while both Ubuntu installations had not touched theirs&#8230;!</p>
<p>Two points for Ubuntu, none for Vista.</p>
<h3><strong>Browsing a Common Web Site</strong></h3>
<p>Now to up the ante &#8211; all three installations now used their default web browser (Firefox 3.0.3 for Ubuntu, Internet Exploiter, uh, Explorer 7.0.6 for Vista) to view a common website containing Flash, animated GIFs, lots of frames, blocks of formatted text and graphics &#8211; the <a title="The Sydney Morning Herald Homepage" href="http://www.smh.com.au" target="_blank">Sydney Morning Herald</a> homepage.</p>
<p>All three OS&#8217; do not have Flash installed as standard and thus did not play any of the Flash content, however the rest of the page did load and render successfully.</p>
<p>The memory usage now stands at:</p>
<table style="text-align: center; height: 399px;" border="0" width="512">
<tbody>
<tr>
<td>Vista SP1</td>
<td>490MB</td>
<td><a href="http://www.serenux.com/wp-content/uploads/2008/10/vistawebpageresources.jpg"><img class="alignnone size-thumbnail wp-image-104" title="Vista Webpage Resource Usage" src="http://www.serenux.com/wp-content/uploads/2008/10/vistawebpageresources.jpg" alt="" width="135" height="150" /></a></td>
</tr>
<tr>
<td>Ubuntu 8.04.1 Hardy</td>
<td>179MB</td>
<td><a href="http://www.serenux.com/wp-content/uploads/2008/10/hardywebpageresources.png"><img class="aligncenter size-thumbnail wp-image-94" title="Ubuntu Hardy Webpage Resource Usage" src="http://www.serenux.com/wp-content/uploads/2008/10/hardywebpageresources.png" alt="" width="150" height="114" /></a></td>
</tr>
<tr>
<td>Ubuntu 8.10 Intrepid RC</td>
<td>198MB</td>
<td><a href="http://www.serenux.com/wp-content/uploads/2008/10/intrepidwebpageresources.png"><img class="aligncenter size-thumbnail wp-image-100" title="Ubuntu Intrepid Webpage Resource Usage" src="http://www.serenux.com/wp-content/uploads/2008/10/intrepidwebpageresources.png" alt="" width="150" height="113" /></a></td>
</tr>
</tbody>
</table>
<p>A notable jump by all three candidates in this case, as one might expect, though while Ubuntu jumped up some 55MB, Vista jumped up an extra 80MB.</p>
<p>Curiously, Vista&#8217;s CPU usage jumped up and down a lot while the site sat idle and the spike of usage you see at the end of the graph is when the site automatically refreshed itself. No such major jumps from Ubuntu.</p>
<p>Another point for Ubuntu for a total of three. Vista is yet to score.</p>
<h3><strong>Listening to an MP3 Music Track</strong></h3>
<p>Browsing any website would just not be fun without some background music. Using the default music player (Totem 2.22.1 and 2.24.2 for Ubuntu Hardy and Intrepid respectively, Windows Media Player 11 for Vista), I perused the SMH website (without clicking on any new links) and listened to the same 3.3MB MP3 music track for 1 minute to allow memory usage to level out.</p>
<table style="text-align: center; height: 399px;" border="0" width="512">
<tbody>
<tr>
<td>Vista SP1</td>
<td>560MB</td>
<td><a href="http://www.serenux.com/wp-content/uploads/2008/10/vistamp3resources.jpg"><img class="alignnone size-thumbnail wp-image-102" title="Vista MP3 Resource Usage" src="http://www.serenux.com/wp-content/uploads/2008/10/vistamp3resources.jpg" alt="" width="135" height="150" /></a></td>
</tr>
<tr>
<td>Ubuntu 8.04.1 Hardy</td>
<td>211MB</td>
<td><a href="http://www.serenux.com/wp-content/uploads/2008/10/hardymp3resources.png"><img class="alignnone size-thumbnail wp-image-92" title="Ubuntu Hardy MP3 Resource Usage" src="http://www.serenux.com/wp-content/uploads/2008/10/hardymp3resources.png" alt="" width="150" height="114" /></a></td>
</tr>
<tr>
<td>Ubuntu 8.10 Intrepid RC</td>
<td>237MB</td>
<td><a href="http://www.serenux.com/wp-content/uploads/2008/10/intrepidmp3resources.png"><img class="alignnone size-thumbnail wp-image-98" title="Intrepid MP3 Resource Usage" src="http://www.serenux.com/wp-content/uploads/2008/10/intrepidmp3resources.png" alt="" width="150" height="113" /></a></td>
</tr>
</tbody>
</table>
<p>Memory usage has increased by nearly 40MB on Ubuntu but by 70MB on Vista. This is not really too surprising given the heavyweight that is Media Player versus the simpler Totem, though Totem did prompt me to download and install the GStreamer Extras MP3 codec, so there&#8217;s extra memory usage there too.</p>
<p>The observant among you might say that it would be a fairer comparison to compare Windows Media Player with Rhythmbox, however I decided to go with whatever launched as the default MP3 player and at the end of the day, all that matters is that I can hear my music and Ubuntu has delivered 30MB ahead here.</p>
<p>Four points for Ubuntu, still none for Vista.</p>
<h3><strong>Playing Solitaire</strong></h3>
<p>Surfing the &#8216;net is hard work and what better way to unwind than with a relaxing game of Solitaire. In this test, I played Solitaire for two minutes whilst listening to my MP3 track and leaving the web browser open with our self-refreshing homepage.</p>
<table style="text-align: center; height: 399px;" border="0" width="516">
<tbody>
<tr>
<td>Vista SP1</td>
<td>605MB</td>
<td><a href="http://www.serenux.com/wp-content/uploads/2008/10/vistasolitaireresources.jpg"><img class="alignnone size-thumbnail wp-image-103" title="Vista Solitaire Resource Usage" src="http://www.serenux.com/wp-content/uploads/2008/10/vistasolitaireresources.jpg" alt="" width="135" height="150" /></a></td>
</tr>
<tr>
<td>Ubuntu 8.04.1 Hardy</td>
<td>224MB</td>
<td><a href="http://www.serenux.com/wp-content/uploads/2008/10/hardysolitaireresources.png"><img class="alignnone size-thumbnail wp-image-93" title="Ubuntu Hardy Solitaire Resource Usage" src="http://www.serenux.com/wp-content/uploads/2008/10/hardysolitaireresources.png" alt="" width="150" height="114" /></a></td>
</tr>
<tr>
<td>Ubuntu 8.10 Intrepid RC</td>
<td>244MB</td>
<td><a href="http://www.serenux.com/wp-content/uploads/2008/10/intrepidsolitaireresources.png"><img class="alignnone size-thumbnail wp-image-99" title="Ubuntu Intrepid Solitaire Resource Usage" src="http://www.serenux.com/wp-content/uploads/2008/10/intrepidsolitaireresources.png" alt="" width="150" height="113" /></a></td>
</tr>
</tbody>
</table>
<p>Really, Solitaire isn&#8217;t a terribly complex application and Ubuntu&#8217;s Solitaire bears a remarkable resemblance to all the Windows versions&#8230; except Vista which was drastically revamped with extra visual effects, new card textures, etc. No wonder the memory footprint is so much bigger, but a 45MB difference??</p>
<p>Ubuntu Hardy went up 13MB and Intrepid didn&#8217;t even break double-figures with only a 7MB increase.</p>
<p>We could keep testing common applications until the cows come home, but I think it&#8217;s pretty clear that the established pattern is that Microsoft Vista uses up much more memory and disk space on average than Ubuntu Linux.</p>
<p>Probably what was the most worrying here was that Vista&#8217;s swap usage had increased to 692MB and there was an unusually high amount of CPU usage, while both Ubuntu&#8217;s had left their swap on the plate, uneaten.</p>
<p>So the final score is five points for the trim and healthy Ubuntu and still nothing, nada, zip for the obese whale that is Vista.</p>
<h3><strong>Conclusion</strong></h3>
<p>I think some people might say all I&#8217;ve done is confirm what everyone already knew, and perhaps that is the case, but it still made for an interesting comparison and certainly highlights that Microsoft need to do some serious fat trimming.</p>
<p>For those that are interested, the host machine used up a total of 4GB RAM to run all three VM&#8217;s simultaneously plus a bunch of other apps that I had running at the time of testing, and it only nibbled at 44MB of swap. <img src='http://www.serenux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.serenux.com/wp-content/uploads/2008/10/hostsystem.jpg"><img class="alignnone size-full wp-image-96" title="Host System Thumbnail" src="http://www.serenux.com/wp-content/uploads/2008/10/hostsystem_thumb.jpg" alt="" width="510" height="143" /></a><br />
Click for the full-size version &#8211; 681K</p>
]]></content:encoded>
			<wfw:commentRss>http://www.serenux.com/2008/10/ubuntu-vs-vista-resource-usage/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Recovering an NTFS volume using Ubuntu</title>
		<link>http://www.serenux.com/2008/10/recovering-an-ntfs-volume-using-ubuntu/</link>
		<comments>http://www.serenux.com/2008/10/recovering-an-ntfs-volume-using-ubuntu/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 02:51:31 +0000</pubDate>
		<dc:creator>HyRax</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.serenux.com/?p=58</guid>
		<description><![CDATA[I have a friend who has an external USB portable hard-drive that inexplicably seemed to develop CRC errors when reading files off the NTFS-formatted volume. This rapidly developed into full-blown drive drive shutdowns on major errors and it was evident that something was seriously wrong with it. To address the CRC issues, the drive had [...]]]></description>
			<content:encoded><![CDATA[<p>I have a friend who has an external USB portable hard-drive that inexplicably seemed to develop CRC errors when reading files off the NTFS-formatted volume. This rapidly developed into full-blown drive drive shutdowns on major errors and it was evident that something was seriously wrong with it.</p>
<p><span id="more-58"></span></p>
<p>To address the CRC issues, the drive had CHKDSK /F run on it within Windows, and this reported a number of issues that were supposedly fixed. Unfortunately it seemed to make things far worse &#8211; you plug the drive into a Windows PC now and the drive would take several minutes to appear, and even then the Explorer window was empty! All his files were gone! <em>Panic stations!</em></p>
<p>Not one to give up so easily, he asked me to have a look at it. First thing I did was plug it into my Ubuntu-based EeePC 701, and while still slow to appear, Nautilus popped up showing most of the files! Some entries appeared to be missing, but we put that down to CHKDSK having removed corrupted entries from the allocation table.</p>
<p>Unfortunately I didn&#8217;t have enough space to make an image copy of his drive which would be the preferred method of recovery (it&#8217;s a 750GB drive), so we decided to try and hit the files directly.</p>
<p>I tried copying a single directory of files, and they copied successfully, so I spent an evening doing drag and drop between two Nautilus windows (I tried using RSync to do it from the command line, but there are several individual files that come up as corrupt and throw RSync out). Copying one directory at a time seemed to be the best way to keep track of what was recovered and what wasn&#8217;t.</p>
<p>This weekend I&#8217;ll be trying to go deeper and see if I can recover the &#8220;lost&#8221; files that CHKDSK managed to hide away from us.</p>
<p>It&#8217;s great to see that Linux can do a better job of recovering NTFS than Windows can! <img src='http://www.serenux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>EDIT: Well, the recovery of nearly everything was successful. Unlike Windows, Linux did an admirable job of trying to copy as much of an existing file as possible before aborting at the CRC error in the file. Turns out not too much of the hard-drive was corrupted and my friend only lost half of about 5 individual movies and some of his non-essential work backups. All in all, a good recovery.</p>
<p>As a test, we tried plugging the drive into a Windows PC again to see if it could read any of it, and true to form, Windows Explorer remained blank &#8211; oblivious to the files that Linux was so aptly able to read and recover.</p>
<div class='wp_likes' id='wp_likes_post-58'><a class='like' href="javascript:wp_likes.like(58);" title='' ><img src="http://www.serenux.com/wp-content/plugins/wp-likes/images/like.gif" alt='' border='0'/>Like</a><span class='text'></span>
<div class='unlike'><a href="javascript:wp_likes.unlike(58);">Unlike</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.serenux.com/2008/10/recovering-an-ntfs-volume-using-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
