aboutsummaryrefslogtreecommitdiffstats
path: root/content/setupBootloaderExpert.html
blob: 487e308a531088e46eada27c4930c06bcebb7feb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
    <meta http-equiv="X-UA-Compatible" content="IE=7"/>
    <title>18. Bootloader expert use</title><meta name="generator" content="DocBook XSL-NS 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="17. Bootloader main options"/><link rel="next" href="misc-params.html" title="19. Summary of miscellaneous parameters"/><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><script type="text/javascript">
      //The id for tree cookie
      var treeCookieId = "treeview-1485";
      var language = "en";
      var w = new Object();
      //Localization
      txt_filesfound = 'Results';
      txt_enter_at_least_1_char = "You must enter at least one character.";
      txt_browser_not_supported = "Your browser is not supported. Use of Mozilla Firefox is recommended.";
      txt_please_wait = "Please wait. Search in progress...";
      txt_results_for = "Results for: ";
      txt_no_results_for = "Your search returned no results for ";
    </script><style type="text/css">
      input {
      margin-bottom: 5px;
      margin-top: 2px;
      }

      .folder {
      display: block;
      height: 22px;
      padding-left: 20px;
      background: transparent url(../common/jquery/treeview/images/folder.gif) 0 0px no-repeat;
      }
      
    </style><link rel="shortcut icon" href="./favicon.png" type="image/x-icon"/><link rel="stylesheet" type="text/css" href="../common/css/positioning.css"/><link rel="stylesheet" type="text/css" href="../common/jquery/theme-redmond/jquery-ui-1.8.2.custom.css"/><link rel="stylesheet" type="text/css" href="../common/jquery/treeview/jquery.treeview.css"/><link rel="stylesheet" type="text/css" href="./webhelp-default.css"/><link rel="stylesheet" type="text/css" href="./webhelp-custom.css"/><script type="text/javascript" src="../common/jquery/jquery-1.4.2.min.js"><!----></script><script type="text/javascript" src="../common/jquery/jquery-ui-1.8.2.custom.min.js"><!----></script><script type="text/javascript" src="../common/jquery/jquery.cookie.js"><!----></script><script type="text/javascript" src="../common/jquery/treeview/jquery.treeview.min.js"><!----></script><script type="text/javascript" src="search/htmlFileList.js"><!----></script><script type="text/javascript" src="search/htmlFileInfoList.js"><!----></script><script type="text/javascript" src="./nwSearchFnt.js"><!----></script><script type="text/javascript" src="search/stemmers/en_stemmer.js"><!--//make this scalable to other languages as well.--></script><script type="text/javascript" src="search/index-1.js"><!----></script><script type="text/javascript" src="search/index-2.js"><!----></script><script type="text/javascript" src="search/index-3.js"><!----></script></head><body><div xmlns="" id="header"><div id="navheader"><!----><table><tr><td style="height: 28px; width: 16px;"><a id="showHideButton" onclick="showHideToc();" class="pointLeft" title="Hide TOC tree">.
	    </a></td><td><img src="../common/images/highlight-blue.gif" alt="H" height="25px" onclick="toggleHighlight()" id="showHideHighlight" style="cursor:pointer" title="Toggle search result highlighting"/></td><td><a accesskey="p" href="setupBootloaderBeginner.html">Prev</a> 
		|
		<a accesskey="n" href="misc-params.html">Next</a></td></tr></table></div><div id="headerlogo"><img src="./t-mageia-2011.png" alt="Company Logo"/></div><h1 id="pagetitle">18. Bootloader expert use<br/> </h1></div><div id="content"><!----><div xml:lang="" class="section" title="18. Bootloader expert use"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="setupBootloaderExpert"><!----></a>18. Bootloader expert use</h2></div></div></div><p><a id="setupBootloaderExpert-pa1"><!----></a>If you haven't done so
  yet, please read <a class="xref" href="setupBootloaderBeginner.html" title="17. Bootloader main options">Section 17, “Bootloader main
    options”</a> first.</p><div class="section" title="18.1. Adding a GRUB2 based system manually"><div class="titlepage"><div><div><h3 class="title"><a id="addingGRUB2system"><!----></a>18.1. Adding a GRUB2 based system
      manually</h3></div></div></div><p><a id="setupBootloaderExpert-pa7"><!----></a>A GRUB2 based system
    may be added to the Mageia boot menu as follows:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p><a id="setupBootloaderExpert-pa8"><!----></a>Boot into the
        system in question. In order to determine the GRUB2 version run the
        following command in a terminal:</p><p><a id="setupBootloaderExpert-pa9"><!----></a><code class="literal">sudo
        grub-install --version</code></p><p><a id="setupBootloaderExpert-pa10"><!----></a>or if that
        fails try:</p><p><a id="setupBootloaderExpert-pa11"><!----></a><code class="literal">sudo
        grub2-install --version</code></p></li><li class="listitem"><p><a id="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 id="setupBootloaderExpert-pa15"><!----></a>If this returns
        (GRUB) 1.98 or 1.99 or 2.xx, then you are using GRUB2.</p><p><a id="setupBootloaderExpert-pa16"><!----></a>Make a note of
        the version and enter this command to identify the root
        partition:</p><p><a id="setupBootloaderExpert-pa17"><!----></a><code class="literal">df -h
        / |(read; awk '{print $1; exit}')</code></p><p><a id="setupBootloaderExpert-pa18"><!----></a>This will
        output something like :</p><p><a id="setupBootloaderExpert-pa20"><!----></a><code class="literal">/dev/sdb11</code></p><p><a id="setupBootloaderExpert-pa21"><!----></a>sdb11 is the
        root partition - make a note of it.</p></li><li class="listitem"><p><a id="setupBootloaderExpert-pa22"><!----></a>Now check that
        the /boot folder is in the same partition by entering the following
        command:</p><p><a id="setupBootloaderExpert-pa23"><!----></a><code class="literal">df -h
        /boot |(read; awk '{print $1; exit}')</code></p><p><a id="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><li class="listitem"><p><a id="setupBootloaderExpert-pa26"><!----></a>You can now
        shut down the system and install Mageia.</p></li><li class="listitem"><p><a id="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 id="setupBootloaderExpert-pa28"><!----></a>To become root
        use:</p><p><a id="setupBootloaderExpert-pa29"><!----></a><code class="literal">su
        -</code></p><p><a id="setupBootloaderExpert-pa30"><!----></a>(enter root
        password)</p></li><li class="listitem"><p><a id="setupBootloaderExpert-pa31"><!----></a>To open the
        file in an editor use:</p><p><a id="setupBootloaderExpert-pa32"><!----></a><code class="literal">kwrite
        /boot/grub/menu.lst</code></p><p><a id="setupBootloaderExpert-pa33"><!----></a>(replace
        "kwrite" with "gedit" if you are using Gnome)</p></li><li class="listitem"><p><a id="setupBootloaderExpert-pa34"><!----></a>Add the
        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><p><a id="setupBootloaderExpert-pa35"><!----></a><code class="literal">title
        Ubuntu</code></p><p><a id="setupBootloaderExpert-pa36"><!----></a><code class="literal">root
        (hd1,10)</code></p><p><a id="setupBootloaderExpert-pa37"><!----></a><code class="literal">kernel
        /boot/grub/core.img</code></p></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="left" valign="top" width="40"><img alt="[Note]" src="./note.png"/></td><th align="left"/></tr><tr><td align="left" valign="top" class="admon-content"><p><a id="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 id="setupBootloaderExpert-pa43"><!----></a>Therefore:</p><p><a id="setupBootloaderExpert-pa44"><!----></a><code class="literal">sdb11 =
          (hd1,10)</code></p><p><a id="setupBootloaderExpert-pa45"><!----></a><code class="literal">sda1
          = (hd0,0)</code></p></td></tr></table></div></li><li class="listitem"><p><a id="setupBootloaderExpert-pa38"><!----></a>If the GRUB2
        version is 2.xx then change the last line to :</p><p><a id="setupBootloaderExpert-pa39"><!----></a><code class="literal">kernel
        /boot/grub/i386-pc/core.img</code></p><p><a id="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><p><a id="setupBootloaderExpert-pa40a"><!----></a>If /boot was
        on a separate partition, then remove <code class="literal">"/boot"</code> from
        the last line.</p></li><li class="listitem"><p><a id="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><div class="section" title="18.2. Using an existing GRUB2 bootloader"><div class="titlepage"><div><div><h3 class="title"><a id="usingExistingBootloaderGRUB2"><!----></a>18.2. Using an
      existing GRUB2 bootloader</h3></div></div></div><p><a id="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="17.2. Using an existing bootloader">Section 17.2, “Using an
      existing bootloader”</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="left" valign="top" width="40"><img alt="[Note]" src="./note.png"/></td><th align="left"/></tr><tr><td align="left" valign="top" class="admon-content"><p><a id="setupBootloaderExpert-pa50"><!----></a>There is a known
      bug in OS-prober used during GRUB2 installation in some 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. Search for "prober", the topic is 
      "grub problem", post #9 has the information.</p><p><a id="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><p><a id="setupBootloaderExpert-pa52"><!----></a>Stop Press: The bug 
      is fixed in os-prober-1.53 released on 8th May 2012. So now, upgrading to 
      the new version in your GRUB2 installation is the preferred solution.</p></td></tr></table></div></div></div><script type="text/javascript" src="./main.js"><!----></script><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="setupBootloaderBeginner.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="misc-params.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> </td></tr></table></div></div><div><div id="leftnavigation"><div id="tabs"><ul><li><a href="#treeDiv"><em>Contents</em></a></li><li><a href="#searchDiv"><em>Search</em></a></li></ul><div id="treeDiv"><img src="../common/images/loading.gif" alt="loading table of contents..." id="tocLoading" style="display:block;"/><div id="ulTreeDiv" style="display:none"><ul id="tree" class="filetree"><li><span class="file section"><a href="installer.html">DrakX, the Mageia Installer</a></span><ul><li><span class="file section"><a href="installer.html#installationSteps">The installation steps</a></span></li><li><span class="file section"><a href="installer.html#installationOptions">Installation options</a></span><ul><li><span class="file section"><a href="installer.html#installationProblems">Installation Problems and
        Possible Solutions</a></span><ul><li><span class="file section"><a href="installer.html#noX">No Graphical Interface</a></span></li><li><span class="file section"><a href="installer.html#installFreezes">The Install Freezes</a></span></li><li><span class="file section"><a href="installer.html#kernelOptions">Kernel Options</a></span></li></ul></li></ul></li></ul></li><li><span class="file section"><a href="selectLanguage.html">Please choose a language to use</a></span></li><li><span class="file section"><a href="acceptLicense.html">License and Release Notes</a></span><ul><li><span class="file section"><a href="acceptLicense.html#license">License Agreement</a></span></li><li><span class="file section"><a href="acceptLicense.html#releaseNotes">Release Notes</a></span></li></ul></li><li><span class="file section"><a href="setupSCSI.html">Setup SCSI</a></span></li><li><span class="file section"><a href="selectInstallClass.html">Install or Upgrade</a></span></li><li><span class="file section"><a href="selectKeyboard.html">Keyboard</a></span></li><li><span class="file section"><a href="doPartitionDisks.html">Partitioning</a></span></li><li><span class="file section"><a href="resizeFATChoose.html">Resize
    Windows® partition</a></span></li><li><span class="file section"><a href="takeOverHdChoose.html">Choose hard disk to erase for
    Mageia</a></span></li><li><span class="file section"><a href="takeOverHdConfirm.html">Confirm hard disk to be
    formatted</a></span></li><li><span class="file section"><a href="ask_mntpoint_s.html">Choose the mount points</a></span></li><li><span class="file section"><a href="diskdrake.html">Custom disk partitioning with
    DiskDrake</a></span></li><li><span class="file section"><a href="formatPartitions.html">Formatting</a></span></li><li><span class="file section"><a href="choosePackages.html">Choosing Packages to be
    Installed</a></span><ul><li><span class="file section"><a href="choosePackages.html#choose-graphical-env">Desktop Selection</a></span></li><li><span class="file section"><a href="choosePackages.html#choosePackagesGroups">Package Group Selection</a></span></li><li><span class="file section"><a href="choosePackages.html#minimal-install">Minimal Install</a></span></li><li><span class="file section"><a href="choosePackages.html#choosePackagesTree">Choose Individual
      Packages</a></span></li><li><span class="file section"><a href="choosePackages.html#choosePackagesLinks">Choose Packages - Links</a></span></li></ul></li><li><span class="file section"><a href="addUser.html">User and Superuser Management</a></span><ul><li><span class="file section"><a href="addUser.html#root-password">Set Administrator (root)
      Password:</a></span></li><li><span class="file section"><a href="addUser.html#enterUser">Enter a user</a></span></li><li><span class="file section"><a href="addUser.html#addUserAdvanced">Advanced User Management</a></span></li></ul></li><li><span class="file section"><a href="setupX.html">Set up X, graphic card and monitor
    configuration</a></span></li><li><span class="file section"><a href="setupBootloaderBeginner.html">Bootloader main
    options</a></span><ul><li><span class="file section"><a href="setupBootloaderBeginner.html#usingMageiaBootloader">Using the Mageia
      bootloader</a></span></li><li><span class="file section"><a href="setupBootloaderBeginner.html#usingExistingBootloader">Using an
      existing bootloader</a></span></li><li><span class="file section"><a href="setupBootloaderBeginner.html#advancedOptionBootloader">Bootloader
      advanced option</a></span></li></ul></li><li id="webhelp-currentid"><span class="file section"><a href="setupBootloaderExpert.html">Bootloader expert use</a></span><ul><li><span class="file section"><a href="setupBootloaderExpert.html#addingGRUB2system">Adding a GRUB2 based system
      manually</a></span></li><li><span class="file section"><a href="setupBootloaderExpert.html#usingExistingBootloaderGRUB2">Using an
      existing GRUB2 bootloader</a></span></li></ul></li><li><span class="file section"><a href="misc-params.html">Summary of miscellaneous
    parameters</a></span><ul><li><span class="file section"><a href="misc-params.html#misc-params-system">System parameters</a></span></li><li><span class="file section"><a href="misc-params.html#misc-params-hardware">Hardware parameters</a></span></li><li><span class="file section"><a href="misc-params.html#misc-params-network">Network and Internet
      parameters</a></span></li><li><span class="file section"><a href="misc-params.html#misc-params-security">Security</a></span></li><li><span class="file section"><a href="misc-params.html#drakxid-configureTimezoneGMT">Configure your
      Timezone</a></span></li><li><span class="file section"><a href="misc-params.html#drakxid-selectCountry">Select your Country /
      Region</a></span><ul><li><span class="file section"><a href="misc-params.html#inputMethod">Input method</a></span></li></ul></li><li><span class="file section"><a href="misc-params.html#drakxid-configureServices">Configure your
      Services</a></span></li><li><span class="file section"><a href="misc-params.html#draxid-miscellaneous">Security Level</a></span></li><li><span class="file section"><a href="misc-params.html#misc-paramsLinks">Summary - Links</a></span></li></ul></li><li><span class="file section"><a href="selectMouse.html">Select mouse</a></span></li><li><span class="file section"><a href="installUpdates.html">Updates</a></span></li><li><span class="file section"><a href="exitInstall.html">Congratulations</a></span></li></ul></div></div><div id="searchDiv"><div id="search"><form onsubmit="Verifie(ditaSearch_Form);return false" name="ditaSearch_Form" class="searchForm"><fieldset class="searchFieldSet"><legend>Search</legend><center><input id="textToSearch" name="textToSearch" type="text" class="searchText"/> &nbsp; <input onclick="Verifie(ditaSearch_Form)" type="button" class="searchButton" value="Go" id="doSearch"/></center></fieldset></form></div><div id="searchResults"><center/></div></div></div></div></div></body></html>