<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Laufeyjarson writes... &#187; OpenBSD</title>
	<atom:link href="http://blog.laufeyjarson.com/category/openbsd/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.laufeyjarson.com</link>
	<description>... notes, thoughts, rants, and randomness.</description>
	<lastBuildDate>Fri, 05 Apr 2013 05:29:17 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Fix for Bowlfish 2.1 on a Soekris net6501</title>
		<link>http://blog.laufeyjarson.com/2012/08/fix-for-bowlfish-2-1-on-a-soekris-net6501/</link>
		<comments>http://blog.laufeyjarson.com/2012/08/fix-for-bowlfish-2-1-on-a-soekris-net6501/#comments</comments>
		<pubDate>Mon, 20 Aug 2012 01:52:07 +0000</pubDate>
		<dc:creator>Laufeyjarson</dc:creator>
				<category><![CDATA[OpenBSD]]></category>

		<guid isPermaLink="false">http://blog.laufeyjarson.com/?p=250</guid>
		<description><![CDATA[Bowlfish assumes that after it boots, the single hard disc in a system will be wd0a.  Not true on a Soekris net6501 when using a USB volume.  It&#8217;s sd0a.  You need to update /etc/fstab to mount / from sd0a instead of wd0a.  You can do that with a site.tgz file, or just mount and edit [...]]]></description>
				<content:encoded><![CDATA[<p>Bowlfish assumes that after it boots, the single hard disc in a system will be wd0a.  Not true on a Soekris net6501 when using a USB volume.  It&#8217;s sd0a.  You need to update /etc/fstab to mount / from sd0a instead of wd0a.  You can do that with a site.tgz file, or just mount and edit the disc before you boot.  Or mount -o rw,noatime /dev/sd0a /mnt on the booted system, make the change to /etc/fstab, and then mount -o rw /dev/sd0a.<span id="more-250"></span></p>
<p>Until you fix that, the ro and rw aliases won&#8217;t work, and any reference to the disc will get errors &#8220;mount_ffs: /dev/wd0a on /: Invalid argument&#8221;  Changing /etc/fstab makes it all work right.</p>
<p>I used an etc/fstab file in my site.tgz, as I already had a site.tgz I was working with.  I took the chance to bump up the size of my ramdisc while I was at it.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.laufeyjarson.com/2012/08/fix-for-bowlfish-2-1-on-a-soekris-net6501/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quirk installing Bowlfish 2.1 for OpenBSD 4.9.</title>
		<link>http://blog.laufeyjarson.com/2012/08/quirk-installing-bowlfish-2-1-for-openbsd-4-9/</link>
		<comments>http://blog.laufeyjarson.com/2012/08/quirk-installing-bowlfish-2-1-for-openbsd-4-9/#comments</comments>
		<pubDate>Sun, 19 Aug 2012 15:51:42 +0000</pubDate>
		<dc:creator>Laufeyjarson</dc:creator>
				<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[OpenBSD BowlFish]]></category>

		<guid isPermaLink="false">http://blog.laufeyjarson.com/?p=245</guid>
		<description><![CDATA[I use a tool called Bowlfish to build OpenBSD images which run with the drives mounted read-only. This lets me use cheap Compact Flash or USB drives in a Soekris single board computer instead of a real disc or a more expensive SSD. Bowlfish has been a lifesaver and has worked perfectly for years. The [...]]]></description>
				<content:encoded><![CDATA[<p>I use a tool called Bowlfish to build OpenBSD images which run with the drives mounted read-only. This lets me use cheap Compact Flash or USB drives in a Soekris single board computer instead of a real disc or a more expensive SSD.</p>
<p>Bowlfish has been a lifesaver and has worked perfectly for years. The current version, however, didn&#8217;t. I was shocked.  Then I fixed it!<span id="more-245"></span></p>
<p>It failed with:</p>
<p>Failed to build new filesystem.</p>
<p>Luckily, the &#8220;install&#8221; script is just that, a shell script, and I could add debugging statements and figure it out.</p>
<p>The error is caused by running disklabel incorrectly. On line 181 of the install script, there&#8217;s an echo statement that builds the commands to feed disklabel. There&#8217;s a &#8220;63&#8243; and the end of it. Either change it to &#8220;64&#8243; or delete the &#8220;63&#8243; digits entirely.</p>
<p>It is specifying the starting space on a partition, and 63 is too low for my systems. Had to be 64, which was the default.</p>
<p>How do I know this? I copied those two lines to an &#8220;echo&#8217; statement, and ran the script. I then ran disklabel manually to see what the error was, and how to fix it.</p>
<p>Once it was fixed, BowlFish created a working OpenBSD boot disc perfectly.  (It did this even though it was running in a VM on my Mac and writing to a USB drive on a hub plugged into the Mac.  Worked perfectly when I plugged it into the Soekris!  Amazing.)</p>
<p>Hope it helps someone, even if it&#8217;s just me finding it later.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.laufeyjarson.com/2012/08/quirk-installing-bowlfish-2-1-for-openbsd-4-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
