Re: grub

Page principale

Répondre à ce message
Auteur: Olivier Allard-Jacquin
Date:  
À: guilde
Sujet: Re: grub
    Bonjour,

Patrick Dupre a écrit :
>>> Comment est-ce que vous comprenez ce comportement ?
>>> J'ai 2 systemes identiques sur 2 disques differents:
>>>
>>> Je peux booter ainsi:
>>>          root (hd0,7)
>>>          kernel /boot/vmlinuz-2.6.23.17-88.fc7 ro root=/dev/sda8 rhgb
>>> quiet
>>> selinux=0
>>>          initrd /boot/initrd-2.6.23.17-88.fc7.img

>>>
>>> Mais pas ainsi (Error 2: Bad file or directory type)
>>>          root (hd1,4)
>>>          kernel /boot/vmlinuz-2.6.23.17-88.fc7 ro root=/dev/sdb5 rhgb
>>> quiet
>>> selinux=0
>>>          initrd /boot/initrd-2.6.23.17-88.fc7.img

>>>
>>>
>>> Cependant je peux booter ainsi:
>>>          root (hd0,7)
>>>          kernel /boot/vmlinuz-2.6.23.17-88.fc7 ro root=/dev/sdb5 rhgb
>>> quiet
>>> selinux=0
>>>          initrd /boot/initrd-2.6.23.17-88.fc7.img

>>>
>>
>> juste pour voir, est-ce que tu peux afficher ceci :
>> prompt> cat /boot/grub/device.map
> Good point,
>
> (hd0)     /dev/sda


    Rajoute au /boot/grub/device.map :
(hd1)     /dev/sdb


afin que tu ais ceci ;

# cat /boot/grub/device.map
(hd0)     /dev/sda
(hd1)     /dev/sdb



> Il semble que hd1 soit manquant.
>
> Si je le rajoute,
> grun-install me donne une erreur:
> grub-install --root-directory=/boot /dev/sda
> The file /boot/boot/grub/stage1 not read correctly.
>
> IL semblerait que je devrais faire un update-grub
>
> mais je n'ai pas acces a cette commande (elle n'existe pas chez moi).
>
> d'autre part, si je fais grub, puis:
> root (hd1,4)
>
> cela me donne:
> Filesystem type is ext2fs, partition type 0x83
>
> mais setup (hd0)
> donne:
> Checking if "/boot/grub/stage1" exists... no
> Checking if "/grub/stage1" exists... no
>
> Error 2: Bad file or directory type
>
>
> alors que: find /boot/grub/stage1
> donne (hd0,7),


    Les 2 commandes disent la même chose : Le /boot/grub de /dev/sdb5 ne
contiennent pas les fichiers "stage*". Je pense que c'est la faute du
device.map qui est faux. Fais la modification indiqué ci-dessus, et
reboote la machine en sélectionnant le Linux de /dev/sdb5


    Si cela ne marche pas, recopie les fichiers de grub du /boot/grub
(device.map, *stage*) de /dev/sda8 dans le /boot/grub de /dev/sdb5


    Cordialement,


                    Olivier
-- 
~~~~~~~  _____/\_____  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Phoenix /   _ \/ _   \    Olivier Allard-Jacquin
       /   / \  / \   \   Web:  http://olivieraj.free.fr/
      /___/  /  \  \___\  Mail: olivieraj@???
~~~~ /////  ///\\\  \\\\\ ~~~~~~~~~~~~~~~~~~~~~~~ Linux Powered !!