Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 16/03/2008, à 01:30

Ludwig Von Beethoven

Pas de GRUB, boot de windows comme si de rien était... [réglé!]

Bonjour, J'ai tenté à plusieurs reprises d'installer le gutsy gibbon, en double boot mais rien à faire : l'installation semble se dérouler normalement mais au redémarrage je n'ai pas le grub (qui a pourtant été installé dans le mbr, je suis formel) et xp boote comme d'habitude.

J'ai quatre disques dur sata, et j'ai installé ubuntu sur un disque différent de Xp.

J'ai cherché un peu partout, j'ai bidouillé des choses via le terminal sous live cd mais sans succès.

Il y a quelques temps j'ai installé vista et dégouté de l'absence de progrès par rapport à xp je l'ai viré. Mais vista est toujours détecté comme présent lors de l'installation de grub... Peut-être est-ce là la source de mon problème?

Merci d'avance pour votre aide!

Dernière modification par Ludwig Von Beethoven (Le 16/03/2008, à 03:16)

Hors ligne

#2 Le 16/03/2008, à 01:37

vista sous belga

Re : Pas de GRUB, boot de windows comme si de rien était... [réglé!]

demande déjà au bios de démarrer sur le disque ubuntu en premier
Alors tu devrais voir grub. Il devrait te donner une erreur.
si c'est le cas donne le retour de

sudo fdisk -l

pour y remédier

#3 Le 16/03/2008, à 01:44

Ludwig Von Beethoven

Re : Pas de GRUB, boot de windows comme si de rien était... [réglé!]

Amusant, c'est justement ce que je viens de faire et j'ai une erreur 22 big_smile

Je revenais pour préciser que ça ne peut pas être un problème de tatouage, j'ai assemblé ma bécane de mes propres mimines.

Je vais de ce pas chercher le retour de fdisk!

Hors ligne

#4 Le 16/03/2008, à 01:59

Ludwig Von Beethoven

Re : Pas de GRUB, boot de windows comme si de rien était... [réglé!]

Je suis sous le live cd,
voici le retour de fdisk :

Disk /dev/sda: 300.0 GB, 300090728448 bytes
16 heads, 63 sectors/track, 581463 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0xfd01b469

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1      581459   293055304+   7  HPFS/NTFS

Disk /dev/sdb: 300.0 GB, 300090728448 bytes
255 heads, 63 sectors/track, 36483 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x321b321a

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        2550    20482843+   7  HPFS/NTFS
/dev/sdb2            2551       36483   272566822+   7  HPFS/NTFS

Disk /dev/sdc: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf0d8f0d8

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               2        2039    16370235    f  W95 Ext'd (LBA)
/dev/sdc2   *        2040       15406   107370427+   7  HPFS/NTFS
/dev/sdc3           15407       30515   121363042+   7  HPFS/NTFS
/dev/sdc5               2        2039    16370203+   7  HPFS/NTFS

Disk /dev/sdd: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9386326c

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1   *           1       24044   193133398+  83  Linux
/dev/sdd2           24045       24419     3012187+   5  Extended
/dev/sdd3           24420       48642   194558616    7  HPFS/NTFS
Partition 3 does not end on cylinder boundary.
/dev/sdd5           24045       24419     3012156   82  Linux swap / Solaris

Hors ligne

#5 Le 16/03/2008, à 02:06

vista sous belga

Re : Pas de GRUB, boot de windows comme si de rien était... [réglé!]

au démarrage, tu te places sur l'entrée ubunu (c'est fait par défaut normalement)
tu appuis deux fois sur la touche e
tu remplaces (hd3,x) par (hd0,x)
tu valides en appuyant sur la touche enter puis b
ça devrait booter.

Sinon, avec le livetape

sudo umount -a
sudo mount /dev/sdd1 /mnt

puis donne les retours de

cat /mnt/boot/grub/menu.lst

#6 Le 16/03/2008, à 02:13

Ludwig Von Beethoven

Re : Pas de GRUB, boot de windows comme si de rien était... [réglé!]

Voici le retour, si je ne me suis pas trompé :

ubuntu@ubuntu:~$ sudo umount -a
umount: /tmp: device is busy
umount: /dev: device is busy
umount: /var/run: device is busy
umount: tmpfs: not found
umount: /lib/modules/2.6.22-14-generic/volatile: not mounted
ubuntu@ubuntu:~$ sudo mount /dev/sdd1 /mnt cat /mnt/boot/grub/menu.lst
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 .
ubuntu@ubuntu:~$

Dernière modification par Ludwig Von Beethoven (Le 16/03/2008, à 02:13)

Hors ligne

#7 Le 16/03/2008, à 02:14

vista sous belga

Re : Pas de GRUB, boot de windows comme si de rien était... [réglé!]

il faut taper ligne par ligne

vista sous belga a écrit :

au démarrage, tu te places sur l'entrée ubunu (c'est fait par défaut normalement)
tu appuis deux fois sur la touche e
tu remplaces (hd3,x) par (hd0,x)
tu valides en appuyant sur la touche enter puis b
ça devrait booter.

Sinon, avec le livetape

sudo umount -a
sudo mount /dev/sdd1 /mnt

puis donne les retours de

cat /mnt/boot/grub/menu.lst

#8 Le 16/03/2008, à 02:18

Ludwig Von Beethoven

Re : Pas de GRUB, boot de windows comme si de rien était... [réglé!]

Oh, pardon, je me disais que ça n'avait pas l'air génial, voici le bon :

ubuntu@ubuntu:~$ sudo umount -a
umount: /tmp: device is busy
umount: /dev: device is busy
umount: /var/run: device is busy
ubuntu@ubuntu:~$ sudo mount /dev/sdd1 /mnt
ubuntu@ubuntu:~$ cat /mnt/boot/grub/menu.lst


Le retour :

# 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=ee6f9640-6174-4802-b90f-e0f58b9cd602 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd3,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            (hd3,0)
kernel          /boot/vmlinuz-2.6.22-14-generic root=UUID=ee6f9640-6174-4802-b90f-e0f58b9cd602 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            (hd3,0)
kernel          /boot/vmlinuz-2.6.22-14-generic root=UUID=ee6f9640-6174-4802-b90f-e0f58b9cd602 ro single
initrd          /boot/initrd.img-2.6.22-14-generic

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

### 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 automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title           Windows NT/2000/XP (loader)
root            (hd0,0)
savedefault
makeactive
chainloader     +1


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb1
title           Microsoft Windows XP Professionnel
root            (hd1,0)
savedefault
makeactive
map             (hd0) (hd1)
map             (hd1) (hd0)
chainloader     +1


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdc2
title           Windows Vista/Longhorn (loader)
root            (hd2,1)
savedefault
makeactive
map             (hd0) (hd2)
map             (hd2) (hd0)
chainloader     +1

Hors ligne

#9 Le 16/03/2008, à 02:22

vista sous belga

Re : Pas de GRUB, boot de windows comme si de rien était... [réglé!]

avant de faire les changements:
est ce que tu vois ces entrées au démarrages
Ubuntu 7.10, kernel 2.6.22-14-generic
Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
Ubuntu 7.10, memtest86+
Windows NT/2000/XP (loader)
Microsoft Windows XP Professionnel
Windows Vista/Longhorn (loader)

#10 Le 16/03/2008, à 02:31

Ludwig Von Beethoven

Re : Pas de GRUB, boot de windows comme si de rien était... [réglé!]

Oui et non, en fait lors d'une de mes tentative d'installation j'ai bien réussi à voir grub et j'ai eu ceci (mais je ne sais plus très bien ce que j'ai fait).

Mais avec la dernière au mieux je n'ai eu que l'erreur22.

J'ignore ce qu'ont pu effectuer er ou pas les commandes que tu m'as dicté, dois-je rebooter pour vérifier si il y a eu un changement?

Hors ligne

#11 Le 16/03/2008, à 02:35

vista sous belga

Re : Pas de GRUB, boot de windows comme si de rien était... [réglé!]

tape
sudo umount -a
sudo mount /dev/sdd1 /mnt
sudo gedit /mnt/boot/grub/menu.lst

dans le fichier qui s'ouvre,
change (hd3,0) par (hd0,0) dans les lignes

#groot=(hd3,0)

root     (hd3,0)
.
.
.

enregistre puis tape

sudo grub
root (hd3,0)
setup (hd3) (hd3,0)
quit

redémarre

#12 Le 16/03/2008, à 02:44

Ludwig Von Beethoven

Re : Pas de GRUB, boot de windows comme si de rien était... [réglé!]

ok,

ça m'a donné ça :

ubuntu@ubuntu:~$ sudo umount -a
umount: /tmp: device is busy
umount: /dev: device is busy
umount: /var/run: device is busy
ubuntu@ubuntu:~$ sudo mount /dev/sdd1 /mnt
ubuntu@ubuntu:~$ sudo gedit /mnt/boot/grub/menu.lst
ubuntu@ubuntu:~$ sudo grub
Probing devices to guess BIOS drives. This may take a long time.

       [ Minimal BASH-like line editing is supported.   For
         the   first   word,  TAB  lists  possible  command
         completions.  Anywhere else TAB lists the possible
         completions of a device/filename. ]
grub> root (hd3,0)
root (hd3,0)
grub> setup (hd3) (hd3,0)
setup (hd3) (hd3,0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/reiserfs_stage1_5" exists... yes
 Running "embed /boot/grub/reiserfs_stage1_5 (hd3)"...  20 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd3) (hd3)1+20 p (hd3,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
Done.
grub> quit
quit

Le temps de prier le grand Gnou je redemarre...

Hors ligne

#13 Le 16/03/2008, à 02:49

vista sous belga

Re : Pas de GRUB, boot de windows comme si de rien était... [réglé!]

assure toi que dans le bios tu as bien placé le disque 4
en premier.

#14 Le 16/03/2008, à 02:57

Ludwig Von Beethoven

Re : Pas de GRUB, boot de windows comme si de rien était... [réglé!]

ça y est ça fonctionne! Je suis sous Ubuntu!

Et j'ai bénéficié d'une assistance gratuite rapide et efficace à presque
2h du matin par un inconnu de bonne volonté... Je n'avais pas encore connu ça dans l'informatique.

Bref merci à la communauté ubuntu-fr et à toi Vista sous belga pour ta patience. Par contre si tu as encore un peu de temps, je veux bien que tu m'explique ce qui s'est passé par ce que j'aime bien comprendre, même si je risque d'avoir du mal.




PS :  Je ne sais pas si ça existe et si ça peut vraiment faire quelque chose mais j'ai vraiment prié le grand Gnou!

Hors ligne

#15 Le 16/03/2008, à 03:06

vista sous belga

Re : Pas de GRUB, boot de windows comme si de rien était... [réglé!]

arf des explications..... bon allons-y

Je pense que l'histoire du bios est clair.

Au démarrage grub voit l'ordre des disques selon
l'ordre défini dans le bios :disque 4 devient disque 1 virtuellement.
Dans la notation de grub c'est (hd0) pour le disque 1, (hd1) disque 2 etc...

Mais lors de l'installation, c'est l'ordre physique qui est pris en compte:
le disque ubuntu est le 4ième donc (hd3) pour grub. C'est pour cela
que dans le fichier menu.lst, il y a (hd3,0)   (3:disque 4 et 0: partition numéro 1)

Mais comme au démarrage (hd3) devient (hd0), grub ne trouve pas les fichiers dans
(hd3) qui n'est plus le disque ubuntu.

On a rectifié le tir en mettant hd0,0. La ligne groot c'est pour les maj.

Comme tu as dit que tu as bidouillé, je t'ai fait réinstaller grub dans le disque 4
c'était le bur de la commande sudo grub, setup etc.....

Tu peux trouver pas mal d'info dans la documentation très bien faite.

@++

#16 Le 16/03/2008, à 03:08

vista sous belga

Re : Pas de GRUB, boot de windows comme si de rien était... [réglé!]

ah oui le gnou, bah moi je pris Allah en fait lol
je pense que si je continue, sarko va me poursuivre

@++

#17 Le 16/03/2008, à 03:15

Ludwig Von Beethoven

Re : Pas de GRUB, boot de windows comme si de rien était... [réglé!]

Ok! Donc si j'ai bien compris j'aurai peut-être dù changer l'orde de branchement des disques avant d'installer ubuntu (ce qui m'aurait peut-être obligé à reinstallé xp mais bon ça n'aura pas été la première fois)

Enfin même au cas ou je n'aurais pas compris merci pour ton explication, ça devrait m'aider dans le futur.

Allez hop, je vais rajouter un petit réglé!

Hors ligne