<?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:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>
<channel>
	<title>G-Loaded Journal &#187; GRUB</title>
	<atom:link href="http://www.g-loaded.eu/tag/grub/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.g-loaded.eu</link>
	<description>An open-source software and technology related journal</description>
	<lastBuildDate>Mon, 05 Dec 2011 19:55:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
		<item>
		<title>GRUB repair plus installation to floppy</title>
		<link>http://www.g-loaded.eu/2006/01/02/grub-repair-plus-installation-to-floppy/</link>
		<comments>http://www.g-loaded.eu/2006/01/02/grub-repair-plus-installation-to-floppy/#comments</comments>
		<pubDate>Mon, 02 Jan 2006 11:45:18 +0000</pubDate>
		<dc:creator>George Notaras</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Administration]]></category>
		<category><![CDATA[GRUB]]></category>
		<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[System]]></category>
		<guid isPermaLink="false">http://www.g-loaded.eu/2006/01/02/grub-repair-plus-installation-to-floppy/</guid>
		<description><![CDATA[Repairing the GRUB installation is a very usual task for many Linux users. There are many excellent articles on this topic on the net. This small article intends to be a summary of them and to serve as a small reference for those who do not care about the details. Some links to external relative [...]]]></description>
			<content:encoded><![CDATA[<p>Repairing the <abbr title="GRand Unified Bootloader">GRUB</abbr> installation is a very usual task for many Linux users. There are many excellent articles on this topic on the net. This small article intends to be a summary of them and to serve as a small reference for those who do not care about the details. Some links to external relative articles exist in the end of this document.<span id="more-131"></span></p>
<h4>Entering the Rescue Mode</h4>
<p>The <em>Rescue Mode</em>, in simple terms, is an &#8220;isolated&#8221; environment, which exists in the system RAM, from where you can perform some system maintenance or repair tasks. To enter such an environment you can use any of the so called &#8220;<em>Live CDs</em>&#8221; or use your distribution&#8217;s installation media if they provide such an option.</p>
<p>For Fedora users there are a separate <em>Fedora Rescue ISO</em> image, which can be burned to a cd, and the first of the installation media, which can be used to enter the Rescue Mode. Since you will be booting from the cd, you will have to adjust your boot sequence in your motherboard&#8217;s BIOS. Having accomplished this, insert the proper cd into the drive and reboot.</p>
<p>If you use the Fedora Rescue CD, just hit the <code>[Enter]</code> key. If you use the installation media, type:</p>
<pre class="console">> linux rescue</pre>
<p>and hit the <code>[Enter]</code> key.</p>
<p>Answer the questions about your language, your keyboard and if you would like to bring up the network interfaces. You will not be needing the latter, so you may answer negatively.</p>
<p>The last question you have to answer before you enter the Rescue Mode is if you would like to mount your Fedora system partition or not, or if you would like to mount it as read-only. I would suggest that you let this wizard mount it for you.</p>
<h4>Re-installing GRUB on the MBR</h4>
<p>If you have let the wizard mount your system, it can be found at the following directory:<br />
<code>/mnt/sysimage/</code></p>
<p>Issue the following commands:</p>
<pre class="console"># chroot /mnt/sysimage/
# grub-install /dev/hdX</pre>
<p>Substitute <code>hdX</code> with the proper hard drive, on whose MBR you would like GRUB installed. Usually this is <code>hda</code>.</p>
<p>GRUB is installed.</p>
<p>The first command is optional, but, if you don&#8217;t issue it, you would have to provide the full path to <code>grub-install</code>. For example:</p>
<pre class="console"># /mnt/sysimage/sbin/grub-install /dev/hdX</pre>
<h4>Creating a GRUB diskette</h4>
<p>If you have a reason to have GRUB installed on a diskette and boot your system from there, here is the info on how to do. You can issue the following commands either from the Rescue Mode or while you use the system. If you are in the Rescue Mode, issue the following command to make your life easier:</p>
<pre class="console"># chroot /mnt/sysimage/</pre>
<p>Insert a diskette into the floppy drive and type:</p>
<pre class="console"># dd if=/boot/grub/stage1 of=/dev/fd0 bs=512 count=1
# dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1</pre>
<p>These copy the necessary GRUB images to the diskette.</p>
<p>Finally install GRUB to the diskette:</p>
<pre class="console"># grub-install /dev/fd0</pre>
<p>That&#8217;s it. You can adjust your boot sequence in the BIOS, so that your system boots from the diskette.</p>
<p>Note that this diskette <strong>is only valid</strong> for the specific kernel and partition configuration. If you modify any of these you will have to repeat the last command.</p>
<h4>Further Reading</h4>
<p>Some exceptional articles on this topic:</p>
<ol>
<li><a href="http://www.gnu.org/software/grub/manual/grub.html">The GRUB Documentation.</a></li>
<li><a href="http://www.bo.infn.it/alice/alice-doc/mll-doc/linux/advanced/node40.html">Collection of articles regarding GRUB configuration and usage.</a></li>
<li><a href="http://www.troubleshooters.com/linux/grub/grub.htm">Grub From the Ground Up</a> by Steve Litt</li>
<li><a href="http://forums.fedoraforum.org/showpost.php?p=5538&#038;postcount=1">How to install GRUB on the MBR</a> by Gonzalo</li>
<li><a href="http://www-128.ibm.com/developerworks/library/l-bootload.html">Boot loader showdown &#8211; Getting to know LILO and GRUB</a> by Laurence Bonney</li>
</ol>
<div class="cc-block"><em><a href="http://www.g-loaded.eu/2006/01/02/grub-repair-plus-installation-to-floppy/">GRUB repair plus installation to floppy</a></em>, unless otherwise expressly stated, is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>. Terms and conditions beyond the scope of this license may be available at <a href="http://www.g-loaded.eu/about/disclaimer-and-license/">www.g-loaded.eu</a>.</div>
<h4>Related Articles</h4>
<ul><li><a href="http://www.g-loaded.eu/2006/09/10/grub-background-image/" rel="bookmark">GRUB background image</a></li>
<li><a href="http://www.g-loaded.eu/2009/01/04/always-use-a-block-device-label-or-its-uuid-in-fstab/" rel="bookmark">Always use a block device label or its UUID in fstab</a></li>
<li><a href="http://www.g-loaded.eu/2005/09/30/change-the-console-resolution/" rel="bookmark">Change the console resolution</a></li>
<li><a href="http://www.g-loaded.eu/2005/11/10/packet-writing-on-cdrw-and-dvdrw-media/" rel="bookmark">Packet Writing on CDRW and DVDRW media</a></li>
<li><a href="http://www.g-loaded.eu/2007/12/07/email-notifications-from-a-linux-system/" rel="bookmark">Email Notifications from a Linux System</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.g-loaded.eu/2006/01/02/grub-repair-plus-installation-to-floppy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
	</channel>
</rss>

