<?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>SUSE &#38; openSUSE &#187; Hardware</title>
	<atom:link href="http://www.susegeek.com/category/hardware/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.susegeek.com</link>
	<description>Tips,Tricks, Tutorials,How Tos and Troubleshooting suse linux</description>
	<lastBuildDate>Tue, 16 Nov 2010 21:50:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<image>
<link>http://www.susegeek.com</link>
<url>http://www.susegeek.com/wp-content/mbp-favicon/favicon.ico</url>
<title>SUSE &amp; openSUSE</title>
</image>
		<item>
		<title>Spindown &#8211; Utility to spindown your Disk when not in use in openSUSE</title>
		<link>http://www.susegeek.com/utility/spindown-utility-to-spindown-your-disk-when-not-in-use-in-opensuse/</link>
		<comments>http://www.susegeek.com/utility/spindown-utility-to-spindown-your-disk-when-not-in-use-in-opensuse/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 21:47:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Utility]]></category>
		<category><![CDATA[Disk]]></category>
		<category><![CDATA[eneergy]]></category>
		<category><![CDATA[hda]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[scsi]]></category>
		<category><![CDATA[sda]]></category>
		<category><![CDATA[sdb]]></category>
		<category><![CDATA[sg_start]]></category>
		<category><![CDATA[spindown]]></category>

		<guid isPermaLink="false">http://www.susegeek.com/?p=1501</guid>
		<description><![CDATA[Spindown, as the name suggests is a free opensource command line utility to spin down your disks when no data is read or written of it. This should help save the precious energy and give the disks a longer life. It works by checking the number of blocks read from and written to the disks. [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><strong>Spindown</strong>, as the name suggests is a free opensource command line utility to spin down your disks when no data is read or written of it. This should help save the precious energy and give the disks a longer life. It works by checking the number of blocks read from and written to the disks. When no blocks are read or written to the disk then it is considered idle. When a disk stays idle long enough spindown uses sg_start SCSI scripts to spin the disk down. It also works with usb disks and hotswappable disks because it doesn&#8217;t watch the device name (hda, sdb, &#8230;), but uses device id.</p>
<p><span id="more-1501"></span></p>
<p><span style="text-decoration: underline;"><strong>Install Spindown in openSUSE</strong></span></p>
<p>To install Spindown, click this 1-click installer from Packman supported on openSUSE 11.1/11.0/10.3<br />
<a title="Spindown 1-click install in openSUSE" href="http://packman.links2linux.org/install/spindown" target="_blank"><img class="alignnone size-full wp-image-1290" title="oneclick1" src="http://www.susegeek.com/wp-content/uploads/2009/01/oneclick1.png" alt="oneclick1" width="162" height="46" /></a></p>
<p>This should download the YMP file and automatically launch the YaST package manager to add the required Repositories and download and install Spindown and the dependencies. Click next on the Spindown installation screen and Next again on the installation proposal window. This should start adding the required repositories, download and install Spindown and its required dependencies. Click Finish when the installation completes successfully.<br />
<a href="http://www.susegeek.com/wp-content/uploads/2009/02/spindown1.png"><img class="alignnone size-medium wp-image-1502" title="spindown1" src="http://www.susegeek.com/wp-content/uploads/2009/02/spindown1-300x208.png" alt="spindown1" width="300" height="208" /></a> <a href="http://www.susegeek.com/wp-content/uploads/2009/02/spindown2.png"><img class="alignnone size-medium wp-image-1503" title="spindown2" src="http://www.susegeek.com/wp-content/uploads/2009/02/spindown2-300x208.png" alt="spindown2" width="300" height="208" /></a></p>
<p><a href="http://www.susegeek.com/wp-content/uploads/2009/02/spindown3.png"><img class="alignnone size-medium wp-image-1504" title="spindown3" src="http://www.susegeek.com/wp-content/uploads/2009/02/spindown3-300x208.png" alt="spindown3" width="300" height="208" /></a><br />
This should install the Spindown daemon under <strong>/etc/init.d/</strong></p>
<p>Before we can start using Spindown utility, we need to quickly setup the config file <strong>/etc/spindown.conf</strong></p>
<p>There are two sections where the paramters can be defined. One is <strong>[General]</strong> which holds the global configurations and the other <strong>[Disk]</strong>. The [Disk] section can be for as many choosen disk from the ones installed on your system like [disk 0] [disk 1]. Anything defined under disks overide the global configurations under General. The config file is commented very well to guide you through and the default configs under [General] are good enough. In a simple configuration on my PC, I add my only disk to the config.</p>
<p>To find the device ID,</p>
<p><strong></strong></p>
<blockquote><p><strong>linux-pa5r:/etc # ls -l /dev/disk/by-id/</strong><br />
total 0<br />
lrwxrwxrwx 1 root root  9 Feb 14 20:03 <span style="color: #008000;">ata-WDC_WD2500BEVS-75UST0_WD-WXE608PV7921</span> -&gt; ../../sda<br />
lrwxrwxrwx 1 root root 10 Feb 14 20:03 ata-WDC_WD2500BEVS-75UST0_WD-WXE608PV7921-part1 -&gt; ../../sda1<br />
lrwxrwxrwx 1 root root 10 Feb 14 20:03 ata-WDC_WD2500BEVS-75UST0_WD-WXE608PV7921-part2 -&gt; ../../sda2<br />
lrwxrwxrwx 1 root root 10 Feb 14 20:03 ata-WDC_WD2500BEVS-75UST0_WD-WXE608PV7921-part3 -&gt; ../../sda3<br />
lrwxrwxrwx 1 root root 10 Feb 14 20:03 ata-WDC_WD2500BEVS-75UST0_WD-WXE608PV7921-part5 -&gt; ../../sda5<br />
lrwxrwxrwx 1 root root 10 Feb 14 20:03 ata-WDC_WD2500BEVS-75UST0_WD-WXE608PV7921-part6 -&gt; ../../sda6<br />
lrwxrwxrwx 1 root root 10 Feb 14 20:03 ata-WDC_WD2500BEVS-75UST0_WD-WXE608PV7921-part7 -&gt; ../../sda7<br />
lrwxrwxrwx 1 root root  9 Feb 14 20:03 edd-int13_dev80 -&gt; ../../sda<br />
lrwxrwxrwx 1 root root 10 Feb 14 20:03 edd-int13_dev80-part1 -&gt; ../../sda1<br />
lrwxrwxrwx 1 root root 10 Feb 14 20:03 edd-int13_dev80-part2 -&gt; ../../sda2<br />
lrwxrwxrwx 1 root root 10 Feb 14 20:03 edd-int13_dev80-part3 -&gt; ../../sda3<br />
lrwxrwxrwx 1 root root 10 Feb 14 20:03 edd-int13_dev80-part5 -&gt; ../../sda5<br />
lrwxrwxrwx 1 root root 10 Feb 14 20:03 edd-int13_dev80-part6 -&gt; ../../sda6<br />
lrwxrwxrwx 1 root root 10 Feb 14 20:03 edd-int13_dev80-part7 -&gt; ../../sda7<br />
lrwxrwxrwx 1 root root  9 Feb 14 20:03 scsi-SATA_WDC_WD2500BEVS-_WD-WXE608PV7921 -&gt; ../../sda<br />
lrwxrwxrwx 1 root root 10 Feb 14 20:03 scsi-SATA_WDC_WD2500BEVS-_WD-WXE608PV7921-part1 -&gt; ../../sda1<br />
lrwxrwxrwx 1 root root 10 Feb 14 20:03 scsi-SATA_WDC_WD2500BEVS-_WD-WXE608PV7921-part2 -&gt; ../../sda2<br />
lrwxrwxrwx 1 root root 10 Feb 14 20:03 scsi-SATA_WDC_WD2500BEVS-_WD-WXE608PV7921-part3 -&gt; ../../sda3<br />
lrwxrwxrwx 1 root root 10 Feb 14 20:03 scsi-SATA_WDC_WD2500BEVS-_WD-WXE608PV7921-part5 -&gt; ../../sda5<br />
lrwxrwxrwx 1 root root 10 Feb 14 20:03 scsi-SATA_WDC_WD2500BEVS-_WD-WXE608PV7921-part6 -&gt; ../../sda6<br />
lrwxrwxrwx 1 root root 10 Feb 14 20:03 scsi-SATA_WDC_WD2500BEVS-_WD-WXE608PV7921-part7 -&gt; ../../sda7</p></blockquote>
<p>Here my disk is &#8220;<strong>ata-WDC_WD2500BEVS-75UST0_WD-WXE608PV7921</strong>&#8220;. I enter the Disk config in the <em><strong>/etc/spindown.conf</strong></em> as follows accepting the default global config under [General]:</p>
<blockquote><p><em>[Disk 0]<br />
id =ata-WDC_WD2500BEVS-75UST0_WD-WXE608PV7921<br />
spindown = 1</em></p></blockquote>
<p>Here, I define the Disk ID and set <em><strong>Spindown = 1</strong></em> to enable the spinning down of the disk when idle. That completes the config.</p>
<p>Start the Spindown daemon as follows:</p>
<blockquote><p><strong>linux-pa5r:/etc # /etc/init.d/spindown start<br />
</strong>Starting spindownd daemon&#8230;  spindownddone.</p></blockquote>
<p>To check the status, use the command with &#8220;status&#8221; arguement.</p>
<blockquote><p><strong>linux-pa5r:/etc # /etc/init.d/spindown status</strong><br />
name           watched        active         idle-time      spindown-time<br />
sda            1              1              0              3600</p></blockquote>
<p>This to me is a simple and elegant tool which serves the useful purpose of saving some energy and extending the disk life. <a title="Spindown project Homepage" href="http://code.google.com/p/spindown/" target="_blank">Click here</a> to visit the project homepage hosted at Google Code for more information and more advanced documentation.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.susegeek.com/utility/spindown-utility-to-spindown-your-disk-when-not-in-use-in-opensuse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

