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 01/12/2007, à 19:59

jfalbouy

Problème de boot sur XP vs ubuntu

Je voulais installer ubuntu sur mon PC en plus de Windows XP mais après l'installation je ne parviens pas à  lancer XP.
J'ai consulté un certain nombre de messages sur votre site mais je suis un peu perdu pour résoudre le problème tout seul.
Pour information, je possède 2 HD

Voici quelques informations :
* Après find/boot/grub/stage1 : (hd 1,1)

* Après sudo fdsik -l
Disque /dev/hda: 13.0 Go, 13022324736 octets
255 heads, 63 sectors/track, 1583 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x20ad20ac

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/hda1   *           1        1583    12715416    c  W95 FAT32 (LBA)

Disque /dev/hdc: 61.4 Go, 61492838400 octets
255 heads, 63 sectors/track, 7476 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x20c620c5

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/hdc1               1        5032    40419508+   7  HPFS/NTFS
/dev/hdc2   *        5033        7368    18763920   83  Linux
/dev/hdc3            7369        7476      867510    5  Extended
/dev/hdc5            7369        7476      867478+  82  Linux swap / Solaris

Contenu du fichier menu.lst
# 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=403112b3-0fb1-436c-b5c6-dd00f7e14656 ro

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

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

## 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

## 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        (hd1,1)
kernel        /boot/vmlinuz-2.6.22-14-generic root=UUID=403112b3-0fb1-436c-b5c6-dd00f7e14656 ro quiet splash locale=fr_FR
initrd        /boot/initrd.img-2.6.22-14-generic
quiet

title        Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root        (hd1,1)
kernel        /boot/vmlinuz-2.6.22-14-generic root=UUID=403112b3-0fb1-436c-b5c6-dd00f7e14656 ro single
initrd        /boot/initrd.img-2.6.22-14-generic

title        Ubuntu 7.10, memtest86+
root        (hd1,1)
kernel        /boot/memtest86+.bin
quiet


### END DEBIAN AUTOMAGIC KERNELS LIST

Merci pour votre aide

Hors ligne

#2 Le 01/12/2007, à 20:12

compte supprimé

Re : Problème de boot sur XP vs ubuntu

Bonsoir,

Ajoute ça à  la fin de menu.lst

title		XP
root		(hd1,0)
savedefault
makeactive
chainloader	+1

Pour ouvrir menu.lst et pour pouvoir enregistrer les modifications :

sudo cp  /boot/grub/menu.lst    /boot/grub/menu.lst.bak                      une petite sauvegarde, on ne sait jamais...
gksudo gedit  /boot/grub/menu.lst

A+

Dernière modification par faustus (Le 01/12/2007, à 20:15)

#3 Le 02/12/2007, à 12:57

jfalbouy

Re : Problème de boot sur XP vs ubuntu

j'ai bien entré la liste de commandes mais cela ne fonctionne toujours pas. Le système se lance toujours sur Ubuntu.

Hors ligne

#4 Le 02/12/2007, à 13:01

Compte anonymisé

Re : Problème de boot sur XP vs ubuntu

Salut

Dans menu.lst, commente la ligne suivante :
hiddenmenu  devient
#   hiddenmenu

@+

PS o๠se trouve ton install XP (hda ou hdc)

si c'est hda dans ton pavé XP (toujours dans menu.lst) mets :
root  (hd0,0)

Ce qui parait bizarre c'est que ton Xp n'ai pas été reconnu à  l'install.

Dernière modification par Compte anonymisé (Le 02/12/2007, à 13:07)

#5 Le 02/12/2007, à 13:14

jfalbouy

Re : Problème de boot sur XP vs ubuntu

Maintenant j'ai bien accès lors du démarrage du PC au menu de sélection avec la possibilité de sélectionner XP. Toutefois lors de la validation j'arrive à  un écran noir avec l'affichage suivant "Starting up". Rien de se passe et lors de l'appui sur une touche, je reviens à  mon menu de sélection.
Le seul choix possible reste donc Ubuntu.

Hors ligne

#6 Le 02/12/2007, à 13:19

Compte anonymisé

Re : Problème de boot sur XP vs ubuntu

O๠est installé Xp et as-tu modifié
root   (hd1,0) par
root   (hd0,0)
dans la section Xp de ton menu.lst?

Dernière modification par Compte anonymisé (Le 02/12/2007, à 13:20)

#7 Le 02/12/2007, à 15:06

compte supprimé

Re : Problème de boot sur XP vs ubuntu

@jeanjd63

Ben oui ! C'est bizarre.
D'après ça :

/dev/hda1   *           1        1583    12715416    c  W95 FAT32 (LBA) 
...
/dev/hdc1               1        5032    40419508+   7  HPFS/NTFS

je me suis dit qu'XP était sur la NTFS donc hdc. Ce qui est bizarre aussi c'est l'absence de hdb (pourquoi hda et hdc ?).
Mais bon, peut aussi que XP est sur la fat32 ?

A+

#8 Le 02/12/2007, à 17:41

jfalbouy

Re : Problème de boot sur XP vs ubuntu

Problème résolu

Merci beaucoup

Hors ligne