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
|
<?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. Utilisation avancée du chargeur de démarrage</title><meta name="generator" content="DocBook XSL-NS Stylesheets V1.75.2"/><link rel="home" href="index.html" title="Installation avec DrakX"/><link rel="up" href="index.html" title="Installation avec DrakX"/><link rel="prev" href="setupBootloaderBeginner.html" title="17. Principales options du chargeur de démarrage"/><link rel="next" href="misc-params.html" title="19. Résumé des différents paramètres"/><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><script type="text/javascript">
//The id for tree cookie
var treeCookieId = "treeview-1461";
var language = "en";
var w = new Object();
//Localization
txt_filesfound = 'Résultats';
txt_enter_at_least_1_char = "Vous devez entrer au moins un caractère.";
txt_browser_not_supported = "Your browser is not supported. Use of Mozilla Firefox is recommended.";
txt_please_wait = "Patientez, recherche en cours...";
txt_results_for = "Resultats: ";
txt_no_results_for = "Aucun résultat de recherche pour:";
</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">Précédent</a>
|
<a accesskey="n" href="misc-params.html">Suivant</a></td></tr></table></div><div id="headerlogo"><img src="./t-mageia-2011.png" alt="Company Logo"/></div><h1 id="pagetitle">18. Utilisation avancée du chargeur de démarrage<br/> </h1></div><div id="content"><!----><div xml:lang="fr" class="section" title="18. Utilisation avancée du chargeur de démarrage"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="setupBootloaderExpert"><!----></a>18. Utilisation avancée du chargeur de démarrage</h2></div></div></div><p><a id="setupBootloaderExpert-pa1"><!----></a>Lire <a class="xref" href="setupBootloaderBeginner.html" title="17. Principales options du chargeur de démarrage">Section 17, « Principales options du
chargeur de démarrage »</a> en premier, si ce n'est pas déjà fait.</p><div class="section" title="18.1. Ajouter manuellement un système basé sur GRUB2"><div class="titlepage"><div><div><h3 class="title"><a id="addingGRUB2system"><!----></a>18.1. Ajouter manuellement un système basé sur GRUB2</h3></div></div></div><p><a id="setupBootloaderExpert-pa7"><!----></a>Un système basé sur GRUB2 peut être ajouté au menu de démarrage de Mageia de la façon suivante :</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p><a id="setupBootloaderExpert-pa8"><!----></a>Démarrer le système en question et, pour déterminer la version de GRUB, taper la commande suivante dans un terminal :</p><p><a id="setupBootloaderExpert-pa9"><!----></a>
<code class="literal">sudo grub-install --version</code>
</p><p><a id="setupBootloaderExpert-pa10"><!----></a>ou, si cela échoue :</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>Si cela renvoie
"GNU GRUB version 0.97" (éventuellement avec un suffix personnalisé), alors il utilise GRUB ( aussi appelé GRUB Legacy) et pas GRUB2. Ce système devrait être correctement identifié par Mageia au cours de l'installation et ajouté automatiquement au menu.</p></li><li class="listitem"><p><a id="setupBootloaderExpert-pa15"><!----></a>Si cela renvoie
(GRUB) 1.98 or 1.99 or 2.xx, alors il utilise GRUB2.</p><p><a id="setupBootloaderExpert-pa16"><!----></a>Prendre note de la version et taper la commande suivante pour identifier la partition root :</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>Le résultat doit ressembler à ceci :</p><p><a id="setupBootloaderExpert-pa20"><!----></a>
<code class="literal">/dev/sdb11</code>
</p><p><a id="setupBootloaderExpert-pa21"><!----></a>sdb11 désigne la partition root, noter cet identifiant.</p></li><li class="listitem"><p><a id="setupBootloaderExpert-pa22"><!----></a>Vérifier maintenant que le dossier /boot est sur la même partition en tapant la commande suivante :</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>Si le dossier /boot n'est pas sur la partition root, prendre en note son identifiant et utiliser le dans la ligne "root" lors de l'édition (voir plus bas) du fichier menu.lst.</p></li><li class="listitem"><p><a id="setupBootloaderExpert-pa26"><!----></a>L'ordinateur peut maintenant être éteint et l'installation de Mageia peut être lancée.</p></li><li class="listitem"><p><a id="setupBootloaderExpert-pa27"><!----></a>Sur le système Mageia fraichement installé, ouvrir un terminal et, avec les droits administrateur, éditer le fichier /boot/grub/menu.lst de la façon suivante :</p></li><li class="listitem"><p><a id="setupBootloaderExpert-pa28"><!----></a>Pour utiliser les droits administrateur taper :</p><p><a id="setupBootloaderExpert-pa29"><!----></a>
<code class="literal">su -</code>
</p><p><a id="setupBootloaderExpert-pa30"><!----></a>(entrer le mot de passe administrateur)</p></li><li class="listitem"><p><a id="setupBootloaderExpert-pa31"><!----></a>Pour ouvrir le fichier dans un éditeur :</p><p><a id="setupBootloaderExpert-pa32"><!----></a>
<code class="literal">kwrite /boot/grub/menu.lst</code>
</p><p><a id="setupBootloaderExpert-pa33"><!----></a>(remplacer
"kwrite" par "gedit" sous l'environnement Gnome)</p></li><li class="listitem"><p><a id="setupBootloaderExpert-pa34"><!----></a>Ajouter l'entrée suivante pour le système (par exemple Ubuntu) sous la forme d'un nouveau paragraphe (sa place dans le menu dépend de celle dans le fichier) :</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>Dans la deuxième ligne, "hd1" désigne le second disque dur et '10' la onzième partition. Le GRUB de Mageia compte les disques et les partitions en commençant à zéro.</p><p><a id="setupBootloaderExpert-pa43"><!----></a>Donc:</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>Si la version de GRUB2 est 2.xx, changer la dernière ligne par :</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>Si "grub2-install" a été précédemment utilisé, changer <code class="literal">/grub/</code> par <code class="literal">/grub2/</code> dans la dernière ligne.</p><p><a id="setupBootloaderExpert-pa40a"><!----></a>Si /boot est sur une partition différente, retirer <code class="literal">"/boot"</code> de la dernière ligne.</p></li><li class="listitem"><p><a id="setupBootloaderExpert-pa41"><!----></a>Enregistrer le fichier et redémarrer l'ordinateur. L'entrée "Ubuntu" devrait maintenant apparaitre dans le menu et il devrait être possible de démarrer dessus.</p></li></ul></div></div><div class="section" title="18.2. Utiliser un chargeur de démarrage GRUB2 existant"><div class="titlepage"><div><div><h3 class="title"><a id="usingExistingBootloaderGRUB2"><!----></a>18.2. Utiliser un chargeur de démarrage GRUB2 existant</h3></div></div></div><p><a id="setupBootloaderExpert-pa49a"><!----></a>Si vous n'avez pas encore lu l'aide générale sur l'utilisation d'un chargeur de démarrage existant, commencez par là : <a class="xref" href="setupBootloaderBeginner.html#usingExistingBootloader" title="17.2. Utilisation d'un chargeur de démarrage existant">Section 17.2, « Utilisation
d'un chargeur de démarrage existant »</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>Il y a un bogue connu dans OS-prober, utilisé lors de l'installation de GRUB2, dans d'anciennes versions de Debian/Ubuntu qui crée de façon incorrecte grue.cfg en ajoutant un système Mageia (ou Mandriva). C'est facile à contourner et les détails d'une solution peuvent être trouvés sur le forum Mageia (en anglais). Chercher "prober", le sujet est "grub problem", le message #9 contient l'information.</p><p><a id="setupBootloaderExpert-pa51"><!----></a>Pour rendre la solution permanente et qu'elle résiste à une mise à jour de noyau Ubuntu, ajouter une entrée Mageia au fichier <code class="literal">/etc/grub.d/40_custom</code></p><p><a id="setupBootloaderExpert-pa52"><!----></a>Dernière minute : le bogue est résolu dans la version du 8 mai 2012 os-prober-1.53 . Ainsi, la solution préférée est la mise à jour de la nouvelle version dans votre installation gérant GRUB2.</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">Précédent</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="misc-params.html">Suivant</a></td></tr><tr><td width="40%" align="left" valign="top"> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Sommaire</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>Sommaire</em></a></li><li><a href="#searchDiv"><em>Recherche</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, l'installateur de Mageia</a></span><ul><li><span class="file section"><a href="installer.html#installationSteps">Les étapes de
l'installation</a></span></li><li><span class="file section"><a href="installer.html#installationOptions">Options d'installation</a></span><ul><li><span class="file section"><a href="installer.html#installationProblems">Problèmes d'installation et
solutions possibles</a></span><ul><li><span class="file section"><a href="installer.html#noX">Pas d'interface graphique</a></span></li><li><span class="file section"><a href="installer.html#installFreezes">L'installation se fige</a></span></li><li><span class="file section"><a href="installer.html#kernelOptions">Options du noyau</a></span></li></ul></li></ul></li></ul></li><li><span class="file section"><a href="selectLanguage.html">Veuillez choisir la langue à
utiliser</a></span></li><li><span class="file section"><a href="acceptLicense.html">Licence et Notes de version</a></span><ul><li><span class="file section"><a href="acceptLicense.html#license">Accord de Licence</a></span></li><li><span class="file section"><a href="acceptLicense.html#releaseNotes">Notes de version</a></span></li></ul></li><li><span class="file section"><a href="setupSCSI.html">Configuration du SCSI</a></span></li><li><span class="file section"><a href="selectInstallClass.html">Installation ou Mise à jour</a></span></li><li><span class="file section"><a href="selectKeyboard.html">Clavier</a></span></li><li><span class="file section"><a href="doPartitionDisks.html">Partitionnement</a></span></li><li><span class="file section"><a href="resizeFATChoose.html">Redimensionner la partition
Windows® </a></span></li><li><span class="file section"><a href="takeOverHdChoose.html">Choisir le disque à effacer pour
recevoir Mageia</a></span></li><li><span class="file section"><a href="takeOverHdConfirm.html">Confirmer le disque dur à
formater</a></span></li><li><span class="file section"><a href="ask_mntpoint_s.html">Choix des points de montage</a></span></li><li><span class="file section"><a href="diskdrake.html">Partitionnement personnalisé du disque avec
DiskDrake</a></span></li><li><span class="file section"><a href="formatPartitions.html">Formatage</a></span></li><li><span class="file section"><a href="choosePackages.html">Choix des paquetages à
installer</a></span><ul><li><span class="file section"><a href="choosePackages.html#choose-graphical-env">Sélection du bureau</a></span></li><li><span class="file section"><a href="choosePackages.html#choosePackagesGroups">Sélection du groupe de
paquetages</a></span></li><li><span class="file section"><a href="choosePackages.html#minimal-install">Installation minimale</a></span></li><li><span class="file section"><a href="choosePackages.html#choosePackagesTree">Choisir individuellement des
paquetages</a></span></li><li><span class="file section"><a href="choosePackages.html#choosePackagesLinks">Choix des paquetages à installer
- Liens</a></span></li></ul></li><li><span class="file section"><a href="addUser.html">Gestion de l'Utilisateur et du
Superutilisateur</a></span><ul><li><span class="file section"><a href="addUser.html#root-password">Définir le mot de passe Administrateur
(Root) :</a></span></li><li><span class="file section"><a href="addUser.html#enterUser">Indiquer un Utilisateur</a></span></li><li><span class="file section"><a href="addUser.html#addUserAdvanced">Gestion avancée de
l'Utilisateur</a></span></li></ul></li><li><span class="file section"><a href="setupX.html">Configuration de X, de la carte graphique et du
moniteur</a></span></li><li><span class="file section"><a href="setupBootloaderBeginner.html">Principales options du
chargeur de démarrage</a></span><ul><li><span class="file section"><a href="setupBootloaderBeginner.html#usingMageiaBootloader">Utilisation du chargeur de
démarrage de Mageia</a></span></li><li><span class="file section"><a href="setupBootloaderBeginner.html#usingExistingBootloader">Utilisation
d'un chargeur de démarrage existant</a></span></li><li><span class="file section"><a href="setupBootloaderBeginner.html#advancedOptionBootloader">L'option
Avancé du chargeur de démarrage</a></span></li></ul></li><li id="webhelp-currentid"><span class="file section"><a href="setupBootloaderExpert.html">Utilisation avancée du chargeur de démarrage</a></span><ul><li><span class="file section"><a href="setupBootloaderExpert.html#addingGRUB2system">Ajouter manuellement un système basé sur GRUB2</a></span></li><li><span class="file section"><a href="setupBootloaderExpert.html#usingExistingBootloaderGRUB2">Utiliser un chargeur de démarrage GRUB2 existant</a></span></li></ul></li><li><span class="file section"><a href="misc-params.html">Résumé des différents paramètres</a></span><ul><li><span class="file section"><a href="misc-params.html#misc-params-system">Paramètres du système</a></span></li><li><span class="file section"><a href="misc-params.html#misc-params-hardware">Paramètres du matériel</a></span></li><li><span class="file section"><a href="misc-params.html#misc-params-network">Paramètres réseau et
internet</a></span></li><li><span class="file section"><a href="misc-params.html#misc-params-security">Sécurité</a></span></li><li><span class="file section"><a href="misc-params.html#drakxid-configureTimezoneGMT">Configurer le fuseau
horaire</a></span></li><li><span class="file section"><a href="misc-params.html#drakxid-selectCountry">Sélection du Pays /
Région</a></span><ul><li><span class="file section"><a href="misc-params.html#inputMethod">Méthode de saisie</a></span></li></ul></li><li><span class="file section"><a href="misc-params.html#drakxid-configureServices">Configurer les
Services</a></span></li><li><span class="file section"><a href="misc-params.html#draxid-miscellaneous">Niveau de Sécurité</a></span></li><li><span class="file section"><a href="misc-params.html#misc-paramsLinks">Résumé des différents paramètres -
Liens</a></span></li></ul></li><li><span class="file section"><a href="selectMouse.html">Sélection de la souris</a></span></li><li><span class="file section"><a href="installUpdates.html">Mises à jour</a></span></li><li><span class="file section"><a href="exitInstall.html">Félicitations</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>Recherche</legend><center><input id="textToSearch" name="textToSearch" type="text" class="searchText"/> <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>
|