sauvegarde modif grub
guillaume Baffoin
guillaume.baffoin at ec-nantes.fr
Mer 17 Jan 14:07:47 UTC 2007
garage gaudens, réductions de tetes a écrit :
> Bonjour,
> Après réinstalation en 386, grub ne veut pas booter.
>
> en éditant grub j'ai la 1ère ligne comme suit :
> grub> (2,6) pour booter root en /dev/hdd5.
>
> à mon avis je dois avoir :
> grub> (2,5) car le 0=mbr, 1=hdd1,...et 5=hdd5?
> et hda=0, ..et hdd=2?
>
> Comment je sauvegarde ma réparation, ou la ligne modifiée, svp?
> a+
>
>
Bonjour,
La procédure suivante est a appliquer si le poste ne boot pas et l'écran
affiche seulement grub au démarrage.
Si grub est installé sur la partition hdd5 ton numéro de partition
devrait être hd3,5 (a=0,b=1,c=2,d=3)
Si ta partition /boot est sur la partition hdd5 la procédure serait la
suivante :
boot depuis le livecd.
sur une console
# sudo grub
grub>find /boot/grub/stage1 #ça doit afficher l'endroit ou est localiser grub donc dans ce cas précis (2,5) .
grub>root (hd3,5)
grub>setup (hd0) #Attention ça récrira sur la MBR du disque hd0
Il devrait suffire de redémarrer le poste pour prendre en compte la
modification.
Extrait de la doc : "find /boot/grub/stage1
This will prompt GRUB to display the location of the GRUB boot files.
For instance, GRUB might display (hd0,1) where hd0 represents the first
hard drive in the computer (either IDE or SCSI) and the ",1" represents
the partition where the /boot/grub/stage1 file is located. In this
example, the stage1 file is located on the second partition of the first
hard drive (where drive and partition numbering start at 0)
Bon courage.
--
Guillaume
Plus d'informations sur la liste de diffusion ubuntu-fr