Differences between revisions 1 and 2
Revision 1 as of 2010-05-09 17:17:19
Size: 5227
Editor: ?AdrienJeser
Comment: Copie de la version original
Revision 2 as of 2010-05-09 18:12:09
Size: 4269
Editor: ?AdrienJeser
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
GRUB is the GRand Unified Bootloader, a very powerful newish BootLoader that can be used to boot most operating system on the intel platforms. GRUB (GRand Unified Bootloader) est un puissant chargeur d'amorçage qui sais démarré sur de nombreux système d'exploitation sur les systèmes x86 et amd64.
Line 7: Line 7:
Debian provides both grub v1 and v2 (more on Debian DebianWiki:BootLoader ).
 * Grub v1 is the main <<FootNote(Grub is the ''main'' default bootloader on x86... But some other bootloaders are installed by default in some scenario that aren't supported by Grub v1.)>> default bootloader on x86 platforms (up-to DebianLenny[?] ).
 * Grub v2 is provided since DebianWiki:DebianLenny. It should be the default bootloader in the forthcomming DebianWiki:DebianSqueeze.
Il existe deux version de Grub (en savoir plus sur Debian DebianWiki:fr/BootLoader ).
 * Grub legacy est le principal <<FootNote(Grub est le principal chargeur d'amorçage sur x86... La plus part des autre chargeur d'amorçage sont installer par défaut quand grub n'est pas supporter)>> chargeur d'amorçage par défaut avant Debian Lenny.
 * Grub v2 remplace par défaut grub legacy a partir de Debain Squeeze
Line 14: Line 14:
== Installing Grub ==
=== Up to Debian Lenny ===
Grub v1 for Debian (package [[DebianPkg:lenny/grub|grub]]) can be installed with:
== Installer Grub ==
=== Avant Squeeze ===
Pour installer Grub legacy(package [[DebianPkg:lenny/grub|grub]]):
Line 20: Line 20:
To install grub v2, you need install the appropriate variant of grub v2, depending on your system's firmware (usually [[DebianPkg:lenny/grub-pc|grub-pc]], see [[DebianPkg:source/lenny/grub2|grub2 variants]]).
Line 22: Line 21:
See Also
 * GRUB Configuration: GrubConfiguration
 * Recover GRUB: GrubRecover
 * [[http://www.gnu.org/software/grub/manual/html_node/|GRUB manual]]
 * From LILO to GRUB: FromLiloToGrub
Si votre système n'est pas un PC (exemple: si votre système a EFI ou OpenFirmware), vous devez installer une autre version de Grub (voir [[DebianPkg:source/squeeze/grub|grub 2 variants]]).

Voir aussi
 * Configuration de GRUB: GrubConfiguration ''(en anglais)''
 * Récupération de GRUB: GrubRecover
 * [[http://www.gnu.org/software/grub/manual/html_node/|GRUB manual]] ''(en anglais)''
 * Passer de LILO a GRUB: FromLiloToGrub
Line 29: Line 30:
=== Debian Squeeze and later ===
Grub "v2" for Debian (package [[DebianPkg:squeeze/grub|grub]]) can be installed with:
=== Debian Squeeze et après ===
Pour installer Grub2 (package [[DebianPkg:squeeze/grub|grub]]):
Line 34: Line 35:
If your system isn't a regular ''PC'' (i.e if your system has EFI or !OpenFirmware rather than a BIOS), you may have to install another version of grub (see [[DebianPkg:source/squeeze/grub|grub 2 variants]]). Si votre système n'est pas un PC (exemple: si votre système a EFI ou OpenFirmware), vous devez installer une autre version de Grub (voir [[DebianPkg:source/squeeze/grub|grub 2 variants]]).
Line 37: Line 38:
== Configuring Grub == == Configuration ==
Line 39: Line 40:
=== Configuring grub v1 === === Grub Legacy ===
Line 41: Line 42:
The configuration file is {{{/boot/grub/menu.lst}}} Le fichier de configuration se trouve dans {{{/boot/grub/menu.lst}}}
Line 44: Line 45:
Under Debian, the grub configuration file is updated automatically, when you install a new kernel. This is done automatically by {{{update-grub}}}. Debian met à jour automatique la configuration de Grub, quand un nouveau noyau est installer. Vous pouvez forcé la mise à jour automatique par {{{update-grub}}}.
Line 46: Line 47:
You can edit the settings in {{{/boot/grub/menu.lst}}}. Make sure you read the comments, {{{/usr/share/doc/grub/README.Debian.gz}}} for more information and the [[http://manpages.debian.net/cgi-bin/man.cgi?query=update-grub&apropos=0&sektion=0&manpath=Debian+4.0+etch&format=html&locale=en|update-grub(8)]] manpage from your distribution) Il se peut que Debian, n'arrive pas a détecté automatique tout vos noyaux ou que vous avez besoin de paramètre spécifique. Alors, vous devez éditer manuellement le fichier {{{/boot/grub/menu.lst}}}. Pour plus d'information, {{{/usr/share/doc/grub/README.Debian.gz}}} et la page man [[http://manpages.debian.net/cgi-bin/man.cgi?query=update-grub&apropos=0&sektion=0&manpath=Debian+4.0+etch&format=html&locale=en|update-grub(8)]] ou la commande ''man grub'')
Line 48: Line 49:
=== Configuring grub v2 === === Configurer Grub2 ===
Line 50: Line 51:
The configuration file is {{{/boot/grub/grub.cfg}}}, but you shouldn't edit it directly. This file is generated by grub v2's [[http://manpages.debian.net/cgi-bin/man.cgi?query=update-grub&apropos=0&sektion=0&manpath=sid&format=html&locale=en|update-grub(8)]], based on:
 1. The script snippets in {{{/etc/grub.d/}}}
 2. The configuration file {{{/etc/default/grub}}}
Le fichier de configuration est {{{/boot/grub/grub.cfg}}}, mais il est déconseillé de l'éditer manuellement. This file is generated by grub v2's [[http://manpages.debian.net/cgi-bin/man.cgi?query=update-grub&apropos=0&sektion=0&manpath=sid&format=html&locale=en|update-grub(8)]], based on:
 1. Les scripts dans {{{/etc/grub.d/}}}
 2. Le fichier de configuration {{{/etc/default/grub}}}
Line 54: Line 55:
To configure grub "v2", you should edit {{{/etc/default/grub}}}, then run {{{update-grub}}}. Advanced configuration are achieved by modifying the snippets in {{{/etc/grub.d/}}}. Pour configure éditer {{{/etc/default/grub}}}, et démarrer {{{update-grub}}}. Pour une configuration plus avancé modifier les scripts dans {{{/etc/grub.d/}}}.
Line 56: Line 57:
=== Upgrading from v1 to v2 ===
To upgrade to grub v2, you should:
 1. Install grub v2 (but don't remove the grub 1 yet).
 2. Follow the instruction displayed the package installation (i.e grub v1 now has an entry to cascade to grub v2, so reboot and __try__ __it__, then you can actually enable grub2 bootloader by running {{{upgrade-from-grub-legacy}}}).


== Transition from v1 to v2 ==
 * [[GrubTransition|Grub Transition]] page.
=== Passer de Grub Legacy a Grub2 ===
Pour passera Grub2, vous devez:
 1. Installer grub2 (voir le chapitre au dessus).
 2. Suivez les instructions lors de l'installation
Line 66: Line 63:
  Q: Quand je met en hibernation Linux et démarre sur un autre système d'exploitation (comme Windows XP). L'hibernation de Linux est telle perturbé?
Line 67: Line 66:
=== Dual Boot ===
 Q : Will GRUB allow me to hibernate Linux and activate another [[operating_system]]s (such as Windows XP) that I hibernated earlier, i.e. a DualHibernate rather than a DualBoot?
  A : Nothing will prevent you to hibernating (GRUB isn't aware that your host is suspended). Howerever, ''make sure you don't mount'' the same partition (RW) under any two suspended OS !
A: Non, vous conserver l'hibernation. A condition que la partition Swap de Linux ne sois monté.
Line 71: Line 68:

 Q : Is there a way to install GRUB in the MasterBootRecord from DOS or Windows XP, i.e. a utility similar to rawrite.exe or fdisk.exe that write a GRUB MBR? What I want here is to install Linux without having a bootable floppy.
  A : There is/was a win32 Version of GRUB, i used it to install linux from Windows 2000 , but i am not sure what exactly the source is ;-) (google for grubwin32)

  Just unzip grubwin32 to c:\ then run c:\boot\grub\w32grub This would patch the necessary files(under XP, not linux). Then add :

  {{{
 c:\boot\stage1="GRUB"
}}}
  to c:\boot.ini

  And you now have a grub boot loader on your XP system.

== See Also ==
== Voir aussi ==

BootLoader > GRUB


GRUB (GRand Unified Bootloader) est un puissant chargeur d'amorçage qui sais démarré sur de nombreux système d'exploitation sur les systèmes x86 et amd64.

Il existe deux version de Grub (en savoir plus sur Debian fr/BootLoader ).

  • Grub legacy est le principal 1 chargeur d'amorçage par défaut avant Debian Lenny.

  • Grub v2 remplace par défaut grub legacy a partir de Debain Squeeze

Installer Grub

Avant Squeeze

Pour installer Grub legacy(package grub):

  • apt-get install grub

Si votre système n'est pas un PC (exemple: si votre système a EFI ou OpenFirmware), vous devez installer une autre version de Grub (voir grub 2 variants).

Voir aussi

Debian Squeeze et après

Pour installer Grub2 (package grub):

  • apt-get install grub

Si votre système n'est pas un PC (exemple: si votre système a EFI ou OpenFirmware), vous devez installer une autre version de Grub (voir grub 2 variants).

Configuration

Grub Legacy

Le fichier de configuration se trouve dans /boot/grub/menu.lst

Debian met à jour automatique la configuration de Grub, quand un nouveau noyau est installer. Vous pouvez forcé la mise à jour automatique par update-grub.

Il se peut que Debian, n'arrive pas a détecté automatique tout vos noyaux ou que vous avez besoin de paramètre spécifique. Alors, vous devez éditer manuellement le fichier /boot/grub/menu.lst. Pour plus d'information, /usr/share/doc/grub/README.Debian.gz et la page man update-grub(8) ou la commande man grub)

Configurer Grub2

Le fichier de configuration est /boot/grub/grub.cfg, mais il est déconseillé de l'éditer manuellement. This file is generated by grub v2's update-grub(8), based on:

  1. Les scripts dans /etc/grub.d/

  2. Le fichier de configuration /etc/default/grub

Pour configure éditer /etc/default/grub, et démarrer update-grub. Pour une configuration plus avancé modifier les scripts dans /etc/grub.d/.

Passer de Grub Legacy a Grub2

Pour passera Grub2, vous devez:

  1. Installer grub2 (voir le chapitre au dessus).
  2. Suivez les instructions lors de l'installation

FAQ

Q: Quand je met en hibernation Linux et démarre sur un autre système d'exploitation (comme Windows XP). L'hibernation de Linux est telle perturbé?

A: Non, vous conserver l'hibernation. A condition que la partition Swap de Linux ne sois monté.

Voir aussi

  1. Grub est le principal chargeur d'amorçage sur x86... La plus part des autre chargeur d'amorçage sont installer par défaut quand grub n'est pas supporter (1)