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 07/01/2008, à 09:29

Amnesiac_

Grub : erreur 17

Bonjour à  tous,

Je me permet de vous solliciter pour un petit soucis à  l'nstallation de mon Ubuntu 7.10
j'ai deux disques en SATA, le sda sur lequel se trouve Vista et le sdb sur lequel j'installe mon Ubuntu.
Une fois l'installation terminée, et après reboot, Grub m'indique une erreur 17 lorsque je veux booter sur Ubuntu et refuse de booter sous Vista.
j'ai pourtant bien indiqué à  Grub, lors de l'installation, la localisation de ma partition "/" (/dev/sdb1).
Est-ce qu'il faut dans ce cas faire une /boot ? Si oui quelle taille doit-elle avoir ?
Merci d'avance.


Ubuntu 12.04 Samsung Serie 7 Chronos

Hors ligne

#2 Le 07/01/2008, à 09:43

marc_qui

Re : Grub : erreur 17

salut,
as-tu installé le grub sur le mbr ?
peux-tu afficher le fichier suivant :
cat /boot/grub/menu.lst

Hors ligne

#3 Le 07/01/2008, à 09:54

Amnesiac_

Re : Grub : erreur 17

Ben vu que je suis du live cd ca me mets une erreur :

cat: /boot/grub/menu.lst: No such file or directory


Ubuntu 12.04 Samsung Serie 7 Chronos

Hors ligne

#4 Le 07/01/2008, à 09:57

marc_qui

Re : Grub : erreur 17

il faut aller dans le répertoire dans lequel tu as installé ubuntu regarde dans /media/nom_de_la_partition_ubuntu... ou /mnt

Hors ligne

#5 Le 07/01/2008, à 10:28

Amnesiac_

Re : Grub : erreur 17

bon, jsuis désolé je viens de capter mes erreurs... ca fait longtemps que j'ai pas touché à un Nux..... donc mon menu.lst donne:

# 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=159e15c8-5f51-4557-b668-4b9ee2b62cf9 ro

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

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

## 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            (hd2,0)
kernel          /boot/vmlinuz-2.6.22-14-generic root=UUID=159e15c8-5f51-4557-b668-4b9ee2b62cf9 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            (hd2,0)
kernel          /boot/vmlinuz-2.6.22-14-generic root=UUID=159e15c8-5f51-4557-b668-4b9ee2b62cf9 ro single
initrd          /boot/initrd.img-2.6.22-14-generic

title           Ubuntu 7.10, memtest86+
root            (hd2,0)
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            (hd1,0)
savedefault
map             (hd0) (hd1)
map             (hd1) (hd0)
chainloader     +1


Ubuntu 12.04 Samsung Serie 7 Chronos

Hors ligne

#6 Le 07/01/2008, à 13:30

denis_aec

Re : Grub : erreur 17

Surprenant : (hd2,0) qui voudrait dire sdc ou qqchose d'approchant. Peux-tu donner le résultat de :
sudo fdisk -l
cat /media/<nom_de_la_partition_ubuntu>/boot/grub/device.map

Hors ligne

#7 Le 07/01/2008, à 13:38

Amnesiac_

Re : Grub : erreur 17

vi tout de suite monsieur:)


Ubuntu 12.04 Samsung Serie 7 Chronos

Hors ligne

#8 Le 07/01/2008, à 13:53

Amnesiac_

Re : Grub : erreur 17

pour fdisk -l :


Disk /dev/hdc: 80.0 GB, 80054059008 bytes
255 heads, 63 sectors/track, 9732 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xfa3d444a

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1   *           1        9733    78175232    7  HPFS/NTFS

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf52cf52c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        5100    40960000    7  HPFS/NTFS
/dev/sda2            5100       19458   115328000    7  HPFS/NTFS

Disk /dev/sdb: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000b0227

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        2432    19535008+  83  Linux
/dev/sdb2            2433        9964    60500790    5  Extended
/dev/sdb5            9554        9964     3301326   82  Linux swap / Solaris
/dev/sdb6            2433        4256    14651217   83  Linux
/dev/sdb7            4257        4378      979933+  83  Linux
/dev/sdb8            4379        4500      979933+  83  Linux
/dev/sdb9            4501        4690     1526143+  83  Linux
/dev/sdb10           4691        9553    39062016   83  Linux

Partition table entries are not in disk order

Disk /dev/sdc: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8f9c798a

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1       30401   244196001    c  W95 FAT32 (LBA)

Disk /dev/sdd: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xb3a23e6c

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               2        9964    80027797+   f  W95 Ext'd (LBA)
/dev/sdd5               2        9964    80027766    7  HPFS/NTFS

Disk /dev/sdf: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x51a0bebd

   Device Boot      Start         End      Blocks   Id  System
/dev/sdf1   *           1       60801   488384001    c  W95 FAT32 (LBA)


Ubuntu 12.04 Samsung Serie 7 Chronos

Hors ligne

#9 Le 07/01/2008, à 13:56

Amnesiac_

Re : Grub : erreur 17

le device.map :


(hd0)   /dev/hdc
(hd1)   /dev/sda
(hd2)   /dev/sdb
(hd3)   /dev/sdc
(hd4)   /dev/sdd
(hd5)   /dev/sde


Ubuntu 12.04 Samsung Serie 7 Chronos

Hors ligne

#10 Le 07/01/2008, à 13:57

Amnesiac_

Re : Grub : erreur 17

Si j'ai bien compris le hd2 ne pose pas de problème vu qu'il renvoie au bon disque non ?


Ubuntu 12.04 Samsung Serie 7 Chronos

Hors ligne

#11 Le 07/01/2008, à 14:41

denis_aec

Re : Grub : erreur 17

hd2 s'adresse bien à  sdb, mais :
17 : Cannot mount selected partition
    Cette erreur est retournée si la partition demandée existe, mais le type du système de fichiers n'est pas reconnu par GRUB.

Le problème est donc ailleurs ...
- soit la partition est corrompue, et, en livecd, tu peux faire :
sudo fsck /dev/sdb1

- soit le mapping est incorrect. Démarre sur le disque en bootant sur le livecd puis "boot from disk", puis :
sudo update-grub

-si ça ne marche pas, réinstallation de grub :
http://doc.ubuntu-fr.org/grub
Réinstallation de grub :
quelque part après "Installation de GRUB", "Restauration", "avec le Livecd"

Hors ligne

#12 Le 07/01/2008, à 15:37

Amnesiac_

Re : Grub : erreur 17

bon;
j'ai réinstallé tout le système et maintenant j'ai :
error 22 : no such partition

quand je mets "boot from hard disk" depuis le live cd c'est "error 21"

une idée..?....:s

Dernière modification par Amnesiac_ (Le 07/01/2008, à 18:14)


Ubuntu 12.04 Samsung Serie 7 Chronos

Hors ligne

#13 Le 07/01/2008, à 16:10

denis_aec

Re : Grub : erreur 17

22 : No such partition
    Cette erreur est retournée si une partition demandée n'existe pas sur le disque sélectionné.
21 : Selected disk does not exist
    Cette erreur est retournée si une chaà®ne désigne un disque ou un périphérique BIOS qui n'est pas présent ou n'est pas reconnu par le BIOS.

Qu'est-ce que tu appelles réinstaller tout le système ?

Hors ligne

#14 Le 07/01/2008, à 16:29

Amnesiac_

Re : Grub : erreur 17

ben j'ai formaté et réinstallé.
j'ai aussi refait mes partitions mais ca commence a ma gonfler je comprend trop pas le probleme


Ubuntu 12.04 Samsung Serie 7 Chronos

Hors ligne

#15 Le 07/01/2008, à 19:21

Amnesiac_

Re : Grub : erreur 17

roll up.....?

Dernière modification par Amnesiac_ (Le 07/01/2008, à 19:22)


Ubuntu 12.04 Samsung Serie 7 Chronos

Hors ligne

#16 Le 07/01/2008, à 19:29

safinaz

Re : Grub : erreur 17

salut,

est ce que tu vois le menu de grub avec la liste des OS
au démarrage ou pas.

Si oui, redémarre place toi sur la première entrée ubuntu puis
appui deux fois sur la touche e
change root (hd2,0) en root (hd0,0)
puis appui sur la touche enter puis sur la touche b.

As tu bien configuré le bios pour qu'il boot sur le disque contenant ubuntu??

#17 Le 07/01/2008, à 19:48

Amnesiac_

Re : Grub : erreur 17

oui je vois le menu que tu évoques je vais test ta manip' merci.


Ubuntu 12.04 Samsung Serie 7 Chronos

Hors ligne

#18 Le 07/01/2008, à 19:54

safinaz

Re : Grub : erreur 17

Une fois ubuntu démarré en dur
fais ceci alors dans le menu.lst pour ne plus faire la manip

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

### 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)
map             (hd0) (hd2)
map             (hd2) (hd0)
root            (hd1,0)
savedefault
chainloader     +1

enregistre
puis tape

sudo update-grub

#19 Le 07/01/2008, à 20:24

Amnesiac_

Re : Grub : erreur 17

merci ca marche nickel a part que Vista ne boot toujours pas dans le grub mais j'vais voir ca plus tard


Ubuntu 12.04 Samsung Serie 7 Chronos

Hors ligne

#20 Le 07/01/2008, à 20:26

safinaz

Re : Grub : erreur 17

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

remplace 2 par 1 dans les map

#21 Le 07/01/2008, à 21:52

Amnesiac_

Re : Grub : erreur 17

vi j'ai fait mais toujours la meme erreur..


Ubuntu 12.04 Samsung Serie 7 Chronos

Hors ligne

#22 Le 08/01/2008, à 18:34

Bygoo

Re : Grub : erreur 17

Salut je me permet un petit up, j'ai le même type de probleme, j'ai déjà  lu la doc concernant le grub ainsi que d'autres post, j'ai donc à  peu près piger le principe mais j'arrive pas à  l'appliquer...donc je me sert toujours du boot dd du live cd pour lancer mon ubuntu et un peu relou... voilà  mon grub (les xp passent biens,c'est les ubuntu qui merdouilles meme erreur 17)

# 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=85302e1a-e1d1-4395-a987-fc52f25891ef 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 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=(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        (hd1,1)
kernel        /boot/vmlinuz-2.6.22-14-generic root=UUID=85302e1a-e1d1-4395-a987-fc52f25891ef 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 (recovery mode)
root        (hd1,1)
kernel        /boot/vmlinuz-2.6.22-14-generic root=UUID=85302e1a-e1d1-4395-a987-fc52f25891ef ro single
initrd        /boot/initrd.img-2.6.22-14-generic

title        Ubuntu 7.10, 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/hda1
title        Windows NT/2000/XP (loader)
root        (hd0,0)
savedefault
makeactive
chainloader    +1


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title        Microsoft Windows XP Professionnel
root        (hd1,0)
savedefault
makeactive
map        (hd0) (hd1)
map        (hd1) (hd0)
chainloader    +1

Hors ligne

#23 Le 08/01/2008, à 18:37

safinaz

Re : Grub : erreur 17

redémarre place toi sur la première entrée ubuntu
Ubuntu 7.10, kernel 2.6.22-14-generic
puis
appui deux fois sur la touche e
change root (hd1,1) en root (hd0,1)
puis appui sur la touche enter puis sur la touche b.

#24 Le 08/01/2008, à 18:57

Bygoo

Re : Grub : erreur 17

wé, ca marche, donc maintenant il faut que j'edit mon grub et qu je mette ca:

title        Ubuntu 7.10, kernel 2.6.22-14-generic
map             (hd0) (hd1)
map             (hd1) (hd0)
root            (hd1,0)
savedefault
chainloader     +1
kernel        /boot/vmlinuz-2.6.22-14-generic root=UUID=85302e1a-e1d1-4395-a987-fc52f25891ef ro quiet splash locale=fr_FR
initrd        /boot/initrd.img-2.6.22-14-generic
quiet

c'est ca?

Hors ligne

#25 Le 08/01/2008, à 19:08

safinaz

Re : Grub : erreur 17

non pas du tout

démarre sur ubuntu comme j'ai dit si tu ne l'es pas

ouvre le menu.lst
dans la ligne

# groot=(hd1,1)    change (hd1,1) par (hd0,1)

puis enregistre, ferme
puis tape

sudo update-grub