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 03/01/2008, à 00:34

martikos

probleme de GRUB

bonsoir, je suis un nouvel arrivant sur ubuntu et j'ai voulu l'installer sur un portable contenant déja vista. j'ai déja obtenu error 22 lors de ma premiere installation. un ami m'a arrangé le probleme.

seulement , en mettant des mises à  jour sur linux , j'ai perdu la ligne "windows vista" au demarrage qui permettait de booter sur vista .

j'ai essayé de modifier le grub avec pour resultat : lorsque j'ai rebooté sur ce que je croyais vista ,  un message d'erreur en rouge et pour finir ceci:

GRUB loading stage1.5

Error 17

...

que puis je faire pour retouver mes deux sessions? je pensais tout réinstaller , y a-t-il une autre alternative ? merci

Hors ligne

#2 Le 03/01/2008, à 00:37

best_friend_fr

Re : probleme de GRUB

Salut

Si tu as acces a Ubuntu, poste ici ton /boot/grub/menu.lst


sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr

Hors ligne

#3 Le 03/01/2008, à 00:40

martikos

Re : probleme de GRUB

non désolé, j'utilise un autre ordi pour aller sur internet . sur le mien, j'arrive juste à aller sur le BIOS, mais pas plus loin.

est-ce qu'en remettant le live cd je peux rejoindre ma session linux ?

Hors ligne

#4 Le 03/01/2008, à 00:44

best_friend_fr

Re : probleme de GRUB

Dans ce cas, je pense que le plus simple est de reinstaller grub
http://doc.ubuntu-fr.org/grub#restauration


sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr

Hors ligne

#5 Le 03/01/2008, à 00:49

martikos

Re : probleme de GRUB

Donc, je mets le live cd, et je suis la procedure indiqué sur ce lien . ok je fais ça tout de suite .

Hors ligne

#6 Le 03/01/2008, à 01:20

martikos

Re : probleme de GRUB

c'est fait , j'ai rebooté sur ma session linux et ça se bloque encore , il est ecrit:
error 17: cannot mount selected partition

je ne comprend plus grand chose , j'ai bien tout suivi pourtant !!

Hors ligne

#7 Le 03/01/2008, à 01:23

best_friend_fr

Re : probleme de GRUB

ok
donc sous le liveCD, tu fais

sudo fdisk -l

et tu postes le resultat.

Tu fais aussi

sudo mkdir /mnt/disque
sudo mount /dev/sda2 /mnt/disque

(en supposant que /dev/sda2 est ton disque ubuntu, a adapter)
et tu nous postes le contenu de /mnt/disque/boot/grub/menu.lst


sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr

Hors ligne

#8 Le 03/01/2008, à 01:51

martikos

Re : probleme de GRUB

voila deja le debut de ce que je devais poster
[
fdisk: invalid option -- 1

Usage: fdisk [-b SSZ] [-u] DISK     Change partition table
       fdisk -l [-b SSZ] [-u] DISK  List partition table(s)
       fdisk -s PARTITION           Give partition size(s) in blocks
       fdisk -v                     Give fdisk version
Here DISK is something like /dev/hdb or /dev/sda
and PARTITION is something like /dev/hda7
-u: give Start and End in sector (instead of cylinder) units
-b 2048: (for certain MO disks) use 2048-byte sectors
]

Hors ligne

#9 Le 03/01/2008, à 01:57

best_friend_fr

Re : probleme de GRUB

C'est un L (minuscule)


sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr

Hors ligne

#10 Le 03/01/2008, à 01:58

Titouan

Re : probleme de GRUB

tu as fait une fausse manip
tu as eu l'aide de fdisk

Dans un terminal, tape

sudo fdisk -l      (  l minuscule)

#11 Le 03/01/2008, à 02:02

martikos

Re : probleme de GRUB

pardon, je suis nul , voila ce aue j obtiens

[Disk /dev/sda: 160.0 GB, 160041885696 bytes
129 heads, 4 sectors/track, 605778 cylinders
Units = cylinders of 516 * 512 = 264192 bytes
Disk identifier: 0xf98d6e74

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               4       27787     7168000   1c  Hidden W95 FAT32 (LBA)
/dev/sda2   *       27787      336729    79707031+   7  HPFS/NTFS
/dev/sda3          336730      370610     8741298   83  Linux
/dev/sda4          370611      605772    60671796    f  W95 Ext'd (LBA)
/dev/sda5          374586      605772    59645952    7  HPFS/NTFS]

Hors ligne

#12 Le 03/01/2008, à 02:08

martikos

Re : probleme de GRUB

vous vouliez ce contenu aussi je crois

[# 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 "Windows Vista"

### 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=3094e11a-9ec7-4b0e-9750-cc648b4a4793 ro

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

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

## 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 7.10, kernel 2.6.22-14-generic
root        (hd0,3)
kernel        /boot/vmlinuz-2.6.22-14-generic root=UUID=3094e11a-9ec7-4b0e-9750-cc648b4a4793 ro quiet splash
initrd        /boot/initrd.img-2.6.22-14-generic
quiet

title        Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root        (hd0,3)
kernel        /boot/vmlinuz-2.6.22-14-generic root=UUID=3094e11a-9ec7-4b0e-9750-cc648b4a4793 ro single
initrd        /boot/initrd.img-2.6.22-14-generic

title        Ubuntu 7.10, memtest86+
root        (hd0,3)
kernel        /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1

title        Windows Vista
root        (hd0,0)
savedefault
makeactive
chainloader    +1
boot

title        Windows Vista SESSION DE RECUPERATION
root        (hd0,0)
savedefault
makeactive
chainloader    +1]

Hors ligne

#13 Le 03/01/2008, à 02:14

Titouan

Re : probleme de GRUB

Pourquoi as-tu 2 fois ?

title        Windows Vista
root        (hd0,0)
savedefault
makeactive
chainloader    +1
boot

title        Windows Vista SESSION DE RECUPERATION
root        (hd0,0)
savedefault
makeactive
chainloader    +1

1 seul suffit

#14 Le 03/01/2008, à 02:18

martikos

Re : probleme de GRUB

en fait, je voulais faire apparaitre la ligne "windows vista" au demarrage pour pouvoir aller sur cette session. et lorsque je l'ai fais , j'ai rebooté la session de recup de vista je pense .

Hors ligne

#15 Le 03/01/2008, à 02:21

Titouan

Re : probleme de GRUB

title        Windows Vista
root        (hd0,1)
savedefault
makeactive
chainloader    +1

enregistre & reboot

#16 Le 03/01/2008, à 02:26

martikos

Re : probleme de GRUB

un petit détail , ils me mettent que je n'ai pas les permissions necessaires pour enregistrer , pourtant je suis forcément administrateur de mon ordi ?

Hors ligne

#17 Le 03/01/2008, à 02:32

Titouan

Re : probleme de GRUB

sudo gedit /boot/grub/menu.lst          pour éditer en mode administrateur le fichier
tu te tapes ton mot de passe qui n'apparait pas. c'est normal

#18 Le 03/01/2008, à 02:41

martikos

Re : probleme de GRUB

bah , ça m'ouvre un fichier menu.lst vide , il ne me demande pas mon mot de passe .(je suis tjrs sur le livecd)

Hors ligne

#19 Le 03/01/2008, à 02:43

best_friend_fr

Re : probleme de GRUB

Ton boot sur Ubuntu est faux ausssi, il pointe sur sda4 qui est une partition etendue.

Si ton Ubuntu est sur sda2, tu dois changer tous les (hd0, 3) en (hd0, 2)

Dernière modification par best_friend_fr (Le 03/01/2008, à 02:43)


sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr

Hors ligne

#20 Le 03/01/2008, à 02:44

best_friend_fr

Re : probleme de GRUB

sudo gedit /mnt/disque/boot/grub/menu.lst

sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr

Hors ligne

#21 Le 03/01/2008, à 02:52

martikos

Re : probleme de GRUB

merci je vais rebooter avec cette disposition

## ## 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=3094e11a-9ec7-4b0e-9750-cc648b4a4793 ro quiet splash
initrd        /boot/initrd.img-2.6.22-14-generic
quiet

title        Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root        (hd0,2)
kernel        /boot/vmlinuz-2.6.22-14-generic root=UUID=3094e11a-9ec7-4b0e-9750-cc648b4a4793 ro single
initrd        /boot/initrd.img-2.6.22-14-generic

title        Ubuntu 7.10, memtest86+
root        (hd0,2)
kernel        /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1

title        Windows Vista
root        (hd0,1)
savedefault
makeactive
chainloader    +1


title        Windows Vista SESSION DE RECUPERATION
root        (hd0,0)
savedefault
makeactive
chainloader    +1

Hors ligne

#22 Le 03/01/2008, à 03:00

martikos

Re : probleme de GRUB

bon , à mon avis , il y a encore pas mal de choses à regler , mais j'ai reussi à aller sur ma session linux et sur ma session windows, merci beaucoup pour votre aide .
je n'ai pas tout compris avec les sda2 etc... mais je pense pouvoir me débrouiller ou du moins ne pas refaire les memes erreurs , encore merci.

Hors ligne

#23 Le 03/01/2008, à 04:45

best_friend_fr

Re : probleme de GRUB

Fais un rapport de ce qui marche et de ce qui ne marche pas encore, pour les suivants.


sudo apt-get replace langage_sms by grammaire orthographe ponctuation
La documentation est avant tout faite pour ceux qui posent les questions, et non ceux qui y répondent
Best_friend_fr

Hors ligne

#24 Le 03/01/2008, à 12:24

martikos

Re : probleme de GRUB

c'est bon , tout à l'air de fonctionner. il ne me reste plus qu'à faire cohabiter windows et linux (boite mail commune par exemple).

Hors ligne