This file is shared

MainSite

Wiki

Bugs

Download

Translations

Réinstaller GRUB

Il se peut que GRUB se fasse écraser lors de l'installation (la réinstallation) de certains systèmes d'exploitation... Pour régler le souci, lancer le live-CD de gNewSense et, une fois arrivé sur le bureau, ouvrir une console et écrire :

$ sudo mkdir /media/hda5
$ sudo mount /dev/hda5 /media/hda5 

Commentaire : si votre système GNU/Linux est situé sur une autre partition (par exemple /dev/hda1), indiquez celle-ci.

$ sudo chroot /media/hda5

Commentaire : la commande chroot sert à placer le répertoire qui suit la commande (ici, /media/hda5) à la racine /.

# grub-install /dev/hda

Commentaire : en utilisant le live-CD de gNewSense 1.0, il se peut que vous obteniez le message d'erreur suivant :

Due to a bug in xfs_freeze, the following command might produce a segmentation
fault when /boot/grub is not in an XFS filesystem. This error is harmless and
can be ignored.
xfs_freeze: specified file ["/boot/grub"] is not on an XFS filesystem
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(hd0)   /dev/hda
#

Comme il est indiqué, cette erreur est sans importance et peut être ignorée.

# exit
exit
$ sudo umount /media/hda5
$ exit 

Redémarrer l'ordinateur (sans le CD cette fois-ci), et c'est bon !

Edit - History - Print - Recent Changes - Search
Page last modified on March 07, 2008, at 01:52 AM
Content is licensed under the GFDL (without invariant sections).
This project is run with the assistance of the FSF.