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 11/09/2008, à 18:55

gesor

Erreur manip dans le grub

Bonsoir,
Je viens de faire une mauvaise manip et changé un chiffre, Ubuntu ne redemarre pas, là je suis en live cd, j'avais fait une sauvegarde du grub sur le bureau, comment le retrouver et le rectifier, d'avance merci.

Hors ligne

#2 Le 11/09/2008, à 19:12

Jidey

Re : Erreur manip dans le grub

Je suppose que tu parle du fichier /boot/grub/menu.lst c'est bien ca?
Pour accéder à ton bureau, il faut que tu montes la partition sur laquelle il se trouve. Si tu as fais 2 partitions séparées pour / et pour /home, c'est sur la partition /home il me semble.
Je fais comme si tu n'as qu'une partition sur ton système, adapte si c'est pas le cas.

Une fois que tu as monté ta partition, tu fais (dans un terminal) :

sudo mv /point_de_montage/home/ton_login/Bureau/menu.lst.bak /point_de_montage/boot/grub/menu.lst

Et normalement c'est bon.

++

Hors ligne

#3 Le 11/09/2008, à 19:52

gesor

Re : Erreur manip dans le grub

Merci pour ta réponse Jidey, j'ai fait un copier-coller, Ubuntu ne veut rien savoir,j'ai un message d'erreur:
file system check failled
A log is being saved in /var/log/fdsk/checkfs if that location is vritable.
Donc il faudrai que je trouve ce log.
En réalité c'est le fichier grub que je dois rectifier ou changer, j'ai vu sur le net: grub.conf ?

Voila le grub initial:
Code:

# 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 xy
# 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=bb3c4a33-99df-43b8-bd25-66ed76b3bbe3 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

## 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 8.04.1, kernel 2.6.24-19-generic
root        (hd1,1)
kernel        /boot/vmlinuz-2.6.24-19-generic root=UUID=bb3c4a33-99df-43b8-bd25-66ed76b3bbe3 ro quiet splash
initrd        /boot/initrd.img-2.6.24-19-generic
quiet

title        Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root        (hd1,1)
kernel        /boot/vmlinuz-2.6.24-19-generic root=UUID=bb3c4a33-99df-43b8-bd25-66ed76b3bbe3 ro single
initrd        /boot/initrd.img-2.6.24-19-generic

title        Ubuntu 8.04.1, kernel 2.6.24-16-generic
root        (hd1,1)
kernel        /boot/vmlinuz-2.6.24-16-generic root=UUID=bb3c4a33-99df-43b8-bd25-66ed76b3bbe3 ro quiet splash
initrd        /boot/initrd.img-2.6.24-16-generic

quiet

quiet

title        Ubuntu 8.04.1, kernel 2.6.24-16-generic (recovery mode)
root        (hd1,1)
kernel        /boot/vmlinuz-2.6.24-16-generic root=UUID=bb3c4a33-99df-43b8-bd25-66ed76b3bbe3 ro single
initrd        /boot/initrd.img-2.6.24-16-generic

title        Ubuntu 8.04.1, memtest86+
root        (hd1,1)

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 Vista/Longhorn (loader)
root        (hd0,0)

savedefault
makeactive
chainloader    +1


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

J'ai remis les mêmes valeurs, le problème persiste ?

Hors ligne

#4 Le 11/09/2008, à 19:58

Jidey

Re : Erreur manip dans le grub

C'est quels chiffres que tu as changé?
Et ce que tu as posté, c'est pas le fichier grub.conf (ca existe ca d'ailleurs grub.conf? jamais utilisé moi...), c'est le fichier menu.lst

En fait, si tu pouvais me dire ce que tu cherchais à faire, et quel(s) fichier(s) tu as bidouillé exactement, ça m'aiderait pas mal ^^'

Hors ligne

#5 Le 11/09/2008, à 20:52

gesor

Re : Erreur manip dans le grub

En premier le résultat du lod checkfs:
fsck 1.40.8 (13-Mar-2008)
fsck.ext3: Device or resource busy while trying to open /dev/sdb3

Filesystem mounted or opened exclusively by another program?
fsck died with exit status 8

En second le changement apporté au grub:

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


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

Il y avait:
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title        Windows Vista/Longhorn (loader)
root        (hd0,0)
savedefault
makeactive
chainloader    +1


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

Hors ligne

#6 Le 11/09/2008, à 21:00

Compte anonymisé

Re : Erreur manip dans le grub

Salut

En Livecd tu peux donner les résultats de :
sudo  ls  -l  /dev/disk/by-uuid/
sudo  fdisk  -l
et lister le fichier /etc/fstab qui doit se trouver sur la même partition que menu.lst :
/point_de_montage/etc/fstab

@+

#7 Le 11/09/2008, à 21:17

gesor

Re : Erreur manip dans le grub

root@ubuntu:~# sudo  ls  -l  /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 2008-09-11 21:05 446A495623222949 -> ../../sdb1
lrwxrwxrwx 1 root root 10 2008-09-11 21:05 4C6D2AA775384E77 -> ../../sda5
lrwxrwxrwx 1 root root 10 2008-09-11 21:05 6C387A49387A1276 -> ../../sda3
lrwxrwxrwx 1 root root 10 2008-09-11 21:05 9a0228c3-5db7-410f-8e61-2e081fae1bea -> ../../sdb3
lrwxrwxrwx 1 root root 10 2008-09-11 21:05 b3d4d518-5e79-4e93-ab3f-f33b63c008bc -> ../../sdb4
lrwxrwxrwx 1 root root 10 2008-09-11 21:05 bb3c4a33-99df-43b8-bd25-66ed76b3bbe3 -> ../../sdb2
lrwxrwxrwx 1 root root 10 2008-09-11 21:05 C0E48DEFE48DE84C -> ../../sda1


root@ubuntu:~# sudo  fdisk  -l

Disque /dev/sda: 500.1 Go, 500107862016 octets
255 heads, 63 sectors/track, 60801 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Identifiant disque: 0x535616c4

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sda1   *           1       16066   129050113+   7  HPFS/NTFS
/dev/sda2           16068       41129   201310515    5  Extended
/dev/sda3           41130       60802   158014384+   7  HPFS/NTFS
La partition 3 ne se termine pas sur une frontière de cylindre.
/dev/sda5           16068       41129   201310483+   7  HPFS/NTFS

Disque /dev/sdb: 500.1 Go, 500107862016 octets
255 heads, 63 sectors/track, 60801 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Identifiant disque: 0x11900d7b

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sdb1               1       55574   446390122+   7  HPFS/NTFS
/dev/sdb2           55575       56975    11253532+  83  Linux
/dev/sdb3           56976       60279    26539380   83  Linux
/dev/sdb4           60280       60801     4192965   82  Linux swap / Solaris
root@ubuntu:~#

Il n'y a pas de fichier fstab

Hors ligne

#8 Le 11/09/2008, à 21:22

Compte anonymisé

Re : Erreur manip dans le grub

Le fichier fstab doit se trouver dans le répertoire /etc de la partition /dev/sdb2

@+

#9 Le 11/09/2008, à 21:32

gesor

Re : Erreur manip dans le grub

Je voulais t'nvoyer une copie ecran pour te montrer que dans etc/ il n'y a pas fstab !

Hors ligne

#10 Le 11/09/2008, à 21:34

Compte anonymisé

Re : Erreur manip dans le grub

sudo  umount  /dev/sdb2
sudo  mount  /dev/sdb2  /mnt
cat  /mnt/boot/fstab  --->erreur c'est : cat  /mnt/etc/fstab

Dernière modification par Compte anonymisé (Le 11/09/2008, à 21:50)

#11 Le 11/09/2008, à 21:42

gesor

Re : Erreur manip dans le grub

ubuntu@ubuntu:~$ sudo -s
root@ubuntu:~# sudo  umount  /dev/sdb2
root@ubuntu:~# sudo  mount  /dev/sdb2  /mnt
root@ubuntu:~# cat  /mnt/boot/fstab
cat: /mnt/boot/fstab: Aucun fichier ou dossier de ce type
root@ubuntu:~#

Désolé mais c'est la réponse !

Hors ligne

#12 Le 11/09/2008, à 21:48

Compte anonymisé

Re : Erreur manip dans le grub

Millexcuses

c'est :
cat  /mnt/etc/fstab
@+

Dernière modification par Compte anonymisé (Le 11/09/2008, à 21:49)

#13 Le 11/09/2008, à 21:54

gesor

Re : Erreur manip dans le grub

Sympa. de t'occuper de mon cas, la réponse:
root@ubuntu:~# cat  /mnt/etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sdb2
UUID=bb3c4a33-99df-43b8-bd25-66ed76b3bbe3 /               ext3    relatime,errors=remount-ro 0       1
# /dev/sdb3
UUID=9a0228c3-5db7-410f-8e61-2e081fae1bea /home           ext3    relatime        0       2
# /dev/sda5
UUID=4C6D2AA775384E77 /media/documents ntfs    defaults,umask=007,gid=46 0       1
# /dev/sdb1
UUID=446A495623222949 /media/hitachi  ntfs    defaults,umask=007,gid=46 0       1
# /dev/sda3
UUID=6C387A49387A1276 /media/sauvegardes ntfs    defaults,umask=007,gid=46 0       1
# /dev/sda1
UUID=C0E48DEFE48DE84C /media/windows  ntfs    defaults,umask=007,gid=46 0       1
# /dev/sdb4
UUID=b3d4d518-5e79-4e93-ab3f-f33b63c008bc none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
root@ubuntu:~#

Hors ligne

#14 Le 11/09/2008, à 22:03

Compte anonymisé

Re : Erreur manip dans le grub

Peux-tu aussi lister le fichier menu.lst de /dev/sdb2  (entre balises

Code

) :
sudo  gedit  /mnt/boot/grub/menu.lst

Sinon il semble y avoir un problème sur ta partition /home;
tu peux lancer une réparation :
sudo  umount  /dev/sdb3  on ne répare jamais une partition montée
puis
sudo  fsck -f -y  /dev/sdb3

@+

#15 Le 11/09/2008, à 22:09

gesor

Re : Erreur manip dans le grub

# 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=bb3c4a33-99df-43b8-bd25-66ed76b3bbe3 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

## 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 8.04.1, kernel 2.6.24-19-generic
root        (hd1,1)
kernel        /boot/vmlinuz-2.6.24-19-generic root=UUID=bb3c4a33-99df-43b8-bd25-66ed76b3bbe3 ro quiet splash
initrd        /boot/initrd.img-2.6.24-19-generic
quiet

title        Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root        (hd1,1)
kernel        /boot/vmlinuz-2.6.24-19-generic root=UUID=bb3c4a33-99df-43b8-bd25-66ed76b3bbe3 ro single
initrd        /boot/initrd.img-2.6.24-19-generic

title        Ubuntu 8.04.1, kernel 2.6.24-16-generic
root        (hd1,1)
kernel        /boot/vmlinuz-2.6.24-16-generic root=UUID=bb3c4a33-99df-43b8-bd25-66ed76b3bbe3 ro quiet splash
initrd        /boot/initrd.img-2.6.24-16-generic
quiet

title        Ubuntu 8.04.1, kernel 2.6.24-16-generic (recovery mode)
root        (hd1,1)
kernel        /boot/vmlinuz-2.6.24-16-generic root=UUID=bb3c4a33-99df-43b8-bd25-66ed76b3bbe3 ro single
initrd        /boot/initrd.img-2.6.24-16-generic

title        Ubuntu 8.04.1, memtest86+
root        (hd1,1)
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 Vista/Longhorn (loader)
root        (hd0,0)
savedefault
makeactive
chainloader    +1


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

Hors ligne

#16 Le 11/09/2008, à 22:12

gesor

Re : Erreur manip dans le grub

Petit avertissement:

ubuntu@ubuntu:~$ sudo -s
root@ubuntu:~# sudo  fsck -f -y  /dev/sdb3
fsck 1.40.8 (13-Mar-2008)
e2fsck 1.40.8 (13-Mar-2008)
/dev/sdb3 est monté. 

AVERTISSEMENT !!! L'exécution d'e2fsck sur un système de fichiers monté
peut causer des dommages SÉVÈRES au système de fichiers.

Souhaitez-vous réellement continuer (o/n)?

Hors ligne

#17 Le 11/09/2008, à 22:14

Compte anonymisé

Re : Erreur manip dans le grub

post #14

Sinon il semble y avoir un problème sur ta partition /home;
tu peux lancer une réparation :
sudo  umount  /dev/sdb3  on ne répare jamais une partition montée
puis
sudo  fsck -f -y  /dev/sdb3

Tu réponds n puis tu démontes et recommences

#18 Le 11/09/2008, à 22:18

gesor

Re : Erreur manip dans le grub

Tu penses quoi ?

ubuntu@ubuntu:~$ sudo -s
root@ubuntu:~# sudo  umount  /dev/sdb3
root@ubuntu:~# sudo  fsck -f -y  /dev/sdb3
fsck 1.40.8 (13-Mar-2008)
e2fsck 1.40.8 (13-Mar-2008)
Passe 1 : vérification des i-noeuds, des blocs et des tailles
Passe 2 : vérification de la structure des répertoires
Passe 3 : vérification de la connectivité des répertoires
Passe 4 : vérification des compteurs de référence
Passe 5 : vérification de l'information du sommaire de groupe
/dev/sdb3: 829/1662976 files (9.2% non-contiguous), 111344/6634845 blocks
root@ubuntu:~#

Hors ligne

#19 Le 11/09/2008, à 22:19

Compte anonymisé

Re : Erreur manip dans le grub

Si tu rebootes quel est le message d'erreur grub ?

#20 Le 11/09/2008, à 22:20

gesor

Re : Erreur manip dans le grub

De toute façon, s'il y a très peu de solutions, je formate les partitions et je réinstalle !

Hors ligne

#21 Le 11/09/2008, à 22:22

Compte anonymisé

Re : Erreur manip dans le grub

Reste à savoir ce que tu as changé dans menu.lst car il parait correct

#22 Le 11/09/2008, à 22:53

gesor

Re : Erreur manip dans le grub

Je viens de tout formater et réinstaller, un dernier renseigement pour demarrer sur vista ?
# 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
# 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=20ecad12-5bbb-4495-be53-6571a8ecfde8 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

## 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 8.04, kernel 2.6.24-16-generic
root        (hd1,1)
kernel        /boot/vmlinuz-2.6.24-16-generic root=UUID=20ecad12-5bbb-4495-be53-6571a8ecfde8 ro quiet splash
initrd        /boot/initrd.img-2.6.24-16-generic
quiet

title        Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root        (hd1,1)
kernel        /boot/vmlinuz-2.6.24-16-generic root=UUID=20ecad12-5bbb-4495-be53-6571a8ecfde8 ro single
initrd        /boot/initrd.img-2.6.24-16-generic

title        Ubuntu 8.04, memtest86+
root        (hd1,1)
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 Vista/Longhorn (loader)
root        (hd0,0)
savedefault
makeactive
chainloader    +1


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

Hors ligne

#23 Le 11/09/2008, à 23:04

Compte anonymisé

Re : Erreur manip dans le grub

Je viens de tout formater et réinstaller, un dernier renseigement pour demarrer sur vista ?

Quel renseignement ?

#24 Le 12/09/2008, à 17:43

gesor

Re : Erreur manip dans le grub

Quelle est la modif à faire dans le grub ci-dessus pour démarrer en 1er sur Windows?

Hors ligne