Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
3218 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Installation

  [résolu] réinstall de grub mais ca bloque :/

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[résolu] réinstall de grub mais ca bloque :/

n°759666
aspegic500​mg
Posté le 06-12-2005 à 09:42:47  profilanswer
 

J'explique ma situation:
 
Pour le système (débian sarge), j'ai un raid 1 logiciel de deux disques scsi, mais j'ai mon /boot sur une compact-flash sur adaptateur ide, vue comme un disque dur ide tout bète (une seule partition, hdc1)
J'ai voulu cloner cette compact-flash sur une autre depuis un live-cd, mais à force de chercher j'ai fais une fausse manip et j'ai formaté la mauvaise carte :sweat:  
J'ai pu récupérer tous les fichiers de la partition (/boot, /boot/grub/, etc...), mais le mbr était éffacé, donc bien sûr pas de démarrage possible.
J'ai repris le livecd (knoppix), après moult manip j'ai fais grub-install, il a apparement reussit, mais quand je tente de démarrer il me marque juste "GRUB" et attends :whistle: :cry:
J'avais déjà refait mon système depuis zéro, et maintenant que j'ai tout réinstallé ca m'embète de tout refaire :sleep:  
 
Une idée de ce que je pourrais faire ? (si vous avez besoin d'information, dites-moi ce qu'il vous faut ;) )


Message édité par aspegic500mg le 08-12-2005 à 12:39:13
mood
Publicité
Posté le 06-12-2005 à 09:42:47  profilanswer
 

n°759668
Zzozo
Modérateur
Un peu, passionément, à la fol
Posté le 06-12-2005 à 09:45:50  profilanswer
 

il a pas gueulé à l'install de Grub ? tout s'est bien passé ?


---------------
« Ce qui ne vous tue pas vous rend plus fort » F. Nietzsche | « Vise_ la Lune. Si tu rates, au pire, t'es dans la merde » Un poète disparu dans le cercle
n°759670
Zzozo
Modérateur
Un peu, passionément, à la fol
Posté le 06-12-2005 à 09:47:24  profilanswer
 

Le fichier de config de Grub existe bien (un truc genre /boot/grub/grub.conf ou /boot/grub/menu.lst )?


---------------
« Ce qui ne vous tue pas vous rend plus fort » F. Nietzsche | « Vise_ la Lune. Si tu rates, au pire, t'es dans la merde » Un poète disparu dans le cercle
n°759696
aspegic500​mg
Posté le 06-12-2005 à 11:25:52  profilanswer
 

Oui j'ai toujours menu.lst (par contre pas de grub.conf)
 
A l'installation il a mis un avertissement sur une erreur xfs, un truc pouvant être ignoré d'après lui (après recherches sur le net, rien d'important à priori)

n°759725
Zzozo
Modérateur
Un peu, passionément, à la fol
Posté le 06-12-2005 à 12:41:36  profilanswer
 

xfs ?  tu utilises quoi comme fs sur tes partitions ?


---------------
« Ce qui ne vous tue pas vous rend plus fort » F. Nietzsche | « Vise_ la Lune. Si tu rates, au pire, t'es dans la merde » Un poète disparu dans le cercle
n°759803
Profil sup​primé
Posté le 06-12-2005 à 16:43:37  answer
 

Grub, c'est bien trop compliqué pour moi, j'utilise LILO

n°759880
aspegic500​mg
Posté le 06-12-2005 à 19:06:12  profilanswer
 


 
Avec une netinstall de sarge c'est grub, avec woody c'est lilo, et puis grub offre quand même + de possibilités je pense :)
 
Mais là j'ai donc toujours mon problème, je vais réessayer ce soir, car ca commence à urger, j'ai un projet en cours pour le boulot sur ce serveur :sleep:


Message édité par aspegic500mg le 06-12-2005 à 19:06:44
n°759881
aspegic500​mg
Posté le 06-12-2005 à 19:15:14  profilanswer
 

Zzozo a écrit :

xfs ?  tu utilises quoi comme fs sur tes partitions ?


 
ext3 :)

n°759909
aspegic500​mg
Posté le 06-12-2005 à 19:55:50  profilanswer
 

Bon j'ai configuré le reseau sur la knoppix donc je peux c/c plus facilements des infos d'ici :)
 
L'erreur xfs, la voici:
 

Code :
  1. root@0[knoppix]# grub-install /dev/hdc
  2. Due to a bug in xfs_freeze, the following command might produce a segmentation
  3. fault when /boot/grub is not in an XFS filesystem. This error is harmless and
  4. can be ignored.
  5. xfs_freeze: specified file ["/boot/grub"] is not on an XFS filesystem
  6. Installation finished. No error reported.
  7. This is the contents of the device map /boot/grub/device.map.
  8. Check if this is correct or not. If any of the lines is incorrect,
  9. fix it and re-run the script `grub-install'.
  10. (hd0)   /dev/hdc
  11. (hd1)   /dev/sda
  12. (hd2)   /dev/sdb


 
 
J'ai ma compact-flash en hdc1, celle qui est mise en périphérique de boot, et sur laquelle j'ai réinstallé grub hier.
 
Accessoirement, en hda1 c'est un disque dur ide 40Go qui me sert de temporaire pour copier des trucs, on peut voir que sur lui il y'a la même chose sauf que les lien ne sont pas là (le fichier est copié physiquement), alors que sur la CF les liens ont l'air bons (system.map pointe sur le system.map du dernier noyau compilé, etc etc...)
 

Code :
  1. root@0[knoppix]# ll /mnt/hda1/
  2. total 18584
  3. -rw-r--r--  1 root root 1227998 Dec  4 15:11 System.map
  4. -rw-r--r--  1 root root 1227998 Dec  4 15:11 System.map-2.6.13.4
  5. -rw-r--r--  1 root root 1218002 Dec  4 15:11 System.map-2.6.13.4.old
  6. -rw-r--r--  1 root root  865733 Dec  4 15:11 System.map-2.6.8-2-386
  7. -rw-r--r--  1 root root   38493 Dec  4 15:11 config
  8. -rw-r--r--  1 root root   38493 Dec  4 15:11 config-2.6.13.4
  9. -rw-r--r--  1 root root   38355 Dec  4 15:11 config-2.6.13.4.old
  10. -rw-r--r--  1 root root   55809 Dec  4 15:11 config-2.6.8-2-386
  11. drwxr-xr-x  2 root root    4096 Dec  6 01:14 grub
  12. -rw-r--r--  1 root root 1290240 Dec  4 15:11 initrd-2.6.13.4.img
  13. -rw-r--r--  1 root root 4567040 Dec  4 15:11 initrd.img-2.6.8-2-386
  14. drwx------  2 root root   16384 Dec  4 14:29 lost+found
  15. -rw-r--r--  1 root root 2433947 Dec  4 15:11 vmlinuz
  16. -rw-r--r--  1 root root 2433947 Dec  4 15:11 vmlinuz-2.6.13.4
  17. -rw-r--r--  1 root root 2397800 Dec  4 15:11 vmlinuz-2.6.13.4.old
  18. -rw-r--r--  1 root root 1097419 Dec  4 15:11 vmlinuz-2.6.8-2-386
  19. root@0[knoppix]# ll /mnt/hdc1/
  20. total 14964
  21. lrwxrwxrwx  1 root root      19 Oct 17 08:07 System.map -> System.map-2.6.13.4
  22. -rw-r--r--  1 root root 1227998 Oct 17 09:25 System.map-2.6.13.4
  23. -rw-r--r--  1 root root 1218002 Oct 17 07:37 System.map-2.6.13.4.old
  24. -rw-r--r--  1 root root  865733 May 19  2005 System.map-2.6.8-2-386
  25. lrwxrwxrwx  1 root root      15 Oct 17 08:07 config -> config-2.6.13.4
  26. -rw-r--r--  1 root root   38493 Oct 17 09:25 config-2.6.13.4
  27. -rw-r--r--  1 root root   38355 Oct 17 07:37 config-2.6.13.4.old
  28. -rw-r--r--  1 root root   55809 May 19  2005 config-2.6.8-2-386
  29. drwxr-xr-x  2 root root    1024 Dec  6 01:15 grub
  30. -rw-r--r--  1 root root 1290240 Oct 17 09:26 initrd-2.6.13.4.img
  31. -rw-r--r--  1 root root 4567040 Oct 16 18:58 initrd.img-2.6.8-2-386
  32. drwxr-xr-x  2 root root   12288 Oct 16 18:33 lost+found
  33. lrwxrwxrwx  1 root root      16 Oct 17 08:07 vmlinuz -> vmlinuz-2.6.13.4
  34. -rw-r--r--  1 root root 2433947 Oct 17 09:24 vmlinuz-2.6.13.4
  35. -rw-r--r--  1 root root 2397800 Oct 17 07:37 vmlinuz-2.6.13.4.old
  36. -rw-r--r--  1 root root 1097419 May 19  2005 vmlinuz-2.6.8-2-386


 
 
Contenu du dossier grub:

Code :
  1. root@0[knoppix]# ll /mnt/hdc1/grub/
  2. total 168
  3. -rw-r--r--  1 root root     45 Oct 16 19:00 device.map
  4. -rw-r--r--  1 root root   7776 Dec  6 00:32 e2fs_stage1_5
  5. -rw-r--r--  1 root root   7504 Dec  6 00:32 fat_stage1_5
  6. -rw-r--r--  1 root root   8320 Dec  6 00:32 jfs_stage1_5
  7. -rw-r--r--  1 root root   3827 Oct 17 09:25 menu.lst
  8. -rw-r--r--  1 root root   3827 Oct 17 09:25 menu.lst~
  9. -rw-r--r--  1 root root   7008 Dec  6 00:32 minix_stage1_5
  10. -rw-r--r--  1 root root   9216 Dec  6 00:32 reiserfs_stage1_5
  11. -rw-r--r--  1 root root    512 Dec  6 00:32 stage1
  12. -rw-r--r--  1 root root 108168 Dec  6 00:32 stage2
  13. -rw-r--r--  1 root root   9288 Dec  6 00:32 xfs_stage1_5


 
Le menu.lst :

Code :
  1. root@0[knoppix]# cat /mnt/hdc1/grub/menu.lst
  2. # menu.lst - See: grub(8), info grub, update-grub(8)
  3. #            grub-install(8), grub-floppy(8),
  4. #            grub-md5-crypt, /usr/share/doc/grub
  5. #            and /usr/share/doc/grub-doc/.
  6. #J'ai enlevé tout le blabla d'exemples en commentaires
  7. ## ## End Default Options ##
  8. title           Debian GNU/Linux, kernel 2.6.13.4 Default
  9. root            (hd0,0)
  10. kernel          /vmlinuz root=/dev/md0 ro
  11. savedefault
  12. boot
  13. title           Debian GNU/Linux, kernel 2.6.13.4 Default (recovery mode)
  14. root            (hd0,0)
  15. kernel          /vmlinuz root=/dev/md0 ro single
  16. savedefault
  17. boot
  18. title           Debian GNU/Linux, kernel 2.6.13.4.old
  19. root            (hd0,0)
  20. kernel          /vmlinuz-2.6.13.4.old root=/dev/md0 ro
  21. savedefault
  22. boot
  23. title           Debian GNU/Linux, kernel 2.6.13.4.old (recovery mode)
  24. root            (hd0,0)
  25. kernel          /vmlinuz-2.6.13.4.old root=/dev/md0 ro single
  26. savedefault
  27. boot
  28. title           Debian GNU/Linux, kernel 2.6.13.4
  29. root            (hd0,0)
  30. kernel          /vmlinuz-2.6.13.4 root=/dev/md0 ro
  31. savedefault
  32. boot
  33. title           Debian GNU/Linux, kernel 2.6.13.4 (recovery mode)
  34. root            (hd0,0)
  35. kernel          /vmlinuz-2.6.13.4 root=/dev/md0 ro single
  36. savedefault
  37. boot
  38. title           Debian GNU/Linux, kernel 2.6.8-2-386
  39. root            (hd0,0)
  40. kernel          /vmlinuz-2.6.8-2-386 root=/dev/md0 ro
  41. initrd          /initrd.img-2.6.8-2-386
  42. savedefault
  43. boot
  44. title           Debian GNU/Linux, kernel 2.6.8-2-386 (recovery mode)
  45. root            (hd0,0)
  46. kernel          /vmlinuz-2.6.8-2-386 root=/dev/md0 ro single
  47. initrd          /initrd.img-2.6.8-2-386
  48. savedefault
  49. boot
  50. ### END DEBIAN AUTOMAGIC KERNELS LIST


 
 
Que me proposez-vous d'essayer :??:  
 
Merci d'avance pour vos aides qui seront fructueuses j'espère :jap:


Message édité par aspegic500mg le 06-12-2005 à 20:48:22
n°759926
aspegic500​mg
Posté le 06-12-2005 à 20:49:36  profilanswer
 

:bounce:

mood
Publicité
Posté le 06-12-2005 à 20:49:36  profilanswer
 

n°759979
aspegic500​mg
Posté le 07-12-2005 à 01:00:34  profilanswer
 

Avec le cd de debian j'ai + de chances ? (mode rescue, etc..., j'ai lu des choses là dessus mais j'ai ramené mon cd du boulot que ce soir :) )

n°760405
aspegic500​mg
Posté le 08-12-2005 à 12:40:41  profilanswer
 

Bon avec le cd debian impossible.
 
Avec une knoppix, ca fonctionnait pas parce que je ne montais que la partition /boot, en fait il fallait monter tout le système de fichier, donc reconstruire le raid 1 logiciel dans la knoppix, monter ca, chroot /mnt/debian, monter le /boot, grub-install /dev/hdc1, syncro du raid au reboot, fsck trouve des erreurs, répare, et ca remarche nickel :)
 
Merci la mailing-liste debian qui m'a mis sur la voie :o  :wahoo:


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  Installation

  [résolu] réinstall de grub mais ca bloque :/

 

Sujets relatifs
[RESOLU][Apache] Virtualhost - htaccess - partitions[resolu]Impossible d'installer drivers NVIDIA sous Mandriva05
[grub] redémarrage en mode console ?[resolu] Améliorer le contrôle d'une installation postfix
[Pb] commande pour imprimer un fichier Openoffice [Résolu][RESOLU]activer quotas
[résolu] Mandriva 2006 : module "pc speaker"[RESOLU]Vim: ^M
Résolu [Mandriva 2006] Probleme de SON (snd-hda-intel)supprimer grub
Plus de sujets relatifs à : [résolu] réinstall de grub mais ca bloque :/


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR