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 22/07/2006, à 18:08

madduck

[Résolu] réinstaller Grub sur le MBR après une install de Windows

Bonjour,

Je viens de reinstaller windows et de ce fait je ne peux plus booter sur mon ubuntu.
J'ai essayé tous les tuto mais a chaque fois ca plante car mon disque est un sata.

Si je met (hd0,0) il ne trouve rien car c'est du sata et si je met (sda0,0) ca me fait une belle erreur.

Comment remettre grub sur le MBR.

Merci

Madduck

Dernière modification par madduck (Le 22/07/2006, à 23:16)

Hors ligne

#2 Le 22/07/2006, à 18:10

michel2652

Re : [Résolu] réinstaller Grub sur le MBR après une install de Windows

Bonjour,

Même si c'est du sata c'est noté hd0 dans le menu.list de grub.
Colle ton fstab et ton menu.list stp.

A+

#3 Le 22/07/2006, à 18:19

madduck

Re : [Résolu] réinstaller Grub sur le MBR après une install de Windows

bon en fait je ne sais meme pas refaire l'install de grub.
Ca ne plante pas au demarrage du PC mais a l'install de GRUB (c'etait juste pour etre sur que nous sommes bien sur la meme longueur d'onde tongue)

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 change this entry to 'saved' 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=/dev/sda2 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

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

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

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

## ## End Default Options ##

title		Ubuntu, kernel 2.6.15-26-amd64-generic
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.15-26-amd64-generic root=/dev/sda2 ro quiet splash
initrd		/boot/initrd.img-2.6.15-26-amd64-generic
savedefault
boot

title		Ubuntu, kernel 2.6.15-26-amd64-generic (recovery mode)
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.15-26-amd64-generic root=/dev/sda2 ro single
initrd		/boot/initrd.img-2.6.15-26-amd64-generic
boot

title		Ubuntu, kernel 2.6.15-25-amd64-generic
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.15-25-amd64-generic root=/dev/sda2 ro quiet splash
initrd		/boot/initrd.img-2.6.15-25-amd64-generic
savedefault
boot

title		Ubuntu, kernel 2.6.15-25-amd64-generic (recovery mode)
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.15-25-amd64-generic root=/dev/sda2 ro single
initrd		/boot/initrd.img-2.6.15-25-amd64-generic
boot

title		Ubuntu, kernel 2.6.15-23-amd64-k8
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.15-23-amd64-k8 root=/dev/sda2 ro quiet splash
initrd		/boot/initrd.img-2.6.15-23-amd64-k8
savedefault
boot

title		Ubuntu, kernel 2.6.15-23-amd64-k8 (recovery mode)
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.15-23-amd64-k8 root=/dev/sda2 ro single
initrd		/boot/initrd.img-2.6.15-23-amd64-k8
boot

title		Ubuntu, kernel 2.6.15-23-amd64-generic
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.15-23-amd64-generic root=/dev/sda2 ro quiet splash
initrd		/boot/initrd.img-2.6.15-23-amd64-generic
savedefault
boot

title		Ubuntu, kernel 2.6.15-23-amd64-generic (recovery mode)
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.15-23-amd64-generic root=/dev/sda2 ro single
initrd		/boot/initrd.img-2.6.15-23-amd64-generic
boot

title		Ubuntu, kernel 2.6.15-21-amd64-generic
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.15-21-amd64-generic root=/dev/sda2 ro quiet splash
initrd		/boot/initrd.img-2.6.15-21-amd64-generic
savedefault
boot

title		Ubuntu, kernel 2.6.15-21-amd64-generic (recovery mode)
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.15-21-amd64-generic root=/dev/sda2 ro single
initrd		/boot/initrd.img-2.6.15-21-amd64-generic
boot

title		Ubuntu, memtest86+
root		(hd0,1)
kernel		/boot/memtest86+.bin 
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/sda1
title		Microsoft Windows XP Professionnel
root		(hd0,0)
savedefault
makeactive
chainloader	+1

et la le fstab

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda2       /               ext3    defaults,errors=remount-ro 0       1
/dev/sda1       /windows     ntfs    defaults,nls=utf8,umask=007,gid=46 0       1
/dev/sda3       /data     ext3    defaults        0       2
/dev/sda4       none            swap    sw              0       0
/dev/hda        /media/cdrom0   udf,iso9660 user,noauto     0       0

Hors ligne

#4 Le 22/07/2006, à 19:17

madduck

Re : [Résolu] réinstaller Grub sur le MBR après une install de Windows

personne pour m'aider ??
je vais quand meme pas devior tout reinstaller juste pour ca !!! sad:(:(

Hors ligne

#5 Le 22/07/2006, à 21:50

jibe

Re : [Résolu] réinstaller Grub sur le MBR après une install de Windows

Salut,

Peut-être une piste : j'ai eu un problème similaire en tentant de réinstaller grub à partir d'un "system rescue CD". J'ai fini par m'apercevoir que la version de grub n'était pas la même que celle utilisée par Ubuntu. Je n'ai pas trop cherché à comprendre : j'ai appelé le grub du disque Ubuntu en lieu et place de celui du CD de dépannage, et tout a bien marché.

Sinon, en faisant :

grub> find /boot/grub/stage1

obtiens-tu un résultat ? Essaie avec plusieurs dénominations de disque pour déterminer si le tien est bien hd0 ou autre chose (jamais monté de disques SATA, je ne demande qu'à croire michel2652, mais je suis parfois un peu comme St THomas wink )


Il y a deux manières de paraitre supérieur : en montrant sa valeur ou en dévalorisant les autres.

Hors ligne

#6 Le 22/07/2006, à 21:56

michel2652

Re : [Résolu] réinstaller Grub sur le MBR après une install de Windows

Bonjour,

Si, si.
menu.list :

# 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 change this entry to 'saved' 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		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=/dev/sda1 ro

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

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

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

## ## End Default Options ##

title		Ubuntu, kernel 2.6.15-26-686
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.15-26-686 root=/dev/sda1 ro quiet splash
initrd		/boot/initrd.img-2.6.15-26-686
savedefault
boot

title		Ubuntu, kernel 2.6.15-26-686 (recovery mode)
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.15-26-686 root=/dev/sda1 ro single
initrd		/boot/initrd.img-2.6.15-26-686
boot

title		Ubuntu, kernel 2.6.15-25-686
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.15-25-686 root=/dev/sda1 ro quiet splash
initrd		/boot/initrd.img-2.6.15-25-686
savedefault
boot

title		Ubuntu, kernel 2.6.15-25-686 (recovery mode)
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.15-25-686 root=/dev/sda1 ro single
initrd		/boot/initrd.img-2.6.15-25-686
boot

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

### END DEBIAN AUTOMAGIC KERNELS LIST

fstab :

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda1       /               ext3    defaults,errors=remount-ro 0       1
/dev/sda3       /home           ext3    defaults        0       2
/dev/sda4       /media/stock_1_WD_74   ext3    defaults        0       2
/dev/sdc1       /media/stock_6_Maxt_200  ext3    defaults        0       2
/dev/sdb1       /media/stock_5_Maxt_250  ext3    defaults        0       2
/dev/sda2       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/hdd        /media/cdrom1   udf,iso9660 user,noauto     0       0

A+

#7 Le 22/07/2006, à 22:24

jibe

Re : [Résolu] réinstaller Grub sur le MBR après une install de Windows

Au temps pour moi ! J'aurais effectivement pu voir ça dans le menu.lst de madduck...

Mais comme à priori il s'agit dans son cas d'une impossibilité de réinstallation de grub et non de lancement d'un quelconque OS (si j'ai bien compris la question...), je n'ai pas regardé son menu.lst...


Il y a deux manières de paraitre supérieur : en montrant sa valeur ou en dévalorisant les autres.

Hors ligne

#8 Le 22/07/2006, à 22:38

michel2652

Re : [Résolu] réinstaller Grub sur le MBR après une install de Windows

jibe a écrit :

il s'agit dans son cas d'une impossibilité de réinstallation de grub

Non, c'est moi qui ai mal lu le post (en pointillé).

@madduck, le tuto du wiki avec le live CD ne marche pas ?

A+

#9 Le 22/07/2006, à 23:16

madduck

Re : [Résolu] réinstaller Grub sur le MBR après une install de Windows

NOn le tuto ne fonctionne pas.
Le problème est résolu par l'installation de GAG (je l'avais oublié celui-là!!)
C'est une excellente alternative aux classiques GRUB et LILO.

Bonne soirée

Hors ligne

#10 Le 23/07/2006, à 21:52

jibe

Re : [Résolu] réinstaller Grub sur le MBR après une install de Windows

Salut,

Heureux d'apprendre que tu as pu solutionner ton problème smile

Juste par curiosité personnelle : avais-tu tenté la réinstallation de grub comme je te l'avais indiquée avant d'installer GAG ?


Il y a deux manières de paraitre supérieur : en montrant sa valeur ou en dévalorisant les autres.

Hors ligne