Pas de démarrage sur le noyau 5.10 ? [Réglé]
-
- Voir le profil du membre nmrk.n
- Inscrit le : 20/04/2018
- Site internet
- Groupes :
-
Banni
Reprise du message précédent
Jybz :
Est-ce que grub ne démarres pas sur le dernier noyau sélectionné ?
Chez moi ça démarre sur le dernier noyau sélectionné.
Après mise à jour la modification de noyau pour le démarrage n'a pas été prise en compte automatiquement.
Cependant le nouveau noyau a bien été installé et j'ai pu démarrer dessus en passant par les options avancées de démarrage manuellement.
Après cela la machine a toujours démarré dessus sauf après que j'aie démarré sur Triskel car mon grub est configuré pour démarrer automatiquement selon le dernier démarrage effectué (sauf autre option imposée manuellement).
[marc@TPmrc boot]$ uname -a
Linux TPmrc 5.10.6-desktop-1.mga7 #1 SMP Sat Jan 9 20:09:55 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
[marc@TPmrc boot]$ ls -lsah /boot
Caché :
total 49M
4,0K drwxr-xr-x 5 root root 4,0K janv. 16 13:14 ./
4,0K drwxr-xr-x 22 root root 4,0K déc. 26 05:28 ../
240K -rw-r--r-- 1 root root 239K janv. 9 21:36 config-5.10.6-desktop-1.mga7
232K -rw-r--r-- 1 root root 232K oct. 18 18:20 config-5.7.19-desktop-3.mga7
4,0K drwxr-xr-x 2 root root 4,0K mars 26 2019 dracut/
4,0K drwxrwxrwx 3 root root 4,0K janv. 1 1970 EFI/
4,0K drwxr-xr-x 6 root root 4,0K janv. 18 06:56 grub2/
13M -rw------- 1 root root 13M janv. 16 04:35 initrd-5.10.6-desktop-1.mga7.img
13M -rw------- 1 root root 13M déc. 3 22:41 initrd-5.7.19-desktop-3.mga7.img
0 lrwxrwxrwx 1 root root 32 janv. 16 04:35 initrd-desktop.img -> initrd-5.10.6-desktop-1.mga7.img
0 lrwxrwxrwx 1 root root 32 janv. 16 04:35 initrd.img -> initrd-5.10.6-desktop-1.mga7.img
200K -rw-r--r-- 1 root root 198K janv. 9 21:36 symvers-5.10.6-desktop-1.mga7.xz
192K -rw-r--r-- 1 root root 191K oct. 18 18:20 symvers-5.7.19-desktop-3.mga7.xz
4,9M -rw-r--r-- 1 root root 4,9M janv. 9 21:36 System.map-5.10.6-desktop-1.mga7
4,6M -rw-r--r-- 1 root root 4,6M oct. 18 18:20 System.map-5.7.19-desktop-3.mga7
0 lrwxrwxrwx 1 root root 29 janv. 16 04:35 vmlinuz -> vmlinuz-5.10.6-desktop-1.mga7
6,4M -rw-r--r-- 1 root root 6,4M janv. 9 21:36 vmlinuz-5.10.6-desktop-1.mga7
6,2M -rw-r--r-- 1 root root 6,2M oct. 18 18:20 vmlinuz-5.7.19-desktop-3.mga7
0 lrwxrwxrwx 1 root root 29 janv. 16 04:35 vmlinuz-desktop -> vmlinuz-5.10.6-desktop-1.mga7
4,0K drwxr-xr-x 5 root root 4,0K janv. 16 13:14 ./
4,0K drwxr-xr-x 22 root root 4,0K déc. 26 05:28 ../
240K -rw-r--r-- 1 root root 239K janv. 9 21:36 config-5.10.6-desktop-1.mga7
232K -rw-r--r-- 1 root root 232K oct. 18 18:20 config-5.7.19-desktop-3.mga7
4,0K drwxr-xr-x 2 root root 4,0K mars 26 2019 dracut/
4,0K drwxrwxrwx 3 root root 4,0K janv. 1 1970 EFI/
4,0K drwxr-xr-x 6 root root 4,0K janv. 18 06:56 grub2/
13M -rw------- 1 root root 13M janv. 16 04:35 initrd-5.10.6-desktop-1.mga7.img
13M -rw------- 1 root root 13M déc. 3 22:41 initrd-5.7.19-desktop-3.mga7.img
0 lrwxrwxrwx 1 root root 32 janv. 16 04:35 initrd-desktop.img -> initrd-5.10.6-desktop-1.mga7.img
0 lrwxrwxrwx 1 root root 32 janv. 16 04:35 initrd.img -> initrd-5.10.6-desktop-1.mga7.img
200K -rw-r--r-- 1 root root 198K janv. 9 21:36 symvers-5.10.6-desktop-1.mga7.xz
192K -rw-r--r-- 1 root root 191K oct. 18 18:20 symvers-5.7.19-desktop-3.mga7.xz
4,9M -rw-r--r-- 1 root root 4,9M janv. 9 21:36 System.map-5.10.6-desktop-1.mga7
4,6M -rw-r--r-- 1 root root 4,6M oct. 18 18:20 System.map-5.7.19-desktop-3.mga7
0 lrwxrwxrwx 1 root root 29 janv. 16 04:35 vmlinuz -> vmlinuz-5.10.6-desktop-1.mga7
6,4M -rw-r--r-- 1 root root 6,4M janv. 9 21:36 vmlinuz-5.10.6-desktop-1.mga7
6,2M -rw-r--r-- 1 root root 6,2M oct. 18 18:20 vmlinuz-5.7.19-desktop-3.mga7
0 lrwxrwxrwx 1 root root 29 janv. 16 04:35 vmlinuz-desktop -> vmlinuz-5.10.6-desktop-1.mga7
[marc@TPmrc boot]$
Pour être tout à fait sincère, ça ne me parle vraiment pas beaucoup pour ne pas dire pas du tout ...
Est-il possible de complètement effacer grub et le réinstaller dans la foulée sans perdre la Mageia en cours de fonctionnement et donc sans avoir à redémarrer (ce qui serait impossible après suppression de grub ...).
:mrc:
Édité par nmrk.n Le 19/01/2021 à 22h43
Autre Distrib : Trisquel version Triskel | Matériel : Penguin Pro 5 GNU/Linux Desktop | Processeur : Intel Quad-Core i5-4430 (6M Cache, up to 3.20 GHz) | Memory: 32GB DDR3 | Hard Drive: ATA Samsung SSD 840 256Go table::gpt depuis 2020 (anc. dos) et Seagate Barracuda ATA ST2000DM001-1CH1 2To 64Mo table::gpt | DVD : TSSTcorp CDDVDW SH-224DB | Wireless N: Wireless N PCIe Card (TPE-N300PCIE4) | Graphics Card: GeForce 8400GS 1GB PCI Express 2.0 Video Card | Bluetooth: USB Micro Adapter v2 (TPE-USBBLUV2) | Keyboard / [https://fr.wikipedia.org/wiki/TypeMatrix]TypeMatrix[/url] BÉPO | Mouse : Selecline sans fils | Monitor: Essentiel B Photo + Essentiel B Studio 2 x 1920 x 1080 | Printer : All-in-one HP Officejet 6500A Plus connectée wifi | Power Cable: Europe - Plug Type Europlug (CEE 7/16) |
-
- Voir le profil du membre nmrk.n
- Inscrit le : 20/04/2018
- Site internet
- Groupes :
-
Banni
- Utiliser Grub Customizer
- Copier les deux dernières lignes de l'entrée Mageia (desktop) 7 des options avancées
- et les coller à la place des deux dernières lignes de l'entrée Mageia 7.1 "ordinaire"
Grub Customizer > Enregistrer génère un nouveau fichier grub.cfg.
Entrée Mageia (desktop) 7 des options avancées et Entrée Mageia 7.1 "ordinaire" .
Caché :
Entrée grub des options avancées qui démarre bien sur le dernier noyau installé :
Mageia (desktop) 7
savedefault
load_video
set gfxpayload=auto
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 7d68e2b7-8bd9-4b61-a793-f4dbe0495978
else
search --no-floppy --fs-uuid --set=root 7d68e2b7-8bd9-4b61-a793-f4dbe0495978
fi
linuxefi /boot/vmlinuz-desktop root=UUID=7d68e2b7-8bd9-4b61-a793-f4dbe0495978 ro splash=verbose noiswmd audit=0 vga=791
initrdefi /boot/initrd-desktop.img
=====================================================================================================
Entrée grub "ordinaire" qui reste sur un prédant noyau et ne démarre pas sur la dernière mise à jour
Avant modification via Grub Customizer (qui a consisté à remplacer les deux dernières lignes ci-dessous par les deux dernières lignes du § ci-dessus :
Mageia 7.1
savedefault
load_video
set gfxpayload=auto
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 7d68e2b7-8bd9-4b61-a793-f4dbe0495978
else
search --no-floppy --fs-uuid --set=root 7d68e2b7-8bd9-4b61-a793-f4dbe0495978
fi
linuxefi /boot/vmlinuz-5.7.19-desktop-3.mga7 root=UUID=7d68e2b7-8bd9-4b61-a793-f4dbe0495978 ro noiswmd splash=verbose audit=0 vga=791
initrdefi /boot/initrd-5.7.19-desktop-3.mga7.img
=====================================================================================================
Mageia (desktop) 7
savedefault
load_video
set gfxpayload=auto
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 7d68e2b7-8bd9-4b61-a793-f4dbe0495978
else
search --no-floppy --fs-uuid --set=root 7d68e2b7-8bd9-4b61-a793-f4dbe0495978
fi
linuxefi /boot/vmlinuz-desktop root=UUID=7d68e2b7-8bd9-4b61-a793-f4dbe0495978 ro splash=verbose noiswmd audit=0 vga=791
initrdefi /boot/initrd-desktop.img
=====================================================================================================
Entrée grub "ordinaire" qui reste sur un prédant noyau et ne démarre pas sur la dernière mise à jour
Avant modification via Grub Customizer (qui a consisté à remplacer les deux dernières lignes ci-dessous par les deux dernières lignes du § ci-dessus :
Mageia 7.1
savedefault
load_video
set gfxpayload=auto
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 7d68e2b7-8bd9-4b61-a793-f4dbe0495978
else
search --no-floppy --fs-uuid --set=root 7d68e2b7-8bd9-4b61-a793-f4dbe0495978
fi
linuxefi /boot/vmlinuz-5.7.19-desktop-3.mga7 root=UUID=7d68e2b7-8bd9-4b61-a793-f4dbe0495978 ro noiswmd splash=verbose audit=0 vga=791
initrdefi /boot/initrd-5.7.19-desktop-3.mga7.img
=====================================================================================================
Je démarre ainsi sur la dernière mise à jour du noyau soit 5.10.8-desktop-2.mga7 sans passer par les options avancées de grub.
Restera à vérifier lors d'une prochaine mise à jour du noyau que je démarre bien sur la dernière version avec l'entrée "ordinaire" de grub que j'ai nommée Mageia 7.1.

Édité par nmrk.n Le 21/01/2021 à 04h08
Autre Distrib : Trisquel version Triskel | Matériel : Penguin Pro 5 GNU/Linux Desktop | Processeur : Intel Quad-Core i5-4430 (6M Cache, up to 3.20 GHz) | Memory: 32GB DDR3 | Hard Drive: ATA Samsung SSD 840 256Go table::gpt depuis 2020 (anc. dos) et Seagate Barracuda ATA ST2000DM001-1CH1 2To 64Mo table::gpt | DVD : TSSTcorp CDDVDW SH-224DB | Wireless N: Wireless N PCIe Card (TPE-N300PCIE4) | Graphics Card: GeForce 8400GS 1GB PCI Express 2.0 Video Card | Bluetooth: USB Micro Adapter v2 (TPE-USBBLUV2) | Keyboard / [https://fr.wikipedia.org/wiki/TypeMatrix]TypeMatrix[/url] BÉPO | Mouse : Selecline sans fils | Monitor: Essentiel B Photo + Essentiel B Studio 2 x 1920 x 1080 | Printer : All-in-one HP Officejet 6500A Plus connectée wifi | Power Cable: Europe - Plug Type Europlug (CEE 7/16) |

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
nmrk.n :
linuxefi /boot/vmlinuz-desktop root=UUID=7d68e2b7-8bd9-4b61-a793-f4dbe0495978 ro splash=verbose noiswmd audit=0 vga=791
initrdefi /boot/initrd-desktop.img
initrdefi /boot/initrd-desktop.img
Il utilise le lien symbolique fourni par le paquet noyau, on n'est plus sur une version précise. Franchement, ça me dépasse.
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |
-
- Voir le profil du membre nmrk.n
- Inscrit le : 20/04/2018
- Site internet
- Groupes :
-
Banni
Jybz :
Il utilise le lien symbolique fourni par le paquet noyau, on n'est plus sur une version précise. Franchement, ça me dépasse.
nmrk.n :
linuxefi /boot/vmlinuz-desktop root=UUID=7d68e2b7-8bd9-4b61-a793-f4dbe0495978 ro splash=verbose noiswmd audit=0 vga=791
initrdefi /boot/initrd-desktop.img
initrdefi /boot/initrd-desktop.img
Il utilise le lien symbolique fourni par le paquet noyau, on n'est plus sur une version précise. Franchement, ça me dépasse.
Ça doit être la méthode utilisée pour démarrer sur la dernière version du noyau installée dans la partition racine utilisée.
Après, comment ça fonctionne, c'est autre chose . . .

Édité par nmrk.n Le 23/01/2021 à 04h57
Autre Distrib : Trisquel version Triskel | Matériel : Penguin Pro 5 GNU/Linux Desktop | Processeur : Intel Quad-Core i5-4430 (6M Cache, up to 3.20 GHz) | Memory: 32GB DDR3 | Hard Drive: ATA Samsung SSD 840 256Go table::gpt depuis 2020 (anc. dos) et Seagate Barracuda ATA ST2000DM001-1CH1 2To 64Mo table::gpt | DVD : TSSTcorp CDDVDW SH-224DB | Wireless N: Wireless N PCIe Card (TPE-N300PCIE4) | Graphics Card: GeForce 8400GS 1GB PCI Express 2.0 Video Card | Bluetooth: USB Micro Adapter v2 (TPE-USBBLUV2) | Keyboard / [https://fr.wikipedia.org/wiki/TypeMatrix]TypeMatrix[/url] BÉPO | Mouse : Selecline sans fils | Monitor: Essentiel B Photo + Essentiel B Studio 2 x 1920 x 1080 | Printer : All-in-one HP Officejet 6500A Plus connectée wifi | Power Cable: Europe - Plug Type Europlug (CEE 7/16) |
-
- Voir le profil du membre nmrk.n
- Inscrit le : 20/04/2018
- Site internet
- Groupes :
-
Banni
5.10.12-desktop-1.mga7
[marc@TPmrc ~]$
Le passage au nouveau noyaux c'est bien fait automatiquement avec la dernière mise à jour.
La situation a donc bien été complètement rétablie.

Autre Distrib : Trisquel version Triskel | Matériel : Penguin Pro 5 GNU/Linux Desktop | Processeur : Intel Quad-Core i5-4430 (6M Cache, up to 3.20 GHz) | Memory: 32GB DDR3 | Hard Drive: ATA Samsung SSD 840 256Go table::gpt depuis 2020 (anc. dos) et Seagate Barracuda ATA ST2000DM001-1CH1 2To 64Mo table::gpt | DVD : TSSTcorp CDDVDW SH-224DB | Wireless N: Wireless N PCIe Card (TPE-N300PCIE4) | Graphics Card: GeForce 8400GS 1GB PCI Express 2.0 Video Card | Bluetooth: USB Micro Adapter v2 (TPE-USBBLUV2) | Keyboard / [https://fr.wikipedia.org/wiki/TypeMatrix]TypeMatrix[/url] BÉPO | Mouse : Selecline sans fils | Monitor: Essentiel B Photo + Essentiel B Studio 2 x 1920 x 1080 | Printer : All-in-one HP Officejet 6500A Plus connectée wifi | Power Cable: Europe - Plug Type Europlug (CEE 7/16) |
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie