<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Polarwave's BSD Adventures &#187; Hardware</title>
	<atom:link href="http://polarwave.wordpress.com/category/hardware/feed/" rel="self" type="application/rss+xml" />
	<link>http://polarwave.wordpress.com</link>
	<description>"Quand vous dansez avec le diable, le diablene change pas. Vous seul changez."</description>
	<lastBuildDate>Sat, 21 Jun 2008 00:33:46 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='polarwave.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/3083eb5c7c922a5ddfdd793ca8775372?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Polarwave's BSD Adventures &#187; Hardware</title>
		<link>http://polarwave.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://polarwave.wordpress.com/osd.xml" title="Polarwave&#8217;s BSD Adventures" />
		<item>
		<title>Mount Partitions to Restore Backups</title>
		<link>http://polarwave.wordpress.com/2007/06/01/mount-partitions-to-restore-backups/</link>
		<comments>http://polarwave.wordpress.com/2007/06/01/mount-partitions-to-restore-backups/#comments</comments>
		<pubDate>Sat, 02 Jun 2007 01:45:57 +0000</pubDate>
		<dc:creator>polarwave</dc:creator>
				<category><![CDATA[BSD]]></category>
		<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://polarwave.wordpress.com/2007/06/01/mount-partitions-to-restore-backups/</guid>
		<description><![CDATA[I&#8217;ve been asking myself what do I do if a partition gets corrupted? Yeah, I do dumps regularly to another disk, but when you boot from an OpenBSD install cd there&#8217;s no matching /dev/wd1d there. There are no devices with wd1, only wd0. There&#8217;s MAKEDEV but it says that the operation isn&#8217;t permitted when I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=polarwave.wordpress.com&blog=230391&post=35&subd=polarwave&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve been asking myself what do I do if a partition gets corrupted? Yeah, I do dumps regularly to another disk, but when you boot from an OpenBSD install cd there&#8217;s no matching /dev/wd1d there. There are no devices with wd1, only wd0. There&#8217;s MAKEDEV but it says that the operation isn&#8217;t permitted when I type ./MAKEDEV wd1d. What&#8217;s going on here? I don&#8217;t have to worry about being root, this is an installation cd. Actually I&#8217;ve shelled out of the install routine. Let&#8217;s do ls -l and see what we get. I&#8217;ll be darned, MAKEDEV is not executable. chmod +x MAKEDEV and that solves that problem.</p>
<p>Once again, I type ./MAKEDEV wd1d and hit enter. This time there&#8217;s no error message. Another quick ls -l shows all kinds of wd1 listings now including wd1d. Now I mount -r /dev/wd1d /mnt and no error message. Let&#8217;s see what mount shows. Cool, wd1d is mounted. I do a ls -l on it and sure enough, there&#8217;s my /data partition on the hard drive where all the dumps are stored.</p>
<p>Now if a partition gets corrupted, all I have to do is boot up on the cd, make the device, run newfs on the corrupted partition, mount the partition with the backups on it as shown above, mount the newly formatted partition in write mode, change directory into it and restore the appropriate dump. Life is good!</p>
<p>Someone may say you don&#8217;t need the cd to boot from, you just boot the bsd.rd kernel, and that&#8217;s okay, that is if your / partition isn&#8217;t the corrupted one. Also, remember, restore is in /sbin. I don&#8217;t think there&#8217;s anything wrong with using the cd to work from. That is, unless you didn&#8217;t install off a cd and don&#8217;t have one. I think it&#8217;s a good idea to keep one one hand.</p>
<p>This is probably kindergarden stuff for most of the guys on the OpenBSD mailing list, but for me it&#8217;s like when the apple hit old Isaac on the head! It&#8217;s a revelation! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  I&#8217;m putting this up here in hopes someday some poor newbie having the same problem googles around and finds it. That&#8217;d be cool.</p>
<p>Everytime I do a fresh install of OpenBSD, I create a wd1a partition on a 2nd hard drive the same size as my root partition on the primary hard drive and label it altroot. In root&#8217;s crontab, right below my env settings SHELL, PATH, and HOME, I enter ROOTBACKUP=1. That way, every day the system will backup /root to /altroot. Alternately, you can edit /etc/daily.local and enter the same ROOTBACKUP=1 line.</p>
<p>In either case, you also have to remember to enter the partition info in /etc/fstab. The format is a little different too, than the format the others partitions use: /dev/wd1a /altroot ffs xx 0 0</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/polarwave.wordpress.com/35/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/polarwave.wordpress.com/35/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/polarwave.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/polarwave.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/polarwave.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/polarwave.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/polarwave.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/polarwave.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/polarwave.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/polarwave.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/polarwave.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/polarwave.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=polarwave.wordpress.com&blog=230391&post=35&subd=polarwave&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://polarwave.wordpress.com/2007/06/01/mount-partitions-to-restore-backups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5912728811d93b5304bf605cfd1b4822?s=96&#38;d=identicon" medium="image">
			<media:title type="html">polarwave</media:title>
		</media:content>
	</item>
		<item>
		<title>Experimenting for Newbies</title>
		<link>http://polarwave.wordpress.com/2006/11/17/experimenting-for-newbies/</link>
		<comments>http://polarwave.wordpress.com/2006/11/17/experimenting-for-newbies/#comments</comments>
		<pubDate>Fri, 17 Nov 2006 00:56:05 +0000</pubDate>
		<dc:creator>polarwave</dc:creator>
				<category><![CDATA[BSD]]></category>
		<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://polarwave.wordpress.com/2006/11/17/experimenting-for-newbies/</guid>
		<description><![CDATA[  I thought it might help newbies to write about a learning strategy
I&#8217;ve usedsince I started out trying to learn the BSD&#8217;s. I&#8217;ve got this
old PIII 800 I&#8217;m working on running OpenBSD, an ancient PII 300
dual-processor HP Netserver running OpenBSD, a Toshiba Satellite
4015 (another relic) running OpenBSD, and a PIII 667 home-built
box running XP. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=polarwave.wordpress.com&blog=230391&post=31&subd=polarwave&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>  I thought it might help newbies to write about a learning strategy<br />
I&#8217;ve usedsince I started out trying to learn the BSD&#8217;s. I&#8217;ve got this<br />
old PIII 800 I&#8217;m working on running OpenBSD, an ancient PII 300<br />
dual-processor HP Netserver running OpenBSD, a Toshiba Satellite<br />
4015 (another relic) running OpenBSD, and a PIII 667 home-built<br />
box running XP. I installed cygwin on the XP box, setup a vanilla<br />
bash prompt so neither FreeBSD or OpenBSD, which has a different<br />
term code and didn&#8217;t like the flashy default bash prompt in cygwin.<br />
I also setup Microsoft Services for Unix Administration on the XP<br />
box. I setup ficticious users on all the different boxes, and then I<br />
taught myself how to do automated cronjob rsync backups across<br />
the LAN, setup LAN file shares on on the XP box and NFS on the<br />
BSD boxes, taught myself about ssh and scp along with authorized<br />
keyfiles to eliminate typing passwords, and setup cvsup in root&#8217;s<br />
crontab to keep all sources up to date. Forgot to mention a friend<br />
gave me a very ancient Prioris P90 box given to him after Hurricane<br />
Katrina, setup an IDE drive and 5 1GB scsi drives in it left over from<br />
the storm and still working, installed OpenBSD 3.8 on it, set termcap<br />
for serial port usage, hooked up a null modem cable bought locally,<br />
and taught myself how to control it remotely from this box. While I was<br />
out of town, I was told it wasn&#8217;t working properly, and was able to ssh<br />
into this box and work on the ailing box from 700 miles away. All I<br />
need to do, I guess, is set up the NIC for wake-on-lan and I could<br />
even wake it up from somewhere else.</p>
<p>Whole point of this tirade is that you can use a bunch of old hardware<br />
as your classroom. All of these boxes I have would be laughed at by<br />
someone using the hot hardware that&#8217;s coming out these days, but<br />
they have been a great help at relatively very low costs.<br />
Just a thought!<br />
 <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/polarwave.wordpress.com/31/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/polarwave.wordpress.com/31/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/polarwave.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/polarwave.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/polarwave.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/polarwave.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/polarwave.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/polarwave.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/polarwave.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/polarwave.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/polarwave.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/polarwave.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=polarwave.wordpress.com&blog=230391&post=31&subd=polarwave&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://polarwave.wordpress.com/2006/11/17/experimenting-for-newbies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5912728811d93b5304bf605cfd1b4822?s=96&#38;d=identicon" medium="image">
			<media:title type="html">polarwave</media:title>
		</media:content>
	</item>
	</channel>
</rss>