<?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/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>Isotropic &#187; linux</title>
	<atom:link href="http://www.hornlo.org/isotropic/tags/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hornlo.org/isotropic</link>
	<description>Where ever you go, there you are.</description>
	<lastBuildDate>Wed, 25 Jan 2012 21:14:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Installing Fedora 10 on SCSI/RAID</title>
		<link>http://www.hornlo.org/isotropic/2009/10/12/installing-fedora-10-on-scsiraid/</link>
		<comments>http://www.hornlo.org/isotropic/2009/10/12/installing-fedora-10-on-scsiraid/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 21:35:42 +0000</pubDate>
		<dc:creator>hornlo</dc:creator>
				<category><![CDATA[Sci-Tech]]></category>
		<category><![CDATA[Dell]]></category>
		<category><![CDATA[F10]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Fedora 10]]></category>
		<category><![CDATA[initrd]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[PERC]]></category>
		<category><![CDATA[PERC 4/SE]]></category>
		<category><![CDATA[RAID]]></category>
		<category><![CDATA[SCSI]]></category>

		<guid isPermaLink="false">http://www.hornlo.org/isotropic/?p=755</guid>
		<description><![CDATA[I&#8217;ve recently installed Fedora 10 on a few desktop systems without any problems. However, I did run into an issue on a Dell Power Edge 850 with a PERC 4/SE RAID controller. Note: this problem occurs on other SCSI systems as well. The installation runs to completion without any errors, but, when the system reboots, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently installed Fedora 10 on a few desktop systems without any problems.  However, I did run into an issue on a Dell Power Edge 850 with a PERC 4/SE RAID controller.  Note: this problem occurs on other SCSI systems as well.</p>
<p>The installation runs to completion without any errors, but, when the system reboots, you see:</p>
<div class="geshi no text">
<ol>
<li class="li1">
<div class="de1">unable to access resume device UUID &#8230;.</div>
</li>
<li class="li1">
<div class="de1">mount: error mounting /dev/root on /sysroot on ext3: no such file or directory</div>
</li>
</ol>
</div>
<p>Fortunately, the fix is very simple.  Just before rebooting, chroot to the new installation (if not already there) and enter:</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">mkinitrd &#8211;<span class="re2">with=</span>scsi_scan_wait <span class="sy0">/</span>boot<span class="sy0">/</span>initrd-VER&#8230; VER&#8230;</div>
</li>
</ol>
</div>
<p>If you forget to do this before rebooting, just boot any Linux rescue/installation kit, chroot to the installed system, and execute the above <tt>mkinitrd</tt> command.</p>
<p><small><strong>Update 2010-03-05:</strong> fixed typos (&#8220;mkinitd&#8221; -> &#8220;mkinitrd&#8221;)</small></p>
<div id="crp_related"><h3> Related Posts (in theory, but probably not):</h3><ul><li><a href="http://www.hornlo.org/isotropic/2008/10/27/installing-fedora-9/" rel="bookmark" class="crp_title">Installing Fedora 9</a></li><li><a href="http://www.hornlo.org/isotropic/2009/03/04/upgrade-to-wordpress-271/" rel="bookmark" class="crp_title">Upgrade to WordPress 2.7.1</a></li><li><a href="http://www.hornlo.org/isotropic/2009/03/08/how-to-list-comment-spam-ip-addresses/" rel="bookmark" class="crp_title">How to list comment spam IP addresses</a></li><li><a href="http://www.hornlo.org/isotropic/2008/09/07/research-desktop-workspace/" rel="bookmark" class="crp_title">Research Desktop Workspace</a></li><li><a href="http://www.hornlo.org/isotropic/2009/12/10/learning-japanese-computer-input/" rel="bookmark" class="crp_title">Learning Japanese: Computer Input</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.hornlo.org/isotropic/2008/10/27/installing-fedora-9/" rel="bookmark" class="wherego_title">Installing Fedora 9</a></li><li><a href="http://www.hornlo.org/isotropic/2009/10/15/dogfooding-sabotage-or-just-system-failure/" rel="bookmark" class="wherego_title">Dogfooding, sabotage, or just system failure?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.hornlo.org/isotropic/2009/10/12/installing-fedora-10-on-scsiraid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux in Exile</title>
		<link>http://www.hornlo.org/isotropic/2009/02/18/linux-in-exile/</link>
		<comments>http://www.hornlo.org/isotropic/2009/02/18/linux-in-exile/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 13:23:04 +0000</pubDate>
		<dc:creator>hornlo</dc:creator>
				<category><![CDATA[Daily-Grind]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.hornlo.org/isotropic/?p=363</guid>
		<description><![CDATA[I prefer Linux over Windows. If I have problems with Linux, over 95% of the time I can assume that it&#8217;s my error. If there is a real problem, it tends to be definite, reproducible, and will usually be fixed by someone in a relatively short time. On the other hand, whenever I have Windows [...]]]></description>
			<content:encoded><![CDATA[<p>I prefer Linux over Windows.  If I have problems with Linux, over 95% of the time I can assume that it&#8217;s my error.  If there <em>is</em> a real problem, it tends to be definite, reproducible, and will usually be fixed by someone in a relatively short time.</p>
<p>On the other hand, whenever I have Windows problems, I immediately suspect Windows or the application itself.  And most of the time I&#8217;m right about that.  Unfortunately, Windows errors (or at least the ones I have), tend to be random, untraceable, and never seem to get fixed &#8212; they just randomly come and go depending on the phase of the moon, vacuum fluctuations, or some cryptographically hidden random error generators in Windows itself.  Known errors tend to linger forever, and the fix is generally &#8220;Well, don&#8217;t do that!  Here&#8217;s a complicated workaround.&#8221;</p>
<p>The other day I ran across JH&#8217;s low-volume blog, <a href="http://linuxinexile.blogspot.com/">Linux in Exile</a> which you may find interesting:<br />
<blockquote>For reasons I won&#8217;t go into, I&#8217;ve been asked to move back to Windows, at least for work. The difference between Windows and Linux has been shocking, to say the least. Since I find it interesting when long-time Windows users experiment with Linux for the first time, I thought it might be equally interesting for this long-time Linux user to blog about my first experience running Windows in over 6 or 7 years.</p></blockquote>
<p>If you want to start at the beginning, see <a href="http://linuxinexile.blogspot.com/2009/01/day-1.html">Day 1</a>.</p>
<div id="crp_related"><h3> Related Posts (in theory, but probably not):</h3><ul><li><a href="http://www.hornlo.org/isotropic/2010/02/06/im-a-pc-and-ruining-your-battery-was-my-idea/" rel="bookmark" class="crp_title">I&#8217;m a PC, and ruining your battery was my idea.</a></li><li><a href="http://www.hornlo.org/isotropic/2009/12/10/learning-japanese-computer-fonts/" rel="bookmark" class="crp_title">Learning Japanese: Computer Fonts</a></li><li><a href="http://www.hornlo.org/isotropic/2008/04/26/windows-xp-downgrade/" rel="bookmark" class="crp_title">Windows XP downgrade</a></li><li><a href="http://www.hornlo.org/isotropic/2001/02/16/outrageous-spin/" rel="bookmark" class="crp_title">outrageous spin</a></li><li><a href="http://www.hornlo.org/isotropic/2009/12/10/learning-japanese-computer-input/" rel="bookmark" class="crp_title">Learning Japanese: Computer Input</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.hornlo.org/isotropic/2009/12/10/learning-japanese-computer-input/" rel="bookmark" class="wherego_title">Learning Japanese: Computer Input</a></li><li><a href="http://www.hornlo.org/isotropic/2001/02/16/outrageous-spin/" rel="bookmark" class="wherego_title">outrageous spin</a></li><li><a href="http://www.hornlo.org/isotropic/2008/04/26/windows-xp-downgrade/" rel="bookmark" class="wherego_title">Windows XP downgrade</a></li><li><a href="http://www.hornlo.org/isotropic/2009/12/10/learning-japanese-computer-fonts/" rel="bookmark" class="wherego_title">Learning Japanese: Computer Fonts</a></li><li><a href="http://www.hornlo.org/isotropic/2010/02/06/im-a-pc-and-ruining-your-battery-was-my-idea/" rel="bookmark" class="wherego_title">I&#8217;m a PC, and ruining your battery was my idea.</a></li><li><a href="http://www.hornlo.org/isotropic/2009/02/20/broken-windows/" rel="bookmark" class="wherego_title">Broken Windows</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.hornlo.org/isotropic/2009/02/18/linux-in-exile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMware Server 1.08 on Fedora 9</title>
		<link>http://www.hornlo.org/isotropic/2008/11/24/vmware-server-108-on-fedora-9/</link>
		<comments>http://www.hornlo.org/isotropic/2008/11/24/vmware-server-108-on-fedora-9/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 20:52:26 +0000</pubDate>
		<dc:creator>hornlo</dc:creator>
				<category><![CDATA[Sci-Tech]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.hornlo.org/isotropic/?p=183</guid>
		<description><![CDATA[VMware Server is great for keeping a copy of Windows handy on my Fedora Linux-based laptop. The only annoyance is that every time the kernel updates, VMware has to be rebuilt &#8212; although that&#8217;s just a simple command ($ vmware-config.pl). However, about a week ago I updated the kernel to version 2.6.27, after which VMware [...]]]></description>
			<content:encoded><![CDATA[<p><img src="/media/vmware.gif" width="86" height="23" align="left" alt="" title="" style="padding-right: 1em; padding-bottom: 1em;" /> VMware Server is great for keeping a copy of Windows handy on my Fedora Linux-based <a href="/isotropic/2008/07/06/dell-latitude-d820-laptop/">laptop</a>.  The only annoyance is that every time the kernel updates, VMware has to be rebuilt &#8212; although that&#8217;s just a simple command (<tt>$ vmware-config.pl</tt>).  However, about a week ago I updated the kernel to version 2.6.27, after which VMware failed to rebuild successfully, giving the following errors:</p>
<ul>
<li>missing asm/semaphore.h</li>
<li>too many arguments to function &#8216;smp_call_function&#8217;</li>
</ul>
<p>The semaphore.h I could have fixed with a softlink, but the other not so easily.</p>
<p>I took the opportunity to upgrade VMware Server from version 1.07 to <a href="http://www.vmware.com/support/server/doc/releasenotes_server.html" title="VMware Server 1.08, 11/06/08, Build 126538">1.08</a>.  I then tried applying the latest <tt>vmware-any-any</tt> patch, but that didn&#8217;t help.  After some Googling around, I finally found <a href="http://www.insecure.ws/2008/10/20/vmware-specific-specific-55x-and-kernel-2627" title="vmware-specific-specific 5.5.x and kernel 2.6.27">this patch</a> that took care of the problems.</p>
<p>It&#8217;s unfortunate that VMware doesn&#8217;t itself provide timely updates to Server, but I&#8217;m not going to complain further, given that it&#8217;s free.  So far, it&#8217;s been relatively easy to locate user-created updates.  By the way, VMware does host user forums at <a href="http://communities.vmware.com/index.jspa">VMware Communities</a>.</p>
<p>I did briefly toss <a href="http://www.vmware.com/support/server2/doc/releasenotes_vmserver2.html" title="VMware Server 2.0, 10/29/08, Build 122956">version 2</a> onto my laptop, but decided I&#8217;d rather locate a fix for 1.xx and go through the learning curve for 2.xx later.  If you&#8217;re ready to go to V2, there is a how-to at <a href="http://www.howtoforge.com/how-to-install-vmware-server-2-on-a-fedora-9-desktop">How To Install VMware Server 2 On A Fedora 9 Desktop</a>.</p>
<div id="crp_related"><h3> Related Posts (in theory, but probably not):</h3><ul><li><a href="http://www.hornlo.org/isotropic/2009/01/27/popular-posts/" rel="bookmark" class="crp_title">Popular Posts</a></li><li><a href="http://www.hornlo.org/isotropic/2008/12/07/meme-first-sentence-of-first-post-of-each-month-of-2008/" rel="bookmark" class="crp_title">Meme: First sentence of first post of each month of 2008</a></li><li><a href="http://www.hornlo.org/isotropic/2008/04/26/windows-xp-downgrade/" rel="bookmark" class="crp_title">Windows XP downgrade</a></li><li><a href="http://www.hornlo.org/isotropic/2008/10/27/installing-fedora-9/" rel="bookmark" class="crp_title">Installing Fedora 9</a></li><li><a href="http://www.hornlo.org/isotropic/2008/04/25/fedora-8/" rel="bookmark" class="crp_title">Fedora 8</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.hornlo.org/isotropic/2009/01/27/popular-posts/" rel="bookmark" class="wherego_title">Popular Posts</a></li><li><a href="http://www.hornlo.org/isotropic/2008/04/25/fedora-8/" rel="bookmark" class="wherego_title">Fedora 8</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.hornlo.org/isotropic/2008/11/24/vmware-server-108-on-fedora-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Fedora 9</title>
		<link>http://www.hornlo.org/isotropic/2008/10/27/installing-fedora-9/</link>
		<comments>http://www.hornlo.org/isotropic/2008/10/27/installing-fedora-9/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 08:24:40 +0000</pubDate>
		<dc:creator>hornlo</dc:creator>
				<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[Sci-Tech]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[livna]]></category>
		<category><![CDATA[nvidia]]></category>
		<category><![CDATA[vlc]]></category>

		<guid isPermaLink="false">http://www.hornlo.org/isotropic/?p=170</guid>
		<description><![CDATA[This weekend I installed Fedora 9 on my laptop. First, I bought a 320 GB disk and a Rosewill enclosure for the old drive &#8212; I prefer to do fresh installs rather than in-place upgrades. It&#8217;s interesting to note that as I&#8217;ve increased the capacity (100 -> 200 -> 320 GB), the power requirements have [...]]]></description>
			<content:encoded><![CDATA[<p><img src="/media/f9release.png" width="100" height="50" align="left" alt="" title="" style="padding-right: 1em; padding-bottom: 1em;" /> This weekend I installed <a href="http://fedoraproject.org/">Fedora 9</a> on my <a href="/isotropic/2008/07/06/dell-latitude-d820-laptop/" title="Dell Latitude D820 laptop">laptop</a>.</p>
<p>First, I bought a <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16822136280" title="Western Digital Scorpio Black WD3200BEKT 320GB 7200 RPM 16MB Cache SATA 3.0Gb/s Notebook Hard Drive">320 GB disk</a> and a <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16817182140" title="Rosewill RX81U-ES-25A 2.5 SATA to USB 2.0 External Enclosure">Rosewill enclosure</a> for the old drive &#8212; I prefer to do fresh installs rather than in-place upgrades.  It&#8217;s interesting to note that as I&#8217;ve increased the capacity (100 -> 200 -> 320 GB), the power requirements have gone down: 1100 mA -> 800 mA -> 550 mA.  These are all 7200 RPM SATA drives, by the way.</p>
<p>Next I tried installing from a Fedora DVD I&#8217;d burned, but it kept failing randomly early on in the process, even though it passed the initial media check.  Fortunately I also had the 6-CD install media I&#8217;d burned for some older boxes, and they worked fine.  Because I love the punishment, I did a kitchen-sink (everything) installation.</p>
<p>Then it was time to install updates.  Because so many packages had been re-signed (<a href="https://www.redhat.com/archives/fedora-announce-list/2008-August/msg00012.html" title="Infrastructure report, 2008-08-22 UTC 1200">why</a>, <a href="https://fedoraproject.org/wiki/Enabling_new_signing_key" title="Enabling new signing key">how</a>) in addition to the typical package updates and the additional packages I wanted, this took quite a while &#8212; well over a gigabyte of packages.</p>
<p>The only issue I encountered was <tt>ldconfig</tt> complaining about <tt>libmodbc.so</tt> not being a softlink &#8212; rather than the usual softlinks from short names to the base library, all three were individual files.  That was easy to fix:<br />
<code lang="bash"><br />
# cd /usr/lib<br />
# ln -fs libmodbc.so.0.0.0 libmodbc.so.0<br />
# ln -fs libmodbc.so.0.0.0 libmodbc.so<br />
# ls -l libmodbc*<br />
lrwxrwxrwx 1 root root     17 2008-10-25 21:16 libmodbc.so -> libmodbc.so.0.0.0<br />
lrwxrwxrwx 1 root root     17 2008-10-25 21:16 libmodbc.so.0 -> libmodbc.so.0.0.0<br />
-rwxr-xr-x 1 root root 170916 2008-05-21 14:09 libmodbc.so.0.0.0<br />
</code></p>
<p>After the installation and massive Fedora repository updates, I installed the <a href="http://rpm.livna.org/rlowiki/">livna</a> Fedora 9 repository RPM so I could get the <a href="http://www.nvidia.com/">nvidia</a> drivers, the <a href="http://www.videolan.org/">VideoLAN VLC media player</a>, and the libdvdcss library.  I also installed the <a href="http://www.adobe.com/go/getflashplayer">Adobe repository definition</a> (select &#8220;YUM for Linux&#8221; from the pulldown) to get the flash plugin (you can also get AdobeReader via the repository).</p>
<p>Finally I rebuilt VMware server for the new kernel.</p>
<p>Unlike <a href="/isotropic/2008/04/25/fedora-8/">my Fedora 8 installation</a>, everything seems to be working smoothly with no performance issues.  Later today, once I&#8217;m in the office, I&#8217;ll see about configuring dual monitors and setting up wireless.</p>
<div id="crp_related"><h3> Related Posts (in theory, but probably not):</h3><ul><li><a href="http://www.hornlo.org/isotropic/2008/04/25/fedora-8/" rel="bookmark" class="crp_title">Fedora 8</a></li><li><a href="http://www.hornlo.org/isotropic/2008/07/06/dell-latitude-d820-laptop/" rel="bookmark" class="crp_title">Dell Latitude D820 Laptop</a></li><li><a href="http://www.hornlo.org/isotropic/2008/11/24/vmware-server-108-on-fedora-9/" rel="bookmark" class="crp_title">VMware Server 1.08 on Fedora 9</a></li><li><a href="http://www.hornlo.org/isotropic/2009/10/12/installing-fedora-10-on-scsiraid/" rel="bookmark" class="crp_title">Installing Fedora 10 on SCSI/RAID</a></li><li><a href="http://www.hornlo.org/isotropic/2009/01/27/popular-posts/" rel="bookmark" class="crp_title">Popular Posts</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div><div id="wherego_related"> </div>]]></content:encoded>
			<wfw:commentRss>http://www.hornlo.org/isotropic/2008/10/27/installing-fedora-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Research Desktop Workspace</title>
		<link>http://www.hornlo.org/isotropic/2008/09/07/research-desktop-workspace/</link>
		<comments>http://www.hornlo.org/isotropic/2008/09/07/research-desktop-workspace/#comments</comments>
		<pubDate>Sun, 07 Sep 2008 10:10:23 +0000</pubDate>
		<dc:creator>hornlo</dc:creator>
				<category><![CDATA[Daily-Grind]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nautilus]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.hornlo.org/isotropic/?p=140</guid>
		<description><![CDATA[This is the &#8220;research&#8221;[*] desktop workspace I&#8217;ve settled on after trying several configurations and procedures for organizing things. Firefox takes up the majority of the workspace, with two Nautilus windows to the side, one for today&#8217;s folder and one for my notes folder. You&#8217;ll notice that the icons in the Nautilus windows are different sizes; [...]]]></description>
			<content:encoded><![CDATA[<p><img src="/media/res-ws-shot-sml.jpg" width="120" height="75" align="left"> This is the &#8220;research&#8221;[*] desktop workspace I&#8217;ve settled on after trying several configurations and procedures for organizing things.  Firefox takes up the majority of the workspace, with two Nautilus windows to the side, one for today&#8217;s folder and one for my notes folder.  You&#8217;ll notice that the icons in the Nautilus windows are different sizes; I use <tt>ctrl/+</tt> and <tt>ctrl/-</tt> as needed to scale them to fit the content.  I&#8217;ve used xclock windows to obscure a couple areas &#8212; I&#8217;m not really that obsessive about watching the clock.  Below the screenshot I describe how I use it and the scripts that set it up.</p>
<p align="center"><img src="/media/res-ws-shot-med.jpg" width="500" height="313" align="center"><br />&nbsp;<br /><a href="http://www.flickr.com/photos/hornlo/2835563826/">full-size image</a> (1920&#215;1200, 360KB) on Flickr</p>
<p>The <tt>Today</tt> folder is my working folder.  It always has softlinks to <tt>Notes</tt>, <tt>Yesterday</tt>, and <tt>Tomorrow</tt>; these change dynamically, automated by a script described later.  Whenever I run across interesting web pages I want to review or refer to later, I drag a link into the <tt>Today</tt> folder; I&#8217;ve found that this is much more convenient that using bookmarks.  <tt>Today</tt> is also my default download location.  I&#8217;ll usually clean it out by the end of the day by dragging any left-over items into the <tt>Tomorrow</tt> folder (which becomes the next day&#8217;s <tt>Today</tt>), but I&#8217;ll sometimes leave items there for later retrieval or historical context.</p>
<p>The <tt>Notes</tt> folder contains some of my long-term projects and reference material.  I&#8217;ll also drag items from <tt>Today</tt> into <tt>Notes</tt> if I won&#8217;t be using them for several days, although I usually just drag them into <tt>Tomorrow</tt>.</p>
<p>So that they&#8217;ll be conveniently at hand from other workspaces, my Desktop folder also has softlinks to <tt>Notes</tt>, <tt>Yesterday</tt>, <tt>Today</tt>, and <tt>Tomorrow</tt>, automated by the same script to keep them relative to the current calendar date.</p>
<p>All these softlinks point into a permanent &#8220;diary&#8221; tree: <tt>$HOME/diary/YYYY/MM/DD</tt>; <tt>Notes</tt> is in <tt>$HOME/diary/Notes</tt>.  I&#8217;ve played with both Google Desktop and Beagle to index content, but the performance overhead far outweighed their utility to me.  I&#8217;ll sometimes use recursive grep to scan the diary tree for content, but most often I can find what I want with the locate command or a quick Nautilus perusal.  As with bookmarking, I&#8217;ve found this structure to be the most convenient for me, moreso than trying to create some meta-structure and keep things arranged there.  I do have a separate reference tree where I&#8217;ve organized some long term information, but it doesn&#8217;t play much in day to day work like the diary tree does.</p>
<p>If you have suggestions for improvements, or would like to mention alternatives, feel free to do so in a comment.  However, if you include too many links your comment may automatically be held for approval.  I&#8217;ll try to catch those as soon as I can.</p>
<p><small>[*] &#8220;Research&#8221; in the sense that this is the workspace where I do 99% of my web browsing and I couldn&#8217;t come up with another concise term for it.  I mentioned it back in April 2008 while describing some problems I was having after replacing Fedora Core 6 with Fedora 8.  If you&#8217;re curious, <a href="/isotropic/2008/04/25/fedora-8/" title="Fedora 8">that post</a> has links to the Nautilus bug reports I made.  I&#8217;ll see if they go away when I install Fedora 9, Real Soon Now.</small></p>
<p><b>The Scripts</b></p>
<p>If you want to copy the code, use the &#8220;text&#8221; links rather than cut/paste in case the formatting plugin trashed the scripts.  <em>Update:</em> I just noticed that the plugin adds line numbers to the scripts in the RSS feed; sorry about that.</p>
<p><b>bx</b> (<a href="/misc/res-ws/bx.txt">text</a>) is run from the Command Line applet (visible in the top center of the screenshot) to open the workspace windows; it could be run from a desktop link or a shell window if you prefer.  I named it &#8220;bx&#8221; because the 2nd (&#8220;B&#8221;) workspace is the one I use for this; in the lower right of the screenshot you can see I have 5 workspaces, which I call &#8220;A&#8221; through &#8220;E&#8221;.  The <tt>--geometry</tt> options were added to overcome a problem I had with Nautilus after moving from Fedora Core 6 to Fedora 8.</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="co0">#!/bin/bash</span></div>
</li>
<li class="li1">
<div class="de1">nautilus &#8211;geometry 376&#215;650<span class="nu0">+1</span><span class="nu0">+28</span> <span class="re1">$HOME</span><span class="sy0">/</span>Desktop<span class="sy0">/</span>Today <span class="sy0">&amp;</span></div>
</li>
<li class="li1">
<div class="de1">nautilus &#8211;geometry 376&#215;442<span class="nu0">+1</span><span class="nu0">-28</span> <span class="re1">$HOME</span><span class="sy0">/</span>Desktop<span class="sy0">/</span>Today<span class="sy0">/</span>Notes <span class="sy0">&amp;</span></div>
</li>
<li class="li1">
<div class="de1">firefox &nbsp;&#8211;geometry 1531&#215;1120<span class="nu0">-0</span><span class="nu0">+28</span> <span class="sy0">&amp;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># end</span></div>
</li>
</ol>
</div>
<p><b>diary/cleanup</b> (<a href="/misc/res-ws/cleanup.txt">text</a>) is run ad hoc.  It goes through the diary tree to remove any empty directories, then calls diary-setup to make sure today&#8217;s relevant directories and softlinks are set up.  Note the -depth option to find, so that subdirectories are deleted first, potentially leaving parent directories empty and deletable.</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="co0">#!/bin/bash</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">cd</span> ~<span class="sy0">/</span>diary <span class="sy0">&amp;&amp;</span> <span class="kw2">find</span> .<span class="sy0">/</span> -depth -<span class="kw3">type</span> d -<span class="kw3">exec</span> <span class="kw2">rmdir</span> &#8211;ignore-fail-on-non-empty <span class="br0">&#123;</span><span class="br0">&#125;</span> \;</div>
</li>
<li class="li1">
<div class="de1">diary-setup.<span class="kw2">sh</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># end</span></div>
</li>
</ol>
</div>
<p><b>diary-setup</b> (<a href="/misc/res-ws/diary-setup.txt">text</a>) is run at 00:01 each morning by cron.  I also run it from <tt>$HOME/.bash_profile</tt> for those rare occasions when my laptop may have been down when the cron job would have run.  It creates the directories in the diary tree for the relevant dates, removes the old softlinks from the day before yesterday, and sets up the new softlinks.  As a sanity check, it aborts unless the Desktop and diary folders already exist.</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="co0">#!/bin/bash</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># c o n f i g u r a t i o n</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">DIARY=</span><span class="re1">$HOME</span><span class="sy0">/</span>diary</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">NOTES=</span><span class="re1">$DIARY</span><span class="sy0">/</span>Notes</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">DESKTOP=</span><span class="re1">$HOME</span><span class="sy0">/</span>Desktop</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># s e t u p</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">ABS_OLD_YESTERDAY=</span><span class="re1">$DIARY</span><span class="sy0">/</span>`<span class="kw2">date</span> +<span class="sy0">%</span>Y<span class="sy0">/%</span>m<span class="sy0">/%</span>d -d <span class="st0">&#39;2 days ago&#39;</span>`</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">ABS_YESTERDAY=</span><span class="re1">$DIARY</span><span class="sy0">/</span>`<span class="kw2">date</span> +<span class="sy0">%</span>Y<span class="sy0">/%</span>m<span class="sy0">/%</span>d -d <span class="st0">&#39;yesterday&#39;</span>`</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">ABS_TODAY=</span><span class="re1">$DIARY</span><span class="sy0">/</span>`<span class="kw2">date</span> +<span class="sy0">%</span>Y<span class="sy0">/%</span>m<span class="sy0">/%</span>d -d <span class="st0">&#39;today&#39;</span>`</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">ABS_TOMORROW=</span><span class="re1">$DIARY</span><span class="sy0">/</span>`<span class="kw2">date</span> +<span class="sy0">%</span>Y<span class="sy0">/%</span>m<span class="sy0">/%</span>d -d <span class="st0">&#39;tomorrow&#39;</span>`</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">if</span> <span class="br0">&#91;</span> <span class="sy0">!</span> -d <span class="re1">$DIARY</span> <span class="br0">&#93;</span>; <span class="kw1">then</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">echo</span> <span class="st0">&quot;? Diary root directory does not exist&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">exit</span> <span class="nu0">1</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">fi</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">if</span> <span class="br0">&#91;</span> <span class="sy0">!</span> -d <span class="re1">$DESKTOP</span> <span class="br0">&#93;</span>; <span class="kw1">then</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">echo</span> <span class="st0">&quot;? Desktop directory does not exist&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">exit</span> <span class="nu0">2</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">fi</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># m a i n</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">mkdir</span> &#8211;parents &#8211;mode <span class="nu0">0700</span> \</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re1">$NOTES</span> \</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re1">$ABS_YESTERDAY</span> \</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re1">$ABS_TODAY</span> \</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re1">$ABS_TOMORROW</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">for</span> LINK <span class="kw1">in</span> Yesterday Today Tomorrow Notes</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">do</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="re2">FILE=</span><span class="re1">$ABS_OLD_YESTERDAY</span><span class="sy0">/</span><span class="re1">$LINK</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#91;</span> -L <span class="re1">$FILE</span> <span class="br0">&#93;</span>; <span class="kw1">then</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">rm</span> <span class="re1">$FILE</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw1">fi</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">done</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">LN_CMD=</span><span class="st0">&quot;ln &#8211;symbolic &#8211;force &#8211;no-dereference&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$LN_CMD</span> <span class="re1">$NOTES</span> &nbsp; &nbsp; &nbsp; &nbsp; <span class="re1">$ABS_TODAY</span><span class="sy0">/</span>Notes</div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$LN_CMD</span> <span class="re1">$ABS_YESTERDAY</span> <span class="re1">$ABS_TODAY</span><span class="sy0">/</span>Yesterday</div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$LN_CMD</span> <span class="re1">$ABS_TOMORROW</span> &nbsp;<span class="re1">$ABS_TODAY</span><span class="sy0">/</span>Tomorrow</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$LN_CMD</span> <span class="re1">$ABS_YESTERDAY</span> <span class="re1">$DESKTOP</span><span class="sy0">/</span>Yesterday</div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$LN_CMD</span> <span class="re1">$ABS_TODAY</span> &nbsp; &nbsp; <span class="re1">$DESKTOP</span><span class="sy0">/</span>Today</div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$LN_CMD</span> <span class="re1">$ABS_TOMORROW</span> &nbsp;<span class="re1">$DESKTOP</span><span class="sy0">/</span>Tomorrow</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># end</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></div>
</li>
</ol>
</div>
<div id="crp_related"><h3> Related Posts (in theory, but probably not):</h3><ul><li><a href="http://www.hornlo.org/isotropic/2008/04/25/fedora-8/" rel="bookmark" class="crp_title">Fedora 8</a></li><li><a href="http://www.hornlo.org/isotropic/2009/03/04/upgrade-to-wordpress-271/" rel="bookmark" class="crp_title">Upgrade to WordPress 2.7.1</a></li><li><a href="http://www.hornlo.org/isotropic/2008/07/06/mysql-backups/" rel="bookmark" class="crp_title">MySQL Backups</a></li><li><a href="http://www.hornlo.org/isotropic/2009/10/12/installing-fedora-10-on-scsiraid/" rel="bookmark" class="crp_title">Installing Fedora 10 on SCSI/RAID</a></li><li><a href="http://www.hornlo.org/isotropic/2008/07/07/linux-filesystem-backups/" rel="bookmark" class="crp_title">Linux Filesystem Backups</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.hornlo.org/isotropic/2010/03/04/time-flies/" rel="bookmark" class="wherego_title">Time Flies</a></li><li><a href="http://www.hornlo.org/isotropic/2008/04/25/fedora-8/" rel="bookmark" class="wherego_title">Fedora 8</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.hornlo.org/isotropic/2008/09/07/research-desktop-workspace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Filesystem Backups</title>
		<link>http://www.hornlo.org/isotropic/2008/07/07/linux-filesystem-backups/</link>
		<comments>http://www.hornlo.org/isotropic/2008/07/07/linux-filesystem-backups/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 00:36:53 +0000</pubDate>
		<dc:creator>hornlo</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[cpio]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.hornlo.org/isotropic/?p=120</guid>
		<description><![CDATA[Backup is an essential responsibility that comes with owning a computer, but it is more honored in the breech than in practice. Echoing what I said in MySQL Backups, some situations may require more elaborate techniques, but these scripts are &#8220;good enough&#8221; for my needs. I hope you find these scripts useful, and welcome comments, [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.hornlo.org/media/fsback.jpg" width="120" height="90" align="left" alt="" title="" style="padding-right: 1em; padding-bottom: 1em;" /> <a href="http://en.wikipedia.org/wiki/Backup">Backup</a> is an essential responsibility that comes with owning a computer, but it is more honored in the breech than in practice.</p>
<p>Echoing what I said in <a href="/isotropic/2008/07/06/mysql-backups/">MySQL Backups</a>, some situations may require more elaborate techniques, but these scripts are &#8220;good enough&#8221; for my needs.  I hope you find these scripts useful, and welcome comments, critiques, or suggestions for alternative methods.  <em>Note: these are just examples.  If you use them, you do so at your own risk.  You&#8217;ll want to adjust them for your own situation.</em></p>
<p>I run these scripts ad hoc (via the <tt>at</tt> command), rather than via cron, for a couple reasons.  First, these run on my laptop, so it may be down, or the backup media may not be avalable.  Second, my personal schedule is very irregular and I prefer to back up when the system is quiescent.  I&#8217;ve found the most convenient time for incremental backups is while I&#8217;m getting ready for work.  I do full backups some time over the weekend.</p>
<p>My schedule, though not rigidly adhered to, is to run incrementals every morning.  Because the name pattern includes the day of the week, I generally have seven copies available, although not necessarily the most recent seven days.  Currently, they contain any files modified within 30 days.</p>
<p>Full backups use a similar naming scheme, which I should fix at some point.  I pick one of the weekend backups each month to preserve long term, and rename it to indicate the specific date.  I try to keep about a year&#8217;s worth of full backups available.</p>
<p>The first file backed up is <tt>/backid.txt</tt>; it is also included in the emailed logfile.  The <tt>create-backid-file</tt> script (below) dumps several pieces of information useful in recovering a system into it, such as the output of <tt>fdisk -l</tt> and <tt>/etc/fstab</tt>.  Because I use <tt>cpio</tt>, this text can be viewed directly from the archive file with <tt>less</tt>, <tt>head</tt>, or even <tt>cat</tt>.  That could be handy if you have limited resources to work with during a recovery.</p>
<p>After the backup itself completes, a verify-crc pass is made over the archive.  This may not be as assuring as doing an actual file-by-file comparison, but seems a good tradeoff in my situation between reliability and time.  An occasional file restore should be done to confirm that what you think is getting backed up really is.  I&#8217;ve also done bare-metal restores without problems using these archives.</p>
<p>The actual scripts are listed later, but first I&#8217;d like to point out a few things from the log file.</p>
<ul>
<li>the backid.txt file is included</li>
<li>line counts from the backup pass and the verify pass are included; the vast majority of the time, these are the same</li>
<li>the block count from the two passes are included; these should <em>always</em> be the same</li>
<li>the size of the archive is calculated</li>
<li>the logs are kept locally for review as well as being copied to the backup media</li>
<li>timestamps are used at important steps so I can develop a feel for how the scripts perform</li>
</ul>
<p>Here&#8217;s a sample log:</p>
<div class="geshi no text">
<ol>
<li class="li1">
<div class="de1">==============================================================================</div>
</li>
<li class="li1">
<div class="de1">Script: &nbsp; incr-backup</div>
</li>
<li class="li1">
<div class="de1">Started: &nbsp;Wed Jul &nbsp;2 06:57:03 CDT 2008</div>
</li>
<li class="li1">
<div class="de1">==============================================================================</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">[ ... deleted most of log ... ]</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">Wed Jul &nbsp;2 08:14:19 CDT 2008 : testing/listing done</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">line counts from logs</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;96944 /tmp/joule-incr-Wed-v0000.log</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;96945 /tmp/joule-incr-Wed-v0000.toc</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">block counts (size=32768) from logs</div>
</li>
<li class="li1">
<div class="de1">==&gt; /tmp/joule-incr-Wed-v0000.log &lt;==</div>
</li>
<li class="li1">
<div class="de1">1145922 blocks</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">==&gt; /tmp/joule-incr-Wed-v0000.toc &lt;==</div>
</li>
<li class="li1">
<div class="de1">1145922 blocks</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">1145922 blocks @ 32768/block = 34.97 GB</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">Wed Jul &nbsp;2 08:14:20 CDT 2008 : compressing logs</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">Wed Jul &nbsp;2 08:14:22 CDT 2008 : moving logs to /usr/local/data/bcklogs</div>
</li>
<li class="li1">
<div class="de1">Wed Jul &nbsp;2 08:14:22 CDT 2008 : copying logs to /media/MX200702082108</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">==============================================================================</div>
</li>
<li class="li1">
<div class="de1">Script: &nbsp; &nbsp;incr-backup</div>
</li>
<li class="li1">
<div class="de1">Started: &nbsp; Wed Jul &nbsp;2 06:57:03 CDT 2008</div>
</li>
<li class="li1">
<div class="de1">Finished: &nbsp;Wed Jul &nbsp;2 08:14:22 CDT 2008</div>
</li>
<li class="li1">
<div class="de1">Usage: &nbsp; &nbsp; 34.97 GB; 96945 files/dirs</div>
</li>
<li class="li1">
<div class="de1">==============================================================================</div>
</li>
</ol>
</div>
<p>It&#8217;s kinda large because of a VMware disk image and a couple of dvd .iso files downloaded but not yet burned.</p>
<p>This is the full-backup script (<a href="/misc/fsback/full-backup.txt">text</a>).  Things to note:</p>
<ul>
<li>the <tt>DIRS</tt> variable specifies which filesystems to back up; the id file should be first in the list</li>
<li>nul-terminated paths (options <tt>-print0, -va0</tt>) are used to avoid issues with unusual filenames</li>
<li>the <tt>VOLNBR</tt> is just a holdover from tape and could be removed</li>
</ul>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="co0">#!/bin/bash</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># @(#) $Id$</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">BAR=</span><span class="st0">&quot;==============================================================================&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re2">MyScript=</span><span class="st0">&quot;`basename $0`&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re2">MyHost=</span><span class="st0">&quot;`hostname -s`&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re2">MyStart=</span><span class="st0">&quot;`date`&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">VOLNBR=</span><span class="st0">&quot;${1:-&quot;</span><span class="nu0">0000</span><span class="st0">&quot;}&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">DOW=</span><span class="st0">&quot;`date +%a`&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># Sun, Mon, &#8230;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">BTYPE=</span>full</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">BCK=</span><span class="st0">&quot;$MyHost-$BTYPE-$DOW-v$VOLNBR.cpio&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re2">LOG=</span><span class="st0">&quot;$MyHost-$BTYPE-$DOW-v$VOLNBR.log&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re2">TOC=</span><span class="st0">&quot;$MyHost-$BTYPE-$DOW-v$VOLNBR.toc&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">WRKDIR=</span><span class="st0">&quot;/tmp&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re2">DSTDIR=</span><span class="st0">&quot;/media/MX200702082108&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re2">ARCDIR=</span><span class="st0">&quot;/usr/local/data/bcklogs&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">BSIZE=</span><span class="nu0">32768</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re2">IDFILE=</span><span class="st0">&quot;backid.txt&quot;</span> <span class="co0"># really /backid.txt</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$HOME</span><span class="sy0">/</span>bin<span class="sy0">/</span>create-backid-<span class="kw2">file</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># directories to be backed up; command option specifies not to cross filesystems</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># work is done after a &quot;cd /&quot;, so the &quot;./&quot; prefix is relative to &quot;/&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0">### just for testing&#8230;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0">### DIRS=&quot;$IDFILE ./boot&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">DIRS=</span><span class="st0">&quot;./$IDFILE ./boot ./ ./home ./data ./usr/local ./usr ./opt ./var&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># omitted: /tmp /media</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;$BAR&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;Script: &nbsp; $MyScript&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;Started: &nbsp;$MyStart&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;$BAR&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;Contents of /$IDFILE:&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">cat</span> <span class="sy0">/</span><span class="re1">$IDFILE</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;Mounted file systems:&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">df</span> -h</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;`date` : creating backup&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot; &nbsp;targets: $DIRS&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># stdout is empty (always?) when using the -O option of cpio</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># all content comes from stderr being redirected to stdout</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">cd</span> <span class="sy0">/</span> <span class="sy0">&amp;&amp;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">find</span> <span class="re1">$DIRS</span> -xdev -depth -print0 <span class="sy0">|</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">cpio</span> -o -va0 -H crc -C <span class="re1">$BSIZE</span> -O <span class="re1">$DSTDIR</span><span class="sy0">/</span><span class="re1">$BCK</span> <span class="sy0">&gt;</span><span class="re1">$WRKDIR</span><span class="sy0">/</span><span class="re1">$LOG</span> <span class="nu0">2</span><span class="sy0">&gt;&amp;</span><span class="nu0">1</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;`date` : testing and listing backup&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># block count is written to stderr, but can&#39;t just send stderr to stdout</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># because the count appears to be emitted at random within stdout stream</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">cpio</span> -i -vt -H crc &#8211;only-verify-crc -C <span class="re1">$BSIZE</span> -I <span class="re1">$DSTDIR</span><span class="sy0">/</span><span class="re1">$BCK</span> <span class="sy0">&gt;</span><span class="re1">$WRKDIR</span><span class="sy0">/</span><span class="re1">$TOC</span> <span class="nu0">2</span><span class="sy0">&gt;</span><span class="re1">$WRKDIR</span><span class="sy0">/</span><span class="re1">$TOC</span>.err</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">cat</span> <span class="re1">$WRKDIR</span><span class="sy0">/</span><span class="re1">$TOC</span>.err <span class="sy0">&gt;&gt;</span><span class="re1">$WRKDIR</span><span class="sy0">/</span><span class="re1">$TOC</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">rm</span> -f <span class="re1">$WRKDIR</span><span class="sy0">/</span><span class="re1">$TOC</span>.err</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;`date` : testing/listing done&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;line counts from logs&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">wc</span> -l <span class="re1">$WRKDIR</span><span class="sy0">/</span><span class="re1">$LOG</span> <span class="re1">$WRKDIR</span><span class="sy0">/</span><span class="re1">$TOC</span> <span class="sy0">|</span> <span class="kw2">head</span> <span class="nu0">-2</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;block counts (size=$BSIZE) from logs&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">tail</span> -n <span class="nu0">1</span> <span class="re1">$WRKDIR</span><span class="sy0">/</span><span class="re1">$LOG</span> <span class="re1">$WRKDIR</span><span class="sy0">/</span><span class="re1">$TOC</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re2">fdcnt=</span>`<span class="kw2">wc</span> -l <span class="re1">$WRKDIR</span><span class="sy0">/</span><span class="re1">$TOC</span> <span class="sy0">|</span> <span class="kw2">sed</span> <span class="st0">&#39;s/^ *//&#39;</span> <span class="sy0">|</span> <span class="kw2">cut</span> -d<span class="st0">&#39; &#39;</span> -f1`</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">blkcnt=</span>`<span class="kw2">tail</span> -n <span class="nu0">1</span> <span class="re1">$WRKDIR</span><span class="sy0">/</span><span class="re1">$TOC</span> <span class="sy0">|</span> <span class="kw2">cut</span> -d<span class="st0">&#39; &#39;</span> -f1`</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">gbcnt=</span>`<span class="kw3">echo</span> <span class="st0">&quot;scale=2; $blkcnt * $BSIZE / 1024 / 1024 / 1024&quot;</span> <span class="sy0">|</span> <span class="kw2">bc</span>`</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;$blkcnt blocks @ $BSIZE/block = $gbcnt GB&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;`date` : compressing logs&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">gzip</span> <span class="re1">$WRKDIR</span><span class="sy0">/</span><span class="re1">$LOG</span> <span class="re1">$WRKDIR</span><span class="sy0">/</span><span class="re1">$TOC</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;`date` : moving logs to $ARCDIR&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#91;</span> <span class="sy0">!</span> -d <span class="re1">$ARCDIR</span> <span class="br0">&#93;</span> <span class="sy0">&amp;&amp;</span> <span class="kw2">mkdir</span> <span class="re1">$ARCDIR</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">mv</span> -f <span class="re1">$WRKDIR</span><span class="sy0">/</span><span class="re1">$LOG</span>.gz <span class="re1">$WRKDIR</span><span class="sy0">/</span><span class="re1">$TOC</span>.gz <span class="re1">$ARCDIR</span><span class="sy0">/</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">chmod</span> <span class="re2">u=</span>rw,<span class="re2">go=</span> <span class="re1">$ARCDIR</span><span class="sy0">/</span><span class="re1">$LOG</span>.gz <span class="re1">$ARCDIR</span><span class="sy0">/</span><span class="re1">$TOC</span>.gz</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;`date` : copying logs to $DSTDIR&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">cp</span> <span class="re1">$ARCDIR</span><span class="sy0">/</span><span class="re1">$LOG</span>.gz <span class="re1">$ARCDIR</span><span class="sy0">/</span><span class="re1">$TOC</span>.gz <span class="re1">$DSTDIR</span><span class="sy0">/</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">MyFinish=</span><span class="st0">&quot;`date`&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;$BAR&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;Script: &nbsp; &nbsp;$MyScript&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;Started: &nbsp; $MyStart&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;Finished: &nbsp;$MyFinish&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;Usage: &nbsp; &nbsp; $gbcnt GB; $fdcnt files/dirs&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;$BAR&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># end</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></div>
</li>
</ol>
</div>
<p>The incr-backup script (<a href="/misc/fsback/incr-backup.txt">text</a>) only differs in two lines; next time I edit the scripts I&#8217;ll move the interval option to a variable.</p>
<div class="geshi no text">
<ol>
<li class="li1">
<div class="de1">$ diff full-backup incr-backup</div>
</li>
<li class="li1">
<div class="de1">16c16</div>
</li>
<li class="li1">
<div class="de1">&lt; BTYPE=full</div>
</li>
<li class="li1">
<div class="de1">&#8212;</div>
</li>
<li class="li1">
<div class="de1">&gt; BTYPE=incr</div>
</li>
<li class="li1">
<div class="de1">66c66</div>
</li>
<li class="li1">
<div class="de1">&lt; find $DIRS -xdev -depth -print0 |</div>
</li>
<li class="li1">
<div class="de1">&#8212;</div>
</li>
<li class="li1">
<div class="de1">&gt; find $DIRS -xdev -depth -mtime -30 -print0 |</div>
</li>
</ol>
</div>
<p>Finally, the create-backid-file (<a href="/misc/fsback/create-backid-file.txt">text</a>).  I&#8217;ve stripped out the extra noise from the script for display in this post.  Select the text link to get the whole thing.  The <tt>grub.conf</tt> (or lilo) should probably be added as well.</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">uname</span> -a</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">cat</span> <span class="sy0">/</span>etc<span class="sy0">/</span>fstab</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">df</span> -h</div>
</li>
<li class="li1">
<div class="de1">fdisk -l</div>
</li>
<li class="li1">
<div class="de1">chkconfig &#8211;list</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">ps</span> -ef</div>
</li>
</ol>
</div>
<p>Aside, check out the full-size version of the lead image &#8212; it&#8217;s high res and quite interesting, along with the Wikipedia article <a href="http://en.wikipedia.org/wiki/Hard_disk_drive">Hard disk drive</a> where I found it.</p>
<p align="right"><small>image: <cite>Paul R. Potts, <a href="http://en.wikipedia.org/wiki/Image:SixHardDriveFormFactors.jpg">SixHardDriveFormFactors.jpg</a>, Wikimedia Commons</cite></small></p>
<div id="crp_related"><h3> Related Posts (in theory, but probably not):</h3><ul><li><a href="http://www.hornlo.org/isotropic/2008/07/06/mysql-backups/" rel="bookmark" class="crp_title">MySQL Backups</a></li><li><a href="http://www.hornlo.org/isotropic/2009/03/04/upgrade-to-wordpress-271/" rel="bookmark" class="crp_title">Upgrade to WordPress 2.7.1</a></li><li><a href="http://www.hornlo.org/isotropic/2008/09/07/research-desktop-workspace/" rel="bookmark" class="crp_title">Research Desktop Workspace</a></li><li><a href="http://www.hornlo.org/isotropic/2009/04/04/need-to-know/" rel="bookmark" class="crp_title">Need to know</a></li><li><a href="http://www.hornlo.org/isotropic/2008/04/13/quick-and-dirty-perl-001/" rel="bookmark" class="crp_title">Quick and Dirty Perl &#8211; #001</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.hornlo.org/isotropic/2009/04/04/need-to-know/" rel="bookmark" class="wherego_title">Need to know</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.hornlo.org/isotropic/2008/07/07/linux-filesystem-backups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Backups</title>
		<link>http://www.hornlo.org/isotropic/2008/07/06/mysql-backups/</link>
		<comments>http://www.hornlo.org/isotropic/2008/07/06/mysql-backups/#comments</comments>
		<pubDate>Sun, 06 Jul 2008 14:17:08 +0000</pubDate>
		<dc:creator>hornlo</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mySQL]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.hornlo.org/isotropic/?p=118</guid>
		<description><![CDATA[Even if you consistently back up your filesystem, you should also back up your databases separately, using an appropriate tool to maintain their relational integrity and to provide for recovery independent of the filesystem. MySQL is a pervasive, lightweight RDBMS that is used with popular applications such as WordPress and Bugzilla. The mysqldump utility which [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.hornlo.org/media/mysql.gif" width="125" height="68" align="left" alt="" title="" style="padding-right: 1em; padding-bottom: 1em;" /> Even if you consistently back up your filesystem, you should also back up your databases separately, using an appropriate tool to maintain their relational integrity and to provide for recovery independent of the filesystem.</p>
<p><a href="http://www.mysql.com/">MySQL</a> is a pervasive, lightweight <acronym title="Relational Database Management System">RDBMS</acronym> that is used with popular applications such as WordPress and Bugzilla.  The <tt>mysqldump</tt> utility which comes with MySQL provides a quick and simple way to create database backups.</p>
<p>While some situations my require more elaborate techniques, these scripts, using mysqldump, should be fine for the most common uses.  They are run nightly via cron and keep a week&#8217;s worth of backups.  <em>Note: these are just examples.  If you use them, you do so at your own risk.  You&#8217;ll want to adjust them for your own situation.</em></p>
<p>This first script (<a href="/misc/mysql/mysql-backup-local.txt">text</a>) runs on my laptop.  Because it accesses the local server, has full permissions, and the databases are small, it locks and backs up everything at once.</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="co0">#!/bin/bash</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># @(#) $Id$</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">BCKDIR=</span><span class="re1">$HOME</span><span class="sy0">/</span>backups<span class="sy0">/</span>mysql</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">BCKFILE=</span><span class="st0">&quot;mysql-backup-`date +%a`.sql&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#91;</span> <span class="sy0">!</span> -d <span class="re1">$BCKDIR</span> <span class="br0">&#93;</span> <span class="sy0">&amp;&amp;</span> <span class="kw2">mkdir</span> -p <span class="re1">$BCKDIR</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;`date` : starting backup&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">mysqldump <span class="sy0">&gt;</span> <span class="re1">$BCKDIR</span><span class="sy0">/</span><span class="re1">$BCKFILE</span> &nbsp; &nbsp;\</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &#8211;opt &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &#8211;allow-keywords &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &#8211;comments &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &#8211;create-options &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &#8211;disable-keys &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &#8211;flush-logs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &#8211;flush-privileges &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &#8211;lock-all-tables &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &#8211;all-databases</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;`date` : completed&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">ls</span> -lh <span class="re1">$BCKDIR</span><span class="sy0">/</span><span class="re1">$BCKFILE</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># end</span></div>
</li>
</ol>
</div>
<p>This second script (<a href="/misc/mysql/mysql-backup-remote.txt">text</a>) runs on my blog host; the actual database is on another host.  It differs from the previous script in that the <tt>flush-logs</tt> and <tt>lock-all-tables</tt> can&#8217;t be used, only a single database is backed up, and a password is required.  I&#8217;ve also added the <tt>uptime</tt> command so that I can see how the server is performing when backups are run.  <em>Note: I don&#8217;t recommend embedding passwords in scripts, but it makes the example simpler.</em></p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1"><span class="co0">#!/bin/bash</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># @(#) $Id$</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">DBNAME=</span>cutedbname</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">DBHOST=</span>mysql.example.com</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">DBPASS=</span>noway</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">BCKDIR=</span><span class="re1">$HOME</span><span class="sy0">/</span>backups<span class="sy0">/</span>mysql</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">BCKFILE=</span><span class="st0">&quot;$DBNAME-`date +%a`.sql&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">uptime</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#91;</span> <span class="sy0">!</span> -d <span class="re1">$BCKDIR</span> <span class="br0">&#93;</span> <span class="sy0">&amp;&amp;</span> <span class="kw2">mkdir</span> -p <span class="re1">$BCKDIR</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;`date` : starting backup&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># I don&#39;t have RELOAD privs, so can&#39;t use</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &nbsp; &#8211;flush-logs</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># &nbsp; &#8211;lock-all-tables</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">mysqldump <span class="sy0">&gt;</span> <span class="re1">$BCKDIR</span><span class="sy0">/</span><span class="re1">$BCKFILE</span> &nbsp; &nbsp;\</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &#8211;<span class="re2">host=</span><span class="re1">$DBHOST</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &#8211;opt &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &#8211;allow-keywords &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &#8211;comments &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &#8211;create-options &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &#8211;disable-keys &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &#8211;<span class="re2">password=</span><span class="re1">$DBPASS</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="re1">$DBNAME</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;`date` : completed&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">chmod</span> <span class="re2">u=</span>rw,<span class="re2">g=</span>,<span class="re2">o=</span> <span class="re1">$BCKDIR</span><span class="sy0">/</span><span class="re1">$BCKFILE</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">ls</span> -lh <span class="re1">$BCKDIR</span><span class="sy0">/</span><span class="re1">$BCKFILE</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">uptime</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co0"># end</span></div>
</li>
</ol>
</div>
<p>In both cases, cron emails the log file to me.  A typical message looks like this:</p>
<div class="geshi no text">
<ol>
<li class="li1">
<div class="de1">&nbsp;04:13:02 up 7 days, 19:24, &nbsp;1 user, &nbsp;load average: 1.68, 2.60, 2.87</div>
</li>
<li class="li1">
<div class="de1">Fri Jul &nbsp;4 04:13:02 CDT 2008 : starting backup</div>
</li>
<li class="li1">
<div class="de1">Fri Jul &nbsp;4 04:13:02 CDT 2008 : completed</div>
</li>
<li class="li1">
<div class="de1">-rw&#8212;&#8212;- &nbsp;1 xuser xgroup 572K 2008-07-04 04:13 /home/xuser/backups/mysql/cutedbname-Fri.sql</div>
</li>
<li class="li1">
<div class="de1">&nbsp;04:13:02 up 7 days, 19:24, &nbsp;1 user, &nbsp;load average: 1.68, 2.60, 2.87</div>
</li>
</ol>
</div>
<p>I periodically <tt>rsync</tt> my entire remote site to local storage &#8212; having the backups on the same remote host as your live data won&#8217;t do you any good if your host loses a disk (and have stale or corrupted backups), or falls off the &#8216;Net.  Of course my own filesystem backups take care of having long term, off-the-machine backups of my local stuff.  I&#8217;ll discuss the <a href="/isotropic/2008/07/07/linux-filesystem-backups/" title="Linux Filesystem Backups">filesystem backups</a> in a future post.</p>
<p>I hope you find these scripts useful, and welcome comments, critiques, or suggestions for alternative methods.</p>
<p><small><em>Update (7/7):</em> added link to filesystem backups</small></p>
<div id="crp_related"><h3> Related Posts (in theory, but probably not):</h3><ul><li><a href="http://www.hornlo.org/isotropic/2009/03/04/upgrade-to-wordpress-271/" rel="bookmark" class="crp_title">Upgrade to WordPress 2.7.1</a></li><li><a href="http://www.hornlo.org/isotropic/2008/07/07/linux-filesystem-backups/" rel="bookmark" class="crp_title">Linux Filesystem Backups</a></li><li><a href="http://www.hornlo.org/isotropic/2009/03/08/how-to-list-comment-spam-ip-addresses/" rel="bookmark" class="crp_title">How to list comment spam IP addresses</a></li><li><a href="http://www.hornlo.org/isotropic/2009/09/08/back-up-your-stuff/" rel="bookmark" class="crp_title">Back. Up. Your. Stuff.</a></li><li><a href="http://www.hornlo.org/isotropic/2008/09/07/research-desktop-workspace/" rel="bookmark" class="crp_title">Research Desktop Workspace</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div><div id="wherego_related"> </div>]]></content:encoded>
			<wfw:commentRss>http://www.hornlo.org/isotropic/2008/07/06/mysql-backups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LINdependence 2008</title>
		<link>http://www.hornlo.org/isotropic/2008/04/26/lindependence-2008/</link>
		<comments>http://www.hornlo.org/isotropic/2008/04/26/lindependence-2008/#comments</comments>
		<pubDate>Sun, 27 Apr 2008 01:43:08 +0000</pubDate>
		<dc:creator>hornlo</dc:creator>
				<category><![CDATA[Sci-Tech]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.hornlo.org/isotropic/?p=75</guid>
		<description><![CDATA[HeliOS Solutions is the primary sponsor of LINdependence 2008, which claims &#8220;On July 4th, a significant percentage of Felton, Calif., will go Microsoft-free for one week&#8230;maybe an entire month. Maybe for good.&#8221; It looks like an interesting concept, but it seems a little bit more hype than substance at the moment. Really, I just wanted [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://faq.fixedbylinux.com-a.googlepages.com/cuttuxsaw.png/cuttuxsaw-large.png"><img src="/media/cuttuxsaw-small.jpg" width="96" height="83" align="left"></a> <a href="http://www.fixedbylinux.com/">HeliOS Solutions</a> is the primary sponsor of <a href="http://faq.fixedbylinux.com-a.googlepages.com/lindependence2008-bringinglinuxtothemass">LINdependence 2008</a>, which claims &#8220;On July 4th, a significant percentage of Felton, Calif., will go Microsoft-free for one week&#8230;maybe an entire month. Maybe for good.&#8221;</p>
<p>It looks like an interesting concept, but it seems a little bit more hype than substance at the moment.  Really, I just wanted to post this for the Tux-with-a-chainsaw image.</p>
<p align="right"><small>h/t: <a href="http://scienceblogs.com/gregladen/2008/04/felton_california_will_go_tota.php">Greg Laden</a><br />
image: LINdependence 2008</small></p>
<div id="crp_related"><h3> Related Posts (in theory, but probably not):</h3><ul><li><a href="http://www.hornlo.org/isotropic/2008/06/08/here-be-dragons/" rel="bookmark" class="crp_title">Here Be Dragons</a></li><li><a href="http://www.hornlo.org/isotropic/2009/08/25/is-the-sky-falling/" rel="bookmark" class="crp_title">Is the sky falling?</a></li><li><a href="http://www.hornlo.org/isotropic/2008/05/18/big-and-small/" rel="bookmark" class="crp_title">Big and Small</a></li><li><a href="http://www.hornlo.org/isotropic/2008/05/26/pot-luck/" rel="bookmark" class="crp_title">Pot Luck</a></li><li><a href="http://www.hornlo.org/isotropic/2008/08/04/social-connectivity-constant/" rel="bookmark" class="crp_title">Social Connectivity Constant</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div><div id="wherego_related"> </div>]]></content:encoded>
			<wfw:commentRss>http://www.hornlo.org/isotropic/2008/04/26/lindependence-2008/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Windows XP downgrade</title>
		<link>http://www.hornlo.org/isotropic/2008/04/26/windows-xp-downgrade/</link>
		<comments>http://www.hornlo.org/isotropic/2008/04/26/windows-xp-downgrade/#comments</comments>
		<pubDate>Sun, 27 Apr 2008 00:11:43 +0000</pubDate>
		<dc:creator>hornlo</dc:creator>
				<category><![CDATA[Sci-Tech]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">http://www.hornlo.org/isotropic/?p=73</guid>
		<description><![CDATA[After some time in June, OEMs won&#8217;t be allowed to ship PCs with Windows XP pre-installed. However, Dell and other vendors may get around that by offering to assist businesses in exercising their &#8220;downgrade rights&#8221;. Microsoft gets to count the sale for Vista, but the XP image that comes with Vista is pre-loaded for you. [...]]]></description>
			<content:encoded><![CDATA[<p>After some time in June, OEMs won&#8217;t be allowed to ship PCs with Windows XP pre-installed.  However, Dell and other vendors may get around that by offering to assist businesses in exercising their &#8220;downgrade rights&#8221;.  Microsoft gets to count the sale for Vista, but the XP image that comes with Vista is pre-loaded for you.  </p>
<p>&#8220;Downgrade rights&#8221;, XP image to overwrite Vista, &#8230; there&#8217;s a message here somewhere &#8230; maybe upgrading to Linux?</p>
<p>I have to admit that I run XP in a <a href="http://www.vmware.com/">VMware</a> virtual machine &#8212; to access the Exchange server at work;  I would just use <acronym title="Outlook Web Access">OWA</acronym>, and forego Windows entirely, but it&#8217;s also more convenient than finding another system when I have to help someone with a Windows problem.</p>
<p>I first saw this on Slashdot, which linked to the CNET blog post; follow these links for more information:<br />
4/25: <a href="http://news.slashdot.org/article.pl?sid=08/04/25/183253">Dell Will Offer XP Past Cutoff Date</a> (Slashdot)<br />
4/24: <a href="http://www.cnet.com/8301-13554_1-9928619-33.html">Dell: We&#8217;ll install XP for you, even after the deadline</a> (Defensive Computing &#8211; CNET Blogs)<br />
4/23: <a href="http://www.cnet.com/8301-13554_1-9926900-33.html">Who&#8217;s selling Windows XP in July?</a> (Defensive Computing &#8211; CNET Blogs)</p>
<div id="crp_related"><h3> Related Posts (in theory, but probably not):</h3><ul><li><a href="http://www.hornlo.org/isotropic/2008/05/26/vista-vista/" rel="bookmark" class="crp_title">Vista Vista</a></li><li><a href="http://www.hornlo.org/isotropic/2001/02/16/outrageous-spin/" rel="bookmark" class="crp_title">outrageous spin</a></li><li><a href="http://www.hornlo.org/isotropic/2010/02/06/im-a-pc-and-ruining-your-battery-was-my-idea/" rel="bookmark" class="crp_title">I&#8217;m a PC, and ruining your battery was my idea.</a></li><li><a href="http://www.hornlo.org/isotropic/2008/11/24/vmware-server-108-on-fedora-9/" rel="bookmark" class="crp_title">VMware Server 1.08 on Fedora 9</a></li><li><a href="http://www.hornlo.org/isotropic/2009/02/18/linux-in-exile/" rel="bookmark" class="crp_title">Linux in Exile</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.hornlo.org/isotropic/2009/02/18/linux-in-exile/" rel="bookmark" class="wherego_title">Linux in Exile</a></li><li><a href="http://www.hornlo.org/isotropic/2001/02/16/outrageous-spin/" rel="bookmark" class="wherego_title">outrageous spin</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.hornlo.org/isotropic/2008/04/26/windows-xp-downgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora 8</title>
		<link>http://www.hornlo.org/isotropic/2008/04/25/fedora-8/</link>
		<comments>http://www.hornlo.org/isotropic/2008/04/25/fedora-8/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 14:35:47 +0000</pubDate>
		<dc:creator>hornlo</dc:creator>
				<category><![CDATA[Sci-Tech]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nautilus]]></category>
		<category><![CDATA[nvidia]]></category>
		<category><![CDATA[pidgin]]></category>

		<guid isPermaLink="false">http://www.hornlo.org/isotropic/?p=72</guid>
		<description><![CDATA[I&#8217;ve installed Fedora 8 (replacing Fedora Core 6) on my Dell Latitude D820 laptop. I have three issues (so far) with this new install. I&#8217;ll whine about them here just in case some ghost of LazyWeb still exists and answers before I get around to researching them myself. One of the few annoyances I have [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://fedoraproject.org/"><img src="/media/fedora8.png" width="133" height="100" align="left" alt="" title="" style="padding-right: 1em; padding-bottom: 1em;" /></a> I&#8217;ve installed <a href="http://fedoraproject.org/">Fedora 8</a> (replacing Fedora Core 6) on my <a href="/isotropic/2008/07/06/dell-latitude-d820-laptop/">Dell Latitude D820 laptop</a>.  I have three issues (so far) with this new install.  I&#8217;ll whine about them here just in case some ghost of <a href="http://www.codinghorror.com/blog/archives/000955.html">LazyWeb</a> still exists and answers before I get around to researching them myself.</p>
<p>One of the few annoyances I have with Linux is dealing with displays &#8212; I really hate fiddling with <a href="http://www.x.org/">X</a> display configurations.  After installing the latest <a href="http://www.nvidia.com/page/home.html">nvidia</a> driver from <a href="http://rpm.livna.org/rlowiki/">livna</a>, my laptop likes to hang with a blank screen at boot.  Cycling power will clear the problem.  This is with both a dual monitor setup (laptop display and one external monitor) at work, and laptop display only at home.  Both locations use the same model docking station.</p>
<p>I use <a href="http://www.pidgin.im/">pidgin</a> for instant messaging, keeping several accounts open at once, on several different services. At seemingly random intervals, pidgin will suddenly begin consuming 100% CPU.  This occurs while it is idle; I&#8217;ve not noticed it happening when I&#8217;ve been in a conversation.  This didn&#8217;t happen under FC6.</p>
<p>I have a script that sets up my second desktop <a href="/isotropic/2008/09/07/research-desktop-workspace/" title="Research Desktop Workspace">for research</a>.  It opens my <tt>Today</tt> and <tt>Notes</tt> directories in <a href="http://www.gnome.org/projects/nautilus/">nautilus</a> and starts <a href="http://www.mozilla.com/firefox/">firefox</a>.  The <tt>Today</tt> folder is actually a softlink on my desktop that points to <tt>$HOME/diary/YYYY/MM/DD/</tt>; my login script (and a midnight cron job) points the softlink to the current day&#8217;s real directory.  Under FC6, nautilus would remember the size and position of <tt>Today</tt>, so that my screen came up with all the windows appropriately placed in my workspace.  Now, nautilus appears to look for any remembered positioning for the softlink&#8217;s target path rather the softlink&#8217;s own path, so the first time a new day&#8217;s <tt>Today</tt> is opened, it is out of position.</p>
<p>I&#8217;m not blaming Fedora 8 itself for any of this, by the way; just noting that these problems started when the newer versions of these packages were installed along with Fedora 8.</p>
<p><em>Update (May 10)</em></p>
<p>After updating to kernel 2.6.24.5-85.fc8 and associated nvidia 169.12 updates from <a href="http://rpm.livna.org/rlowiki/">livna</a>, most of the the system hangs have gone away; I&#8217;ve only had a couple since the upgrade.</p>
<p>Re nautilus, I created a bug (<a href="http://bugzilla.gnome.org/show_bug.cgi?id=532296">Bug 532296 &#8211; soft link window geometry not remembered (nautilus)</a>) and commented on another one (<a href="http://bugzilla.gnome.org/show_bug.cgi?id=92566#c7">Bug 92566 &#8211; Nautilus doesn&#8217;t work properly with the &#8211;geometry command line option (nautilus)</a>) at <a href="http://www.gnome.org/">Gnome</a>&#8216;s bugzilla site.</p>
<p>Also, I was mostly kidding with the LazyWeb reference, but it turns out that <a href="http://www.hoosgot.com/">Hoosgot</a> <em>is</em> the resurrected LazyWeb.  Cool.</p>
<p><em>Update (Sep 7)</em></p>
<p>Added link to my <a href="/isotropic/2008/09/07/research-desktop-workspace/">Research Desktop Workspace</a> post.</p>
<p><em>Update (Oct 27)</em></p>
<p>I&#8217;m now running <a href="/isotropic/2008/10/27/installing-fedora-9/" title="Installing Fedora 9">Fedora 9</a>.</p>
<div id="crp_related"><h3> Related Posts (in theory, but probably not):</h3><ul><li><a href="http://www.hornlo.org/isotropic/2008/09/07/research-desktop-workspace/" rel="bookmark" class="crp_title">Research Desktop Workspace</a></li><li><a href="http://www.hornlo.org/isotropic/2008/10/27/installing-fedora-9/" rel="bookmark" class="crp_title">Installing Fedora 9</a></li><li><a href="http://www.hornlo.org/isotropic/2009/08/16/whither-lazyweb-and-hoosgot/" rel="bookmark" class="crp_title">Whither LazyWeb and Hoosgot?</a></li><li><a href="http://www.hornlo.org/isotropic/2008/11/24/vmware-server-108-on-fedora-9/" rel="bookmark" class="crp_title">VMware Server 1.08 on Fedora 9</a></li><li><a href="http://www.hornlo.org/isotropic/2008/07/06/dell-latitude-d820-laptop/" rel="bookmark" class="crp_title">Dell Latitude D820 Laptop</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div><div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.hornlo.org/isotropic/2010/05/24/alternate-email/" rel="bookmark" class="wherego_title">alternate email</a></li><li><a href="http://www.hornlo.org/isotropic/2010/02/19/surprise-surprise/" rel="bookmark" class="wherego_title">Surprise, Surprise</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.hornlo.org/isotropic/2008/04/25/fedora-8/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

