[Kubuntu] Probleme partition de boot

Bonjour,

J'utilise la dernier version de kubuntu que je viens a peine d'installer et j'ai un petit probléme au boot.

Toute l'installation s'est tres bien derouler et kubuntu marche impec.
Seul petit bemol on dirait que la partition ou kubuntu a ete installer n'es pas monter en boot.
Je m'explique lorsque j'allume mon pc il ne boot pas comme si il n'y avait pas d'os installer.
Par contre si je met le cd de kubuntu il boot sur le cd je prend ensuite l'option demarer a partir du disque dur et la sa marche nikel.

je voulais donc juste savoir comment monter en boot une partition merci.
Configuration: Linux
Konqueror 3.5

27 réponses

Résumé de la discussion

Un utilisateur rencontre un problème de boot après installation de Kubuntu : le système ne démarre pas sur le disque dur, alors que le CD permet de démarrer depuis le disque. Plusieurs réponses suggèrent de modifier grub dans /boot/grub/menu.lst avec kedit ou sed, afin de fixer la partition et d'afficher le menu en cas de besoin. D'autres conseils portent sur l'ordre de démarrage du BIOS et sur la vérification des noms de périphériques (par ex. /dev/hda1) avec fdisk pour que le chargeur pointe sur la bonne partition. En complément utile, la discussion souligne que le choix du disque de démarrage peut dépendre du BIOS et que des ajustements simples du fichier grub peuvent suffire selon le matériel.

Bobot (l’IA à votre service)
  1. Contributeur
    Bonsoir,

    Dans une console, en root tape :
    kedit /boot/grub/menu.lst
    et copie-colle le résultat ici.

    ou si cela ne donne rien, tape :
    ls -l /boot(C'est un L minuscule après le tiret)
    et copie-colle le résultat.

    A+, cede.
    0
    1. Salut,

      Merci pour l'aide.

      Voici le résultat:

      root@MonPC:/home/nico# ls -l /boot
      total 8816
      -rw-r--r-- 1 root root 282323 2006-12-05 22:21 abi-2.6.17-10-generic
      -rw-r--r-- 1 root root 67417 2006-12-05 21:37 config-2.6.17-10-generic
      drwxr-xr-x 2 root root 4096 2007-01-13 17:00 grub
      -rw-r--r-- 1 root root 5843838 2007-01-13 17:00 initrd.img-2.6.17-10-generic
      -rw-r--r-- 1 root root 94600 2006-10-20 13:49 memtest86+.bin
      -rw-r--r-- 1 root root 942801 2006-12-05 22:21 System.map-2.6.17-10-generic
      -rw-r--r-- 1 root root 1745711 2006-12-05 22:21 vmlinuz-2.6.17-10-generic
      0
      1. Contributeur
        Re-

        et l'autre commande ?
        kedit /boot/grub/menu.lst

        A+, cede.
        0
        1. Elle ne fonctionne pas :s
          0
          1. A non je viens de reussir desole c'ete le kedit qui fonctionnait pas voici la reponse de la premiere commande:

            root@MonPC:/home/nico# ls -s /boot/grub/menu.lst
            4 /boot/grub/menu.lst
            root@MonPC:/home/nico#
            0
            1. Contributeur
              Re-

              Logue toi en root :
              su -(su espace tiret)
              ton_mot_de_passe
              kedit /boot/grub/menu.lst
              et affiche ici le résultat.

              A+, cede.
              0
              1. Comme je t'ai dit kedit ne fonctionne pas:

                nico@MonPC:~$ su -
                Password:
                root@MonPC:~# kedit /boot/grub/menu.lst
                -su: kedit : commande introuvable
                root@MonPC:~#
                0
                1. Contributeur
                  Re-

                  Tu as bien qq chose pour éditer les fichiers ??
                  Essaie :
                  vi /boot/grub/menu.lst

                  ou alors tu installes kedit avec synaptic

                  A+, cede.
                  0
                  1. Oki j'ai editer avec vi ces un peu long par contre:

                    menu.lst - See: grub(8), info grub, update-grub(8)
                    # grub-install(8), grub-floppy(8),
                    # grub-md5-crypt, /usr/share/doc/grub
                    # and /usr/share/doc/grub-doc/.

                    ## default num
                    # Set the default entry to the entry number NUM. Numbering starts from 0, and
                    # the entry number 0 is the default if the command is not used.
                    #
                    # You can specify 'saved' instead of a number. In this case, the default entry
                    # is the entry saved with the command 'savedefault'.
                    # WARNING: If you are using dmraid do not change this entry to 'saved' or your
                    # array will desync and will not let you boot your system.
                    default 0

                    ## timeout sec
                    # Set a timeout, in SEC seconds, before automatically booting the default entry
                    # (normally the first entry defined).
                    timeout 3

                    ## hiddenmenu
                    # Hides the menu by default (press ESC to see the menu)
                    hiddenmenu

                    # Pretty colours
                    #color cyan/blue white/blue

                    ## password ['--md5'] passwd
                    # If used in the first section of a menu file, disable all interactive editing
                    # control (menu entry editor and command-line) and entries protected by the
                    # command 'lock'
                    # e.g. password topsecret
                    # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
                    # password topsecret

                    #
                    # examples
                    #
                    # title Windows 95/98/NT/2000
                    # root (hd0,0)
                    # makeactive
                    # chainloader +1
                    #
                    # title Linux
                    # root (hd0,1)
                    # kernel /vmlinuz root=/dev/hda2 ro
                    #

                    #
                    # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

                    ### BEGIN AUTOMAGIC KERNELS LIST
                    ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
                    ## by the debian update-grub script except for the default options below

                    ## DO NOT UNCOMMENT THEM, Just edit them to your needs

                    ## ## Start Default Options ##
                    ## default kernel options
                    0
                    1. Modérateur
                      Affiche plutôt en utilisant la commande (donc on n'affiche pas les commentaires)
                      grep -E '^[^#]' /boot/grub/menu.lst
                      pour edition avec vi on verra après :-))
                      0
                      1. Contributeur
                        Re-

                        En root, tu peux installer kedit (avec sudo je crois)
                        apt-get install kedit

                        et

                        kedit /boot/grub/menu.lst
                        et affiche ici le résultat.

                        A+, cede.
                        0
                        1. J'ai telecharger kedit au cas ou mais avec le grep ces plus lisible je mettrait le resultat avec kedit si ces necessaire.
                          Voici avec le grep:

                          root@MonPC:/home/nico# grep -E '^[^#]' /boot/grub/menu.lst
                          default 0
                          timeout 3
                          hiddenmenu
                          title Ubuntu, kernel 2.6.17-10-generic
                          root (hd0,0)
                          kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda1 ro quiet splash l ocale=fr_FR
                          initrd /boot/initrd.img-2.6.17-10-generic
                          quiet
                          savedefault
                          boot
                          title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
                          root (hd0,0)
                          kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda1 ro single
                          initrd /boot/initrd.img-2.6.17-10-generic
                          boot
                          title Ubuntu, memtest86+
                          root (hd0,0)
                          kernel /boot/memtest86+.bin
                          quiet
                          boot
                          root@MonPC:/home/nico#
                          0
                          1. Contributeur
                            Re-

                            Affiche le résultat avec kedit,
                            et en root déjà je pense que tu pourras commenter la ligne hiddenmenu
                            en y ajoutant devant un #
                            ça te donnera ceci :
                            #hiddenmenu
                            et ensuite tu enregistreras le fichier.

                            A+, cede.
                            0
                            1. Modérateur
                              Edition en ligne de commande
                              sed -i.orig 's/hiddenmenu/#hiddenmenu/' /boot/grub/menu.lst
                              et redémarre
                              0
                              1. Voici donc le resultat avec kedit:

                                # menu.lst - See: grub(8), info grub, update-grub(8)
                                # grub-install(8), grub-floppy(8),
                                # grub-md5-crypt, /usr/share/doc/grub
                                # and /usr/share/doc/grub-doc/.

                                ## default num
                                # Set the default entry to the entry number NUM. Numbering starts from 0, and
                                # the entry number 0 is the default if the command is not used.
                                #
                                # You can specify 'saved' instead of a number. In this case, the default entry
                                # is the entry saved with the command 'savedefault'.
                                # WARNING: If you are using dmraid do not change this entry to 'saved' or your
                                # array will desync and will not let you boot your system.
                                default 0

                                ## timeout sec
                                # Set a timeout, in SEC seconds, before automatically booting the default entry
                                # (normally the first entry defined).
                                timeout 3

                                ## #hiddenmenu
                                # Hides the menu by default (press ESC to see the menu)
                                #hiddenmenu

                                # Pretty colours
                                #color cyan/blue white/blue

                                ## password ['--md5'] passwd
                                # If used in the first section of a menu file, disable all interactive editing
                                # control (menu entry editor and command-line) and entries protected by the
                                # command 'lock'
                                # e.g. password topsecret
                                # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
                                # password topsecret

                                #
                                # examples
                                #
                                # title Windows 95/98/NT/2000
                                # root (hd0,0)
                                # makeactive
                                # chainloader +1
                                #
                                # title Linux
                                # root (hd0,1)
                                # kernel /vmlinuz root=/dev/hda2 ro
                                #

                                #
                                # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

                                ### BEGIN AUTOMAGIC KERNELS LIST
                                ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
                                ## by the debian update-grub script except for the default options below

                                ## DO NOT UNCOMMENT THEM, Just edit them to your needs

                                ## ## Start Default Options ##
                                ## default kernel options
                                ## default kernel options for automagic boot options
                                ## If you want special options for specific kernels use kopt_x_y_z
                                ## where x.y.z is kernel version. Minor versions can be omitted.
                                ## e.g. kopt=root=/dev/hda1 ro
                                ## kopt_2_6_8=root=/dev/hdc1 ro
                                ## kopt_2_6_8_2_686=root=/dev/hdc2 ro
                                # kopt=root=UUID=0410eee2-0567-4686-8ac4-4fc8d4ae53cb ro
                                # kopt_2_6=root=/dev/hda1 ro

                                ## default grub root device
                                ## e.g. groot=(hd0,0)
                                # groot=(hd0,0)

                                ## should update-grub create alternative automagic boot options
                                ## e.g. alternative=true
                                ## alternative=false
                                # alternative=true

                                ## should update-grub lock alternative automagic boot options
                                ## e.g. lockalternative=true
                                ## lockalternative=false
                                # lockalternative=false

                                ## additional options to use with the default boot option, but not with the
                                ## alternatives
                                ## e.g. defoptions=vga=791 resume=/dev/hda5
                                # defoptions=quiet splash locale=fr_FR

                                ## should update-grub lock old automagic boot options
                                ## e.g. lockold=false
                                ## lockold=true
                                # lockold=false

                                ## altoption boot targets option
                                ## multiple altoptions lines are allowed
                                ## e.g. altoptions=(extra menu suffix) extra boot options
                                ## altoptions=(recovery) single
                                # altoptions=(recovery mode) single

                                ## controls how many kernels should be put into the menu.lst
                                ## only counts the first occurence of a kernel, not the
                                ## alternative kernel options
                                ## e.g. howmany=all
                                ## howmany=7
                                # howmany=all

                                ## should update-grub create memtest86 boot option
                                ## e.g. memtest86=true
                                ## memtest86=false
                                # memtest86=true

                                ## should update-grub adjust the value of the default booted system
                                ## can be true or false
                                # updatedefaultentry=false

                                ## ## End Default Options ##

                                title Ubuntu, kernel 2.6.17-10-generic
                                root (hd0,0)
                                kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda1 ro quiet splash locale=fr_FR
                                initrd /boot/initrd.img-2.6.17-10-generic
                                quiet
                                savedefault
                                boot

                                title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
                                root (hd0,0)
                                kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hda1 ro single
                                initrd /boot/initrd.img-2.6.17-10-generic
                                boot

                                title Ubuntu, memtest86+
                                root (hd0,0)
                                kernel /boot/memtest86+.bin
                                quiet
                                boot

                                ### END DEBIAN AUTOMAGIC KERNELS LIST

                                Sinon j'ai essayer: sed -i.orig 's/hiddenmenu/#hiddenmenu/' /boot/grub/menu.lst
                                Sa ne fonctionne tjrs pas au redemarage mais quand jai bootez avec le cd et choisi demarer a partir du disque dur au moment du boot j'ai eu le selecteur de boot lilo je crois qui es apparu.
                                0
                                1. Contributeur
                                  Re-

                                  tape :
                                  kedit /etc/fstab
                                  et affiche le résultat.

                                  A+, cede.
                                  0
                                  1. Modérateur
                                    affiche aussi
                                    cat /boot/grub/device.map
                                    0
                                    1. Voici le kedit /etc/fstab:

                                      # /etc/fstab: static file system information.
                                      #
                                      # <file system> <mount point> <type> <options> <dump> <pass>
                                      proc /proc proc defaults 0 0
                                      # /dev/hda1
                                      UUID=0410eee2-0567-4686-8ac4-4fc8d4ae53cb / ext3 defaults,errors=remount-ro 0 1
                                      # /dev/hda2
                                      UUID=EB77-422D /media/hda2 vfat defaults,utf8,umask=007,gid=46 0 1
                                      # /dev/hda3
                                      UUID=5ffe1e5e-128b-4069-8cbd-4f1f82d3ba74 none swap sw 0 0
                                      /dev/hdb /media/cdrom0 udf,iso9660 user,noauto 0 0

                                      Et voila le cat /boot/grub/device.map:

                                      root@MonPC:/home/nico# cat /boot/grub/device.map
                                      (hd0) /dev/hda
                                      (hd1) /dev/sda
                                      root@MonPC:/home/nico#
                                      0
                                      1. Modérateur
                                        affiche
                                        fdisk -l /dev/hda
                                        il me semble que tu n'as pas le flag de boot sur hda1
                                        0
                                        1. Voilou:

                                          root@MonPC:/home/nico# fdisk -l /dev/hda

                                          Disque /dev/hda: 123.5 Go, 123522416640 octets
                                          255 têtes, 63 secteurs/piste, 15017 cylindres
                                          Unités = cylindres de 16065 * 512 = 8225280 octets

                                          Périphérique Amorce Début Fin Blocs Id Système
                                          /dev/hda1 1 4830 38796943+ 83 Linux
                                          /dev/hda2 5223 15017 78678337+ b W95 FAT32
                                          /dev/hda3 4831 5222 3148740 82 Linux swap / Solaris

                                          Les entrées de la table de partitions ne sont pas dans l'ordre du disque
                                          root@MonPC:/home/nico#
                                          0
                                          • 1
                                          • 2