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 15/03/2009, à 14:29

benwa666

[RESOLU][GRUB] error 17

Bonjour,

eh bien voilà, suite à un retrait de disque dur, au démarrage de mon pc, grub m'affiche "error 17".

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.

Source : http://www.linux-france.org/article/sys … #Depannage

Je suis en live-cd.

ubuntu@ubuntu:~$ fdisk -l
Cannot open /dev/sda
Cannot open /dev/sdb
Cannot open /dev/sdc

Mon grub est censé être sur sda2 mais :

ubuntu@ubuntu:~$ sudo grub

[ Minimal BASH-like line editing is supported.   For
         the   first   word,  TAB  lists  possible  command
         completions.  Anywhere else TAB lists the possible
         completions of a device/filename. ]

grub> find /boot/grub/stage1

Error 15: File not found

grub> find /grub/stage1

Error 15: File not found

Quand je fais fdisk -l /dev/sda :

ubuntu@ubuntu:~$ sudo fdisk -l /dev/sda

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

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        9726    78124063+  83  Linux
/dev/sda2   *        9727       13373    29294527+  93  Amoeba
/dev/sda3           13374       19091    45929835    f  W95 Ext'd (LBA)
/dev/sda4           19093       19457     2931862+  82  Linux swap / Solaris
/dev/sda5           13374       19091    45929772   83  Linux

Il m'indique Amoeba comme système de fichiers. Bizare...
Je ne me souviens plus de la commande pour remettre cette partition en ext3.

Voici mon "menu.lst" :

ubuntu@ubuntu:~$ cat /media/disk-1/boot/grub/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 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		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=UUID=d4bfd98a-2d91-4be4-8894-419677dc7f3b ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=d4bfd98a-2d91-4be4-8894-419677dc7f3b

## 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.10, kernel 2.6.27-11-generic
uuid		d4bfd98a-2d91-4be4-8894-419677dc7f3b
kernel		/boot/vmlinuz-2.6.27-11-generic root=UUID=d4bfd98a-2d91-4be4-8894-419677dc7f3b ro quiet splash 
initrd		/boot/initrd.img-2.6.27-11-generic
quiet

title		Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
uuid		d4bfd98a-2d91-4be4-8894-419677dc7f3b
kernel		/boot/vmlinuz-2.6.27-11-generic root=UUID=d4bfd98a-2d91-4be4-8894-419677dc7f3b ro  single
initrd		/boot/initrd.img-2.6.27-11-generic

title		Ubuntu 8.10, kernel 2.6.27-9-generic
uuid		d4bfd98a-2d91-4be4-8894-419677dc7f3b
kernel		/boot/vmlinuz-2.6.27-9-generic root=UUID=d4bfd98a-2d91-4be4-8894-419677dc7f3b ro quiet splash 
initrd		/boot/initrd.img-2.6.27-9-generic
quiet

title		Ubuntu 8.10, kernel 2.6.27-9-generic (recovery mode)
uuid		d4bfd98a-2d91-4be4-8894-419677dc7f3b
kernel		/boot/vmlinuz-2.6.27-9-generic root=UUID=d4bfd98a-2d91-4be4-8894-419677dc7f3b ro  single
initrd		/boot/initrd.img-2.6.27-9-generic

title		Ubuntu 8.10, kernel 2.6.27-7-generic
uuid		d4bfd98a-2d91-4be4-8894-419677dc7f3b
kernel		/boot/vmlinuz-2.6.27-7-generic root=UUID=d4bfd98a-2d91-4be4-8894-419677dc7f3b ro quiet splash 
initrd		/boot/initrd.img-2.6.27-7-generic
quiet

title		Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid		d4bfd98a-2d91-4be4-8894-419677dc7f3b
kernel		/boot/vmlinuz-2.6.27-7-generic root=UUID=d4bfd98a-2d91-4be4-8894-419677dc7f3b ro  single
initrd		/boot/initrd.img-2.6.27-7-generic

title		Ubuntu 8.10, memtest86+
uuid		d4bfd98a-2d91-4be4-8894-419677dc7f3b
kernel		/boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

Mon "menu.lst" à l'air correct, ça correspond au bon disque dur :

ubuntu@ubuntu:~$ blkid
ubuntu@ubuntu:~$ sudo !!
sudo blkid
....
/dev/sda2: UUID="d4bfd98a-2d91-4be4-8894-419677dc7f3b" TYPE="ext3" 
....
/dev/loop0: TYPE="squashfs"

Est-ce que changer

## default grub root device
## e.g. groot=(hd0,0)
# groot=d4bfd98a-2d91-4be4-8894-419677dc7f3b

par

## default grub root device
## e.g. groot=(sda,2)
# groot=d4bfd98a-2d91-4be4-8894-419677dc7f3b

dans mon "menu.lst" va tout arranger?

Ou bien ça?

ubuntu@ubuntu:~$ sudo grub

 [ Minimal BASH-like line editing is supported.   For
         the   first   word,  TAB  lists  possible  command
         completions.  Anywhere else TAB lists the possible
         completions of a device/filename. ]

grub> setup (sda)

Quelqu'un a une idée?

Merci.

Dernière modification par benwa666 (Le 16/03/2009, à 20:02)


** J’adorerais changer le monde, mais ils ne veulent pas me fournir le code source.

Hors ligne

#2 Le 15/03/2009, à 15:11

Snake046

Re : [RESOLU][GRUB] error 17

Du côté de tes modifications, tu touche à des lignes commentés, ça ne changera rien.

A mon avis c'est plutôt un de tes systèmes de fichier qui est foireux.


Aucun message n'est caché dans cette signature.

Hors ligne

#3 Le 15/03/2009, à 15:18

benwa666

Re : [RESOLU][GRUB] error 17

Oui merci,
c'est aussi ce que je me disais à propos des lignes commentées.

J'ai trouvé ça içi :
http://forum.breizh-ardente.fr/viewtopi … d=588#p588

A mon avis je dois changer le système de fichiers avec fdisk mais je ne me souviens pas comment.
RTFM, allez-vous me dire, ok je m'y mets à l'instant. big_smile

MAJ : Sauf que je ne trouve pas mon bonheur dans le manuel...
J'essaie donc ça :

ubuntu@ubuntu:~$ sudo e2fsck -f -v /dev/sda2

Dernière modification par benwa666 (Le 15/03/2009, à 15:37)


** J’adorerais changer le monde, mais ils ne veulent pas me fournir le code source.

Hors ligne

#4 Le 15/03/2009, à 15:52

benwa666

Re : [RESOLU][GRUB] error 17

Voici la réponse de sudo e2fsck -f -v /dev/sda2 :

e2fsck 1.41.3 (12-Oct-2008)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

  220744 inodes used (12.05%)
    1450 non-contiguous inodes (0.7%)
         # of inodes with ind/dind/tind blocks: 10889/110/0
 1454658 blocks used (19.86%)
       0 bad blocks
       1 large file

  172365 regular files
   21219 directories
      69 character device files
      26 block device files
       3 fifos
     235 links
   27041 symbolic links (24567 fast symbolic links)
      12 sockets
--------
  220970 files

Je ne trouve pas non plus de réponse dans parted.

J'ai lu ça dans la doc ubuntu (http://doc.ubuntu-fr.org/grub#les_numeros_d_erreur_grub) :

GRUB Error 17

GRUB ne trouve pas le boot. Vérifier que l'ordre des périphériques de boot n'a pas été changé. Si les périphériques de boot sont dans le bon ordre, votre boot est sûrement corrompu. Dans ce cas il vous faudra soit réparer le boot, soit réinstaller ubuntu.

Ce qui voudrait dire que mon boot est corrompu. Mmhhh, je ne suis pas beaucoup plus avancé...

PS : Quand je lis : "Vérifier que l'ordre des périphériques de boot n'a pas été changé.", dois-je  bien comprendre l'ordre des périphériques que je choisis dans le bios?


** J’adorerais changer le monde, mais ils ne veulent pas me fournir le code source.

Hors ligne

#5 Le 15/03/2009, à 16:12

Snake046

Re : [RESOLU][GRUB] error 17

Si il trouve pas la partition de boot alors que celle-ci est bien indiquée, c'est probablement qu'elle est endommagé.
D'ailleurs le type étant assez étrange, ce doit être quelque chose comme ça.

D'autant plus qu'un Grub Error 17 survient avant toute tentative de boot.

Il faut que tu tente une réinstallation de Grub via un live CD.
http://doc.ubuntu-fr.org/grub


Aucun message n'est caché dans cette signature.

Hors ligne

#6 Le 15/03/2009, à 16:16

benwa666

Re : [RESOLU][GRUB] error 17

J'ai déjà essayé avec super grub disk mais je n'y arrive pas.
J'ai pourtant bien suivi les tutos mais j'ai des messages d'erreur.


** J’adorerais changer le monde, mais ils ne veulent pas me fournir le code source.

Hors ligne

#7 Le 15/03/2009, à 16:38

benwa666

Re : [RESOLU][GRUB] error 17

J'ai essayé ceci, mais de nouveau, message d'erreur.

ubuntu@ubuntu:~$ sudo grub-install /dev/sda
Could not find device for /boot: Not found or not a block device.

** J’adorerais changer le monde, mais ils ne veulent pas me fournir le code source.

Hors ligne

#8 Le 15/03/2009, à 18:21

Snake046

Re : [RESOLU][GRUB] error 17

o_o Ton disque doit être endommagé.
Ou ta table de partition est foireuse.

Chais pas.


Aucun message n'est caché dans cette signature.

Hors ligne

#9 Le 15/03/2009, à 23:10

benwa666

Re : [RESOLU][GRUB] error 17

Bonsoir,

Maintenant j'en suis sur, il faut que je remette ma partition (sda2 - (hdo,1) pour grub) en ext3.

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.

Source : http://www.linux-france.org/article/sys … #Depannage

Il n'y a pourtant pas de problème quand je monte le disque en live-cd, le système de fichiers est bien ext3.
Et pourtant :

ubuntu@ubuntu:~$ sudo fdisk -l /dev/sda

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

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        9726    78124063+  83  Linux
/dev/sda2   *        9727       13373    29294527+  93  Amoeba
/dev/sda3           13374       19091    45929835    f  W95 Ext'd (LBA)
/dev/sda4           19093       19457     2931862+  82  Linux swap / Solaris
/dev/sda5           13374       19091    45929772   83  Linux

Quelqu'un peut-il me dire quelle est la commande correcte pour que grub et/ou fdisk voient cette partition en ext3? Dois-je utiliser parted ou e2fsck?

Merci d'avance.

Dernière modification par benwa666 (Le 15/03/2009, à 23:16)


** J’adorerais changer le monde, mais ils ne veulent pas me fournir le code source.

Hors ligne

#10 Le 16/03/2009, à 17:09

benwa666

Re : [RESOLU][GRUB] error 17

Up!!! tongue


** J’adorerais changer le monde, mais ils ne veulent pas me fournir le code source.

Hors ligne

#11 Le 16/03/2009, à 17:14

Sciensous

Re : [RESOLU][GRUB] error 17

testdisk le fait bien
à télécharger
et graver sur CD puis utiliser comme un liveCD, sauf si ton live CD ubuntu fonctionne auquel cas tu l'installes et l'utilise directement


antiX 19 et 21 et Ubuntu 20.04 et 22.04
( sous LXDE et gnome-shell )

Hors ligne

#12 Le 16/03/2009, à 18:06

benwa666

Re : [RESOLU][GRUB] error 17

Merci,
je vais essayer ça.
Ah ça faisait longtemps que je n'avais plus eu besoin de testdisk, programme remarquable soit dit en passant.


** J’adorerais changer le monde, mais ils ne veulent pas me fournir le code source.

Hors ligne

#13 Le 16/03/2009, à 20:01

benwa666

Re : [RESOLU][GRUB] error 17

Ca a marché, merci!
J'ai réécrit la table des partitions avec testdisk et j'ai pu redémarrer.
J'ai quand même du aussi réinstaller grub avec SuperGrubDisc.


** J’adorerais changer le monde, mais ils ne veulent pas me fournir le code source.

Hors ligne