<?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>S.G. Vulcan</title>
	<atom:link href="http://www.sgvulcan.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sgvulcan.com</link>
	<description>Silviu&#039;s tech blog. Resources and informations about linux, windows, symbian systems, networks, reviews, microcontrollers, and more.</description>
	<lastBuildDate>Tue, 27 Jul 2010 11:27:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Mount a physical drive inside a Oracle VirtualBox Machine</title>
		<link>http://www.sgvulcan.com/mount-a-physical-drive-inside-a-oracle-virtualbox-machine/</link>
		<comments>http://www.sgvulcan.com/mount-a-physical-drive-inside-a-oracle-virtualbox-machine/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 09:17:47 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[Virtualisation]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1064</guid>
		<description><![CDATA[Sometimes I have to check drives under their native operating system. Recently I wanted to access a ntfs partition directly under Windows running inside a virtual machine. Here&#8217;s how to (easily) do it: #&#62;VBoxManage internalcommands createrawvmdk -filename ./ntfs_test.vmdk -rawdisk /dev/sdb -register VirtualBox Command Line Management Interface Version 1.5.4 (C) 2005-2007 innotek GmbH All rights reserved. RAW host disk access VMDK file ./ntfs_test.vmdk created successfully. What this means? Well: We create a virtual machine disk (vmdk) pointing to you physical drive. /dev/sdb in our case, be sure to point to yours. -register if set will tell VirtualBox to already register the drive inside your Virtual Media Manager. DANGER: the disk will be fully available to the guest operating system. This means full access &#8211; so any command you use is definitive. Should you delete, partition or format the drive this will happen exactly as if you have booted the guest operating sytem directly. Subscribe to the comments for this post? Share this on del.icio.us Digg this! Post on Google Buzz Share this on Reddit Share this on Technorati Tweet This!]]></description>
			<content:encoded><![CDATA[<p>Sometimes I have to check drives under their native operating system. Recently I wanted to access a ntfs partition directly under Windows running inside a virtual machine. Here&#8217;s how to (easily) do it:</p>
<div>
<pre>#&gt;VBoxManage internalcommands createrawvmdk -filename ./ntfs_test.vmdk -rawdisk /dev/sdb -register</pre>
<pre>VirtualBox Command Line Management Interface Version 1.5.4

(C) 2005-2007 innotek GmbH
All rights reserved.</pre>
</div>
<pre>RAW host disk access VMDK file ./ntfs_test.vmdk created successfully.
</pre>
<p>What this means? Well:</p>
<p>We create a virtual machine disk (vmdk) pointing to you physical drive. <strong>/dev/sdb</strong> in our case, be sure to point to yours. <strong>-register</strong> if set will tell VirtualBox to already register the drive inside your <em>Virtual Media Manager.</em></p>
<p><strong>DANGER: </strong>the disk will be fully available to the guest operating system. This means full access &#8211; so any command you use is definitive. Should you delete, partition or format the drive this will happen exactly as if you have booted the guest operating sytem directly.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.sgvulcan.com/mount-a-physical-drive-inside-a-oracle-virtualbox-machine/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.sgvulcan.com/mount-a-physical-drive-inside-a-oracle-virtualbox-machine/&amp;title=Mount+a+physical+drive+inside+a+Oracle+VirtualBox+Machine" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sgvulcan.com/mount-a-physical-drive-inside-a-oracle-virtualbox-machine/&amp;title=Mount+a+physical+drive+inside+a+Oracle+VirtualBox+Machine" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.sgvulcan.com/mount-a-physical-drive-inside-a-oracle-virtualbox-machine/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.sgvulcan.com/mount-a-physical-drive-inside-a-oracle-virtualbox-machine/&amp;title=Mount+a+physical+drive+inside+a+Oracle+VirtualBox+Machine" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.sgvulcan.com/mount-a-physical-drive-inside-a-oracle-virtualbox-machine/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Mount+a+physical+drive+inside+a+Oracle+VirtualBox+Machine+-+http://bit.ly/cXcSL9&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/mount-a-physical-drive-inside-a-oracle-virtualbox-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache 2.2 will not serve corectly from CIFS mounted share</title>
		<link>http://www.sgvulcan.com/apache-2-2-will-not-serve-corectly-from-cifs-mounted-share/</link>
		<comments>http://www.sgvulcan.com/apache-2-2-will-not-serve-corectly-from-cifs-mounted-share/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 09:09:40 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[cifs]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[smbfs]]></category>
		<category><![CDATA[symlink]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1062</guid>
		<description><![CDATA[I have a home server I use for all kinds of stuff when I&#8217;m away. I have set it up recently so that it can serve a folder mounted over the network from a Windows machine. And this is where the fun started! The folders and files appear correctly, I can navigate and I can download them. Only that the files, even if apparently having the same size are corrupted. I checked the FollowSymLinks and as expected was set as required. I tried wget in the command prompt to see if I could find some enlightment but I got the following errors: # wget http://192.xxx.xxx.xxx/windowsshare/folder/file.jpg --09:18:00-- http://192.xxx.xxx.xxx/windowsshare/folder/file.jpg =&#62; `file.jpg' Connecting to 127.0.0.1:80... connected. HTTP request sent, awaiting response... 200 OK Length: 763,685 (746K) [image/jpeg] &#160; 0% [ ] 0 --.--K/s &#160; 09:18:00 (0.00 B/s) - Connection closed at byte 0. Retrying. &#160; --09:18:01-- http://192.xxx.xxx.xxx/windowsshare/folder/file.jpg (try: 2) =&#62; `file.jpg' Connecting to 127.0.0.1:80... connected. HTTP request sent, awaiting response... 200 OK Length: 763,685 &#40;746K&#41; &#91;image/jpeg&#93; file.jpg has sprung into existence. Retrying. &#160; --09:18:03-- http://192.xxx.xxx.xxx/windowsshare/folder/file.jpg &#40;try: 3&#41; =&#62; `file.jpg.1' Connecting to 127.0.0.1:80... connected. HTTP request sent, awaiting response... 200 OK Length: 763,685 (746K) [image/jpeg] &#160; 0% [ ] 0 --.--K/s and it will [...]]]></description>
			<content:encoded><![CDATA[<p>I have a home server I use for all kinds of stuff when I&#8217;m away. I have set it up recently so that it can serve a folder mounted over the network from a Windows machine.</p>
<p><em>And this is where the fun started!</em></p>
<p>The folders and files appear correctly, I can navigate and I can download them. Only that the files, even if apparently having the same size are corrupted. I checked the <strong><em>FollowSymLinks </em></strong>and as expected was set as required. I tried wget in the command prompt to see if I could find some enlightment but I got the following errors:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># wget http://192.xxx.xxx.xxx/windowsshare/folder/file.jpg</span>
 --09:<span style="color: #000000;">18</span>:00--  http:<span style="color: #000000; font-weight: bold;">//</span>192.xxx.xxx.xxx<span style="color: #000000; font-weight: bold;">/</span>windowsshare<span style="color: #000000; font-weight: bold;">/</span>folder<span style="color: #000000; font-weight: bold;">/</span>file.jpg
 =<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">`</span>file.jpg<span style="color: #ff0000;">'
 Connecting to 127.0.0.1:80... connected.
 HTTP request sent, awaiting response... 200 OK
 Length: 763,685 (746K) [image/jpeg]
&nbsp;
 0%
 [                                                                  ]
 0             --.--K/s
&nbsp;
 09:18:00 (0.00 B/s) - Connection closed at byte 0. Retrying.
&nbsp;
 --09:18:01--  http://192.xxx.xxx.xxx/windowsshare/folder/file.jpg
 (try: 2) =&gt; `file.jpg'</span>
 Connecting to 127.0.0.1:80... connected.
 HTTP request sent, awaiting response... <span style="color: #000000;">200</span> OK
 Length: <span style="color: #000000;">763</span>,<span style="color: #000000;">685</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>746K<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>image<span style="color: #000000; font-weight: bold;">/</span>jpeg<span style="color: #7a0874; font-weight: bold;">&#93;</span>
 file.jpg has sprung into existence.
 Retrying.
&nbsp;
 --09:<span style="color: #000000;">18</span>:03--  http:<span style="color: #000000; font-weight: bold;">//</span>192.xxx.xxx.xxx<span style="color: #000000; font-weight: bold;">/</span>windowsshare<span style="color: #000000; font-weight: bold;">/</span>folder<span style="color: #000000; font-weight: bold;">/</span>file.jpg
 <span style="color: #7a0874; font-weight: bold;">&#40;</span>try: <span style="color: #000000;">3</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> =<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">`</span>file.jpg.1<span style="color: #ff0000;">'
 Connecting to 127.0.0.1:80... connected.
 HTTP request sent, awaiting response... 200 OK
 Length: 763,685 (746K) [image/jpeg]
&nbsp;
 0%
 [                                                                  ]
 0             --.--K/s</span></pre></div></div>

<p>and it will continue like this creating empty files.</p>
<p>Especial the <strong>has sprung into existence</strong> baffled me. Also note that symlinking any other folder, even mounted as <strong>smbfs</strong> instead of <strong>cifs</strong> worked perfectly. At this point changing the mount to smbfs would have solved my problem but curiosity was stronger.</p>
<p>As it turns either apache or (more likely) the cifs driver has a bug. You can work around it by setting the following inside your apache configuration.</p>
<pre>EnableSendfile off</pre>
<p>Further upgrades will probably eradicate this problem.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.sgvulcan.com/apache-2-2-will-not-serve-corectly-from-cifs-mounted-share/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.sgvulcan.com/apache-2-2-will-not-serve-corectly-from-cifs-mounted-share/&amp;title=Apache+2.2+will+not+serve+corectly+from+CIFS+mounted+share" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sgvulcan.com/apache-2-2-will-not-serve-corectly-from-cifs-mounted-share/&amp;title=Apache+2.2+will+not+serve+corectly+from+CIFS+mounted+share" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.sgvulcan.com/apache-2-2-will-not-serve-corectly-from-cifs-mounted-share/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.sgvulcan.com/apache-2-2-will-not-serve-corectly-from-cifs-mounted-share/&amp;title=Apache+2.2+will+not+serve+corectly+from+CIFS+mounted+share" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.sgvulcan.com/apache-2-2-will-not-serve-corectly-from-cifs-mounted-share/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Apache+2.2+will+not+serve+corectly+from+CIFS+mounted+share+-+http://bit.ly/cKoj1Y&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/apache-2-2-will-not-serve-corectly-from-cifs-mounted-share/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get the new Firefox 4.0 beta for Linux 64 bit.</title>
		<link>http://www.sgvulcan.com/get-the-new-firefox-4-0-beta-for-linux-64-bit/</link>
		<comments>http://www.sgvulcan.com/get-the-new-firefox-4-0-beta-for-linux-64-bit/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 13:36:18 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1060</guid>
		<description><![CDATA[I wanted to play a bit with the Mozilla Firefox 4.0 beta. Well, if you go to the download site there&#8217;s no apparent way to download the 64 bit version of Firefox. This is where I got it: ftp://ftp.mozilla.org/pub/firefox/releases/4.0b1 Subscribe to the comments for this post? Share this on del.icio.us Digg this! Post on Google Buzz Share this on Reddit Share this on Technorati Tweet This!]]></description>
			<content:encoded><![CDATA[<p>I wanted to play a bit with the Mozilla Firefox 4.0 beta. Well, if you go to the download site there&#8217;s no apparent way to download the 64 bit version of Firefox. This is where I got it:</p>
<p><a href="ftp://ftp.mozilla.org/pub/firefox/releases/4.0b1">ftp://ftp.mozilla.org/pub/firefox/releases/4.0b1</a></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.sgvulcan.com/get-the-new-firefox-4-0-beta-for-linux-64-bit/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.sgvulcan.com/get-the-new-firefox-4-0-beta-for-linux-64-bit/&amp;title=Get+the+new+Firefox+4.0+beta+for+Linux+64+bit." rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sgvulcan.com/get-the-new-firefox-4-0-beta-for-linux-64-bit/&amp;title=Get+the+new+Firefox+4.0+beta+for+Linux+64+bit." rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.sgvulcan.com/get-the-new-firefox-4-0-beta-for-linux-64-bit/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.sgvulcan.com/get-the-new-firefox-4-0-beta-for-linux-64-bit/&amp;title=Get+the+new+Firefox+4.0+beta+for+Linux+64+bit." rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.sgvulcan.com/get-the-new-firefox-4-0-beta-for-linux-64-bit/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Get+the+new+Firefox+4.0+beta+for+Linux+64+bit.+-+http://bit.ly/bxtqiL&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/get-the-new-firefox-4-0-beta-for-linux-64-bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to check if TRIM is enabled on your SSD</title>
		<link>http://www.sgvulcan.com/how-to-check-if-trim-is-enabled-on-your-ssd/</link>
		<comments>http://www.sgvulcan.com/how-to-check-if-trim-is-enabled-on-your-ssd/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 10:07:24 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[fsutil]]></category>
		<category><![CDATA[ssd]]></category>
		<category><![CDATA[trim]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1057</guid>
		<description><![CDATA[God a fancy new drive? SSD maybe? TRIM support advertised? Well, here&#8217;s how you can check if TRIM support is actually enabled and working in your windows installation: Start a command prompt window (WIN+R, type cmd and press enter) In the command prompt window type the following: fsutil behavior query disabledeletenotify You will get one of the following: DisableDeleteNotify = 1 (Means that Windows TRIM commands are disabled) DisableDeleteNotify = 0 (Means that Windows TRIM commands are enabled) What is TRIM and why do you need it In computing, a TRIM command allows an operating system to inform a solid-state drive (or &#8220;SSD&#8221;) which data blocks, such as those belonging to a deleted file or affected by a format command, are no longer considered in use and can be wiped internally. TRIM was introduced soon after SSDs started to become an affordable alternative for traditional hard disks as permanent storage in PCs. Because low-level operation of SSDs differs significantly from traditional hard disks (see details below), the typical way in which operating systems handle operations like deletes and formats (not communicating the involved sectors/pages to the storage medium) resulted in unanticipated progressive performance degradation of write operations on SSDs. TRIM [...]]]></description>
			<content:encoded><![CDATA[<h3>God a fancy new drive? SSD maybe? TRIM support advertised?</h3>
<p>Well, here&#8217;s how you can check if TRIM support is actually enabled and working in your windows installation:</p>
<p>Start a command prompt window (<strong>WIN+R, type cmd and press enter</strong>)</p>
<p>In the command prompt window type the following:</p>
<pre>fsutil behavior query disabledeletenotify</pre>
<p><a href="http://www.sgvulcan.com/wp-content/uploads/2010/07/trim_command_check_command_prompt.jpg" rel="lightbox[1057]"><img class="size-medium wp-image-1058  aligncenter" title="Checking the state of the TRIM command support  inside the windows command prompt" src="http://www.sgvulcan.com/wp-content/uploads/2010/07/trim_command_check_command_prompt-300x82.jpg" alt="Checking the state of the TRIM command support inside the windows  command prompt" width="300" height="82" /></a>You will get one of the following:</p>
<p><strong>DisableDeleteNotify = 1 (Means that Windows TRIM commands are disabled)<br />
DisableDeleteNotify  = 0 (Means that Windows TRIM commands are enabled)</strong></p>
<h3>What is TRIM and why do you need it</h3>
<blockquote><p>In computing,  a <strong>TRIM</strong> command allows an operating system to inform a solid-state drive (or &#8220;SSD&#8221;) which data blocks, such as  those belonging to a deleted file or affected by a format command, are no longer considered in use and can  be wiped internally.</p>
<p>TRIM was introduced soon after SSDs started to become an affordable  alternative for traditional hard disks as permanent storage in PCs. Because  low-level operation of SSDs differs significantly from traditional hard  disks (see details below), the typical way in which operating systems  handle operations like deletes and formats (not communicating the  involved sectors/pages to the storage medium) resulted in unanticipated  progressive performance degradation of write operations on SSDs. TRIM enables the SSD to handle garbage collection overhead, that would otherwise significantly slow down future write  operations to the involved blocks, in advance.</p></blockquote>
<p>[from <a href="http://en.wikipedia.org/wiki/TRIM" target="_blank">wikipedia.org</a>]</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.sgvulcan.com/how-to-check-if-trim-is-enabled-on-your-ssd/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.sgvulcan.com/how-to-check-if-trim-is-enabled-on-your-ssd/&amp;title=How+to+check+if+TRIM+is+enabled+on+your+SSD" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sgvulcan.com/how-to-check-if-trim-is-enabled-on-your-ssd/&amp;title=How+to+check+if+TRIM+is+enabled+on+your+SSD" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.sgvulcan.com/how-to-check-if-trim-is-enabled-on-your-ssd/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.sgvulcan.com/how-to-check-if-trim-is-enabled-on-your-ssd/&amp;title=How+to+check+if+TRIM+is+enabled+on+your+SSD" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.sgvulcan.com/how-to-check-if-trim-is-enabled-on-your-ssd/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=How+to+check+if+TRIM+is+enabled+on+your+SSD+-+http://bit.ly/9crinv&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/how-to-check-if-trim-is-enabled-on-your-ssd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Core I7 and I5 throtle more than the core 2</title>
		<link>http://www.sgvulcan.com/core-i7-and-i5-throtle-more-than-the-core-2/</link>
		<comments>http://www.sgvulcan.com/core-i7-and-i5-throtle-more-than-the-core-2/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 18:51:12 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[cooling]]></category>
		<category><![CDATA[Cpu]]></category>
		<category><![CDATA[i5]]></category>
		<category><![CDATA[i7]]></category>
		<category><![CDATA[overclocking]]></category>
		<category><![CDATA[throttling]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1055</guid>
		<description><![CDATA[I recently found out that the power management inside the new I5 and I7 Intel processors is much more inteligent than what the older core2 has. For example a core2 would throtle back based on temperature only just before the critical point. The newer I5s and I7s would turn cores on/off or independently slow down depending on load, power consumption and temperature. Basicly this means that you might get less from your cpu if it runs hot &#8211; either because of the weather or because of inapropriate cooling, Also overclockers should be careful. You might be happy that your machine is stable at the new speed but it coukd be that it&#8217;s only throttling down all the time. Posted by Wordmobi Subscribe to the comments for this post? Share this on del.icio.us Digg this! Post on Google Buzz Share this on Reddit Share this on Technorati Tweet This!]]></description>
			<content:encoded><![CDATA[<p>I recently found out that the power management inside the new I5 and I7 Intel processors is much more inteligent than what the older core2 has. For example a core2 would throtle back based on temperature only just before the critical point. </p>
<p> The newer I5s and I7s would turn cores on/off or independently slow down depending on load, power consumption and temperature. </p>
<p> Basicly this means that you might get less from your cpu if it runs hot &#8211; either because of the weather or because of inapropriate cooling, </p>
<p> Also overclockers should be careful. You might be happy that your machine is stable at the new speed but it coukd be that it&#8217;s only throttling down all the time. </p>
<p>Posted by <a href="http://wordmobi.googlecode.com">Wordmobi</a></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.sgvulcan.com/core-i7-and-i5-throtle-more-than-the-core-2/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.sgvulcan.com/core-i7-and-i5-throtle-more-than-the-core-2/&amp;title=Core+I7+and+I5+throtle+more+than+the+core+2" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sgvulcan.com/core-i7-and-i5-throtle-more-than-the-core-2/&amp;title=Core+I7+and+I5+throtle+more+than+the+core+2" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.sgvulcan.com/core-i7-and-i5-throtle-more-than-the-core-2/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.sgvulcan.com/core-i7-and-i5-throtle-more-than-the-core-2/&amp;title=Core+I7+and+I5+throtle+more+than+the+core+2" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.sgvulcan.com/core-i7-and-i5-throtle-more-than-the-core-2/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Core+I7+and+I5+throtle+more+than+the+core+2+-+http://bit.ly/c9R1hn&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/core-i7-and-i5-throtle-more-than-the-core-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Network interface bonding in Slackware (version 13.1)</title>
		<link>http://www.sgvulcan.com/network-interface-bonding-in-slackware-version-13-1/</link>
		<comments>http://www.sgvulcan.com/network-interface-bonding-in-slackware-version-13-1/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 11:26:08 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[bond]]></category>
		<category><![CDATA[bonding]]></category>
		<category><![CDATA[failover]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[redudancy]]></category>
		<category><![CDATA[slackware]]></category>
		<category><![CDATA[trunk]]></category>
		<category><![CDATA[trunking]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1049</guid>
		<description><![CDATA[A backup NAS I set up for a client had some problems &#8211; i.e. from time to time the network card would hang forcing a reboot (the machine was headless). The disks in the nas are RAID 1 providing redundancy in case of failure. We wanted the same with the network. So, nothing easier than to install a second network card and set up bonding. What is network bonding? Bonding is the same as port trunking. It means that two (ore more) physical network connections are combine to form one virtual network connection. The added benefit is that bandwidth adds too.  So theoretically this could offer multi gigabit capabilities. How is it configured First you need a small utility that comes with the linux kernel: ifenslave. So we must compile it. After that it should be moved somewhere more apropriate. cd /usr/src/linux/Documentation/networking gcc -Wall -O -I/usr/src/linux/include ifenslave.c -o ifenslave cp ifenslave /sbin/ifenslave Then we need some scripts that will set up bonding on boot. So we go to /etc/rc.d and create a new file called rc.bond cd /etc/rc.d touch rc.bond Edit the file you just created to contain the following: #!/bin/sh &#160; case &#34;$1&#34; in 'start'&#41; echo &#34;start bond0&#34; modprobe [...]]]></description>
			<content:encoded><![CDATA[<p>A backup NAS I set up for a client had some problems &#8211; i.e. from time to time the network card would hang forcing a reboot (the machine was headless). The disks in the nas are RAID 1 providing redundancy in case of failure. We wanted the same with the network. So, nothing easier than to install a second network card and set up bonding.</p>
<h3>What is network bonding?</h3>
<p>Bonding is the same as port trunking. It means that two (ore more) physical network connections are combine to form one virtual network connection. The added benefit is that bandwidth adds too.  So theoretically this could offer multi gigabit capabilities.</p>
<h3>How is it configured</h3>
<p>First you need a small utility that comes with the linux kernel: <strong>ifenslave</strong>. So we must compile it. After that it should be moved somewhere more apropriate.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>linux<span style="color: #000000; font-weight: bold;">/</span>Documentation<span style="color: #000000; font-weight: bold;">/</span>networking
<span style="color: #c20cb9; font-weight: bold;">gcc</span> <span style="color: #660033;">-Wall</span> <span style="color: #660033;">-O</span> -I<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>linux<span style="color: #000000; font-weight: bold;">/</span>include ifenslave.c  <span style="color: #660033;">-o</span> ifenslave
<span style="color: #c20cb9; font-weight: bold;">cp</span> ifenslave <span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>ifenslave</pre></div></div>

<p>Then we need some scripts that will set up bonding on boot. So we go to <strong>/etc/rc.d</strong> and create a new file called <strong>rc.bond</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d
<span style="color: #c20cb9; font-weight: bold;">touch</span> rc.bond</pre></div></div>

<p>Edit the file you just created to contain the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
          <span style="color: #ff0000;">'start'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
            <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;start bond0&quot;</span>
            modprobe bonding <span style="color: #007800;">mode</span>=balance-rr <span style="color: #007800;">miimon</span>=<span style="color: #000000;">100</span>
            modprobe tg3
            <span style="color: #c20cb9; font-weight: bold;">ifconfig</span> bond0 up
            ifenslave bond0 eth0
            ifenslave bond0 eth1
            <span style="color: #666666; font-style: italic;">#You don't necesarily need to change the hardware address</span>
            <span style="color: #666666; font-style: italic;">#It will take it from the first hardware interface</span>
            <span style="color: #666666; font-style: italic;">#ifconfig bond0 hw ether 00:16:3e:aa:aa:aa</span>
          <span style="color: #000000; font-weight: bold;">;;</span>
          <span style="color: #ff0000;">'stop'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
            <span style="color: #c20cb9; font-weight: bold;">ifconfig</span> bond0 down
            rmmod bonding
            rmmod tg3
          <span style="color: #000000; font-weight: bold;">;;</span>
          <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
            <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Usage: $0 {start|stop}&quot;</span>
          <span style="color: #000000; font-weight: bold;">;;</span>
        <span style="color: #000000; font-weight: bold;">esac</span></pre></div></div>

<p>Save this file and make it executable</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chmod</span> +x <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>rc.bond</pre></div></div>

<p>We need to start this on boot. So edit rc.M You need to find the line containing <strong>#Initialize the networking hardware</strong> and insert this after it</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># If script rc.bond is executeable then start it</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-x</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>rc.bond <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
  . <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>rc.bond start
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>

<p>Finally we must configure <strong>rc.inet1.conf </strong>to set our bond interface and to make sure the physical interfaces are not configured. Add the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">IFNAME<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>=<span style="color: #ff0000;">&quot;bond0&quot;</span>
IPADDR<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>=<span style="color: #ff0000;">&quot;XXX.XX.XX.XX&quot;</span>
NETMASK<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>=<span style="color: #ff0000;">&quot;255.255.255.0&quot;</span>
USE_DHCP<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>=<span style="color: #ff0000;">&quot;&quot;</span>
DHCP_HOSTNAME<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>=<span style="color: #ff0000;">&quot;&quot;</span></pre></div></div>

<p><strong>Make sure that the physical interfaces, like 0, 1 and so on are NOT configured.</strong><br />
Reboot, and everything will be set.</p>
<p>For your reference those are the bonding modes available:</p>
<blockquote><p><strong>mode=0	(balance-rr)</strong><br />
Round-robin policy: Transmit packets in sequential order from the first  available slave  through the last.  This mode provides load balancing and fault  tolerance.</p>
<p><strong>mode=1 (active-backup)</strong><br />
Active-backup policy: Only one slave in the bond is active. A different  slave becomes  active if, and only if, the active slave fails. The bond&#8217;s MAC address  is externally  visible on only one port (network adapter) to avoid confusing the  switch.  This mode  provides fault tolerance. The primary option affects the behavior of  this mode.</p>
<p><strong>mode=2	(balance-xor)</strong><br />
XOR policy: Transmit based on [(source MAC address XOR'd with  destination MAC address)  modulo slave count].  This selects the same slave for each destination  MAC address. This  mode provides load balancing and fault tolerance.</p>
<p><strong>mode=3 	(broadcast)</strong><br />
Broadcast policy: transmits everything on all slave interfaces. This  mode provides fault  tolerance.</p>
<p><strong>mode=4	(802.3ad)</strong><br />
IEEE 802.3ad Dynamic link aggregation. Creates aggregation groups that  share the same  speed and duplex settings.  Utilizes all slaves in the active aggregator  according to  the 802.3ad specification.</p>
<pre>	<em>Pre-requisites:
	1. Ethtool support in the base drivers for retrieving
	the speed and duplex of each slave.
	2. A switch that supports IEEE 802.3ad Dynamic link
	aggregation.
	Most switches will require some type of configuration
	to enable 802.3ad mode.</em></pre>
<p><strong>mode=5	(balance-tlb)</strong><br />
Adaptive transmit load balancing: channel bonding that does not require  any special  switch support. The outgoing traffic is distributed according to the  current load  (computed relative to the speed) on each slave.  Incoming traffic is  received by  the current slave.  If the receiving slave fails, another slave takes  over the  MAC address of the failed receiving slave.</p>
<pre>	<em>Prerequisite:
	Ethtool support in the base drivers for retrieving the
	speed of each slave.</em></pre>
</blockquote>
<blockquote><p><strong>mode=6 (balance-alb)</strong><br />
Adaptive load balancing: includes balance-tlb plus receive load  balancing (rlb) for  IPV4 traffic, and does not require any special switch support. The  receive load  balancing is achieved by ARP negotiation. The bonding driver intercepts  the ARP  Replies sent by the local system on their way out and overwrites the  source hardware  address with the unique hardware address of one of the slaves in the  bond  such that different peers use different hardware addresses for the  server.</p>
<p>[source: <a href="http://www.linuxhorizon.ro/bonding.html" target="_blank">http://www.linuxhorizon.ro/bonding.html</a>]</p></blockquote>
<p>The most used are the first four mode types&#8230;</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.sgvulcan.com/network-interface-bonding-in-slackware-version-13-1/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.sgvulcan.com/network-interface-bonding-in-slackware-version-13-1/&amp;title=Network+interface+bonding+in+Slackware+%28version+13.1%29" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sgvulcan.com/network-interface-bonding-in-slackware-version-13-1/&amp;title=Network+interface+bonding+in+Slackware+%28version+13.1%29" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.sgvulcan.com/network-interface-bonding-in-slackware-version-13-1/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.sgvulcan.com/network-interface-bonding-in-slackware-version-13-1/&amp;title=Network+interface+bonding+in+Slackware+%28version+13.1%29" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.sgvulcan.com/network-interface-bonding-in-slackware-version-13-1/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Network+interface+bonding+in+Slackware+%28version+13.1%29+-+http://bit.ly/9GcOq5&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/network-interface-bonding-in-slackware-version-13-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Force fsck on next reboot</title>
		<link>http://www.sgvulcan.com/force-fsck-on-next-reboot/</link>
		<comments>http://www.sgvulcan.com/force-fsck-on-next-reboot/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 08:07:25 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[Bash scripting]]></category>
		<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[force]]></category>
		<category><![CDATA[fsck]]></category>
		<category><![CDATA[touch]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1042</guid>
		<description><![CDATA[Let&#8217;s say you run a headless server and you want to fsck the main partition. The easy solution in this case is (if possible) to force fsck to run on the next boot. If you run slackware than all you really need is to create an empty file in /etc called forcefsck You could do this by running: touch /etc/forcefsck Other linux distributions might check for this file elsewhere, for example in the root directory so the command would be touch /forcefsck Checking the documentation will always help. Subscribe to the comments for this post? Share this on del.icio.us Digg this! Post on Google Buzz Share this on Reddit Share this on Technorati Tweet This!]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-1046" title="fsck" src="http://www.sgvulcan.com/wp-content/uploads/2010/07/fsck1-150x150.jpg" alt="fsck your main partition on the next boot" width="150" height="150" />Let&#8217;s say you run a headless server and you want to fsck the main partition. The easy solution in this case is (if possible) to force fsck to run on the next boot.</p>
<p>If you run slackware than all you really need is to create an empty file in <strong>/etc</strong> called <strong>forcefsck</strong></p>
<p>You could do this by running:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>forcefsck</pre></div></div>

<p>Other linux distributions might check for this file elsewhere, for example in the root directory so the command would be</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>forcefsck</pre></div></div>

<p>Checking the documentation will always help.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.sgvulcan.com/force-fsck-on-next-reboot/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.sgvulcan.com/force-fsck-on-next-reboot/&amp;title=Force+fsck+on+next+reboot" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sgvulcan.com/force-fsck-on-next-reboot/&amp;title=Force+fsck+on+next+reboot" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.sgvulcan.com/force-fsck-on-next-reboot/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.sgvulcan.com/force-fsck-on-next-reboot/&amp;title=Force+fsck+on+next+reboot" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.sgvulcan.com/force-fsck-on-next-reboot/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Force+fsck+on+next+reboot+-+http://bit.ly/9uQHvo&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/force-fsck-on-next-reboot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MYSQL: set first letter of field to uppercase</title>
		<link>http://www.sgvulcan.com/mysql-set-first-letter-of-field-to-uppercase/</link>
		<comments>http://www.sgvulcan.com/mysql-set-first-letter-of-field-to-uppercase/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 10:05:53 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[lowercase]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[uppercase]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1034</guid>
		<description><![CDATA[I recently had to set values of a set of values from a column from lowercase to Firstuppercase. Nothing easier, run the following code on the database: UPDATE `affected_table` SET `field_in_question` = CONCAT&#40;UPPER&#40;LEFT&#40;`field_in_question`, 1&#41;&#41;, SUBSTRING&#40;`field_in_question`, 2&#41;&#41; Subscribe to the comments for this post? Share this on del.icio.us Digg this! Post on Google Buzz Share this on Reddit Share this on Technorati Tweet This!]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-1037" title="Logo-mysql" src="http://www.sgvulcan.com/wp-content/uploads/2010/07/Logo-mysql-300x218.jpg" alt="" width="180" height="131" />I recently had to set  values of a set of values from a column from lowercase to Firstuppercase. Nothing easier, run the following code on the database:</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> <span style="color: #ff0000;">`affected_table`</span> <span style="color: #993333; font-weight: bold;">SET</span>
<span style="color: #ff0000;">`field_in_question`</span> <span style="color: #66cc66;">=</span> CONCAT<span style="color: #66cc66;">&#40;</span>UPPER<span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">LEFT</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">`field_in_question`</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span>
SUBSTRING<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">`field_in_question`</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></pre></div></div>



<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.sgvulcan.com/mysql-set-first-letter-of-field-to-uppercase/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.sgvulcan.com/mysql-set-first-letter-of-field-to-uppercase/&amp;title=MYSQL%3A+set+first+letter+of+field+to+uppercase" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sgvulcan.com/mysql-set-first-letter-of-field-to-uppercase/&amp;title=MYSQL%3A+set+first+letter+of+field+to+uppercase" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.sgvulcan.com/mysql-set-first-letter-of-field-to-uppercase/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.sgvulcan.com/mysql-set-first-letter-of-field-to-uppercase/&amp;title=MYSQL%3A+set+first+letter+of+field+to+uppercase" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.sgvulcan.com/mysql-set-first-letter-of-field-to-uppercase/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=MYSQL%3A+set+first+letter+of+field+to+uppercase+-+http://bit.ly/bFbk9G&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/mysql-set-first-letter-of-field-to-uppercase/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows XP &#8211; prevent a user&#8217;s password from expiring</title>
		<link>http://www.sgvulcan.com/windows-xp-prevent-a-users-password-from-expiring/</link>
		<comments>http://www.sgvulcan.com/windows-xp-prevent-a-users-password-from-expiring/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 09:54:46 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[advanced]]></category>
		<category><![CDATA[control panel]]></category>
		<category><![CDATA[expire]]></category>
		<category><![CDATA[expiring]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1027</guid>
		<description><![CDATA[One of my clients called be mecause every now and then his was bugged by Windows XP to change his password. This seemed weird as XP doesn&#8217;t do this by default. Probably it was set to expire by someone or by some friendly security suite. Fortunately the solution for this expiring password problem is easy. You just need to tell Windows that you want your password to never expire. This is not necessarily a good practice, nevertheless if you want to, here is how you do it. Go to START-&#62;RUN or WIN+R. Type control userpasswords2 and hit ENTER You&#8217;ll get a window like this one showing up: You have to click the Advanced tab Unsurprisingly, on the Advanced tab you have to click the Advanced button. (Who designs this kind of interfaces?) In the window that opens you can see your local users and groups. Click on Users and double click in the right panel the user you want to set the password not to expire. Finally in the new window that opens check Password never expires. Apply or OK your way back! Done. Still it&#8217;s a good ideea to change all your passwords from time to time, just to [...]]]></description>
			<content:encoded><![CDATA[<p>One of my clients called be mecause every now and then his was bugged by Windows XP to change his password. This seemed weird as XP doesn&#8217;t do this by default. Probably it was set to expire by someone or by some <em>friendly </em>security suite.</p>
<p>Fortunately the solution for this expiring password problem is easy. You just need to tell Windows that you want your password to <strong>never expire.</strong> This is not necessarily a good practice, nevertheless if you want to, here is how you do it.</p>
<ul>
<li>Go to <strong>START-&gt;RUN</strong> or <strong>WIN+R</strong>.</li>
<li>Type <strong>control userpasswords2</strong><img src="file:///C:/DOCUME%7E1/user/LOCALS%7E1/Temp/moz-screenshot.png" alt="" /> and hit <strong>ENTER</strong></li>
</ul>
<p>You&#8217;ll get a window like this one showing up:</p>
<ul>
<li><img class="aligncenter size-full wp-image-1028" title="xp_user_accounts2" src="http://www.sgvulcan.com/wp-content/uploads/2010/07/xp_user_accounts2.jpg" alt="Advanced users control panel" width="404" height="448" /></li>
</ul>
<ul>
<li>You have to click the <strong>Advanced</strong> tab</li>
</ul>
<p><img class="aligncenter size-full wp-image-1029" title="xp_user_accounts2_advanced" src="http://www.sgvulcan.com/wp-content/uploads/2010/07/xp_user_accounts2_advanced.jpg" alt="Advanced tab of users settings" width="404" height="447" /></p>
<ul>
<li>Unsurprisingly, on the Advanced tab you have to click the <strong>Advanced</strong> button. (Who designs this kind of interfaces?)</li>
</ul>
<p><a href="http://www.sgvulcan.com/wp-content/uploads/2010/07/xp_user_accounts_edit_user.jpg" rel="lightbox[1027]"><img class="aligncenter size-medium wp-image-1030" title="xp_user_accounts_edit_user" src="http://www.sgvulcan.com/wp-content/uploads/2010/07/xp_user_accounts_edit_user-300x222.jpg" alt="Windows XP Advanced Users Settings" width="300" height="222" /></a></p>
<ul>
<li>In the window that opens you can see your local users and groups.</li>
<li>Click on <strong>Users</strong> and double click <strong>in the right panel the user you want to set the password not to expire.</strong></li>
</ul>
<p><a href="http://www.sgvulcan.com/wp-content/uploads/2010/07/xp_user_accounts_edit_user_expire_password.jpg" rel="lightbox[1027]"><img class="aligncenter size-medium wp-image-1031" title="xp_user_accounts_edit_user_expire_password" src="http://www.sgvulcan.com/wp-content/uploads/2010/07/xp_user_accounts_edit_user_expire_password-300x223.jpg" alt="Advanced user settings. Set password expiring time" width="300" height="223" /></a></p>
<ul>
<li>Finally in the new window that opens check <strong>Password never expires</strong>.</li>
<li><strong>Apply or OK </strong>your way back!</li>
</ul>
<p>Done. Still it&#8217;s a good ideea to change all your passwords from time to time, just to be on the safe side.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.sgvulcan.com/windows-xp-prevent-a-users-password-from-expiring/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.sgvulcan.com/windows-xp-prevent-a-users-password-from-expiring/&amp;title=Windows+XP+-+prevent+a+user%27s+password+from+expiring" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sgvulcan.com/windows-xp-prevent-a-users-password-from-expiring/&amp;title=Windows+XP+-+prevent+a+user%27s+password+from+expiring" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.sgvulcan.com/windows-xp-prevent-a-users-password-from-expiring/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.sgvulcan.com/windows-xp-prevent-a-users-password-from-expiring/&amp;title=Windows+XP+-+prevent+a+user%27s+password+from+expiring" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.sgvulcan.com/windows-xp-prevent-a-users-password-from-expiring/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Windows+XP+-+prevent+a+user%27s+password+from+expiring+-+http://bit.ly/bLTLvS&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/windows-xp-prevent-a-users-password-from-expiring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Good VPS hosting</title>
		<link>http://www.sgvulcan.com/good-vps-hosting/</link>
		<comments>http://www.sgvulcan.com/good-vps-hosting/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 11:44:59 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[Useful tools]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1025</guid>
		<description><![CDATA[Like I said some time ago I had to move my websites from a shared host (bluehost) to a dedicated sollution. Well, the websites I host (for clients, friends and myself) don&#8217;t account for the need of a dedicated server so I searched for a virtual sollution. I finally came to the conclusion that unmanaged is the way for me. I&#8217;m working on the old premise &#8220;give me a machine, an IP, a net pipe and some power&#8221; and I&#8217;ll manage from there. Finally after some research I was left with two: Slicehost and Linode. From the features listed and user testimonials I found on various forums they are equally good. Simply when I needed to sign up Linode offered more space and RAM for the same amount of money, so the choice was easy. What I like: recently awarded more RAM as a 7 year Linode anniversary. broad choice of operating systems root access including console (if you borke your ssh daemon you can still login) disk image tools custom warnings on cpu, memory and bandwith  increasing over certain limits you get to define(not that you are penalised but it simply means you probabbly have something hanging) you can [...]]]></description>
			<content:encoded><![CDATA[<p>Like I said some time ago I had to move my websites from a shared host (bluehost) to a dedicated sollution. Well, the websites I host (for clients, friends and myself) don&#8217;t account for the need of a dedicated server so I searched for a virtual sollution.</p>
<p>I finally came to the conclusion that unmanaged is the way for me. I&#8217;m working on the old premise &#8220;give me a machine, an IP, a net pipe and some power&#8221; and I&#8217;ll manage from there.</p>
<p>Finally after some research I was left with two: <a href="http://www.slicehost.com/" target="_blank">Slicehost</a> and <a href="http://www.linode.com/?r=16a04aa4c234b0d0edf8bf518ca11356448e1975" target="_blank">Linode</a>. From the features listed and user testimonials I found on various forums they are equally good. Simply when I needed to sign up Linode offered more space and RAM for the same amount of money, so the choice was easy.</p>
<p>What I like:</p>
<ul>
<li>recently awarded more RAM as a 7 year <a href="http://www.linode.com/?r=16a04aa4c234b0d0edf8bf518ca11356448e1975">Linode</a> anniversary.</li>
<li>broad choice of operating systems</li>
<li>root access including console (if you borke your ssh daemon you can still login)</li>
<li>disk image tools</li>
<li>custom warnings on cpu, memory and bandwith  increasing over certain limits <em><strong>you get to define</strong></em>(not that you are penalised but it simply means you probabbly have something hanging)</li>
<li>you can choose the datacenter and move your machine from one to another</li>
<li>you can easily buy more resources (ram, disk, bandwith)</li>
<li>It was never down for me</li>
<li>DNS manager</li>
<li>Statistics and everything</li>
</ul>
<p>What I don&#8217;t like:</p>
<ul>
<li>no symbian application or mobile admin website (only iphone and maybe android) &#8211; not a big deal, I still have an ssh client on my phone and the regular website works decent on my nokia&#8217;s browser</li>
</ul>
<p>So, if you&#8217;re in the market for a virtual host I can recommend <strong><a href="http://www.linode.com/?r=16a04aa4c234b0d0edf8bf518ca11356448e1975">Linode</a></strong> from all my heart.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.sgvulcan.com/good-vps-hosting/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.sgvulcan.com/good-vps-hosting/&amp;title=Good+VPS+hosting" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sgvulcan.com/good-vps-hosting/&amp;title=Good+VPS+hosting" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.sgvulcan.com/good-vps-hosting/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.sgvulcan.com/good-vps-hosting/&amp;title=Good+VPS+hosting" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.sgvulcan.com/good-vps-hosting/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Good+VPS+hosting+-+http://bit.ly/cW9GjJ&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/good-vps-hosting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
