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 04/11/2007, à 21:55

saint germain

probleme boot ubuntu/xp

bonjour

apres avoir installé ubuntu j'ai installé windows xp et bien sur j'ai eu des problemes de boot
j'ai utilisé le super grub disk
j'arrive a demarrer sous ubuntu mais ds le grub aucune trace de xp

voici mon 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.
splashimage=(hd0,1)/boot/splash.xpm.gz
default		saved
#default		0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout		10
#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=0cf6e025-f284-4a25-afce-01bbc887e305 ro

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

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,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=(sans echec) 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=1

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

## 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,2)
kernel		/boot/vmlinuz-2.6.22-14-generic root=UUID=0cf6e025-f284-4a25-afce-01bbc887e305 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 (sans echec)
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.22-14-generic root=UUID=0cf6e025-f284-4a25-afce-01bbc887e305 ro single
initrd		/boot/initrd.img-2.6.22-14-generic

### END DEBIAN AUTOMAGIC KERNELS LIST

et voila fdisk -l

Disque /dev/sda: 60.0 Go, 60022480896 octets
255 heads, 63 sectors/track, 7297 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x31723172

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sda1   *           1          34      273073+   6  FAT16
/dev/sda2              35        5608    44773155    7  HPFS/NTFS
/dev/sda3            5609        7220    12948390   83  Linux
/dev/sda4            7221        7297      618502+   5  Extended
/dev/sda5            7221        7297      618471   82  Linux swap / Solaris

merci de m'aider

#2 Le 04/11/2007, à 22:11

nounoux

Re : probleme boot ubuntu/xp

Bonjour,

Le grand Microchiotte fout la merde partout ou il passe.

Il faut toujours faire les choses dans le bonne ordre

1 / install Win
2 / Le meilleur pour la fin install Ubuntu


Savoir ce que tout le monde sait, c'est ne rien savoir (R de Gourmont)

Ne pas oublier de marquer [Résolu] quand vous avez votre réponse.

Hors ligne

#3 Le 04/11/2007, à 22:16

saint germain

Re : probleme boot ubuntu/xp

ca m'aide bp comme reponse!!

#4 Le 04/11/2007, à 22:22

Compte anonymisé

Re : probleme boot ubuntu/xp

Salut

Il faut ajouter dans ton menu.lst en fin de fichier le paragraphe suivant :
après la ligne :
### 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


title         Windows XP 
root         (hd0,1)
makeactive
chainloader     +1

Il faut aussi modifier la ligne :
# groot=(hd0,1) par
# groot=(hd0,2)
car à la prochaine maj du kernel ton install ne fonctionnera plus.

Cette ligne aussi me parait erronée :
splashimage=(hd0,1)/boot/splash.xpm.gz devrait être :
splashimage=(hd0,2)/boot/splash.xpm.gz

PS : Je ne connais pas Super Grub Disk mais si tu veux que ces modifs soient prisent en compte, je pense qu'il faut réinstaller Grub sur le MBR de ton disque.


@+

Dernière modification par Compte anonymisé (Le 04/11/2007, à 22:24)

#5 Le 04/11/2007, à 22:32

saint germain

Re : probleme boot ubuntu/xp

maintenant j'ai bien windows xp ds le grub mais qd je demarre dessus ca me marque "NTLDR manque"

merci encore pour ton aide

#6 Le 04/11/2007, à 22:47

Compte anonymisé

Re : probleme boot ubuntu/xp

Tu as certainement créé la partition /dev/sda1 (fat16) que tu as placé devant celle d'Xp ce qui explique le décalage des partitions (xp est passé de dev/sda1 à /dev/sda2).

Tu peux vérifier en listant le contenu de boot.ini qui doit se trouver sous c:\ (/dev/sda2).
Il doit contenir des lignes de type :
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professionnel" /noexecute=optin /fastdetect

Tu peux essayer de modifier les :
partition(1)
par
partition(2)

mais j'ai un doute que ça fonctionne.
Sinon il te reste à supprimer cette partition /dev/sda1 (à quoi sert-elle?) et à faire les modifs adéquates dans menu.lst :
tous les (hd0,2) deviennent (hd0,1)
Et il faudra aussi réinstaller grub pour le faire pointer sur (hd0,1) au lieu de (hd0,2).

@+

Dernière modification par Compte anonymisé (Le 04/11/2007, à 22:48)

#7 Le 04/11/2007, à 22:59

saint germain

Re : probleme boot ubuntu/xp

comment faire pour reinstaller grub et le faire pointer vers (hdo,1)
merci

#8 Le 04/11/2007, à 23:12

Compte anonymisé

Re : probleme boot ubuntu/xp

Avec le Livecd la procédure est la suivante :
Ouvrir un terminal puis lancer  Grub :
sudo grub --> grub>
là tu tapes :
find /boot/grub/menu.lst  devrait donner (hd0,1)
là tu tapes :
root (hd0,1)
puis
setup (hd0) et enfin
quit

Si toutes les modifs ont été faites dans menu.lst et dans les partition ça devrait "rouler"

@+

PS ne pas oublier de modifier dans le paragraphe Xp de menu.lst la ligne :
root (hd0,1) par
root (hd0,0)

Dernière modification par Compte anonymisé (Le 04/11/2007, à 23:13)

#9 Le 04/11/2007, à 23:26

saint germain

Re : probleme boot ubuntu/xp

find /boot/grub/menu.lst me donne toujours (hd0,2)

voila mon menu.lst corrigé

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.
splashimage=(hd0,1)/boot/splash.xpm.gz(hd0,1)

default		saved
#default		0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout		10
#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=0cf6e025-f284-4a25-afce-01bbc887e305 ro

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

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,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=(sans echec) 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=1

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

## 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,1)
kernel		/boot/vmlinuz-2.6.22-14-generic root=UUID=0cf6e025-f284-4a25-afce-01bbc887e305 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 (sans echec)
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.22-14-generic root=UUID=0cf6e025-f284-4a25-afce-01bbc887e305 ro single
initrd		/boot/initrd.img-2.6.22-14-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


title         Windows XP 
root         (hd0,0)
makeactive
chainloader     +1

et mon fdisk -l

Disque /dev/sda: 60.0 Go, 60022480896 octets
255 heads, 63 sectors/track, 7297 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0x31723172

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sda2   *          35        5608    44773155    7  HPFS/NTFS
/dev/sda3            5609        7220    12948390   83  Linux
/dev/sda4            7221        7297      618502+   5  Extended
/dev/sda5            7221        7297      618471   82  Linux swap / Solaris
marie@marie-desktop:~$

#10 Le 05/11/2007, à 07:08

Compte anonymisé

Re : probleme boot ubuntu/xp

Salut

En effet, tu as supprimé /dev/sda1 mais la renumérotation de tes partitions ne s'est pas effectuée. Donc les modifs faites dans menu.lst ne doivent pas fonctionner.
Il faudrait regarder avec un outils comme Gparted en LiveCd, si tu ne peux pas remettre Xp sur /dev/sda1 et Linux sur /dev/sda2 avec les fonctions Move/Resize.
Avant tout, pense à faire des sauvegardes de tes fichiers importants sur support externe (dd clé usb,dvd cd etc...)
Dans le pire des cas tu réinstalles tout : Xp d'abord et Ubuntu ensuite.

@+

#11 Le 05/11/2007, à 09:22

saint germain

Re : probleme boot ubuntu/xp

ca y est c'est ok
encore merci pour ton aide, j'y serais pas arrivé seul