<?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>Solutions Log &#187; Windows</title>
	<atom:link href="http://solutions.unixsherpa.com/category/os/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://solutions.unixsherpa.com</link>
	<description>by Dan Reiland</description>
	<lastBuildDate>Fri, 16 Apr 2010 20:28:57 +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>The device, \Device\Ide\iaStor0, did not respond within the timeout period</title>
		<link>http://solutions.unixsherpa.com/2010/03/25/the-device-deviceideiastor0-did-not-respond-within-the-timeout-period/</link>
		<comments>http://solutions.unixsherpa.com/2010/03/25/the-device-deviceideiastor0-did-not-respond-within-the-timeout-period/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 16:38:21 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[ICH10R]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[seagate]]></category>
		<category><![CDATA[ST3500320AS]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=280</guid>
		<description><![CDATA[Issue: After an updated release of Intel's Matrix Storage Manager [v.8.9.0.1023] and chipset drivers for Windows, you experience unexpected system timeouts, lockups, pausing, or freezing. The following event is recorded in the System event log: Log Name: System Source: iaStor EventID: 9 Level: Error The device, \Device\Ide\iaStor0, did not respond within the timeout period. Cause: [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Issue:</strong><br />
After an updated release of Intel's Matrix Storage Manager [v.8.9.0.1023] and chipset drivers for Windows, you experience unexpected system timeouts, lockups, pausing, or freezing. The following event is recorded in the System event log:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Log Name: System<br />
Source: iaStor<br />
EventID: 9<br />
Level: Error<br />
The device, \Device\Ide\iaStor0, did not respond within the timeout period.</div></div>
<p><strong>Cause:</strong><br />
The issue is the result of Aggressive Link State Power Management (ALPM) on the PCI-Express bus negotiating a lower power state for the link between the controller and disk when there is no activity. When ALPM works, disk requests are queued, the serial link revived, and the queued requests are sent to the relevant disk; this requires a disk that supports ALPM.</p>
<p><strong>Resolution:</strong><br />
Modify the advanced settings of your active power management scheme in Windows to turn PCI Express Link State Power Management off.<br />
<a href="http://solutions.unixsherpa.com/wp-content/uploads/2010/03/power-1.jpg"><img src="http://solutions.unixsherpa.com/wp-content/uploads/2010/03/power-1-300x224.jpg" alt="" title="Change Plan Settings" width="300" height="224" class="aligncenter size-medium wp-image-298" /></a><br />
<a href="http://solutions.unixsherpa.com/wp-content/uploads/2010/03/power-2.jpg"><img src="http://solutions.unixsherpa.com/wp-content/uploads/2010/03/power-2-300x225.jpg" alt="" title="Change advanced power settings" width="300" height="225" class="aligncenter size-medium wp-image-295" /></a><br />
<a href="http://solutions.unixsherpa.com/wp-content/uploads/2010/03/power-3.jpg"><img src="http://solutions.unixsherpa.com/wp-content/uploads/2010/03/power-3.jpg" alt="" title="PCI Express Link State Power Management" width="420" height="449" class="aligncenter size-full wp-image-294" /></a></p>
<p><strong>Commentary:</strong><br />
Searching for a solution yielded a number of possibilities.</p>
<p>Setting the value of:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">HKLM\SYSTEM\CurrentControlSet\Services\iaSTOR\Parameters\PortN\LPMDSTATE &nbsp;0</div></div>
<p>as discussed by <a href="http://derek858.blogspot.com/2009/01/windows-7-intel-sataahci-lockups.html">Derek Seaman</a> did not resolve my issue.</p>
<p>Renaming:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">HKLM\SYSTEM\CurrentControlSet\Services\iaSTOR\Parameters</div></div>
<p>to</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">HKLM\SYSTEM\CurrentControlSet\Services\iaSTOR\Parameters.dist</div></div>
<p>as suggested by <a href="http://www.paulscomputerservice.net/index.php?body=./os/intelSataError9.php">Paul's Computer Service</a> was also ineffective. At the time I was running the latest set of drivers for my <a href="http://www.intel.com/products/desktop/chipsets/x58/x58-overview.htm">platform</a>. Caveat emptor: the solution I outlined in this article worked for me.</p>
<p><strong>References:</strong><br />
<a href="http://www.intel.com/support/chipsets/imsm/sb/cs-025783.htm">Intel CS-025783 - Possible issues with Windows Vista* and Intel® RAID</a><br />
<a href="http://derek858.blogspot.com/2009/01/windows-7-intel-sataahci-lockups.html">Windows 7 Intel SATA/AHCI Lockups</a><br />
<a href="http://www.paulscomputerservice.net/index.php?body=./os/intelSataError9.php">Intel® Matrix Storage Manager Bug</a></p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2010/03/25/the-device-deviceideiastor0-did-not-respond-within-the-timeout-period/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Acronis True Image Home 2010 Freezes During Backup on Windows 7</title>
		<link>http://solutions.unixsherpa.com/2010/03/04/acronis-true-image-home-2010-freezes-during-backup-on-windows-7/</link>
		<comments>http://solutions.unixsherpa.com/2010/03/04/acronis-true-image-home-2010-freezes-during-backup-on-windows-7/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 17:02:15 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[acronis]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[x86_64]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=266</guid>
		<description><![CDATA[Issue: When running backup jobs in Acronis True Image Home 2010 under Windows Vista or Windows 7, the backup job appears to stall and the operating system becomes unresponsive. The system will encounter a bugcheck condition and recover with an unclean shutdown. Cause: From Acronis: Because of the latest major changes in Windows Vista and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Issue:</strong><br />
When running backup jobs in <a href="http://acronis.com">Acronis</a> <a href="http://www.acronis.com/homecomputing/products/trueimage/">True Image Home 2010</a> under <a href="http://www.microsoft.com/windows/">Windows</a> Vista or <a href="http://www.microsoft.com/windows/">Windows</a> 7, the backup job appears to stall and the operating system becomes unresponsive. The system will encounter a <a href="http://msdn.microsoft.com/en-us/library/ms789516.aspx">bugcheck</a> condition and recover with an unclean shutdown.</p>
<p><strong>Cause:</strong><br />
From <a href="http://acronis.com">Acronis</a>:</p>
<blockquote><p>Because of the latest major changes in Windows Vista and Windows 7 native snapshot driver (VolSnap), there were some modifications introduced in Acronis True Image Home 2010 (starting from Build 6029). The Acronis native snapshot driver (snapman) was moved from UpperFilters to LowerFilters to avoid conflicts with VolSnap (which could have lead to backups failure or data corruption in backups). This change may sometimes manifest itself in a freezing Windows Vista or Windows 7 operating system on machines with rare software and hardware configurations.</p></blockquote>
<p><strong>Resolution:</strong><br />
Download an updated <a href="http://kb.acronis.com/content/1512">SnapAPI</a> build from <a href="http://acronis.com">Acronis</a>. Unpack it and install with the <em>Disable Logging</em> option set. See <a href="http://kb.acronis.com/content/6529">Acronis KB6529</a> for the appropriate link.</p>
<p><strong>Commentary:</strong> My hardware configuration is not esoteric; my software configuration is equally banal: an Intel Core i7 X58 system with 6GB of RAM, RAID1 on an ICH10R, and Windows 7 Ultimate 64-bit.</p>
<p>Reference: <a href="http://kb.acronis.com/content/6529">http://kb.acronis.com/content/6529</a></p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2010/03/04/acronis-true-image-home-2010-freezes-during-backup-on-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset The Windows Update Catalog</title>
		<link>http://solutions.unixsherpa.com/2010/02/08/reset-the-windows-update-catalog/</link>
		<comments>http://solutions.unixsherpa.com/2010/02/08/reset-the-windows-update-catalog/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 20:43:37 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[windows vista]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=235</guid>
		<description><![CDATA[Insert the Windows Vista installation disc in the disc drive, and then restart the computer. When you are prompted to restart from the disc, press any key. When you are prompted, configure the Language to install, Time and currency format , and Keyboard or input method options that you want, and then click Next . [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>Insert the Windows Vista installation disc in the disc drive, and then restart the computer.</li>
<li>When you are prompted to restart from the disc, press any key.</li>
<li>When you are prompted, configure the Language to install, Time and currency format , and Keyboard or input method options that you want, and then click Next .</li>
<li>On the Install Windows page, click Repair your computer .</li>
<li>On the System Recovery Options page, click the version of the Windows Vista operating system that you want to repair, and then click Next</li>
<li>On the System Recovery Options page, click Command Prompt .</li>
<li>Type cd C:\windows\winsxs , and then press ENTER.</li>
<li>Type ren pending.xml pending.old , and then press ENTER.</li>
<li>In Registry Editor, locate and then delete the following registry subkey:</li>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">HLKM\Offline Components\AdvancedInstallersNeedResolving<br />
HKLM\Offline Components\PendingXmlIdentifier<br />
HKLM\Offline Components\NextQueueEntryIndex</div></div>
<li>At the command prompt, type exit to exit Registry Editor. Press ENTER.</li>
<li>Click Restart</li>
</ol>
<p><em><strong>Reference:</strong></em> <a href="http://social.answers.microsoft.com/Forums/en-US/vistawu/thread/13dec2a0-2694-4b11-9b0c-9b8fbe6162ee">http://social.answers.microsoft.com/Forums/en-US/vistawu/thread/13dec2a0-2694-4b11-9b0c-9b8fbe6162ee</a></p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2010/02/08/reset-the-windows-update-catalog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replace Pipes with Tabs in a Delimited File</title>
		<link>http://solutions.unixsherpa.com/2009/12/04/replace-pipes-with-tabs-in-a-delimited-file/</link>
		<comments>http://solutions.unixsherpa.com/2009/12/04/replace-pipes-with-tabs-in-a-delimited-file/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 20:44:37 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Apple OSX]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Regular Expression]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=224</guid>
		<description><![CDATA[Issue: It is often necessary to replace delimiters in a file with a form the receiving party expects. sed is my favorite method of meeting the need. Solution: Replace double pipes with tabs sed 's/&#124;&#124;/ &#160; &#160; &#160; &#160; &#160; /g' file.in &#62; file.out Note: If you find the tab key simply does not work, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Issue:</strong><br />
It is often necessary to replace delimiters in a file with a form the receiving party expects. sed is my favorite method of meeting the need.</p>
<p><strong>Solution:</strong><br />
Replace double pipes with tabs</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/||/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /g'</span> file.in <span style="color: #000000; font-weight: bold;">&gt;</span> file.out</div></div>
<p><em>Note: If you find the tab key simply does not work, try CTRL+V+I from your terminal.</em><br />
<em>Reference: <a href="http://forums.devshed.com/unix-help-35/replacing-tabs-with-spaces-372623.html">http://forums.devshed.com/unix-help-35/replacing-tabs-with-spaces-372623.html</a></em></p>
<p><strong>Caveats:</strong><br />
Special consideration (and a regex) will be required for data where delimiters are present in the data itself. Consider your use case and apply appropriately.</p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/12/04/replace-pipes-with-tabs-in-a-delimited-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Strip empty (null) lines from a file</title>
		<link>http://solutions.unixsherpa.com/2009/10/06/strip-empty-null-lines-from-a-file/</link>
		<comments>http://solutions.unixsherpa.com/2009/10/06/strip-empty-null-lines-from-a-file/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 18:12:06 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Apple OSX]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[text processing]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=203</guid>
		<description><![CDATA[sed meets the need; the recipe follows: sed '/^$/d' filename]]></description>
			<content:encoded><![CDATA[<p>sed meets the need; the recipe follows:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'/^$/d'</span> filename</div></div>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/10/06/strip-empty-null-lines-from-a-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Device Manager does not display devices that are not connected to the Windows XP-based computer</title>
		<link>http://solutions.unixsherpa.com/2009/10/01/device-manager-does-not-display-devices-that-are-not-connected-to-the-windows-xp-based-computer/</link>
		<comments>http://solutions.unixsherpa.com/2009/10/01/device-manager-does-not-display-devices-that-are-not-connected-to-the-windows-xp-based-computer/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 17:36:05 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=197</guid>
		<description><![CDATA[Issue: Device Manager displays only non-Plug and Play devices, drivers, and printers when you click Show hidden devices on the View menu. Devices that you install that are not connected to the computer (such as a Universal Serial Bus [USB] device or "ghosted" devices) are not displayed in Device Manager, even when you click Show [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Issue:</strong><br />
Device Manager displays only non-Plug and Play devices, drivers, and printers when you click Show hidden devices on the View menu. Devices that you install that are not connected to the computer (such as a Universal Serial Bus [USB] device or "ghosted" devices) are not displayed in Device Manager, even when you click Show hidden devices. </p>
<p><strong>Workaround:</strong></p>
<ol>
<li>Click <strong>Start</strong>, point to <strong>Run</strong>, and type <em>cmd</em>.</li>
<li>Click <strong>Ok</strong></li>
<li>At the command prompt, type the following command and then press ENTER:
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">devmgr_show_nonpresent_devices</span>=<span style="color: #000000;">1</span></div></div>
</li>
<li>Type the following command at the command prompt and then press ENTER:
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">start devmgmt.msc</div></div>
</li>
<li>Troubleshoot the devices and drivers in Device Manager. <strong>NOTE:</strong> Click <strong>Show hidden devices</strong> on the <strong>View</strong> menu in Device Managers before you can see devices that are not connected to the computer.</li>
</ol>
<blockquote><p>Note that when you close the command prompt window, Window clears the devmgr_show_nonpresent_devices=1 variable that you set in step 2 and prevents ghosted devices from being displayed when you click Show hidden devices.</p></blockquote>
<p>If you are a developer or power user and you want to be able to view devices that are not connected to your computer, set this environment variable globally:</p>
<ol>
<li>Right-click <strong>My Computer</strong>.<strong></strong><strong></strong><strong></strong></li>
<li>Click <strong>Properties</strong>.</li>
<li>Click the <strong>Advanced</strong> tab.</li>
<li>Click on the <strong>Environment Variables</strong> tab.</li>
<li>Set the variables in the <strong>System Variables</strong> box.</li>
</ol>
<p><strong>NOTE:</strong> Use this method only for troubleshooting or development purposes, or to prevent users from accidentally uninstalling a required device that is not connected to the computer (such as a USB device or docking station that is not connected to a laptop computer).</p>
<p><strong>Reference:</strong> <a href="http://support.microsoft.com/kb/315539">http://support.microsoft.com/kb/315539</a></p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/10/01/device-manager-does-not-display-devices-that-are-not-connected-to-the-windows-xp-based-computer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mirror a Directory Structure Using the Command Line</title>
		<link>http://solutions.unixsherpa.com/2009/08/25/mirror-a-directory-structure-using-the-command-line/</link>
		<comments>http://solutions.unixsherpa.com/2009/08/25/mirror-a-directory-structure-using-the-command-line/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 18:30:51 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Batch]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[cmd]]></category>
		<category><![CDATA[command prompt]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=183</guid>
		<description><![CDATA[Issue: You need to mirror the directory structure (but not contents) for a tree. Resolution: Execute the following command from the root of your source directory. Adjust the destination variable to suit your tastes: %i will match the first token, %j the second, %k the third, and %l will match everything else. for /F &#34;tokens=1,2,3* [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Issue:</strong><br />
You need to mirror the directory structure (but not contents) for a tree.</p>
<p><strong>Resolution:</strong><br />
Execute the following command from the root of your source directory. Adjust the destination variable to suit your tastes: %i will match the first token, %j the second, %k the third, and %l will match everything else.</p>
<div class="codecolorer-container dos twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="dos codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><a href="http://www.ss64.com/nt/for.html"><span style="color: #00b100; font-weight: bold;">for</span></a> /F &quot;tokens=<span style="color: #cc66cc;">1</span>,<span style="color: #cc66cc;">2</span>,<span style="color: #cc66cc;">3</span>* delims=\&quot; <span style="color: #33cc33;">%</span><span style="color: #448888;">i</span> <a href="http://www.ss64.com/nt/in.html"><span style="color: #00b100; font-weight: bold;">in</span></a> <span style="color: #66cc66;">&#40;</span>'<a href="http://www.ss64.com/nt/dir.html"><span style="color: #b1b100; font-weight: bold;">dir</span></a> /Ad /B /N /S'<span style="color: #66cc66;">&#41;</span> <a href="http://www.ss64.com/nt/do.html"><span style="color: #00b100; font-weight: bold;">do</span></a> <a href="http://www.ss64.com/nt/mkdir.html"><span style="color: #b1b100; font-weight: bold;">mkdir</span></a> t:\dest\<span style="color: #33cc33;">%</span><span style="color: #448888;">l</span></div></div>
<p>Reference: <a href="http://www.dostips.com/DtTipsStringManipulation.php">http://www.dostips.com/DtTipsStringManipulation.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/08/25/mirror-a-directory-structure-using-the-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shrink VirtualBox vdisks After Freeing Space (Windows guests)</title>
		<link>http://solutions.unixsherpa.com/2009/08/13/shrink-virtualbox-vdisks-after-freeing-space-windows-guests/</link>
		<comments>http://solutions.unixsherpa.com/2009/08/13/shrink-virtualbox-vdisks-after-freeing-space-windows-guests/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 19:35:47 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[compact]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=164</guid>
		<description><![CDATA[Issue: On dynamically allocated vdisks, freed space on a guest is never released back to the host once freed. Cause: This is by design. Resolution: The procedure for shrinking (compacting in VirtualBox parlance) is straightforward and consists of a series of steps. Delete files on the guest to achieve the desired amount of free space [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Issue:</strong><br />
On dynamically allocated vdisks, freed space on a guest is never released back to the host once freed.</p>
<p><strong>Cause:</strong><br />
This is by design.</p>
<p><strong>Resolution:</strong><br />
The procedure for shrinking (compacting in VirtualBox parlance) is straightforward and consists of a series of steps.</p>
<ol>
<li>Delete files on the guest to achieve the desired amount of free space</li>
<li>Zero free space out with an appropriate utility</li>
<li>Shut down guest</li>
<li>Compact disk</li>
</ol>
<p>Zeroing guest free space is simple: <a href="http://www.microsoft.com">Microsoft</a> provides an excellent utility through its <a href="http://technet.microsoft.com/en-us/sysinternals/default.aspx">Sysinternals</a> group called <a href="http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx">SDelete</a>. Download the program, extract it from the archive, and execute it on the disk to be zeroed. <em>Note: this procedure only zeroes <strong>free</strong> space.</em></p>
<div class="codecolorer-container dos twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="dos codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sdelete -c</div></div>
<p>One the zeroing procedure is completed, you may power off the guest and compact the virtual disk from the command line.</p>
<div class="codecolorer-container dos twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="dos codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">VBoxManage modifyvdi /path/to/machine.vdi compact</div></div>
<p><em>Note: This was tested against VirtualBox 3.0.4 r50677</em></p>
<p>References:<br />
<a href="http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx">SDelete</a></p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/08/13/shrink-virtualbox-vdisks-after-freeing-space-windows-guests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remote Mirroring Using nc and dd</title>
		<link>http://solutions.unixsherpa.com/2009/08/10/remote-mirroring-using-nc-and-dd/</link>
		<comments>http://solutions.unixsherpa.com/2009/08/10/remote-mirroring-using-nc-and-dd/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 16:58:06 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Apple OSX]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[netcat]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=160</guid>
		<description><![CDATA[You can use the dd and nc commands for exact disk mirroring from one server to another. The following commands send data from Server1 to Server2: 12Server2# nc -l 12345 &#124; dd of=/dev/sdb Server1# dd if=/dev/sda &#124; nc server2 12345 Make sure that you issue Server2's command first so that it's listening on port 12345 [...]]]></description>
			<content:encoded><![CDATA[<p>You can use the dd and nc commands for exact disk mirroring from one server to another. The following commands send data from Server1 to Server2:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Server2# nc -l 12345 | dd of=/dev/sdb<br />
Server1# dd if=/dev/sda | nc server2 12345</div></td></tr></tbody></table></div>
<p>Make sure that you issue Server2's command first so that it's listening on port 12345 when Server1 starts sending its data.</p>
<p>Unless you're sure that the disk is not being modified, it's better to boot Server1 from a RescueCD or LiveCD to do the copy. </p>
<p>Reference: <a href="http://www.linuxjournal.com/content/tech-tip-remote-mirroring-using-nc-and-dd">http://www.linuxjournal.com/content/tech-tip-remote-mirroring-using-nc-and-dd</a></p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/08/10/remote-mirroring-using-nc-and-dd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create thumbnails en-masse from a bash prompt</title>
		<link>http://solutions.unixsherpa.com/2009/07/08/create-thumbnails-en-masse-from-a-bash-prompt/</link>
		<comments>http://solutions.unixsherpa.com/2009/07/08/create-thumbnails-en-masse-from-a-bash-prompt/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 23:10:14 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Apple OSX]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[one-liner]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=129</guid>
		<description><![CDATA[A simple one-liner and ffmpeg, basename, and cut gets this done. 1for i in *.f4v; do ffmpeg -i `basename $i` -s 320x240 `basename $i &#124; cut -d'.' -f1`.jpg; done Thumbnail output size is configurable with the -s switch.]]></description>
			<content:encoded><![CDATA[<p>A simple one-liner and ffmpeg, basename, and cut gets this done.</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">for i in *.f4v; do ffmpeg -i `basename $i` -s 320x240 `basename $i | cut -d'.' -f1`.jpg; done</div></td></tr></tbody></table></div>
<p>Thumbnail output size is configurable with the -s switch.</p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/07/08/create-thumbnails-en-masse-from-a-bash-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
