<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[BSDnexus forums - Booting with USB Drive]]></title>
		<link>http://forums.bsdnexus.com/viewtopic.php?id=1944</link>
		<description><![CDATA[The most recent posts in Booting with USB Drive.]]></description>
		<lastBuildDate>Fri, 16 May 2008 15:08:47 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Booting with USB Drive]]></title>
			<link>http://forums.bsdnexus.com/viewtopic.php?pid=17297#p17297</link>
			<description><![CDATA[<p>Update:</p><p>The plan worked!&nbsp; I tried booting with and without the USB drive and FreeBSD loads fully.</p><p>Thanks for the suggestions!</p>]]></description>
			<author><![CDATA[null@example.com (Bruco)]]></author>
			<pubDate>Fri, 16 May 2008 15:08:47 +0000</pubDate>
			<guid>http://forums.bsdnexus.com/viewtopic.php?pid=17297#p17297</guid>
		</item>
		<item>
			<title><![CDATA[Re: Booting with USB Drive]]></title>
			<link>http://forums.bsdnexus.com/viewtopic.php?pid=17286#p17286</link>
			<description><![CDATA[<p>richardpl: I was typing and posted my message before yours had been posted.&nbsp; I&#039;m not ignoring your suggestion!&nbsp; I&#039;ll look at the glabel command too, thank you.</p>]]></description>
			<author><![CDATA[null@example.com (Bruco)]]></author>
			<pubDate>Thu, 15 May 2008 14:43:10 +0000</pubDate>
			<guid>http://forums.bsdnexus.com/viewtopic.php?pid=17286#p17286</guid>
		</item>
		<item>
			<title><![CDATA[Re: Booting with USB Drive]]></title>
			<link>http://forums.bsdnexus.com/viewtopic.php?pid=17285#p17285</link>
			<description><![CDATA[<p>WIntellect: It&#039;s not a waste of time!&nbsp; Anything that&#039;s brought up will only serve to teach me more, which is good as I&#039;m only a few months into learning BSD.</p><p>Here&#039;s what I&#039;m going to try tonight, based on suggestions from ephemera at daemonforums.&nbsp; I&#039;m posting them here in case they can help someone else out some time:</p><p>First I&#039;ll boot into single-user mode.</p><p>Then I&#039;ll label each of my mountpoints with tunefs as such:<br />tunefs -L root /<br />tunefs -L tmp /tmp<br />tunefs -L usr /usr<br />tunefs -L var /var</p><p>Then I&#039;ll change my /etc/fstab file to reflect these new labels.&nbsp; For instance:<br />/dev/da0s1a (which is mounted to /) will become /dev/ufs/root<br />/dev/da0s1e (mounted to /tmp) will become /dev/ufs/tmp</p><p>Then I&#039;ll add the following line to my loader.conf:<br />geom_label_load=&quot;YES&quot;</p><p>This still leaves the swap partition (/dev/da0s1b).&nbsp; I can&#039;t label it because there&#039;s no mountpoint.&nbsp; What ephemera suggested is that I add an additional swap line to my /etc/fstab for device /dev/da1s1b.&nbsp; The logic behind this is that if the USB drive is plugged in, it is assigned da0, and my RAID 5 drive gets da1, so the swap will be /dev/da1s1b.&nbsp; If the USB drive is NOT plugged in at boot, my RAID 5 drive will be da0 and the swap wil be /dev/da0s1b.&nbsp; Either way swap should be one of those two devices, so while I will probably get an error during boot, (since one or the other will always be invalid) it should still work.</p><p>I&#039;m gonna try it tonight and see how it goes!</p>]]></description>
			<author><![CDATA[null@example.com (Bruco)]]></author>
			<pubDate>Thu, 15 May 2008 14:40:12 +0000</pubDate>
			<guid>http://forums.bsdnexus.com/viewtopic.php?pid=17285#p17285</guid>
		</item>
		<item>
			<title><![CDATA[Re: Booting with USB Drive]]></title>
			<link>http://forums.bsdnexus.com/viewtopic.php?pid=17284#p17284</link>
			<description><![CDATA[<div class="quotebox"><cite>Bruco wrote:</cite><blockquote><p>is there a way to mount that RAID 5 drive BEFORE FreeBSD probes USB devices?</p></blockquote></div><p>No, except if RAID 5 is your root partition (well it still is not mounted in usual sense).<br /></p><div class="quotebox"><cite>Bruco wrote:</cite><blockquote><p>Alternately, can I force that USB drive to always mount as /dev/da1 or 2, or anything other than 0?</p></blockquote></div><p>No, and there is no point in doing such thing, numbers represents order of appearance in system. You should instead label device and its partitions using glabel(8).</p>]]></description>
			<author><![CDATA[null@example.com (richardpl)]]></author>
			<pubDate>Thu, 15 May 2008 13:54:51 +0000</pubDate>
			<guid>http://forums.bsdnexus.com/viewtopic.php?pid=17284#p17284</guid>
		</item>
		<item>
			<title><![CDATA[Re: Booting with USB Drive]]></title>
			<link>http://forums.bsdnexus.com/viewtopic.php?pid=17282#p17282</link>
			<description><![CDATA[<p>On NetBSD you can recompile a kernel that hardcodes the location of the root system - but this could prove messy as if you hardcode it as /dev/da1 and unplug the USB stick when you reboot the root drive wont be found as it&#039;ll have been switched to /dev/da0</p><p><img src="http://forums.bsdnexus.com/img/smilies/sad.png" width="15" height="15" alt="sad" /></p><p>upon reflection, I&#039;m being a complete waste of time to you - sorry</p>]]></description>
			<author><![CDATA[null@example.com (WIntellect)]]></author>
			<pubDate>Thu, 15 May 2008 08:12:44 +0000</pubDate>
			<guid>http://forums.bsdnexus.com/viewtopic.php?pid=17282#p17282</guid>
		</item>
		<item>
			<title><![CDATA[Booting with USB Drive]]></title>
			<link>http://forums.bsdnexus.com/viewtopic.php?pid=17279#p17279</link>
			<description><![CDATA[<p>Hello.&nbsp; I posted this at daemonforums.org, I&#039;m posting here as well to get some more opinions if possible:</p><p>I&#039;ve got an external USB drive plugged into my FreeBSD box. Once a week a script runs that backs up to it with rsync.</p><p>This is all well and good, but on very rare occasion I might need to reboot that box remotely (I ssh into it from work, for example). And when you reboot it with the usb drive plugged in, it boots to a mountroot prompt and wants me to specify, well, where to mount root!</p><p>What I believe we&#039;ve determined is that when I boot with the USB drive plugged in it&#039;s mounting the USB drive first as /dev/da0.&nbsp; The drive that needs to be /dev/da0 is a logical RAID 5 drive on a HighPoint controller.&nbsp; We think that&#039;s being mounted as /dev/da1, and so FreeBSD can&#039;t find where to mount root from.&nbsp; (If the USB drive is NOT plugged in during boot the RAID 5 drive is mounted as /dev/da0.)</p><p>So, the question is, is there a way to mount that RAID 5 drive BEFORE FreeBSD probes USB devices?&nbsp; Alternately, can I force that USB drive to always mount as /dev/da1 or 2, or anything other than 0?</p><p>Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (Bruco)]]></author>
			<pubDate>Wed, 14 May 2008 18:03:46 +0000</pubDate>
			<guid>http://forums.bsdnexus.com/viewtopic.php?pid=17279#p17279</guid>
		</item>
	</channel>
</rss>
