Date de publication: le jeudi 26 mai 2011 à 13h09
Dernière modification: par Pascal BOYER le jeudi 26 mai 2011 à 19h58
« Article précédent: nvidia : compiler et installer le driver nvidia
» Article suivant: MySQL : installer un serveur
Table des matières
- Grub 2 : configuration et installation du boot loader sous Debian
- Grub 2: installer et démarrer une image avec initrd
Présentation générale du boot loader GRUB 2
Briefly, a boot loader is the first software program that runs when a computer starts. It is responsible for loading and transferring control to an operating system kernel software (such as Linux or GNU Mach). The kernel, in turn, initializes the rest of the operating system (e.g. a GNU system).
Brièvement, le boot loader (chargeur d'amorçage en français) est le premier logiciel à être exécuté lors du démarrage d'un ordinateur. Il a pour mission de charger puis de transférer le contrôle au noyau du système d'exploitation (tel que Linux ou GNU Mach). Le noyau initialise alors à son tour le reste du système d'exploitation (un système GNU par exemple).
GNU GRUB is a very powerful boot loader, which can load a wide variety of free operating systems, as well as proprietary operating systems with chain-loading. GRUB is designed to address the complexity of booting a personal computer; both the program and this manual are tightly bound to that computer platform, although porting to other platforms may be addressed in the future.
GNU GRUB est un puissant boot loader capable de charger une très grande variété de systèmes d'exploitation libres mais également propriétaires par le biais du chain-loading/démarrage enchaîné (
1
). GRUB est conçu pour répondre à la complexité de la phase de démarrage d'un PC: ce logiciel ainsi que ce manuel sont étroitement liés à la plate-forme PC même si le portage de GRUB vers d'autres plates-formes peut être envisagé à l'avenir.
One of the important features in GRUB is flexibility; GRUB understands filesystems and kernel executable formats, so you can load an arbitrary operating system the way you like, without recording the physical position of your kernel on the disk. Thus you can load the kernel just by specifying its file name and the drive and partition where the kernel resides.
La flexibilité constitue l'une des fonctionnalités importantes de GRUB: ce dernier prend en charge les systèmes de fichiers et les noyaux exécutables afin que vous puissiez charger, comme vous le souhaitez, n'importe quel système d'exploitation sans devoir enregistrer la position physique, sur le disque dur, de votre noyau. Vous pouvez donc charger un noyau en spécifiant simplement son nom et le disque et la partition où il réside.
When booting with GRUB, you can use either a command-line interface (see Command-line interface), or a menu interface (see Menu interface). Using the command-line interface, you type the drive specification and file name of the kernel manually. In the menu interface, you just select an OS using the arrow keys. The menu is based on a configuration file which you prepare beforehand (see Configuration). While in the menu, you can switch to the command-line mode, and vice-versa. You can even edit menu entries before using them.
Lorsque vous démarrez avec GRUB, vous pouvez soit utiliser l'interface en ligne de commande (voir
Command-line interface
), soit un menu (voir
Menu interface
). Dans le premier cas, vous spécifiez manuellement le disque et le nom du fichier noyau. Dans le second cas, vous sélectionnez simplement, à l'aide des flèches de votre clavier, un système d'exploitation. Le menu est basé sur un fichier de configuration que vous aurez préalablement préparé (voir
Configuration
). Une fois dans le menu, vous pouvez basculer vers le mode en ligne de commande et vice versa. Vous pouvez même éditer les entrées du menu avant de les utiliser.
(1): chain-load is the mechanism for loading unsupported operating systems by loading another boot loader. It is typically used for loading DOS or Windows.
(1): chain-load est le mécanisme permettant de charger des systèmes d'exploitation non supportés en chargeant un autre boot loader/chargeur d'amorçage. Ce mécanisme est tout particulièrement utilisé pour charger DOS ou Windows.
Commentaires














