aboutsummaryrefslogtreecommitdiffstats
path: root/setupBootloaderExpert.html
diff options
context:
space:
mode:
authorKamil Rytarowski <kamil@mageia.org>2012-04-25 08:25:05 +0000
committerKamil Rytarowski <kamil@mageia.org>2012-04-25 08:25:05 +0000
commit3cf598bf83d504e8a3ddf6ff6cf3e76fe3d7832f (patch)
tree585f622442b201bfcbb781f9407c1689a032b2f7 /setupBootloaderExpert.html
parent8ad546904988e36701401fb15b04d585fbea985e (diff)
downloaddrakx-installer-help-3cf598bf83d504e8a3ddf6ff6cf3e76fe3d7832f.tar
drakx-installer-help-3cf598bf83d504e8a3ddf6ff6cf3e76fe3d7832f.tar.gz
drakx-installer-help-3cf598bf83d504e8a3ddf6ff6cf3e76fe3d7832f.tar.bz2
drakx-installer-help-3cf598bf83d504e8a3ddf6ff6cf3e76fe3d7832f.tar.xz
drakx-installer-help-3cf598bf83d504e8a3ddf6ff6cf3e76fe3d7832f.zip
- new version (2012-04-25)
Diffstat (limited to 'setupBootloaderExpert.html')
-rw-r--r--setupBootloaderExpert.html314
1 files changed, 314 insertions, 0 deletions
diff --git a/setupBootloaderExpert.html b/setupBootloaderExpert.html
new file mode 100644
index 0000000..43f8ba5
--- /dev/null
+++ b/setupBootloaderExpert.html
@@ -0,0 +1,314 @@
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+
+ <title>Bootloader expert use</title>
+ <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
+ <link rel="home" href="index.html" title="Installation with DrakX">
+ <link rel="up" href="index.html" title="Installation with DrakX">
+ <link rel="prev" href="setupBootloaderBeginner.html" title="Bootloader main options">
+ <link rel="next" href="misc-params.html" title="Summary of miscellaneous parameters"><style xmlns="http://www.w3.org/TR/xhtml1/transitional" type="text/css">
+ <!--
+ body { font-family: sans-serif; font-size: 13px }
+ table { font-family: sans-serif; font-size: 13px }
+ --></style></head>
+ <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+ <div lang="" class="section" title="Bootloader expert use">
+ <div class="titlepage">
+ <div>
+ <div>
+ <h2 class="title"><a name="setupBootloaderExpert"></a>Bootloader expert use
+ </h2>
+ </div>
+ </div>
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <p><a name="setupBootloaderExpert-pa1"></a>If you haven't done so
+ yet, please read <a class="xref" href="setupBootloaderBeginner.html" title="Bootloader main options">the section called &#8220;Bootloader main
+ options&#8221;</a> first.
+ </p>
+
+
+ <div class="section" title="Adding a GRUB2 based system manually">
+ <div class="titlepage">
+ <div>
+ <div>
+ <h3 class="title"><a name="addingGRUB2system"></a>Adding a GRUB2 based system
+ manually
+ </h3>
+ </div>
+ </div>
+ </div>
+
+
+
+ <p><a name="setupBootloaderExpert-pa7"></a>A GRUB2 based system
+ may be added to the Mageia boot menu as follows:
+ </p>
+
+
+ <div class="itemizedlist">
+ <ul class="itemizedlist">
+ <li class="listitem">
+
+ <p><a name="setupBootloaderExpert-pa8"></a>Boot into the
+ system in question and in order to determine the grub version, in a terminal run the command:
+ </p>
+
+
+ <p><a name="setupBootloaderExpert-pa9"></a><code class="literal">sudo
+ grub-install --version</code></p>
+
+
+ <p><a name="setupBootloaderExpert-pa10"></a>or if that
+ fails try:
+ </p>
+
+
+ <p><a name="setupBootloaderExpert-pa11"></a><code class="literal">sudo
+ grub2-install --version</code></p>
+
+ </li>
+ <li class="listitem">
+
+ <p><a name="setupBootloaderExpert-pa12"></a>If this returns
+ "GNU GRUB version 0.97" (possibly with a custom suffix), then it is
+ using GRUB (otherwise called GRUB legacy) not GRUB2 and your system
+ should be correctly identified by Mageia during installation and added
+ automatically to the menu.
+ </p>
+
+ </li>
+ <li class="listitem">
+
+ <p><a name="setupBootloaderExpert-pa15"></a>If this returns
+ (GRUB) 1.98 or 1.99 or 2.xx, then you are using GRUB2.
+ </p>
+
+
+ <p><a name="setupBootloaderExpert-pa16"></a>Make a note of
+ the version and enter this command to identify the root partition:
+ </p>
+
+
+ <p><a name="setupBootloaderExpert-pa17"></a><code class="literal">df /
+ </code></p>
+
+
+ <p><a name="setupBootloaderExpert-pa18"></a>This will
+ output something like :
+ </p>
+
+
+ <p><a name="setupBootloaderExpert-pa19"></a><code class="literal">Filesystem Size Used
+ Avail Use% Mounted on</code></p>
+
+
+ <p><a name="setupBootloaderExpert-pa20"></a><code class="literal">/dev/sdb11 15G 7.0G 7.0G
+ 50% /</code></p>
+
+
+ <p><a name="setupBootloaderExpert-pa21"></a>The "sdb11"
+ part is the root partition - make a note of it.
+ </p>
+
+ </li>
+ <li class="listitem">
+
+ <p><a name="setupBootloaderExpert-pa26"></a>You can now
+ shut down the system and install Mageia.
+ </p>
+
+ </li>
+ <li class="listitem">
+
+ <p><a name="setupBootloaderExpert-pa27"></a>In your new
+ running Mageia system, open a terminal and as root edit the file
+ /boot/grub/menu.lst. as follows:
+ </p>
+
+ </li>
+ <li class="listitem">
+
+ <p><a name="setupBootloaderExpert-pa28"></a>To become root
+ use:
+ </p>
+
+
+ <p><a name="setupBootloaderExpert-pa29"></a><code class="literal">su</code></p>
+
+
+ <p><a name="setupBootloaderExpert-pa30"></a>(enter root
+ password)
+ </p>
+
+ </li>
+ <li class="listitem">
+
+ <p><a name="setupBootloaderExpert-pa31"></a>To open the
+ file in an editor use:
+ </p>
+
+
+ <p><a name="setupBootloaderExpert-pa32"></a><code class="literal">kwrite
+ /boot/grub/menu.lst</code></p>
+
+
+ <p><a name="setupBootloaderExpert-pa33"></a>(replace
+ "kwrite" with "gedit" if you are using Gnome)
+ </p>
+
+ </li>
+ <li class="listitem">
+
+ <p><a name="setupBootloaderExpert-pa34"></a>Add the
+ following entry for your (e.g. Ubuntu) system possibly as the second
+ stanza:
+ </p>
+
+
+ <p><a name="setupBootloaderExpert-pa35"></a><code class="literal">title
+ Ubuntu</code></p>
+
+
+ <p><a name="setupBootloaderExpert-pa36"></a><code class="literal">root
+ (hd1,10)</code></p>
+
+
+ <p><a name="setupBootloaderExpert-pa37"></a><code class="literal">kernel
+ /boot/grub/core.img</code></p>
+
+ </li>
+ <li class="listitem">
+
+ <p><a name="setupBootloaderExpert-pa38"></a>If the GRUB2
+ version is 2.xx then change the last line to :
+ </p>
+
+
+ <p><a name="setupBootloaderExpert-pa39"></a><code class="literal">kernel
+ /boot/grub/i386-pc/core.img </code></p>
+
+
+ <p><a name="setupBootloaderExpert-pa40"></a>If you needed
+ to use "grub2-install" earlier then change <code class="literal">/grub/</code>
+ to <code class="literal">/grub2/</code> in the last line.
+ </p>
+
+ </li>
+ <li class="listitem">
+
+ <p><a name="setupBootloaderExpert-pa41"></a>Save the file
+ and re-boot. You should now see your "Ubuntu" entry in the menu and be
+ able to boot from it.
+ </p>
+
+ </li>
+ </ul>
+ </div>
+
+
+ <div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;">
+ <table border="0" summary="Note">
+ <tr>
+ <td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="note.png"></td>
+ <th align="left">Note</th>
+ </tr>
+ <tr>
+ <td align="left" valign="top">
+
+ <p><a name="setupBootloaderExpert-pa42"></a>The "sdb"
+ indicates the second hard drive hd1, (sda would be hd0), likewise sdb11
+ indicates partition 11 which in GRUB legacy (counting from zero) is
+ partition 10.
+ </p>
+
+
+ <p><a name="setupBootloaderExpert-pa43"></a>So:
+ </p>
+
+
+ <p><a name="setupBootloaderExpert-pa44"></a><code class="literal">sdb11 =
+ (hd1,10) </code></p>
+
+
+ <p><a name="setupBootloaderExpert-pa45"></a><code class="literal">sda1 =
+ (hd0,0) </code></p>
+
+ </td>
+ </tr>
+ </table>
+ </div>
+
+ </div>
+
+
+ <div class="section" title="Using an existing GRUB2 boot loader">
+ <div class="titlepage">
+ <div>
+ <div>
+ <h3 class="title"><a name="usingExistingBootloaderGRUB2"></a>Using an
+ existing GRUB2 boot loader
+ </h3>
+ </div>
+ </div>
+ </div>
+
+
+
+ <p><a name="setupBootloaderExpert-pa49a"></a>If you didn't read
+ the general part about using an existing bootloader yet, do so now. See
+ <a class="xref" href="setupBootloaderBeginner.html#usingExistingBootloader" title="Using an existing boot loader">the section called &#8220;Using an
+ existing boot loader&#8221;</a></p>
+
+
+ <div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;">
+ <table border="0" summary="Note">
+ <tr>
+ <td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="note.png"></td>
+ <th align="left">Note</th>
+ </tr>
+ <tr>
+ <td align="left" valign="top">
+
+ <p><a name="setupBootloaderExpert-pa50"></a>There is a known
+ bug in OS-prober used during GRUB2 installation in some older versions of
+ Debian/Ubuntu that incorrectly creates grub.cfg when adding Mageia (or
+ Mandriva) systems. This is simple to work around and details of a fix
+ can be found in the Mageia forum here :
+ https://forums.mageia.org/en/viewtopic.php?p=13547#p13547
+ </p>
+
+
+ <p><a name="setupBootloaderExpert-pa51"></a>To make the fix
+ permanent so that it will survive an Ubuntu kernel update, the Mageia
+ entry should be added to <code class="literal">/etc/grub.d/40_custom</code></p>
+
+ </td>
+ </tr>
+ </table>
+ </div>
+
+ </div>
+
+ </div>
+ </body>
+</html>