Problèmes Grub

Résolu
lithium_3 Messages postés 2972 Statut Contributeur -  
lithium_3 Messages postés 2972 Statut Contributeur -
Bonjour à vous,

je vous expose le plus concrètement possible mon problème:

Windows Seven est installé sur ma machine, et Ubuntu en dual-boot depuis un certain temps sans aucun problème majeur. Au démarrage, j'avais accès à tout.

Par envie de découverte, j'ai alors installé OpenSuse comme troisième OS.

C'est là que survient mon problème: lors de l'allumage de mon portable, j'ai un Grub correspondant graphiquement à celui d'openSUSE qui se lance, les entrées pour ce dernier ainsi que pour Windobe marchent, mais lorsque je tente d'aller sur mon Ubuntu, j'ai une erreur (error 15, file not found). D'autant que la sortie nommée "ubuntuStudio9.04" donne en fait sur mon ancien Grub (et c'est là que le message apparaît).
J'ai accès aux dossiers d'Ubuntu à partir d'openSUSE.

Bien entendu, avant de poster ici j'ai cherché toute la nuit mais les réponses données pour un tel message d'erreur ne fonctionnent pas.

J'ai essayé:
- Une réparation par un SuperGrubDisk dans tous les sens possibles.
- La modification des menu.lst

Auriez-vous des pistes sur lesquelles me lancer?

Autre question: quand 2 systèmes Linux sont installés, faut-il créer 2 partitions SWAP?

Merci beaucoup pour le temps que vous me consacrerez.

Cordialement, lithium_3
--
Il n'y a pas de femmes frigides. Il n'y a que des mauvaises langues.
Configuration: Un stéthoscope
asus X71Sseries
triple OS Seven32Bits/ubuntuStudio9.04/openSuse11.2
pentium T2390
memory 3GB
CG AtiRadeon HD3470
Enceintes Altec Lansing VS 4221 2.1
Manette SAITEK P990
Tablette graphique Wacom Bamboo
LacieNéma Classic 500Go
Nintendo WII
FreeboxHD

3 réponses

  1. jipicy Messages postés 40842 Date d'inscription   Statut Modérateur Dernière intervention   4 898
     
    Salut,

    Autre question: quand 2 systèmes Linux sont installés, faut-il créer 2 partitions SWAP?
    Non, une seule suffit.

    Pour grub, il nous faut la table des partitions (/sbin/fdisk -l) et le contenu de grub (celui d'OpenSuSE et celui d'Ubuntu).

    :-)
    0
    1. lithium_3 Messages postés 2972 Statut Contributeur 141
       
      Merci de t'occuper de mon cas Jipicy, voici les résultats pour la commande fdisk:

      Disk /dev/sda: 250.1 GB, 250059350016 bytes
      16 heads, 63 sectors/track, 484521 cylinders
      Units = cylinders of 1008 * 512 = 516096 bytes
      Disk identifier: 0x8d1c393d
      
         Device Boot      Start         End      Blocks   Id  System
      /dev/sda1               3       20320    10240000   1c  Hidden W95 FAT32 (LBA)
      /dev/sda2   *       20320      280674   131218428    7  HPFS/NTFS
      /dev/sda3          382262      484521    51539040    5  Extended
      /dev/sda4          280675      382261    51199848   83  Linux
      /dev/sda5          382262      480248    49385416+  83  Linux
      /dev/sda6          480249      484521     2153560+  82  Linux swap / Solaris
      
      Partition table entries are not in disk order
      
      Disk /dev/sdb: 500.1 GB, 500107862016 bytes
      255 heads, 63 sectors/track, 60801 cylinders
      Units = cylinders of 16065 * 512 = 8225280 bytes
      Disk identifier: 0x454c4862
      
         Device Boot      Start         End      Blocks   Id  System
      /dev/sdb1               1       60801   488384001    b  W95 FAT32
      


      Contenus de grub, Ubuntu:

      # 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 use 'savedefault' 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         10                                                             
      
      ## 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=ba24644c-5f69-4692-a5ac-71fec04924ee ro          
      
      ## default grub root device
      ## e.g. groot=(hd0,0)      
      # groot=ba24644c-5f69-4692-a5ac-71fec04924ee
      
      ## 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                                                  
      
      ## should update-grub lock old automagic boot options
      ## e.g. lockold=false                                
      ##      lockold=true                                 
      # lockold=false                                      
      
      ## Xen hypervisor options to use with the default Xen boot option
      # xenhopt=                                                       
      
      ## Xen Linux kernel options to use with the default Xen boot option
      # xenkopt=console=tty0                                             
      
      ## 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                                               
      
      ## specify if running in Xen domU or have grub detect automatically
      ## update-grub will ignore non-xen kernels when running in domU and vice versa
      ## e.g. indomU=detect                                                         
      ##      indomU=true                                                           
      ##      indomU=false                                                          
      # indomU=detect                                                               
      
      ## 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                                         
      
      ## should update-grub add savedefault to the default options
      ## can be true or false                                     
      # savedefault=false                                         
      
      ## ## End Default Options ##
      
      title           Ubuntu 9.04, kernel 2.6.28-16-generic
      uuid            ba24644c-5f69-4692-a5ac-71fec04924ee 
      kernel          /boot/vmlinuz-2.6.28-16-generic root=UUID=ba24644c-5f69-4692-a5ac-71fec04924ee ro quiet splash                                                  
      initrd          /boot/initrd.img-2.6.28-16-generic                              
      quiet                                                                           
      
      title           Ubuntu 9.04, kernel 2.6.28-16-generic (recovery mode)
      uuid            ba24644c-5f69-4692-a5ac-71fec04924ee                 
      kernel          /boot/vmlinuz-2.6.28-16-generic root=UUID=ba24644c-5f69-4692-a5ac-71fec04924ee ro  single                                                       
      initrd          /boot/initrd.img-2.6.28-16-generic
      
      ### END DEBIAN AUTOMAGIC KERNELS LIST
      
      # This is a divider, added to separate the menu items below from the Debian
      # ones.
      title           Other operating systems:
      root
      
      # This entry added by lithium_3
      title           openSUSE 11.2
      root            (hd0,3)
      kernel          /boot/vmlinuz-2.6.31.5-0.1-default root=/dev/disk/by-id/ata-Hitachi_HTS542525K9SA00_080725BB6F00WDF123AF-part4 resume=/dev/disk/by-id/ata-Hitachi_HTS542525K9SA00_080725BB6F00WDF123AF-part6 splash=silent quiet showopts vga=0x317
      initrd          /boot/initrd-2.6.31.5-0.1-default
      
      # This is the opensuse recovery mode added by lithium_3
      title           failsafe -- openSUSE 11.2
      root            (hd0,3)
      kernel          /boot/vmlinuz-2.6.31.5-0.1-default root=/dev/disk/by-id/ata-Hitachi_HTS542525K9SA00_080725BB6F00WDF123AF-part4 showopts apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe vga=0x317
      initrd          /boot/initrd-2.6.31.5-0.1-default
      
      # This entry automatically added by the Debian installer for a non-linux OS
      # on /dev/sda2
      title           Windows Seven
      rootnoverify    (hd0,1)
      savedefault
      makeactive
      chainloader     +1


      Et le grub d'openSUSE:

      # Modified by YaST2. Last modification on Tue Dec  1 01:50:31 CET 2009
      # THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader          
      # Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader
      
      default 0
      timeout 8
      ##YaST - generic_mbr
      gfxmenu (hd0,3)/boot/message
      ##YaST - activate
      
      ###Don't change this comment - YaST2 identifier: Original name: linux###
      title openSUSE 11.2
          root (hd0,3)
          kernel /boot/vmlinuz-2.6.31.5-0.1-default root=/dev/disk/by-id/ata-Hitachi_HTS542525K9SA00_080725BB6F00WDF123AF-part4 resume=/dev/disk/by-id/ata-Hitachi_HTS542525K9SA00_080725BB6F00WDF123AF-part6 splash=silent quiet showopts vga=0x317
          initrd /boot/initrd-2.6.31.5-0.1-default
      
      ###Don't change this comment - YaST2 identifier: Original name:  Ubuntu 9.04, kernel 2.6.28-16-generic (/dev/sda5)###
      title  Ubuntu 9.04, kernel 2.6.28-16-generic (/dev/sda5)
          root (hd0,4)
          configfile /boot/grub/menu.lst
      
      ###Don't change this comment - YaST2 identifier: Original name: windows###
      title Windows
          rootnoverify (hd0,1)
          chainloader +1
      
      ###Don't change this comment - YaST2 identifier: Original name: failsafe###
      title Failsafe -- openSUSE 11.2
          root (hd0,3)
          kernel /boot/vmlinuz-2.6.31.5-0.1-default root=/dev/disk/by-id/ata-Hitachi_HTS542525K9SA00_080725BB6F00WDF123AF-part4 showopts apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe vga=0x317
          initrd /boot/initrd-2.6.31.5-0.1-default


      Cordialement
      0
  2. jipicy Messages postés 40842 Date d'inscription   Statut Modérateur Dernière intervention   4 898
     
    Essaye de rajouter cette entrée dans le grub d'OpenSuSE :

    title           Ubuntu 9.04
    root           (hd0,4)
    kernel          /boot/vmlinuz-2.6.28-16-generic root=/dev/sda5 ro quiet splash                                                  
    initrd          /boot/initrd.img-2.6.28-16-generic 

    0
    1. lithium_3 Messages postés 2972 Statut Contributeur 141
       
      Ok, je redémarre. Je poste le contenu modifié du menu.lst:

      # Modified by YaST2. Last modification on Tue Dec  1 01:50:31 CET 2009
      # THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader          
      # Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader                                                                             
      
      default 0
      timeout 8
      ##YaST - generic_mbr
      gfxmenu (hd0,3)/boot/message
      ##YaST - activate
      
      ###Don't change this comment - YaST2 identifier: Original name: linux###
      title openSUSE 11.2
          root (hd0,3)
          kernel /boot/vmlinuz-2.6.31.5-0.1-default root=/dev/disk/by-id/ata-Hitachi_HTS542525K9SA00_080725BB6F00WDF123AF-part4 resume=/dev/disk/by-id/ata-Hitachi_HTS542525K9SA00_080725BB6F00WDF123AF-part6 splash=silent quiet showopts vga=0x317
          initrd /boot/initrd-2.6.31.5-0.1-default
      
      ###Don't change this comment - YaST2 identifier: Original name:  Ubuntu 9.04, kernel 2.6.28-16-generic (/dev/sda5)###
      title  Ubuntu 9.04, kernel 2.6.28-16-generic (/dev/sda5)
          root (hd0,4)
          configfile /boot/grub/menu.lst
      
      ###Added by jipicy in december 2009, the 1st###
      title           Ubuntu 9.04
      root            (hd0,4)
      kernel          /boot/vmlinuz-2.6.28-16-generic root=/dev/sda5 ro quiet splash
      initrd          /boot/initrd.img-2.6.28-16-generic
      
      ###Don't change this comment - YaST2 identifier: Original name: windows###
      title Windows
          rootnoverify (hd0,1)
          chainloader +1
      
      ###Don't change this comment - YaST2 identifier: Original name: failsafe###
      title Failsafe -- openSUSE 11.2
          root (hd0,3)
          kernel /boot/vmlinuz-2.6.31.5-0.1-default root=/dev/disk/by-id/ata-Hitachi_HTS542525K9SA00_080725BB6F00WDF123AF-part4 showopts apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe vga=0x317
          initrd /boot/initrd-2.6.31.5-0.1-default


      (Je dois passer à la banque, de retour en fin d'après-midi).

      Cordialement
      0
      1. lithium_3 Messages postés 2972 Statut Contributeur 141 > lithium_3 Messages postés 2972 Statut Contributeur
         
        C'est ok, cela fonctionne, merci beaucoup jipi... Je supprime les entrées défaillantes.

        Pourrais-tu m'indiquer ce qui, selon toi, entraîne cette erreur?

        À défaut de ne pouvoir le faire réellement: c'est ma tournée ;-)

        Cordialement
        0
  3. jipicy Messages postés 40842 Date d'inscription   Statut Modérateur Dernière intervention   4 898
     
    A mon avis (mais je ne sais pas si c'est exact), l'entrée générée par Suse, indiquait d'aller lire le fichier de configuration d'Ubuntu (menu.lst) :

    title  Ubuntu 9.04, kernel 2.6.28-16-generic (/dev/sda5)
        root (hd0,4)
        configfile /boot/grub/menu.lst


    et je pense qu'ensuite le système s'emmêlait les pinceaux entre l'UUID et l'anciene dénomination des partitions (hd0,4) :

    title           Ubuntu 9.04, kernel 2.6.28-16-generic
    uuid            ba24644c-5f69-4692-a5ac-71fec04924ee 
    kernel          /boot/vmlinuz-2.6.28-16-generic root=UUID=ba24644c-5f69-4692-a5ac-71fec04924ee ro quiet splash                                                  
    initrd          /boot/initrd.img-2.6.28-16-generic                              
    quiet


    C'est tout ce que je vois comme explications... ;-\
    0
    1. lithium_3 Messages postés 2972 Statut Contributeur 141
       
      Ok, en tout cas merci beaucoup! ^ ^
      0