Pages : 1
#1 Le 26/10/2009, à 02:01
- totofff
ERROR 17 : Cannot mount selected partition
Bonjours,
J'ai vu qu'il y a plusieurs post sur ce problème mais je ne trouve pas la solution c'est pour çà que je pose la question.
J'ai 1 disque dur de 500GO
j'avais XP sur une partition win7 sur une deuxième, vista sur une troisième et linux sur une quatrième et pour finir une pour le swap
J'ai formaté vista et fusionné sa partition avec c'elle de win7.
Depuis, mon dual boot linux/windows(loader) continu a faire fonctionner windows mais plus ubuntu, j'ai le message d'erreur "ERROR 17 : Cannot mount selected partition".
J'ai essayé de ré-installer le grub avec "super grub disk", mais çà ne fonctionne pas, çà me met error 6
J'ai récupéré le fichier "menu.lst" via à "explore2fs" sous windows et çà donne ceci:
-------------------------------------------------------------------------------------------
# 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 2
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 30
## 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=a45ff8bb-0591-4710-b0de-13f068cb2ed8 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,5)
## 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
## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect
## 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 -
root (hd0,5)
kernel /boot/vmlinuz-2.6.28-11-server root=UUID=a45ff8bb-0591-4710-b0de-13f068cb2ed8 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-server
quiet
title -
root (hd0,5)
kernel /boot/vmlinuz-2.6.28-11-server root=UUID=a45ff8bb-0591-4710-b0de-13f068cb2ed8 ro single
initrd /boot/initrd.img-2.6.28-11-server
title Ubuntu 9.04, kernel 2.6.28-11-generic
root (hd0,5)
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=a45ff8bb-0591-4710-b0de-13f068cb2ed8 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
root (hd0,5)
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=a45ff8bb-0591-4710-b0de-13f068cb2ed8 ro single
initrd /boot/initrd.img-2.6.28-11-generic
title Ubuntu 9.04, kernel 2.6.27-14-server
root (hd0,5)
kernel /boot/vmlinuz-2.6.27-14-server root=UUID=a45ff8bb-0591-4710-b0de-13f068cb2ed8 ro quiet splash
initrd /boot/initrd.img-2.6.27-14-server
quiet
title Ubuntu 9.04, kernel 2.6.27-14-server (recovery mode)
root (hd0,5)
kernel /boot/vmlinuz-2.6.27-14-server root=UUID=a45ff8bb-0591-4710-b0de-13f068cb2ed8 ro single
initrd /boot/initrd.img-2.6.27-14-server
title Ubuntu 9.04, kernel 2.6.24-24-generic
root (hd0,5)
kernel /boot/vmlinuz-2.6.24-24-generic root=UUID=a45ff8bb-0591-4710-b0de-13f068cb2ed8 ro quiet splash
initrd /boot/initrd.img-2.6.24-24-generic
quiet
title Ubuntu 9.04, kernel 2.6.24-24-generic (recovery mode)
root (hd0,5)
kernel /boot/vmlinuz-2.6.24-24-generic root=UUID=a45ff8bb-0591-4710-b0de-13f068cb2ed8 ro single
initrd /boot/initrd.img-2.6.24-24-generic
title Ubuntu 9.04, memtest86+
root (hd0,5)
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 7/Windows Vista/Windows XP (loader)
root (hd0,0)
savedefault
makeactive
chainloader +1
-----------------------------------------------------------------------------------
NB: quand je lance "explore2fs" sur windows, la partition est reconnu en hda3
Y a t'il une modification que je puisse faire dans ce menu pour que çà refonctionne sans risquer que windows ne démarre plus non plus ?
Merci d'avance.
Dernière modification par totofff (Le 27/10/2009, à 22:14)
Hors ligne
#2 Le 26/10/2009, à 04:24
- bastou2
Re : ERROR 17 : Cannot mount selected partition
Bonjour,
Ton problème semble être qu'en fusionnant 2 partitions ensemble tu es passé de 5 partitions à 4 partitions. Donc forcément ta partition Ubuntu n'est plus identifiée de la même manière, non ?
Il serait donc bon de savoir maintenant comment se nomme ta partition Ubuntu et modifier ton menu.lst en conséquence.
Si tu n'a plus accès à Ubuntu tu peux passer par le Live CD pour connaitre tes partitions.
Dans un terminal taper:
sudo fdisk -l
Ce qui listera tes partitions. Tu trouveras celle d'Ubuntu (partition ext2 ou 3) Ex: sda4 qui correspondrait à hd0,3
dans ton menu.lst
Pour modifier ton menu.lst
sudo update-grub
et redémarrer.
Si ça ne fonctionne pas (et comme tu as déjà tenté de réinstaller Grub, j'imagine dans le MBR) il se pourrait donc que tu ai à déplacer ton grub sur ta partition Ubuntu et non au début dans le MBR.
Pourquoi ?
Parce que si c'est Vista ou Win7 qui est en premier (première partition) tu doit déplacer ton Grub.
grub> root (hd0,3)
grub> setup (hd0,3) # correspond à /boot/grub installé sur partition ubuntu /dev/sda4
***Changer pour la partition correspondante à celle d'Ubuntu si il y a lieu
Si ça ne fonctionne toujours pas il faudra modifier également ton fichier fstab plus tard car je soupçonne un changement de l'identifiant (uuid) de ta partition Ubuntu.
Pour le moment commences par ce que je t'ai donné plus haut.
Tiens moi au courant
Hors ligne
#3 Le 26/10/2009, à 11:48
- totofff
Re : ERROR 17 : Cannot mount selected partition
ubuntu@ubuntu:~$ sudo fdisk -1
fdisk : option invalide -- 1
Usage: fdisk [-b TAILLE] [-u] DISQUE modifier la table de partitions
fdisk -l [-b TAILLE] [-u] DISQUE lister les tables de partitions
fdisk -s PARTITION donner la taille de partition en blocs
fdisk -v afficher la version de fdisk
Où le disque est quelque chose du genre: /dev/hdb ou /dev/sda
et PARTITION est quelque chose du genre: /dev/hda7
-u: donne le Début et la Fin en unités de secteurs (au lieu de cylindres)
-b 2048: (pour certains disques MO) utilise 2048-octets par secteur
----------------------------------------------------------------------------------------
ubuntu@ubuntu:~$ sudo update-grub
Searching for GRUB installation directory ...
No GRUB directory found. To create a template run 'mkdir /boot/grub' first. To install grub, install it manually or try the 'grub-install' command. ### Warning, grub-install is used to change your MBR. ###
----------------------------------------------------------------------------------------
çà ne fonctionne toujours pas
Que faire d'autre ?
Dernière modification par totofff (Le 26/10/2009, à 13:57)
Hors ligne
#4 Le 27/10/2009, à 06:29
- bastou2
Re : ERROR 17 : Cannot mount selected partition
Bonjour,
Lire correctement SVP:
sudo fdisk -l
C'est un L et non un 1.
Si tu souhaites obtenir de l'aide tu devra te concentrer davantage car on n'y arrivera pas.
Hors ligne
#5 Le 27/10/2009, à 16:10
- totofff
Re : ERROR 17 : Cannot mount selected partition
A en effet, je corrige de suite
------------------------------------------------------------------------
ubuntu@ubuntu:~$ sudo fdisk -l
Disque /dev/sda: 500.1 Go, 500107862016 octets
240 heads, 63 sectors/track, 64601 cylinders
Units = cylindres of 15120 * 512 = 7741440 bytes
Identifiant disque: 0x00000001
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 1 43363 327824248+ 7 HPFS/NTFS
/dev/sda2 43364 55656 92935080 7 HPFS/NTFS
/dev/sda3 55657 64602 67624672+ f W95 Etendu (LBA)
/dev/sda5 55657 64085 63720703+ 83 Linux
/dev/sda6 64085 64602 3903763+ 82 Linux swap / Solaris
-------------------------------------------------------------------------
ubuntu@ubuntu:~$ sudo update-grub
Searching for GRUB installation directory ...
No GRUB directory found. To create a template run 'mkdir /boot/grub' first. To install grub, install it manually or try the 'grub-install' command. ### Warning, grub-install is used to change your MBR. ###
-------------------------------------------------------------------------
J'ai lancé la réinstallation du paquet "grub" dans la gestionnaire sy..., mais çà à rien changé.
çà ne fonctionne toujours pas, que faire ?
Merci d'avance.
-------------------------------------------------------------------------
Penses tu que je dois changer toutes les (hd0,5) par (hd0,4)dans le menu ?
Et si oui, est ce que c'est sans risque pour le démarrage de windows ?
Je n'arrive pas à enregistrer les modifications du menu.
Dernière modification par totofff (Le 27/10/2009, à 16:43)
Hors ligne
#6 Le 28/10/2009, à 01:37
- bastou2
Re : ERROR 17 : Cannot mount selected partition
Bonjour,
"Penses tu que je dois changer toutes les (hd0,5) par (hd0,4)dans le menu ?
Et si oui, est ce que c'est sans risque pour le démarrage de windows ?
Je n'arrive pas à enregistrer les modifications du menu."
Tu as compris. Ta partition Linux se trouve sur sda5 donc hd0,4 dans ton menu.lst
Cela devrait en principe marcher.
Avant de faire ça, j'aimerais savoir ou se trouve ton Grub. Il faudra le restaurer car il semble qu'il ai été supprimé.
Peux-tu effectuer cette commande en terminal en live CD ?
find /boot/grub/stage1
si error faire
find /grub/stage1
Cela nous dira ou sont les fichiers du Grub.
Ensuite réinstaller fichier Grub sur la partition que la commande précédente t'a indiquée:
root (hd0,1) ***C'est un exemple, remplacer par la bonne partition
Ensuite taper:
setup (hd0)
quit
Essayes ensuite de faire un update Grub:
sudo update-grub
Redémarrer normalement.
Si ton menu s'affiche bien et que les Windows démarrent normalement mais que Ubuntu ne démarre pas ,
songer à modifier ton menu.lst avec la bonne partition (hd0,4) comme cité au début.
J'espère que j'ai été assez clair.
Ne m'en veux pas si ça ne marche pas correctement après ces manipulations.
Je fais de mon mieux pour t'aider.
Hors ligne
#7 Le 29/10/2009, à 19:57
- totofff
Re : ERROR 17 : Cannot mount selected partition
Tes deux dernière lignes me font peur, avant de faire cette manip, je souhaiterais être sur que le démarrage windows ne sera pas foutu.
As tu une autre solution ?????
OU
Quelqu'un en a t'il une ?
Hors ligne
#8 Le 29/10/2009, à 21:49
- bastou2
Re : ERROR 17 : Cannot mount selected partition
Bonjour,
Mes solutions se basent sur mes connaissances mais surtout sur la documentation très claire du site.
Je suis près à t'aider jusqu'au bout mais si tu préfères tu peux te documenter toi-même.
La situation ne pourrait être pire que celle que tu as présentement. À toi de voir.
Hors ligne
#9 Le 29/10/2009, à 23:39
- totofff
Re : ERROR 17 : Cannot mount selected partition
Je vais essayer, mais j'ai 2 petites questions avant.
1-puis taper:
root (hd0,4)
puis que c'est ma partition ubuntu ?
2-le fait de taper:
setup (hd0)
Va t'il pas m'endommager windows qui est sur (hd0.0)
Hors ligne
#10 Le 30/10/2009, à 15:26
- totofff
Re : ERROR 17 : Cannot mount selected partition
Es ce que çà pourrait être possible et plus simple d'installer lilo comme gestionnaire de boot, et si oui comment ?
Hors ligne
#11 Le 30/10/2009, à 18:23
- bastou2
Re : ERROR 17 : Cannot mount selected partition
Bonjour,
root (hd0,4)
puis que c'est ma partition ubuntu ?
Oui, selon ton sudo fdisk -l ta partition ubuntu serait sda5 donc hd0,4
setup (hd0)
Va t'il pas m'endommager windows qui est sur (hd0.0)
Le setup (hd0) place ton menu démarrage au tout début du disque dur. Mais ton Grub comme tel sera sur ta partition Ubuntu. Donc si tu effectue un sudo update-grub par la suite ton menu t'offrira encore le choix de tes Windows + Ubuntu
Cela n'endommage pas ton Windows.
Pour ce qui est de LILO, c'est un autre gestionnaire de démarrage. Cependant je trouve GRUB plus performant et mieux adapté à Ubuntu.
Avant de changer pour Lilo, essayes de comprendre les outils dont dispose ton Ubuntu.
C'est la meilleur façon pour apprendre.
Tiens moi au courant
Hors ligne
#12 Le 31/10/2009, à 01:17
- totofff
Re : ERROR 17 : Cannot mount selected partition
J'ai réussi à régler mon problème d'une façon tout ce qu'il y a de plus simple.
Je te dis comment j'ai fais pour toi et pour tous ceux qui ont ce problème. (si çà peut aider quelqu'un)
-j'ai démarrer sur le live cd
-j'ai ouvert le terminal
-j'ai taper sudo nautilus (pour avoir accès en super administrateur)
-j'ai ouvert le disque dur qui contient mon linux et j'ai ouvert le dossier "boot" puis "grub" et pour finir le document "menu.lst"
-j'ai juste changer la partition que démarre grub car suite à la suppression d'une de mes partitions, grub croyait que ma partition linux était toujours (hd0,5) alors que c'était (hd0,4)
NB: j'ai juste changé d'un chiffre, et c'est reparti.
En tout les cas, je te remercie de ton aide.
Hors ligne
Pages : 1