Problème dans l'installation du Grub

Bonjour à tous,
Mon système “merde” !
Il y a maintenant un problème quand je boote. J’essaye de réparer, mais si cela ne marche pas, je réinstalle tout !!
Mon idée était de réinstaller le Grub.

root@sysresccd:~# update-grub Generating grub.cfg ... Cannot find list of partitions! (Try mounting /sys.) done
Merci.

salut,

que donne un

Salut,

[code]root@sysresccd:/# fdisk -l

Disk /dev/sda: 150.0 GB, 150039945216 bytes
255 heads, 63 sectors/track, 18241 cylinders, total 293046768 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006894c

Device Boot Start End Blocks Id System
/dev/sda1 2048 194559 96256 83 Linux
/dev/sda2 194560 8007679 3906560 82 Linux swap / Solaris
/dev/sda3 8009726 125197227 58593751 5 Extended
/dev/sda5 8009728 125197227 58593750 83 Linux

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000cd81b

Device Boot Start End Blocks Id System
/dev/sdb1 2048 488282111 244140032 83 Linux
root@sysresccd:/#
[/code]

[quote=“Fab83”]Bonjour à tous,
Mon système “merde” !
Il y a maintenant un problème quand je boote. J’essaye de réparer, mais si cela ne marche pas, je réinstalle tout !!
Mon idée était de réinstaller le Grub.

root@sysresccd:~# update-grub Generating grub.cfg ... Cannot find list of partitions! (Try mounting /sys.) done
Merci.[/quote]

Pour faire cela il faut chrooter sur le système installé. Le wiki pourrait t’aider :laughing: :laughing: :laughing:

bien tes partitions sont toujours là, c’est pas si grave, :wink: trouve toi un live cd, et regarde ce lien

isalo.org/wiki.debian-fr/ind … ller_Grub2

Bonsoir,

C’est ce que j’ai fait. Je crois savoir chrooter mon système, c’est pourquoi je ne comprends pas ce qui n’a pas fonctionné.

[quote=“terix”]bien tes partitions sont toujours là, c’est pas si grave, :wink: trouve toi un live cd, et regarde ce lien

isalo.org/wiki.debian-fr/ind … ller_Grub2[/quote]
J’ai chrooté à partir d’un live cd Gentoo.

root@sysresccd /root % mkdir /mnt/debian root@sysresccd /root % mount /dev/sda5 /mnt/debian root@sysresccd /root % mount /dev/sda1 /mnt/debian/boot root@sysresccd /root % mount --bind /dev /mnt/debian/dev root@sysresccd /root % mount -t proc /proc /mnt/debian/proc root@sysresccd /root % chroot /mnt/debian /bin/bash root@sysresccd:/# update-grub Generating grub.cfg ... Cannot find list of partitions! (Try mounting /sys.) done root@sysresccd:/#

tu as essayer les commandes qui suivent dans le tuto ? # grub-install /dev/hda …etc

root@sysresccd:~# apt-get install grub-common grub-pc Reading package lists... Done Building dependency tree Reading state information... Done grub-common is already the newest version. grub-common set to manually installed. grub-pc is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@sysresccd:~# update-grub Generating grub.cfg ... Cannot find list of partitions! (Try mounting /sys.) done root@sysresccd:~# grub-install /dev/sda Installation finished. No error reported. root@sysresccd:~# cd /boot root@sysresccd:/boot# ls -l total 6 drwxr-xr-x 3 root root 5120 Jul 4 23:07 grub drwx------ 2 root root 1024 Jul 4 14:51 lost+found root@sysresccd:/boot#
Les images ne sont pas dans le répertoire /boot !

[code]#update-grub[/code]

J'espère que ça va te sortir de là, j'arrive au bout de mes compétences en la matière.
Mais certainement quelqu'un d'autre..... je cherche de mon coté.

J’espère que ça va te sortir de là, j’arrive au bout de mes compétences en la matière.
Mais certainement quelqu’un d’autre… je cherche de mon coté.

root@sysresccd:~# os-prober Cannot find list of partitions! (Try mounting /sys.)

je suis désolé, mais je ne voie pas, quelquun d’autre va passer par là…courage

Salut,

[quote]root@sysresccd /root % mount -t proc /proc /mnt/debian/proc
root@sysresccd /root % chroot /mnt/debian /bin/bash
root@sysresccd:/# update-grub
[/quote]

Si le chroot fonctionnait, ne devrait-il pas changer de système ?
Pas sûr de mon coup mais il me semble :slightly_smiling:

Bonjour,
Si le chroot ne fonctionnait pas, comment expliques-tu que j’acccède à tous les fichiers de configuration de mon système ?
J’ai fait une dernière tentative en faisant d’abord ceci :

root@sysresccd /root % mount -o bind /sys /mnt/debian/sys root@sysresccd /root % chroot /mnt/debian /bin/bash
Puis, j’ai purgé grub-pc, grub-common, linux-headers et linux-image. J’ai tout réinstallé :

root@sysresccd:~# update-grub Generating grub.cfg ... Found linux image: /boot/vmlinuz-2.6.39-2-amd64 Found initrd image: /boot/initrd.img-2.6.39-2-amd64 done root@sysresccd:~# cd /boot/ root@sysresccd:/boot# ls -l total 14167 -rw-r--r-- 1 root root 1886975 Jun 8 13:07 System.map-2.6.39-2-amd64 -rw-r--r-- 1 root root 124738 Jun 8 13:07 config-2.6.39-2-amd64 drwxr-xr-x 3 root root 5120 Jul 5 11:21 grub -rw-r--r-- 1 root root 9735048 Jul 5 11:21 initrd.img-2.6.39-2-amd64 drwx------ 2 root root 1024 Jul 4 14:51 lost+found -rw-r--r-- 1 root root 2690256 Jun 8 13:06 vmlinuz-2.6.39-2-amd64 root@sysresccd:/boot#
Je vais booter sur mon système, et je croise les doigts…