Hd0,msdos1 read error

Bonjour,
je viens d'installer debian sur ma machine, tout s'installe correctement. Mais au redémarrage, j'ai cela :

GRUB loading
Welcom to GRUB
hd0,msdos1 read error
entering rescue mode...
grub rescue>

comment puis-je reconfigurer le grub a la main (j'ai une clef ubuntu live) afin de corriger ce problème?
merci.

4 réponses

  1. Contributeur
    Salut,

    Peux-tu nous afficher la table des partitions :
    /sbin/fdisk -l

    1
    1. le problème s'est résolu lorsque j'ai débranché le second disque dur, et reviens a chaque fois qu'il est branché.
      0
      1. et bien non en fait c'est aléatoire... ca marche ou ca marche pas
        0
        1. Disk /dev/sda: 80.0 GB, 80026361856 bytes
          255 heads, 63 sectors/track, 9729 cylinders
          Units = cylinders of 16065 * 512 = 8225280 bytes
          Sector size (logical/physical): 512 bytes / 512 bytes
          I/O size (minimum/optimal): 512 bytes / 512 bytes
          Disk identifier: 0x0006c805

          Device Boot Start End Blocks Id System
          /dev/sda1 * 1 1216 9764864 83 Linux
          /dev/sda2 1216 9730 68383745 5 Extended
          /dev/sda5 1216 1466 2002944 82 Linux swap / Solaris
          /dev/sda6 1466 9730 66379776 83 Linux
          0
          1. Contributeur
            Tu faisais mention d'un second disque ;-\
            Ou est-il ?

            Peux-tu aussi nous afficher le contenu de "grub" (/boot/grub/grub.cfg).
            0
          2. je remet a jour : au démarrage, tantôt je vois un "grub loadingread error" et tantôt j'ai :
            GRUB loading
            Welcom to GRUB
            hd0,msdos1 read error
            entering rescue mode...
            grub rescue>

            ces messages sont aléatoires (autant que le démarrage du serveur) mais le problème viens peut-être de l'âge avancé du disque dur.

            le second disque était débranché lorsque j'ai lacé le serveur,
            voilà le second :

            Disk /dev/sdb: 160.0 GB, 160041885696 bytes
            255 heads, 63 sectors/track, 19457 cylinders
            Units = cylinders of 16065 * 512 = 8225280 bytes
            Sector size (logical/physical): 512 bytes / 512 bytes
            I/O size (minimum/optimal): 512 bytes / 512 bytes
            Disk identifier: 0x1549f232

            Device Boot Start End Blocks Id System
            /dev/sdb1 17220 18494 10240000 82 Linux swap / Solaris
            /dev/sdb2 18495 19458 7736993 7 HPFS/NTFS
            /dev/sdb3 * 15868 17220 10854400 83 Linux
            /dev/sdb4 1 15868 127457280 83 Linux

            et grub.cfg :

            #
            # DO NOT EDIT THIS FILE
            #
            # It is automatically generated by grub-mkconfig using templates
            # from /etc/grub.d and settings from /etc/default/grub
            #

            ### BEGIN /etc/grub.d/00_header ###
            if [ -s $prefix/grubenv ]; then
            load_env
            fi
            set default="0"
            if [ "${prev_saved_entry}" ]; then
            set saved_entry="${prev_saved_entry}"
            save_env saved_entry
            set prev_saved_entry=
            save_env prev_saved_entry
            set boot_once=true
            fi

            function savedefault {
            if [ -z "${boot_once}" ]; then
            saved_entry="${chosen}"
            save_env saved_entry
            fi
            }

            function load_video {
            insmod vbe
            insmod vga
            insmod video_bochs
            insmod video_cirrus
            }

            insmod part_msdos
            insmod ext2
            set root='(hd0,msdos1)'
            search --no-floppy --fs-uuid --set 798942f1-d20a-467f-a66d-06eb4dac8231
            if loadfont /usr/share/grub/unicode.pf2 ; then
            set gfxmode=640x480
            load_video
            insmod gfxterm
            fi
            terminal_output gfxterm
            insmod part_msdos
            insmod ext2
            set root='(hd0,msdos1)'
            search --no-floppy --fs-uuid --set 798942f1-d20a-467f-a66d-06eb4dac8231
            set locale_dir=($root)/boot/grub/locale
            set lang=fr
            insmod gettext
            set timeout=5
            ### END /etc/grub.d/00_header ###

            ### BEGIN /etc/grub.d/05_debian_theme ###
            set menu_color_normal=cyan/blue
            set menu_color_highlight=white/blue
            ### END /etc/grub.d/05_debian_theme ###

            ### BEGIN /etc/grub.d/10_linux ###
            menuentry 'Debian GNU/Linux, avec Linux 2.6.32-5-686' --class debian --class gnu-linux --class gnu $
            insmod part_msdos
            insmod ext2
            set root='(hd0,msdos1)'
            search --no-floppy --fs-uuid --set 798942f1-d20a-467f-a66d-06eb4dac8231
            echo 'Chargement de Linux 2.6.32-5-686 ...'
            linux /boot/vmlinuz-2.6.32-5-686 root=UUID=798942f1-d20a-467f-a66d-06eb4dac8231 ro quiet
            echo 'Chargement du disque mémoire initial ...'
            initrd /boot/initrd.img-2.6.32-5-686
            }
            menuentry 'Debian GNU/Linux, avec Linux 2.6.32-5-686 (mode de dépannage)' --class debian --class gn$
            insmod part_msdos
            insmod ext2
            set root='(hd0,msdos1)'
            search --no-floppy --fs-uuid --set 798942f1-d20a-467f-a66d-06eb4dac8231
            echo 'Chargement de Linux 2.6.32-5-686 ...'
            linux /boot/vmlinuz-2.6.32-5-686 root=UUID=798942f1-d20a-467f-a66d-06eb4dac8231 ro single
            echo 'Chargement du disque mémoire initial ...'
            initrd /boot/initrd.img-2.6.32-5-686
            }
            ### END /etc/grub.d/10_linux ###

            ### BEGIN /etc/grub.d/20_linux_xen ###
            ### END /etc/grub.d/20_linux_xen ###

            ### BEGIN /etc/grub.d/30_os-prober ###
            ### END /etc/grub.d/30_os-prober ###

            ### BEGIN /etc/grub.d/40_custom ###
            # This file provides an easy way to add custom menu entries. Simply type the
            # menu entries you want to add after this comment. Be careful not to change
            # the 'exec tail' line above.
            ### END /etc/grub.d/40_custom ###
            ### BEGIN /etc/grub.d/41_custom ###
            if [ -f $prefix/custom.cfg ]; then
            source $prefix/custom.cfg;
            fi
            ### END /etc/grub.d/41_custom ###
            0