Précédent   Forum des professionnels en informatique > Systèmes > Linux > Distributions > Ubuntu
Ubuntu Vos questions sur les distributions Ubuntu et dérivées (Kubuntu, Xubuntu... )
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 26/09/2007, 19h00   #1
Débutant
 
Avatar de koKoTis
 
Inscription : août 2006
Messages : 3 196
Détails du profil
Informations forums :
Inscription : août 2006
Messages : 3 196
Points : 1 673
Points : 1 673
Par défaut Démarrage windows et ubuntu

Bonjour, sur mon pc j'ai depuis toujours windows xp, hiere j'ai installer linux sur ma deuxième partition, au démarrage du pc linux démarre par défaut, je voudrais que ce soit windows par défaut, sauriez vous ce que je peut faire ?
koKoTis est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/09/2007, 19h36   #2
Membre Expert
 
Avatar de jeanbi
 
Inscription : avril 2003
Messages : 1 645
Détails du profil
Informations forums :
Inscription : avril 2003
Messages : 1 645
Points : 1 846
Points : 1 846
bonjour,
il te suffit d'ouvrir
le fichier menu.lst qui se trouve dans /boot/grub
tu doit avoir une ligne
default x ou x est le chiffre de l'os lance en 1er
mettons que tu ai
ubuntu
ubuntu failsafe
windows
le chiffre a mettre sera 2 (on commence par 0)
a+
jeanbi est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/09/2007, 11h12   #3
Membre Expert
 
Avatar de SnakemaN
 
Bidouille-tout Android
Inscription : juillet 2006
Messages : 871
Détails du profil
Informations personnelles :
Âge : 27
Localisation : France, Haute Garonne (Midi Pyrénées)

Informations professionnelles :
Activité : Bidouille-tout Android

Informations forums :
Inscription : juillet 2006
Messages : 871
Points : 1 102
Points : 1 102
Citation:
Envoyé par jeanbi Voir le message
bonjour,
il te suffit d'ouvrir
le fichier menu.lst qui se trouve dans /boot/grub
tu doit avoir une ligne
default x ou x est le chiffre de l'os lance en 1er
mettons que tu ai
ubuntu
ubuntu failsafe
windows
le chiffre a mettre sera 2 (on commence par 0)
a+
3 car il y une ligne en plus, il faut la compter :
ubuntu
ubuntu failsafe
Other Opérating Sytem :
windows
__________________
C'est le signe d'un fou, qu'avoir honte d'apprendre
Ubuntu 10.04 Lucid Lynx @home
LE guide libre Linux & Ubuntu pour tous : Simple comme Ubuntu
SnakemaN est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/09/2007, 16h35   #4
Membre Expert
 
Avatar de jeanbi
 
Inscription : avril 2003
Messages : 1 645
Détails du profil
Informations forums :
Inscription : avril 2003
Messages : 1 645
Points : 1 846
Points : 1 846
bonjour,
comment veux tu que je connaisse son menu , moi je donne un exemple à chacun de l'adapter.
tu peux affirmer 3 , chez moi se serait 7 .
a+
jeanbi est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/09/2007, 19h02   #5
Invité de passage
 
Inscription : avril 2007
Messages : 7
Détails du profil
Informations forums :
Inscription : avril 2007
Messages : 7
Points : 4
Points : 4
Ci dessous le contenu du fichier menu lst.
Je reponds à la place de kokotis.
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# 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'.           
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 optons 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 specifiv 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=root=/dev/hda2 ro
 
## 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
 
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery mode) single
# altoptions=(recovery mode) single
 
## nonaltoption boot targets option
## This option controls options to pass to only the
## primary kernel menu item.
## You can have ONLY one nonaltoptions line
# nonaltoptions=quiet splash
 
## 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
 
## ## End Default Options ##
 
title		Ubuntu, kernel 2.6.10-5-386 
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro quiet splash
initrd		/boot/initrd.img-2.6.10-5-386
savedefault
boot
 
title		Ubuntu, kernel 2.6.10-5-386 (recovery mode)
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro single
initrd		/boot/initrd.img-2.6.10-5-386
savedefault
boot
 
title		Ubuntu, kernel memtest86+ 
root		(hd0,1)
kernel		/boot/memtest86+.bin  
savedefault
boot
 
### 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/hda1
title		Windows NT/2000/XP
root		(hd0,0)
savedefault
makeactive
chainloader	+1
Je souhaites que vous puissiez corriger ce fichier. Qui plus est comment l'enregistrer dans linux les fichiers s'ouvrent en lecture seule. Et la copie de fichier ne me semble pas possible. Je vous remercie.
Perludix est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/09/2007, 19h26   #6
Membre Expert
 
Avatar de jeanbi
 
Inscription : avril 2003
Messages : 1 645
Détails du profil
Informations forums :
Inscription : avril 2003
Messages : 1 645
Points : 1 846
Points : 1 846
bonjour,
il faut modifier le fichier en root
sudo gedit /boot/grub/menu.lst
et modifie cette ligne
Citation:
# 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'.
default 0 mets 3 a la place de 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 optons 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 specifiv 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=root=/dev/hda2 ro

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

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## nonaltoption boot targets option
## This option controls options to pass to only the
## primary kernel menu item.
## You can have ONLY one nonaltoptions line
# nonaltoptions=quiet splash

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

## ## End Default Options ##

title Ubuntu, kernel 2.6.10-5-386
root (hd0,1)
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro quiet splash
initrd /boot/initrd.img-2.6.10-5-386
savedefault
boot

title Ubuntu, kernel 2.6.10-5-386 (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro single
initrd /boot/initrd.img-2.6.10-5-386
savedefault
boot

title Ubuntu, kernel memtest86+
root (hd0,1)
kernel /boot/memtest86+.bin
savedefault
boot

### 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/hda1
title Windows NT/2000/XP
root (hd0,0)
savedefault
makeactive
chainloader +1
a+
jeanbi est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/09/2007, 20h16   #7
Débutant
 
Avatar de koKoTis
 
Inscription : août 2006
Messages : 3 196
Détails du profil
Informations forums :
Inscription : août 2006
Messages : 3 196
Points : 1 673
Points : 1 673
Bonjour et merci beaucoup
koKoTis est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/09/2007, 22h21   #8
Membre confirmé
 
Homme
Inscription : janvier 2006
Messages : 227
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France, Corse (Corse)

Informations forums :
Inscription : janvier 2006
Messages : 227
Points : 239
Points : 239
bonsoir , je pense q'il serait plus judicieux d garder default à 0 et de déplacer les lignes :
title Windows NT/2000/XP
root (hd0,0)
savedefault
makeactive
chainloader +1
avant les title ubuntu
car lorsque l'on fera des maj on gardera toujours windows en premier
xavier-Pierre est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 28/09/2007, 17h04   #9
Membre Expert
 
Avatar de jeanbi
 
Inscription : avril 2003
Messages : 1 645
Détails du profil
Informations forums :
Inscription : avril 2003
Messages : 1 645
Points : 1 846
Points : 1 846
bonjour,
le fichier ne sera pas changer même avec des mises à jour seul les lignes d'ubuntu seront modifier en changeant le numéro du noyau .
et pour moi il est plus facile de changer un 0 en 3 que de s'amuser a modifier les lignes surtout pour un débutant .
a+
jeanbi est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 28/09/2007, 17h07   #10
Débutant
 
Avatar de koKoTis
 
Inscription : août 2006
Messages : 3 196
Détails du profil
Informations forums :
Inscription : août 2006
Messages : 3 196
Points : 1 673
Points : 1 673
Citation:
Envoyé par jeanbi Voir le message
et pour moi il est plus facile de changer un 0 en 3 que de s'amuser a modifier les lignes surtout pour un débutant
C'est ce que je pensse aussi
koKoTis est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 05h53.


 
 
 
 
Partenaires

Hébergement Web