#26 Le 10/08/2016, à 21:23
- cqfd93
Re : 2016.08.04 vmlinuz-4.4.0-21-generic non disponible
Moi non plus, je n'y comprends rien. Je ne sais pas ce que sont ces fichiers (je n'ai jamais vu ça et je ne sais pas ce qui a pu mettre ces fichiers dans grub.d) :
/etc/grub.d/proxifiedScripts/custom
/etc/grub.d/bin/grubcfg_proxy
Tu peux donner :
cat /etc/grub.d/proxifiedScripts/custom
cat /etc/grub.d/bin/grubcfg_proxy
− cqfd93 −
Hors ligne
#27 Le 10/08/2016, à 21:32
- Lauwerys.Jacques
Re : 2016.08.04 vmlinuz-4.4.0-21-generic non disponible
lauwerys@lauwerys-HP-Z620-Workstation:~$ cat /etc/grub.d/proxifiedScripts/custom#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Windows 10 PRO" --class windows --class os $menuentry_id_option 'osprober-chain-B2561CDB561CA1E1' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 B2561CDB561CA1E1
else
search --no-floppy --fs-uuid --set=root B2561CDB561CA1E1
fi
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "Ubuntu LTS" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-8674c138-9589-444b-b224-3b6f54949178' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 8674c138-9589-444b-b224-3b6f54949178
else
search --no-floppy --fs-uuid --set=root 8674c138-9589-444b-b224-3b6f54949178
fi
linux /boot/vmlinuz-4.4.0-21-generic root=UUID=8674c138-9589-444b-b224-3b6f54949178 ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.4.0-21-generic
}
lauwerys@lauwerys-HP-Z620-Workstation:~$
La deuxième instruction donne quelque chose de kilométrique et totalement non intelligible.
Les balises n'ont pas l'air de fonctionner !
Jacques L
Hors ligne
#28 Le 10/08/2016, à 21:51
- cqfd93
Re : 2016.08.04 vmlinuz-4.4.0-21-generic non disponible
La deuxième instruction donne quelque chose de kilométrique et totalement non intelligible.
Oui, je m'en suis un peu doutée après avoir envoyé mon message : ce n'est pas du texte. Pas grave puisque on a la clé dans le premier fichier.
Il faut lui faire subir le sort que je voulais réserver à /etc/grub.d/40_custom_proxy, à savoir :
gksudo gedit /etc/grub.d/proxifiedScripts/custom#!/bin/sh
et supprimer :
menuentry "Ubuntu LTS" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-8674c138-9589-444b-b224-3b6f54949178' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 8674c138-9589-444b-b224-3b6f54949178
else
search --no-floppy --fs-uuid --set=root 8674c138-9589-444b-b224-3b6f54949178
fi
linux /boot/vmlinuz-4.4.0-21-generic root=UUID=8674c138-9589-444b-b224-3b6f54949178 ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.4.0-21-generic
}
Après ça :
sudo update-grub
et reboot.
− cqfd93 −
Hors ligne
#29 Le 10/08/2016, à 21:59
- Lauwerys.Jacques
Re : 2016.08.04 vmlinuz-4.4.0-21-generic non disponible
lauwerys@lauwerys-HP-Z620-Workstation:~$ gksudo gedit /etc/grub.d/proxifiedScripts/custom#!/bin/sh
bash: !/bin/sh: event not found
lauwerys@lauwerys-HP-Z620-Workstation:~$
???
Jacques L
Hors ligne
#30 Le 11/08/2016, à 04:02
- cqfd93
Re : 2016.08.04 vmlinuz-4.4.0-21-generic non disponible
lauwerys@lauwerys-HP-Z620-Workstation:~$ gksudo gedit /etc/grub.d/proxifiedScripts/custom#!/bin/sh bash: !/bin/sh: event not found lauwerys@lauwerys-HP-Z620-Workstation:~$
???
Oui, erreur dans le nom du fichier. Si on regarde la commande que je t'ai demandée dans le message #26 :
cat /etc/grub.d/proxifiedScripts/custom
Et ton retour message #27 :
lauwerys@lauwerys-HP-Z620-Workstation:~$ cat /etc/grub.d/proxifiedScripts/custom#!/bin/sh
Il manque le retour à la ligne entre custom et #!
Et comme j'ai copié depuis ton message, je n'ai pas fait gaffe.
Alors c'est :
gksudo gedit /etc/grub.d/proxifiedScripts/custom
Et après, tu supprimes ce que j'ai dit dans le #28 et tu fais le :
sudo update-grub
− cqfd93 −
Hors ligne
#31 Le 11/08/2016, à 09:56
- Lauwerys.Jacques
Re : 2016.08.04 vmlinuz-4.4.0-21-generic non disponible
Après exécution de la première commande et suppression de la partie demandée,
voici ce que j'obtiens pour la seconde commande :
lauwerys@lauwerys-HP-Z620-Workstation:~$ gksudo gedit /etc/grub.d/proxifiedScripts/custom
** (gedit:5923): WARNING **: Set document metadata failed: La définition de l'attribut metadata::gedit-spell-enabled n'est pas prise en charge
** (gedit:5923): WARNING **: Set document metadata failed: La définition de l'attribut metadata::gedit-encoding n'est pas prise en charge
** (gedit:5923): WARNING **: Set document metadata failed: La définition de l'attribut metadata::gedit-spell-enabled n'est pas prise en charge
** (gedit:5923): WARNING **: Set document metadata failed: La définition de l'attribut metadata::gedit-encoding n'est pas prise en charge
** (gedit:5923): WARNING **: Set document metadata failed: La définition de l'attribut metadata::gedit-position n'est pas prise en charge
lauwerys@lauwerys-HP-Z620-Workstation:~$ sudo upgrade-grub
[sudo] Mot de passe de lauwerys :
sudo: upgrade-grub : commande introuvable
lauwerys@lauwerys-HP-Z620-Workstation:~$ cd /
lauwerys@lauwerys-HP-Z620-Workstation:/$ sudo upgrade-grub
sudo: upgrade-grub : commande introuvable
lauwerys@lauwerys-HP-Z620-Workstation:/$
Je suppose qu'il vaut mieux ne pas tenter un redémarrage dans ces conditions !
Jacques L
Hors ligne
#32 Le 11/08/2016, à 15:05
- Lauwerys.Jacques
Re : 2016.08.04 vmlinuz-4.4.0-21-generic non disponible
Les commandes précédentes ayant été coupées et collées dans le terminal j'ai été pris d'un doute et j'ai refrappé la dernière commande dans le terminal, ce qui a donné :
lauwerys@lauwerys-HP-Z620-Workstation:~$ sudo update-grub
[sudo] Mot de passe de lauwerys :
Création du fichier de configuration GRUB…
Image Linux trouvée : /boot/vmlinuz-4.4.0-34-generic
Image mémoire initiale trouvée : /boot/initrd.img-4.4.0-34-generic
Image Linux trouvée : /boot/vmlinuz-4.4.0-31-generic
Image mémoire initiale trouvée : /boot/initrd.img-4.4.0-31-generic
Image Linux trouvée : /boot/vmlinuz-4.4.0-28-generic
Image mémoire initiale trouvée : /boot/initrd.img-4.4.0-28-generic
Windows 10 (loader) trouvé sur /dev/sda1
Image Linux trouvée : /boot/vmlinuz-4.4.0-34-generic
Image mémoire initiale trouvée : /boot/initrd.img-4.4.0-34-generic
Image Linux trouvée : /boot/vmlinuz-4.4.0-31-generic
Image mémoire initiale trouvée : /boot/initrd.img-4.4.0-31-generic
Image Linux trouvée : /boot/vmlinuz-4.4.0-28-generic
Image mémoire initiale trouvée : /boot/initrd.img-4.4.0-28-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Windows 10 (loader) trouvé sur /dev/sda1
fait
lauwerys@lauwerys-HP-Z620-Workstation:~$
Par curiosité j'ai exécuté également la première commande. Le fichier "Custom" ne contient plus le code supprimé, mais uniquement ce qui suit :
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Windows 10 PRO" --class windows --class os $menuentry_id_option 'osprober-chain-B2561CDB561CA1E1' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 B2561CDB561CA1E1
else
search --no-floppy --fs-uuid --set=root B2561CDB561CA1E1
fi
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1
}
Puis-je tenter un redémarrage de la machine ?
Jacques L
Hors ligne
#33 Le 11/08/2016, à 18:19
- cqfd93
Re : 2016.08.04 vmlinuz-4.4.0-21-generic non disponible
Bonjour,
Les commandes précédentes ayant été coupées et collées dans le terminal j'ai été pris d'un doute et j'ai refrappé la dernière commande dans le terminal, ce qui a donné :
lauwerys@lauwerys-HP-Z620-Workstation:~$ sudo update-grub…
Oui, la commande était bien update-grub et pas upgrade-grub et elle a bien marché.
Par curiosité j'ai exécuté également la première commande. Le fichier "Custom" ne contient plus le code supprimé, mais uniquement ce qui suit :
#!/bin/sh exec tail -n +3 $0 … menuentry "Windows 10 PRO" --class windows --class os $menuentry_id_option 'osprober-chain-B2561CDB561CA1E1' { … drivemap -s (hd0) ${root} chainloader +1 }
C'est bon, il ne reste que l'entrée windows.
Puis-je tenter un redémarrage de la machine ?
Oui
− cqfd93 −
Hors ligne
#34 Le 11/08/2016, à 18:35
- Lauwerys.Jacques
Re : 2016.08.04 vmlinuz-4.4.0-21-generic non disponible
Bonjour,
Ok. La machine redémarre.
Je n'ai plus que deux choix :
Windows 10
Options avancées pour Ubuntu.
Le choix de la deuxième option propose les différents choix
Ubuntu with linux 4.4.0-34-generic, ...
Que faut-il faire maintenant pour récupérer le démarrage normal ?
Jacques L
Hors ligne
#35 Le 11/08/2016, à 19:15
- cqfd93
Re : 2016.08.04 vmlinuz-4.4.0-21-generic non disponible
Honnêtement, je ne sais pas. Tes fichiers de configuration sont tellement atypiques que je n'arrive pas à m'y retrouver.
Voilà le contenu de mon grub.d :
moi@aurore:~$ ls -1 /etc/grub.d/
00_header
05_debian_theme
10_linux
20_linux_xen
20_memtest86+
30_os-prober
30_uefi-firmware
40_custom
41_custom
README
moi@aurore:~$
Si tu donnes le résultat de la même commande chez toi, on verra déjà une différence.
Est-ce que tu utilises un logiciel pour personnaliser ton grub ? Ça pourrait expliquer le sac de nœuds…
− cqfd93 −
Hors ligne
#36 Le 11/08/2016, à 19:36
- Lauwerys.Jacques
Re : 2016.08.04 vmlinuz-4.4.0-21-generic non disponible
Je n'en sais rien. En fait c'est la société chez qui j'ai acheté mon PC qui me l'a configuré.
Voici le résultat de la commande :
lauwerys@lauwerys-HP-Z620-Workstation:~$ ls -l /etc/grub.d/
total 84
-rwxr-xr-x 1 root root 9791 avr 16 00:00 00_header
-rwxr-xr-x 1 root root 6258 mar 15 19:08 05_debian_theme
-rwxr-xr-x 1 root root 590 avr 29 16:12 10_linux_proxy
-rwxr-xr-x 1 root root 221 avr 29 16:12 40_custom_proxy
-rwxr-xr-x 1 root root 197 avr 29 16:12 41_os-prober_proxy
-rwxr-xr-x 1 root root 590 avr 29 16:12 42_linux_proxy
-rwxr-xr-x 1 root root 11082 avr 16 00:00 43_linux_xen
-rwxr-xr-x 1 root root 265 avr 29 16:12 44_memtest86+_proxy
-rwxr-xr-x 1 root root 197 avr 29 16:12 45_os-prober_proxy
-rwxr-xr-x 1 root root 1418 avr 16 00:00 47_uefi-firmware
-rwxr-xr-x 1 root root 274 avr 29 16:12 48_custom_proxy
-rwxr-xr-x 1 root root 216 avr 16 00:00 49_custom
drwxr-xr-x 4 root root 4096 avr 29 15:36 backup
drwxr-xr-x 2 root root 4096 avr 29 15:36 bin
drwxr-xr-x 2 root root 4096 aoû 11 09:50 proxifiedScripts
-rw-r--r-- 1 root root 483 avr 16 00:00 README
lauwerys@lauwerys-HP-Z620-Workstation:~$
Jacques L
Hors ligne
#37 Le 11/08/2016, à 20:10
- cqfd93
Re : 2016.08.04 vmlinuz-4.4.0-21-generic non disponible
Je n'y connais pas suffisamment dans ce domaine et j'espère que des spécialistes pourront t'aider à simplifier tout ça et surtout à faire revenir ce démarrage sur la dernière version d'Ubuntu sans avoir à passer par Options avancées.
Je te suggère de créer une nouvelle discussion (dans la même section) dans laquelle tu expliqueras le problème et tu donneras les retours de :
ls -l /etc/grub.d/
cat /boot/grub/grub.cfg
Tu peux marquer celle-ci comme résolue puisque effectivement tu n'as plus ce message d'erreur.
− cqfd93 −
Hors ligne
#38 Le 11/08/2016, à 20:48
- Lauwerys.Jacques
Re : 2016.08.04 vmlinuz-4.4.0-21-generic non disponible
Ok.
Merci beaucoup pour ce bout de chemin.
Je clôture donc cette discussion et en démarre une nouvelle intitulée.
Démarrage sur la dernière version d'Ubuntu sans avoir à passer par Options avancées.
Encore merci.
Jacques
Jacques L
Hors ligne
#39 Le 11/08/2016, à 21:49
- moko138
Re : 2016.08.04 vmlinuz-4.4.0-21-generic non disponible
Le nouveau fil : ./viewtopic.php?id=1994716
%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel : À la découverte de dcraw
Hors ligne