<?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>Brain Goo &#187; grub</title>
	<atom:link href="http://www.popmartian.com/tipsntricks/category/grub/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.popmartian.com/tipsntricks</link>
	<description>Carpe Crap 'em</description>
	<lastBuildDate>Thu, 20 May 2010 17:52:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Debian-based machines and the (initramfs) prompt</title>
		<link>http://www.popmartian.com/tipsntricks/2007/08/09/debian-based-machines-and-the-initramfs-prompt/</link>
		<comments>http://www.popmartian.com/tipsntricks/2007/08/09/debian-based-machines-and-the-initramfs-prompt/#comments</comments>
		<pubDate>Thu, 09 Aug 2007 19:07:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[How Tos]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.popmartian.com/tipsntricks/2007/08/09/debian-based-machines-and-the-initramfs-prompt/</guid>
		<description><![CDATA[There are a million pages devoted to initramfs so I won&#8217;t go in to what it is, but if you have a Dell 1655 or other machine with serial-attached-SCSI and use Debian or a Debian-derived Linux distribution such as Ubuntu or Kbuntu, you may have run in to an issue booting after installing a kernel [...]]]></description>
			<content:encoded><![CDATA[<p>There are a million pages devoted to initramfs so I won&#8217;t go in to what it is, but if you have a Dell 1655 or other machine with serial-attached-SCSI and use Debian or a Debian-derived Linux distribution such as Ubuntu or Kbuntu, you may have run in to an issue booting after installing a kernel update.</p>
<p>Common errors are:</p>
<p>Target filesystem doesn&#8217;t have sbin/init<br />
BusyBox v.1.1.3<br />
/bin/sh: can&#8217;t access tty; job control turned off<br />
(initramfs)</p>
<p>or</p>
<p>mount: Mounting /root/dev on /dev/.static/dev failed: No such file or directory<br />
Done.<br />
Target filesystem doesn&#8217;t have /sbin/init</p>
<p>or</p>
<p>Mounting root file system&#8230;<br />
Running /scripts/local-top&#8230;Done.<br />
Running /scripts/local-premount&#8230;Done.<br />
kjournald starting. Commit interval 5 seconds.<br />
Running /scripts/log-bottom&#8230;Done.<br />
Running /scripts/init-bottom&#8230;<br />
Mounting /root/dev on /dev/.static/dev failed: No such file or directory&#8230;Done.<br />
Mounting /sys on /root/sys filed: No such file or directory<br />
Mounting /proc on /root/proc filed: No such file or directory<br />
Target filesystem doesn&#8217;t have /sbin/init</p>
<p>A common reason for this is simple.  Your GRUB menu is messed up and you swear you didn&#8217;t touch it!</p>
<p>There is a bug somewhere in Debian that changes your filesystem from /dev/sd&lt;something&gt; to /dev/sd&lt;something else&gt;.  Of course changing that will make the system mount root from the wrong partition and BOOM!  No boot for you.</p>
<p>In my case it constantly changes my boot partition from /dev/sda1 to /dev/sdb1 which is really annoying.  If I don&#8217;t update /boot/grub/menu.lst before I reboot, my system will not come back.</p>
<p>Lucky for you Debian has BusyBox and initramfs with the 2.6 kernel.</p>
<p>You will have to be on the console for this, but here is how to get up and running:</p>
<ul>
<li>Boot up your broken system.</li>
<li>(initramfs) is actually a prompt, so:
<ul>
<li><code>(initramfs) cd /</code></li>
</ul>
</li>
<li><code>(initramfs) mkdir /mnt</code> Make a directory in the RAM filesystem.</li>
<li><code>(initramfs) mount /dev/sda1 /mnt</code> Mount your REAL root partition there.</li>
<li><code>(initramfs) vi /mnt/boot/grub/menu.lst</code> Edit your menu.lst file to load the correct partition (toward the bottom)</li>
<li><code>(initramfs) reboot</code></li>
</ul>
<p>In my most recent case, the line:</p>
<p><code>kernel          /boot/vmlinuz-2.6.18-4-686 root=/dev/sda1 ro</code></p>
<p>Was changed to </p>
<p><code>kernel          /boot/vmlinuz-2.6.18-4-686 root=/dev/sdb1 ro</code></p>
<p>If I change it back before I reboot, I don&#8217;t have an issue.</p>
<img src="http://www.popmartian.com/tipsntricks/?ak_action=api_record_view&id=15&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.popmartian.com/tipsntricks/2007/08/09/debian-based-machines-and-the-initramfs-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
