Pages : 1
#1 Le 18/09/2023, à 13:35
- TheoEst
Kernel init not found
Bonjour à tous,
Sujet avec de nombreux posts, mais je n'ai pas réussi à trouver ma réponse.
J'ai un ordinateur sur Ubuntu avec 4 disque (1 SSD, et 3 HDD).
J'ai eu un problème de /boot plein, et j'ai supprimé un kernel ancien (5.X dans mon souvenir).
Depuis, j'ai un problème de kernel not found à l'installation.
Les disques sont tous chiffrés avec LUKS.
Voici le résultat du pastebin en utilisant le boot repair : https://pastebin.ubuntu.com/p/cMjJgCsVtn/
J'ai tenté le fsck du disque nvemp1n4 mais j'obtiens toujours disk in use.
J'aimerais ne pas réinstaller ubuntu pour ne pas perdre les données sur mon disque SSD
Merci de votre aide,
Hors ligne
#2 Le 18/09/2023, à 18:19
- geole
Re : Kernel init not found
Bonjour.
extraits du boot-info
Boot0003* ubuntu HD(2,GPT,36e87da9-4c17-4b98-bd00-2d68fa5534a5
Lorsque cela marche, le bios lance ubuntu depuis la ligne ci dessus.
c'est cette partition
├─nvme0n1p2 vfat E135-C594 36e87da9-4c17-4b98-bd00-2d68fa5534a5 è
Elle veut donc lancer ce grub.
=================== nvme0n1p2/efi/ubuntu/grub.cfg (filtered) ===================
search.fs_uuid c38bf2d3-2df9-48be-8304-876934961a6e root
set prefix=($root)'/grub'
Qui est donc dans cette partition
├─nvme0n1p3 ext4 c38bf2d3-2df9-48be-8304-876934961a6e bf6ac639-464c-42dc-ac65-5591c4290952
Qui propose ce lancement
====================== nvme0n1p3/grub/grub.cfg (filtered) ======================
Ubuntu a77a9956-d58f-45f9-80f0-5aa62957bb90
Ubuntu, with Linux 6.2.0-32-generic a77a9956-d58f-45f9-80f0-5aa62957bb90
Ubuntu, with Linux 6.2.0-31-generic a77a9956-d58f-45f9-80f0-5aa62957bb90
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###
Je ne sais pas ce qu'est cette partition a77a9956.....
Si tu penses que c'est dans nvme0n1p4 et qu'il n'y a pas trop de choses confidentielles, je te suggère de la monter puis de refaire un boo-info. On n'y verra que ce qui concerne les noyaux du boot.
Dernière modification par geole (Le 18/09/2023, à 18:43)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#3 Le 18/09/2023, à 18:26
- xubu1957
Re : Kernel init not found
Bonjour,
Collage du Boot-repair, pour les spécialistes :
boot-repair-4ppa203 [20230918_1217]
============================= Boot Repair Summary ==============================
Default settings: ______________________________________________________________
The default repair of the Boot-Repair utility would not act on the boot.
Confirmation request before suggested repair: __________________________________
You may want to retry after mounting your encrypted partitions so that the tool can verify their contents. (sudo cryptsetup luksOpen /dev/nvme0n1p4 myvolume)
Are you sure you want to continue anyway?
User settings: _________________________________________________________________
You may want to retry after mounting your encrypted partitions so that the tool can verify their contents. (sudo cryptsetup luksOpen /dev/nvme0n1p4 myvolume)
This will modify the mount point of sdd1 in order to remove spaces and special characters. Do you want to continue?
This will modify the mount point of sdd1 in order to remove spaces and special characters. Do you want to continue?
No OS to fix.
=================== /boot detected. Please check the options.
Please backup your data before this operation.
The settings chosen by the user will not act on the MBR.
Additional repair will be performed: repair-filesystems
Force Unmount all blkid partitions (for fsck) except / /boot /cdrom /dev /etc /home /opt /pas /proc /rofs /sys /tmp /usr /var
fsck -fyM /dev/nvme0n1p2
fsck from util-linux 2.31.1
fsck -fyM /dev/nvme0n1p3
fsck from util-linux 2.31.1
fsck -fyM /dev/sdd1
fsck from util-linux 2.31.1
Boot successfully repaired.
You can now reboot your computer.
============================ Boot Info After Repair ============================
=> Grub2 (v2.00) is installed in the MBR of /dev/nvme0n1 and looks at sector
2048 of the same hard drive for core.img. core.img is at this location and
looks for (,gpt3)/grub. It also embeds following components:
modules
---------------------------------------------------------------------------
fshelp ext2 part_gpt biosdisk
---------------------------------------------------------------------------
=> Syslinux MBR (5.00 and higher) is installed in the MBR of /dev/sdc.
=> No boot loader is installed in the MBR of /dev/sdd.
nvme0n1p1: _____________________________________________________________________
File system: BIOS Boot partition
Boot sector type: Grub2's core.img
Boot sector info:
nvme0n1p2: _____________________________________________________________________
File system: vfat
Boot sector type: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/BOOT/fbx64.efi /efi/BOOT/mmx64.efi
/efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi
/efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg
nvme0n1p3: _____________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files: /grub/grub.cfg /grub/i386-pc/core.img
nvme0n1p4: _____________________________________________________________________
File system: crypto_LUKS
Boot sector type: Unknown
Boot sector info:
sdc1: __________________________________________________________________________
File system: vfat
Boot sector type: SYSLINUX 6.03
Boot sector info: Syslinux looks at sector 32864 of /dev/sdc1 for its
second stage. The integrity check of Syslinux failed.
No errors found in the Boot Parameter Block.
Operating System:
Boot files: /boot/grub/grub.cfg /syslinux.cfg
/efi/BOOT/grubx64.efi /ldlinux.sys
sdd1: __________________________________________________________________________
File system: ntfs
Boot sector type: Unknown
Boot sector info: According to the info in the boot sector, sdd1 has
2353000447 sectors, but according to the info from
fdisk, it has 19532869631 sectors.
Operating System:
Boot files:
sda: ___________________________________________________________________________
File system: crypto_LUKS
Boot sector type: Unknown
Boot sector info:
sdb: ___________________________________________________________________________
File system: crypto_LUKS
Boot sector type: Unknown
Boot sector info:
================================ 0 OS detected =================================
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: GV102 from NVIDIA Corporation
Live-session OS is Ubuntu 64-bit (Boot-Repair-Disk 64bit 20200604, bionic, x86_64)
===================================== UEFI =====================================
BIOS/UEFI firmware: 2407 from American Megatrends Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0005
Timeout: 1 seconds
BootOrder: 0005,0002,0003,0004
Boot0002* Hard Drive BBS(HD,,0x0)..GO..NO........}.S.a.m.s.u.n.g. .S.S.D. .9.7.0. .E.V.O. .P.l.u.s. .1.T.B....................A.......................................%8Y.@<u.....4..Gd-.;.A..MQ..L.S.4.E.W.N.S.0.N.9.0.5.5.7.3.W........BO..NO..........S.T.1.0.0.0.0.N.E.0.0.0.8.-.2.J.M.1.0.1....................A.............................................>..Gd-.;.A..MQ..L. . . . . . . . . . . . .L.Z.0.0.A.H.Q.4........BO..NO..........S.T.1.0.0.0.0.V.N.0.0.0.-.3.A.K.1.0.1....................A.............................................>..Gd-.;.A..MQ..L. . . . . . . . . . . . .P.W.0.0.9.G.R.N........BO
Boot0003* ubuntu HD(2,GPT,36e87da9-4c17-4b98-bd00-2d68fa5534a5,0x1000,0x100800)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0004* USB BBS(HD,,0x0)..GO..NO........u.W.D. .M.y. .B.o.o.k. .2.5.E.E. .4.0.0.9....................A.........................................6..Gd-.;.A..MQ..L.3.1.4.5.4.B.4.4.3.9.3.3.4.5.5.A........BO..NO........Y. .P.H.I.L.I.P.S. .8...0.7....................A.............................&..Gd-.;.A..MQ..L.8.3.1.7.E.F.F.8........BO
Boot0005* UEFI: PHILIPS 8.07, Partition 1 PciRoot(0x0)/Pci(0x8,0x1)/Pci(0x0,0x3)/USB(1,0)/HD(1,MBR,0x588afe00,0x800,0x3a97800)..BO
a9c517741ac31962d7feb152948ad1ee nvme0n1p2/BOOT/fbx64.efi
a660182adef313615746a665966d2ccc nvme0n1p2/BOOT/mmx64.efi
5ddf997e8b025bfbc2009e85b32f60dc nvme0n1p2/ubuntu/grubx64.efi
a660182adef313615746a665966d2ccc nvme0n1p2/ubuntu/mmx64.efi
64349b3622c65f495a99dbf6102496e3 nvme0n1p2/ubuntu/shimx64.efi
64349b3622c65f495a99dbf6102496e3 nvme0n1p2/BOOT/BOOTX64.efi
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
nvme0n1 : is-GPT, hasBIOSboot, has---ESP, not-usb, not-mmc, no-os, no-wind, 2048 sectors * 512 bytes
sdd : is-GPT, no-BIOSboot, has-noESP, usb-disk, not-mmc, no-os, no-wind, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
nvme0n1p2 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
nvme0n1p3 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, grubenv-ng, noupdategrub, not-far
sdd1 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
Partitions info (2/3): _________________________________________________________
nvme0n1p2 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
nvme0n1p3 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sdd1 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
nvme0n1p2 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
nvme0n1p3 : is---sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
sdd1 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sdd
fdisk -l (filtered): ___________________________________________________________
Disk nvme0n1: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 798C7A6C-CD45-40F2-869A-6FE74C398FF0
Start End Sectors Size Type
nvme0n1p1 2048 4095 2048 1M BIOS boot
nvme0n1p2 4096 1054719 1050624 513M EFI System
nvme0n1p3 1054720 2553855 1499136 732M Linux filesystem
nvme0n1p4 2553856 1953523711 1950969856 930.3G Linux filesystem
Disk sda: 9.1 TiB, 10000831348736 bytes, 19532873728 sectors
Disk sdb: 9.1 TiB, 10000831348736 bytes, 19532873728 sectors
Disk sdc: 29.3 GiB, 31457280000 bytes, 61440000 sectors
Disk identifier: 0x588afe00
Boot Start End Sectors Size Id Type
sdc1 * 2048 61439999 61437952 29.3G c W95 FAT32 (LBA)
Disk sdd: 9.1 TiB, 10000831348736 bytes, 19532873728 sectors
Disk identifier: 2B24DD01-C8CD-45BD-9AF2-8F3AE689FF30
Start End Sectors Size Type
sdd1 2048 19532871679 19532869632 9.1T Microsoft basic data
Disk zram0: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram1: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram2: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram3: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram4: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram5: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram6: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram7: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram8: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram9: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram10: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram11: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram12: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram13: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram14: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram15: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram16: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram17: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram18: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram19: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram20: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram21: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram22: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram23: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram24: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram25: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram26: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram27: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram28: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram29: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram30: 1004.5 MiB, 1053265920 bytes, 257145 sectors
Disk zram31: 1004.5 MiB, 1053265920 bytes, 257145 sectors
parted -lm (filtered): _________________________________________________________
sda:10.0TB:scsi:512:4096:unknown:ATA ST10000NE0008-2J:;
sdb:10.0TB:scsi:512:4096:unknown:ATA ST10000VN000-3AK:;
sdc:31.5GB:scsi:512:512:msdos: PHILIPS:;
1:1049kB:31.5GB:31.5GB:fat32::boot, lba;
sdd:10.0TB:scsi:512:4096:gpt:WD My Book 25EE:;
1:1049kB:10.0TB:10.0TB:ntfs:My Book:msftdata;
nvme0n1:1000GB:nvme:512:512:gpt:Samsung SSD 970 EVO Plus 1TB:;
1:1049kB:2097kB:1049kB:::bios_grub;
2:2097kB:540MB:538MB:fat32:EFI System Partition:boot, esp;
3:540MB:1308MB:768MB:ext4::;
4:1308MB:1000GB:999GB:::;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda crypto_LUKS 4af9231c-fc55-41de-b600-e6d87ca96a4c
sdb crypto_LUKS 4c6c88c2-a434-46a5-ab8d-349f71e8cf1a
sdc
└─sdc1 vfat 427D-2B1E 588afe00-01 BOOT-REPAIR
sdd
└─sdd1 ntfs 3879FBC75AAD3B86 bd244da6-330d-4fb0-9b19-920d51733422 WD MyBook 25EE Backup My Book
nvme0n1
├─nvme0n1p1 9669ac4f-2b2b-4f64-955b-549d346c4498
├─nvme0n1p2 vfat E135-C594 36e87da9-4c17-4b98-bd00-2d68fa5534a5 EFI System Partition
├─nvme0n1p3 ext4 c38bf2d3-2df9-48be-8304-876934961a6e bf6ac639-464c-42dc-ac65-5591c4290952
└─nvme0n1p4 crypto_LUKS 947c00aa-24a9-4725-82f8-0693d2924448 30ef0a78-b8ac-4544-bac5-f842cb309f93
Mount points (filtered): _______________________________________________________
Avail Use% Mounted on
/dev/nvme0n1p2 505.9M 1% /mnt/boot-sav/nvme0n1p2
/dev/nvme0n1p3 283.8M 52% /mnt/boot-sav/nvme0n1p3
/dev/sdc1 28.4G 3% /cdrom
/dev/sdd1 5.7T 38% /mnt/boot-sav/sdd1
Mount options (filtered): ______________________________________________________
=================== nvme0n1p2/efi/ubuntu/grub.cfg (filtered) ===================
search.fs_uuid c38bf2d3-2df9-48be-8304-876934961a6e root
set prefix=($root)'/grub'
configfile $prefix/grub.cfg
====================== nvme0n1p3/grub/grub.cfg (filtered) ======================
Ubuntu a77a9956-d58f-45f9-80f0-5aa62957bb90
Ubuntu, with Linux 6.2.0-32-generic a77a9956-d58f-45f9-80f0-5aa62957bb90
Ubuntu, with Linux 6.2.0-31-generic a77a9956-d58f-45f9-80f0-5aa62957bb90
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###
================= nvme0n1p3: Location of files loaded by Grub ==================
GiB - GB File Fragment(s)
0.709976196 = 0.762331136 grub/grub.cfg 1
0.999046326 = 1.072717824 grub/i386-pc/core.img 1
1.015773773 = 1.090678784 vmlinuz 1
0.914215088 = 0.981630976 vmlinuz-6.2.0-31-generic 2
1.015773773 = 1.090678784 vmlinuz-6.2.0-32-generic 1
0.914215088 = 0.981630976 vmlinuz.old 2
0.965526581 = 1.036726272 initrd.img 9
1.096675873 = 1.177546752 initrd.img-6.2.0-31-generic 8
0.965526581 = 1.036726272 initrd.img-6.2.0-32-generic 9
1.096675873 = 1.177546752 initrd.img.old 8
====================== sdc1/boot/grub/grub.cfg (filtered) ======================
Boot-Repair-Disk session
Boot-Repair-Disk session (failsafe)
========================= sdc1/syslinux.cfg (filtered) =========================
DEFAULT loadconfig
LABEL loadconfig
CONFIG /isolinux/isolinux.cfg
APPEND /isolinux/
==================== sdc1: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
?? = ?? boot/grub/grub.cfg 1
================== sdc1: Location of files loaded by Syslinux ==================
GiB - GB File Fragment(s)
?? = ?? syslinux.cfg 1
?? = ?? ldlinux.sys 1
======================== Unknown MBRs/Boot Sectors/etc =========================
Unknown BootLoader on nvme0n1p4
Unknown BootLoader on sdd1
Unknown BootLoader on sda
Unknown BootLoader on sdb
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
Hors ligne
#4 Le 19/09/2023, à 13:59
- TheoEst
Re : Kernel init not found
Hello,
J'ai réussi à appliquer un
update-initramfs -c -k all
depuis la clef bootable, mais cela n'a pas résolu tout mes problèmes.
Je vous donne ma procédure (depuis une clef bootable Ubuntu 22.04).
cryptsetup luksOpen /dev/nvme0n1p4 nvme0n1p4_crypt
sudo mount /dev/mapper/vgubuntu-root /mnt
sudo mount /dev/nvme0n1p3 /mnt/boot
sudo mount --rbind /dev /mnt/dev
sudo mount --rbind /proc /mnt/proc
sudo mount --rbind /sys /mnt/sys
sudo mount -o bind /run /mnt/run
sudo chroot /mnt
update-initramfs -c -k all
En régénérant les fichiers initramfs, je n'ai plus de problème de kernel init not found.
Au démarrage, j'ai bien la possibilité de déchiffrer mon disque nvme0n1p4.
Mais, après le déchiffrage, j'ai mon ordinateur qui bloque sur la page des logins des utilisateurs.
J'ai aussi essayé de désactiver dropbear car j'avais une erreur qui s'affichait par rapport au dropbear script.
En reprenant la procédure si dessus, et en rajoutant :
apt-get remove dropbear-initramfs
Mais cela n'a pas résolu mon erreur.
Je pense que je vais réinstaller un ubuntu propre, il faut d'abord que je sauvegarde la totalité de mon SSD sur le HDD, avant de faire la réinstallation
Hors ligne
#5 Le 19/09/2023, à 21:07
- geole
Re : Kernel init not found
Bonsoir.
Effectivement, il y avait la solution chroot puis réparer.
Vérifie le taux de remplissage de tes partitions.
Dernière modification par geole (Le 19/09/2023, à 21:09)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
Pages : 1