diff options
author | Kamil Rytarowski <kamil@mageia.org> | 2012-04-26 19:23:14 +0000 |
---|---|---|
committer | Kamil Rytarowski <kamil@mageia.org> | 2012-04-26 19:23:14 +0000 |
commit | e118bfd1011e4f0ef4789464dc9d0c8101fd186c (patch) | |
tree | e68e56bb551f1e4c4e977199fed8e256621da6cd /setupBootloaderExpert.html | |
parent | 60dd8f17b1c97541e151c8252c2c0c0f5b68bd8d (diff) | |
download | drakx-installer-help-e118bfd1011e4f0ef4789464dc9d0c8101fd186c.tar drakx-installer-help-e118bfd1011e4f0ef4789464dc9d0c8101fd186c.tar.gz drakx-installer-help-e118bfd1011e4f0ef4789464dc9d0c8101fd186c.tar.bz2 drakx-installer-help-e118bfd1011e4f0ef4789464dc9d0c8101fd186c.tar.xz drakx-installer-help-e118bfd1011e4f0ef4789464dc9d0c8101fd186c.zip |
- updated .HTML files (26th April 2012)
Diffstat (limited to 'setupBootloaderExpert.html')
-rw-r--r-- | setupBootloaderExpert.html | 156 |
1 files changed, 96 insertions, 60 deletions
diff --git a/setupBootloaderExpert.html b/setupBootloaderExpert.html index 43f8ba5..b4f3a22 100644 --- a/setupBootloaderExpert.html +++ b/setupBootloaderExpert.html @@ -22,6 +22,12 @@ </div> </div> </div> + + + + + + @@ -37,9 +43,9 @@ + + - - <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 “Bootloader main @@ -70,7 +76,8 @@ <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: + system in question. In order to determine the GRUB2 version run the + following command in a terminal: </p> @@ -105,12 +112,13 @@ <p><a name="setupBootloaderExpert-pa16"></a>Make a note of - the version and enter this command to identify the root partition: + 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-pa17"></a><code class="literal">df -h + / |(read; awk '{print $1; exit}')</code></p> <p><a name="setupBootloaderExpert-pa18"></a>This will @@ -118,16 +126,34 @@ </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-pa20"></a><code class="literal">/dev/sdb11</code></p> + + + <p><a name="setupBootloaderExpert-pa21"></a>sdb11 is the + root partition - make a note of it. + </p> + + </li> + <li class="listitem"> + + <p><a name="setupBootloaderExpert-pa22"></a>Now check that + the /boot folder is in the same partition by entering the following + command: + </p> + + + <p><a name="setupBootloaderExpert-pa23"></a><code class="literal">df -h + /boot |(read; awk '{print $1; exit}')</code></p> + + - <p><a name="setupBootloaderExpert-pa21"></a>The "sdb11" - part is the root partition - make a note of it. + <p><a name="setupBootloaderExpert-pa25"></a>If the /boot + partition is different to the root partition then make a note and use + the /boot partition in the "root" line when editing menu.lst + below. </p> </li> @@ -142,7 +168,7 @@ <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: + /boot/grub/menu.lst as follows: </p> </li> @@ -153,7 +179,8 @@ </p> - <p><a name="setupBootloaderExpert-pa29"></a><code class="literal">su</code></p> + <p><a name="setupBootloaderExpert-pa29"></a><code class="literal">su + -</code></p> <p><a name="setupBootloaderExpert-pa30"></a>(enter root @@ -180,8 +207,9 @@ <li class="listitem"> <p><a name="setupBootloaderExpert-pa34"></a>Add the - following entry for your (e.g. Ubuntu) system possibly as the second - stanza: + following entry for your (e.g. Ubuntu) system, possibly as the second + stanza. The position the item appears in the menu will depend on its + position in the file: </p> @@ -199,18 +227,59 @@ </li> <li class="listitem"> + <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>In the second + line, "hd1" means the second hard drive, the "10" indicates the 11th + partition. Drives and partitions in Mageia's legacy GRUB count from + zero. + </p> + + + <p><a name="setupBootloaderExpert-pa43"></a>Therefore: + </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> + + </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> + /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. + to use "grub2-install" earlier then change <code class="literal">"grub"</code> + to <code class="literal">"grub2"</code> in the last line. + </p> + + + <p><a name="setupBootloaderExpert-pa40a"></a>If /boot was + on a separate partition, then remove <code class="literal">"/boot"</code> from + the last line. </p> </li> @@ -224,49 +293,16 @@ </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="section" title="Using an existing GRUB2 bootloader"> <div class="titlepage"> <div> <div> <h3 class="title"><a name="usingExistingBootloaderGRUB2"></a>Using an - existing GRUB2 boot loader + existing GRUB2 bootloader </h3> </div> </div> @@ -276,8 +312,8 @@ <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 “Using an - existing boot loader”</a></p> + <a class="xref" href="setupBootloaderBeginner.html#usingExistingBootloader" title="Using an existing bootloader">the section called “Using an + existing bootloader”</a></p> <div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"> @@ -290,10 +326,10 @@ <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 : + 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> |