Grub

Bonjour,

je viens d'installer ubuntu en mettant en place grub
le problème est que je voulais mettre en place un dual boot xp/ubuntu
et la il ne me donne pas le choix de xp
auriez une idée du pourquoi que ce faisse???
merci d'avance
Configuration: Windows Vista
Internet Explorer 7.0

30 réponses

Résumé de la discussion

Le problème posé est le démarrage en dual-boot Windows XP/Ubuntu alors que GRUB ne propose pas XP après l'installation. Plusieurs réponses suggèrent de modifier /boot/grub/menu.lst ou d'exécuter update-grub, avec des exemples d'entrées et d'options, et de vérifier les partitions et le montage. D'autres échanges portent sur l'utilisation de mount pour diagnostiquer les systèmes, sur l'exécution en root et sur les risques liés aux systèmes de fichiers, ainsi que sur l'ordre des entrées et la récupération Windows. En cas d'échec, les échanges évoquent des formes alternatives et des vérifications complémentaires, sans conclure sur une résolution unique.

Bobot (l’IA à votre service)
  1. non désolé j'ai mis ce projet de coté je vais réésayer dans quelque jour sur une debian
    1. --
      "If you type google into google, you can break the internet... I'm not kidding. Please don't try..."
      1. Je crois que j'ai trouvé la soluce!
        Fais d'abord une copie de sauvegarde de ton fichier /boot/grub/menu.lst comme je t'ai montré hier:
        Puis mets caeci dans le fichiers (efface tout dedans et copie ça à la place)

        # 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 60
        
        ## 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=5cf23236-a90f-4be8-ae87-203949aff5b2 ro
        
        ## Setup crashdump menu entries
        ## e.g. crashdump=1
        # crashdump=0
        
        ## 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
        
        ## 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
        
        ## 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 7.10, kernel 2.6.22-14-generic
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=5cf23236-a90f-4be8-ae87-203949aff5b2 ro quiet splash
        initrd /boot/initrd.img-2.6.22-14-generic
        quiet
        
        title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=5cf23236-a90f-4be8-ae87-203949aff5b2 ro single
        initrd /boot/initrd.img-2.6.22-14-generic
        
        title Ubuntu 7.10, memtest86+
        root (hd0,0)
        kernel /boot/memtest86+.bin
        quiet
        
        title Windows 1
        root (hd0,4)
        makeactive
        chainloader +1 
        
        title Windows 2
        root (hd0,5)
        makeactive
        chainloader +1 
        
        ### END DEBIAN AUTOMAGIC KERNELS LIST 
        
        

        Puis redmarre ton ordi, au demarrage il te proposera linux (en safe mode et tout et tout) et Windows 1 et Windows 2. J'ai mis les deux car je ne sais pas sur quelle partition est ton systeme. Essaye en un puis l'autre si ca ne marche pas.
        1. Tu devrais faire dans l'autre sens et commencer par windows. L'installateur d'ubuntu detecte automatique ment les systemes windows et te preopose de configurer grub automatiquement en consequence
          1. je suis la si tu veu jai formaté tout mon pc installé d'abbord linux puis j'ai créé des partitions pour windows ensuite mais grub n'apparait plus ca m'énerve lol
            1. Cela etant, demain c'est vendredi on aura toute la nuit pour regler ca ;-)
              1. No problemo.
                Bon j'ai un probleme, c'est du SATA (nouvelle norme de disques durs), je ne saurais pas t'aider.
                Il y a l'air d'y avoir une solution graphique va voir sur cette page:
                http://doc.ubuntu-fr.org/installation/windows_grub
                Je suis désolé, je me leve tot, je vais me coucher, je ne serais pas dispo avant demain soir.
                1. sebastien@sebastien-desktop:~$ mount
                  /dev/sda1 on / type ext3 (rw,errors=remount-ro)
                  proc on /proc type proc (rw,noexec,nosuid,nodev)
                  /sys on /sys type sysfs (rw,noexec,nosuid,nodev)
                  varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
                  varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
                  udev on /dev type tmpfs (rw,mode=0755)
                  devshm on /dev/shm type tmpfs (rw)
                  devpts on /dev/pts type devpts (rw,gid=5,mode=620)
                  lrm on /lib/modules/2.6.22-14-generic/volatile type tmpfs (rw)
                  /dev/sda5 on /media/sda5 type fuseblk (rw,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096)
                  /dev/sda6 on /media/sda6 type fuseblk (rw,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096)
                  securityfs on /sys/kernel/security type securityfs (rw)

                  dsl javai mal capté
                  1. ben non,sinon il me donnerait la liste des disques durs montés.
                    retente avec mount tout court, lla tu dois tenter mount -a ou un truc du genre...
                    1. sebastien@sebastien-desktop:~$ mount
                      /dev/sda1 on / type ext3 (rw,errors=remount-ro)
                      proc on /proc type proc (rw,noexec,nosuid,nodev)
                      /sys on /sys type sysfs (rw,noexec,nosuid,nodev)
                      varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
                      varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
                      udev on /dev type tmpfs (rw,mode=0755)
                      devshm on /dev/shm type tmpfs (rw)
                      devpts on /dev/pts type devpts (rw,gid=5,mode=620)
                      lrm on /lib/modules/2.6.22-14-generic/volatile type tmpfs (rw)
                      /dev/sda5 on /media/sda5 type fuseblk (rw,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096)
                      /dev/sda6 on /media/sda6 type fuseblk (rw,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096)
                      securityfs on /sys/kernel/security type securityfs (rw)
                      1. Usage: mount -V : print version
                        mount -h : print this help
                        mount : list mounted filesystems
                        mount -l : idem, including volume labels
                        So far the informational part. Next the mounting.
                        The command is `mount [-t fstype] something somewhere'.
                        Details found in /etc/fstab may be omitted.
                        mount -a [-t|-O] ... : mount all stuff from /etc/fstab
                        mount device : mount device at the known place
                        mount directory : mount known device here
                        mount -t type dev dir : ordinary mount command
                        Note that one does not really mount a device, one mounts
                        a filesystem (of the given type) found on the device.
                        One can also mount an already visible directory tree elsewhere:
                        mount --bind olddir newdir
                        or move a subtree:
                        mount --move olddir newdir
                        One can change the type of mount containing the directory dir:
                        mount --make-shared dir
                        mount --make-slave dir
                        mount --make-private dir
                        mount --make-unbindable dir
                        One can change the type of all the mounts in a mount subtree
                        containing the directory dir:
                        mount --make-rshared dir
                        mount --make-rslave dir
                        mount --make-rprivate dir
                        mount --make-runbindable dir
                        A device can be given by name, say /dev/hda1 or /dev/cdrom,
                        or by label, using -L label or by uuid, using -U uuid .
                        Other options: [-nfFrsvw] [-o options] [-p passwdfd].
                        For many more details, say man 8 mount .
                        1. Allo? Je t'ai perdu, je crois...
                          juste tape mount dans un terminal et copie moi ce qu'il en sort.
                          1. Excuse, encore une autre erreur de ma part...
                            Donc que renvoie la commande
                            mount
                            1. Bien, j'ai besoin de savoir où. Est-ce que tes partitions sont visibles sous linux?
                              Si oui, dis moi quel est l'emplacement physique de ta partition système(celle avec programme Files dedans)? Pour le savoir c'est dans les propriétés de la partition ca ressemble à un truc du genre /dev/hda1 ou /dev/hdb1 normalement. La derniere lettre et le dernier numero peuvent changer.
                              Que renvoie
                              sudo mount -a
                              1. oui il est installé si ca peut taider cest les deux partition en ntfs et lune fai 10go ett lotre 180je crois voila
                                1. Est ce que windows est installé sur ton ordi au moins?
                                  Il n'as pas l'air d'apparaitre et il n'est pas à la place ou il devrait etre.
                                  • 1
                                  • 2