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 17/12/2023, à 17:17

mkd_dkm

Problème de localisation de la partition à déchiffrer au boot

Bonjour,

J'ai installé ubuntu 22.04 en dual boot avec windows en chiffrant la patition linux avec LUKS (https://mytechscraps.wordpress.com/2022 … n-and-lvm/)

Récemment j'ai eu un problème avec la partition /boot, j'ai du regénéré les fichiers initrd.img, vmlinuz, etc ... pour boot.

Quand l'ordinateur boot et qu'il essaye de monter le /, il retombe sur un shell (initramfs) avec le message suivant: "ALERT! /dev/mapper/vgubuntu-root does not exist. Dropping to a shell!" . Comme indiqué dans ce post, je peux quand même boot en indiquant à ma main où se trouve la partition à déchiffrer:

exit
cryptsetup luksOpen /dev/nvme0n1p7 tmpData

Ma question est donc, comment faire en sorte que la machine trouve et monte le / automatiquement. Petite précision, j'avais réinstallé grub avec boot-repair, mon sentiment à ce stade c'est qu'il y a un problème dans la conf de grub.

Voici quelques extraits de fichier et un boot-info:

/etc/crypttab:

nvme0n1p7_crypt UUID=fd05b3bb-cd5d-4b68-a662-55b6349e7fde none luks,discard

/etc/fstab:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/vgubuntu-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/nvme0n1p6 during installation
#UUID=dca430a4-dafc-4131-b202-d6c2e92337da /boot           ext4    defaults        0       2
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=6065-FA50  /boot/efi       vfat    umask=0077      0       1
/dev/mapper/vgubuntu-swap_1 none            swap    sw              0       0
UUID=dca430a4-dafc-4131-b202-d6c2e92337da  /boot       ext4    defaults      0       2

/boot/grub/grub.cfg:

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
 
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${initrdfail}" = 2 ]; then
   set initrdfail=
elif [ "${initrdfail}" = 1 ]; then
   set next_entry="${prev_entry}"
   set prev_entry=
   save_env prev_entry
   if [ "${next_entry}" ]; then
      set initrdfail=2
   fi
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi
 
if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi
 
export menuentry_id_option
 
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi
 
function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function initrdfail {
    if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
      if [ -z "${initrdfail}" ]; then
        set initrdfail=1
        if [ -n "${boot_once}" ]; then
          set prev_entry="${default}"
          save_env prev_entry
        fi
      fi
      save_env initrdfail
    fi; fi
}
function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}
 
if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod lvm
insmod ext2
set root='lvmid/brXKDq-cFrx-mIym-JE2p-IMYg-csxq-LTCIdY/jwMjYB-pk4T-UhIQ-jEGs-Cdvb-ZxCo-IGk0Rh'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvmid/brXKDq-cFrx-mIym-JE2p-IMYg-csxq-LTCIdY/jwMjYB-pk4T-UhIQ-jEGs-Cdvb-ZxCo-IGk0Rh'  b55ff061-66d7-4ac0-9c42-c9c110a20a68
else
  search --no-floppy --fs-uuid --set=root b55ff061-66d7-4ac0-9c42-c9c110a20a68
fi
    font="/usr/share/grub/unicode.pf2"
fi
 
if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=10
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=10
  fi
fi
### END /etc/grub.d/00_header ###
 
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
 
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
	if [ "${1}" = "keep" ]; then
		set vt_handoff=vt.handoff=7
	else
		set vt_handoff=
	fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if [ ${grub_platform} != pc ]; then
      set linux_gfx_mode=keep
    elif hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b55ff061-66d7-4ac0-9c42-c9c110a20a68' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	search --no-floppy --fs-uuid --set=root dca430a4-dafc-4131-b202-d6c2e92337da
	linux	/vmlinuz-6.2.0-37-generic root=/dev/mapper/vgubuntu-root ro  quiet splash $vt_handoff
	initrd	/initrd.img-6.2.0-37-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-b55ff061-66d7-4ac0-9c42-c9c110a20a68' {
	menuentry 'Ubuntu, with Linux 6.2.0-37-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.2.0-37-generic-advanced-b55ff061-66d7-4ac0-9c42-c9c110a20a68' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root dca430a4-dafc-4131-b202-d6c2e92337da
		echo	'Loading Linux 6.2.0-37-generic ...'
		linux	/vmlinuz-6.2.0-37-generic root=/dev/mapper/vgubuntu-root ro  quiet splash $vt_handoff
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-6.2.0-37-generic
	}
	menuentry 'Ubuntu, with Linux 6.2.0-37-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.2.0-37-generic-recovery-b55ff061-66d7-4ac0-9c42-c9c110a20a68' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root dca430a4-dafc-4131-b202-d6c2e92337da
		echo	'Loading Linux 6.2.0-37-generic ...'
		linux	/vmlinuz-6.2.0-37-generic root=/dev/mapper/vgubuntu-root ro recovery nomodeset dis_ucode_ldr 
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-6.2.0-37-generic
	}
}
 
### END /etc/grub.d/10_linux ###
 
### BEGIN /etc/grub.d/10_linux_zfs ###
### END /etc/grub.d/10_linux_zfs ###
 
### BEGIN /etc/grub.d/20_linux_xen ###
 
### END /etc/grub.d/20_linux_xen ###
 
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-6065-FA50' {
	insmod part_gpt
	insmod fat
	search --no-floppy --fs-uuid --set=root 6065-FA50
	chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
  set timeout=10
fi
### END /etc/grub.d/30_os-prober ###
 
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
 
### BEGIN /etc/grub.d/40_custom ###
# 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.
### END /etc/grub.d/40_custom ###
 
### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###

boot info:

boot-repair-4ppa2065                                              [20231217_1704]
 
============================== Boot Info Summary ===============================
 
 => No boot loader is installed in the MBR of /dev/nvme0n1.
 
nvme0n1p1: _____________________________________________________________________
 
    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/Boot/bkpbootx64.efi /efi/Boot/bootx64.efi 
                       /efi/Boot/fbx64.efi /efi/Boot/grubx64.efi 
                       /efi/Boot/mmx64.efi /efi/ubuntu/grubx64.efi 
                       /efi/ubuntu/mmx64.efi /efi/ubuntu/shimx64.efi 
                       /efi/ubuntu/grub.cfg /efi/Microsoft/Boot/bootmgfw.efi 
                       /efi/Microsoft/Boot/bootmgr.efi
 
nvme0n1p2: _____________________________________________________________________
 
    File system:       
    Boot sector type:  -
    Boot sector info: 
 
nvme0n1p3: _____________________________________________________________________
 
    File system:       ntfs
    Boot sector type:  NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 10 or 11
    Boot files:        /Windows/System32/winload.exe
 
nvme0n1p4: _____________________________________________________________________
 
    File system:       ntfs
    Boot sector type:  NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        
 
nvme0n1p5: _____________________________________________________________________
 
    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        
 
nvme0n1p6: _____________________________________________________________________
 
    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        /grub/grub.cfg
 
nvme0n1p7: _____________________________________________________________________
 
    File system:       crypto_LUKS
    Boot sector type:  Unknown
    Boot sector info: 
 
 
================================ 2 OS detected =================================
 
OS#1:   The OS now in use - Ubuntu 22.04.3 LTS on mapper/vgubuntu-root
OS#2:   Windows 10 or 11 on nvme0n1p3
 
================================ Host/Hardware =================================
 
CPU architecture: 64-bit
Video: Intel Corporation NVIDIA Corporation from Intel Corporation NVIDIA Corporation
BOOT_IMAGE of the installed session in use:
/vmlinuz-6.2.0-37-generic root=/dev/mapper/vgubuntu-root ro quiet splash vt.handoff=7
df -Th / : /dev/mapper/vgubuntu-root ext4  358G   43G  297G  13% /
 
===================================== UEFI =====================================
 
BIOS/UEFI firmware: UX3404VC.209(5.27) from American Megatrends International, LLC.
The firmware is EFI-compatible, and is set in EFI-mode for this installed-session.
SecureBoot enabled according to mokutil - Please report this message to boot.repair@gmail.com.
BootCurrent: 0002
Timeout: 2 seconds
BootOrder: 0002,0000,0003,0004,0005
Boot0000* Windows Boot Manager	HD(1,GPT,27512373-8426-420b-ae7b-c2b8368b2096,0x800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0002* ubuntu	HD(1,GPT,27512373-8426-420b-ae7b-c2b8368b2096,0x800,0x82000)/File(\EFI\ubuntu\shimx64.efi)
Boot0003* UEFI:CD/DVD Drive	BBS(129,,0x0)
Boot0004* UEFI:Removable Device	BBS(130,,0x0)
Boot0005* UEFI:Network Device	BBS(131,,0x0)
 
64349b3622c65f495a99dbf6102496e3   nvme0n1p1/Boot/bkpbootx64.efi
64349b3622c65f495a99dbf6102496e3   nvme0n1p1/Boot/bootx64.efi
a9c517741ac31962d7feb152948ad1ee   nvme0n1p1/Boot/fbx64.efi
a1da253696a304dce6b4668b70151c0e   nvme0n1p1/Boot/grubx64.efi
a660182adef313615746a665966d2ccc   nvme0n1p1/Boot/mmx64.efi
a1da253696a304dce6b4668b70151c0e   nvme0n1p1/ubuntu/grubx64.efi
a660182adef313615746a665966d2ccc   nvme0n1p1/ubuntu/mmx64.efi
64349b3622c65f495a99dbf6102496e3   nvme0n1p1/ubuntu/shimx64.efi
433224d074127c34064dfa0d732a9977   nvme0n1p1/Microsoft/Boot/bootmgfw.efi
32f69782c9966aee03f44d5ec4ad6711   nvme0n1p1/Microsoft/Boot/bootmgr.efi
 
============================= Drive/Partition Info =============================
 
Disks info: ____________________________________________________________________
 
mapper/vgubuntu-root	: notGPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, has-os,	no-wind,	2048 sectors * 512 bytes
nvme0n1	: is-GPT,	no-BIOSboot,	has---ESP, 	not-usb,	not-mmc, has-os,	has-win,	2048 sectors * 512 bytes
 
Partitions info (1/3): _________________________________________________________
 
mapper/vgubuntu-root	: is-os,	64, apt-get,	signed grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	not-far
nvme0n1p5	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB
nvme0n1p3	: is-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB
nvme0n1p1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
nvme0n1p6	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	grubenv-ok,	noupdategrub,	end-after-100GB
nvme0n1p4	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB
 
Partitions info (2/3): _________________________________________________________
 
mapper/vgubuntu-root	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
nvme0n1p5	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	no-bmgr,	notwinboot
nvme0n1p3	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	no-bmgr,	notwinboot
nvme0n1p1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
nvme0n1p6	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
nvme0n1p4	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	no-bmgr,	notwinboot
 
Partitions info (3/3): _________________________________________________________
 
mapper/vgubuntu-root	: not--sepboot,	with-boot,	fstab-has-goodBOOT,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	mapper/vgubuntu-root
nvme0n1p5	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	nvme0n1
nvme0n1p3	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	nvme0n1
nvme0n1p1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	nvme0n1
nvme0n1p6	: is---sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	nvme0n1
nvme0n1p4	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	nvme0n1
 
fdisk -l (filtered): ___________________________________________________________
 
Disk nvme0n1: 953.87 GiB, 1024209543168 bytes, 2000409264 sectors
Disk identifier: CD99A630-8769-41F9-89CA-A2A6AA1D3620
              Start        End    Sectors   Size Type
nvme0n1p1       2048     534527     532480   260M EFI System
nvme0n1p2     534528     567295      32768    16M Microsoft reserved
nvme0n1p3     567296 1216002408 1215435113 579.6G Microsoft basic data
nvme0n1p4 1998032896 1999876095    1843200   900M Windows recovery environment
nvme0n1p5 1999876096 2000408575     532480   260M Windows recovery environment
nvme0n1p6 1216493568 1217542143    1048576   512M Linux filesystem
nvme0n1p7 1217542144 1998032895  780490752 372.2G Linux filesystem
Partition table entries are not in disk order.
Disk mapper/tmpData: 372.15 GiB, 399594487808 bytes, 780457984 sectors
Disk mapper/vgubuntu-swap_1: 8 GiB, 8589934592 bytes, 16777216 sectors
Disk mapper/vgubuntu-root: 364.15 GiB, 391001407488 bytes, 763674624 sectors
 
parted -lm (filtered): _________________________________________________________
 
mapper/vgubuntu-swap_1:8590MB:dm:512:512:loop:Linux device-mapper (linear):;
1:0.00B:8590MB:8590MB:linux-swap(v1)::;
mapper/vgubuntu-root:391GB:dm:512:512:loop:Linux device-mapper (linear):;
1:0.00B:391GB:391GB:ext4::;
mapper/tmpData:400GB:dm:512:512:unknown:Linux device-mapper (crypt):;
nvme0n1:1024GB:nvme:512:512:gpt:Micron_2400_MTFDKBA1T0QFM:;
1:1049kB:274MB:273MB:fat32:EFI system partition:boot, esp;
2:274MB:290MB:16.8MB::Microsoft reserved partition:msftres;
3:290MB:623GB:622GB:ntfs:Basic data partition:msftdata;
6:623GB:623GB:537MB:ext4::;
7:623GB:1023GB:400GB:::;
4:1023GB:1024GB:944MB:ntfs:Basic data partition:hidden, diag;
5:1024GB:1024GB:273MB:fat32:Basic data partition:hidden, diag;
 
Free space >10MiB: ______________________________________________________________
 
nvme0n1: 593751MiB:593991MiB:240MiB
 
blkid (filtered): ______________________________________________________________
 
NAME                  FSTYPE      UUID                                   PARTUUID                             LABEL    PARTLABEL
nvme0n1                                                                                                                
├─nvme0n1p1           vfat        6065-FA50                              27512373-8426-420b-ae7b-c2b8368b2096 SYSTEM   EFI system partition
├─nvme0n1p2                                                              5ff45ccb-dcd7-4cfb-b733-222f88e58b4b          Microsoft reserved partition
├─nvme0n1p3           ntfs        B6EA67BCEA67778F                       8ec7100a-cb96-4f5d-a163-bf363403f2a2 OS       Basic data partition
├─nvme0n1p4           ntfs        746AA86B6AA82C34                       279de244-fc79-441b-82f1-3498b852e0f1 RECOVERY Basic data partition
├─nvme0n1p5           vfat        26C3-D74C                              cf253ff5-a484-497f-b843-0ad3bb695519 MYASUS   Basic data partition
├─nvme0n1p6           ext4        dca430a4-dafc-4131-b202-d6c2e92337da   93b6d88c-682c-412d-aadb-2fa00e54a84c          
└─nvme0n1p7           crypto_LUKS fd05b3bb-cd5d-4b68-a662-55b6349e7fde   861ad59a-1af5-42c9-bd4e-04c03ec3c97c          
  └─tmpData           LVM2_member Ldh1Ju-c3yL-dE0k-3sdd-mZq9-8XUc-216gkF                                               
    ├─vgubuntu-swap_1 swap        230053c2-f998-4a0e-a8da-83e63117ff31                                                 
    └─vgubuntu-root   ext4        b55ff061-66d7-4ac0-9c42-c9c110a20a68                                                 
 
Mount points (filtered): _______________________________________________________
 
                                                Avail Use% Mounted on
/dev/mapper/vgubuntu-root                      296.6G  12% /
/dev/nvme0n1p1                                 179.3M  30% /mnt/boot-sav/nvme0n1p1
/dev/nvme0n1p3                                 461.9G  20% /mnt/boot-sav/nvme0n1p3
/dev/nvme0n1p4                                 130.8M  85% /mnt/boot-sav/nvme0n1p4
/dev/nvme0n1p5                                 175.8M  31% /mnt/boot-sav/nvme0n1p5
/dev/nvme0n1p6                                 214.6M  49% /boot
 
Mount options (filtered): ______________________________________________________
 
/dev/mapper/vgubuntu-root                      ext4            rw,relatime,errors=remount-ro
/dev/nvme0n1p1                                 vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/nvme0n1p3                                 fuseblk         ro,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/nvme0n1p4                                 fuseblk         ro,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/nvme0n1p5                                 vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/nvme0n1p6                                 ext4            rw,relatime
 
============================== ls -R /dev/mapper/ ==============================
 
/dev/mapper:
control
tmpData
vgubuntu-root
vgubuntu-swap_1
 
=================== nvme0n1p1/efi/ubuntu/grub.cfg (filtered) ===================
 
search.fs_uuid dca430a4-dafc-4131-b202-d6c2e92337da root 
set prefix=($root)'/grub'
configfile $prefix/grub.cfg
 
====================== nvme0n1p6/grub/grub.cfg (filtered) ======================
 
Ubuntu   b55ff061-66d7-4ac0-9c42-c9c110a20a68
Windows Boot Manager (on nvme0n1p1)   osprober-efi-6065-FA50
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###
 
================= nvme0n1p6: Location of files loaded by Grub ==================
 
           GiB - GB             File                                 Fragment(s)
 580,389659882 = 623,188652032  grub/grub.cfg                                  1
 580,402496338 = 623,202435072  vmlinuz                                        2
 580,402496338 = 623,202435072  vmlinuz-6.2.0-37-generic                       2
 580,569332123 = 623,381573632  initrd.img-6.2.0-37-generic                    8
 
 
==================== blkid (filtered) before lvm activation ====================
 
/dev/mapper/vgubuntu-root: UUID="b55ff061-66d7-4ac0-9c42-c9c110a20a68" BLOCK_SIZE="4096" TYPE="ext4"
/dev/mapper/vgubuntu-swap_1: UUID="230053c2-f998-4a0e-a8da-83e63117ff31" TYPE="swap"
/dev/nvme0n1p7: UUID="fd05b3bb-cd5d-4b68-a662-55b6349e7fde" TYPE="crypto_LUKS" PARTUUID="861ad59a-1af5-42c9-bd4e-04c03ec3c97c"
/dev/nvme0n1p5: LABEL="MYASUS" UUID="26C3-D74C" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="Basic data partition" PARTUUID="cf253ff5-a484-497f-b843-0ad3bb695519"
/dev/nvme0n1p3: LABEL="OS" BLOCK_SIZE="512" UUID="B6EA67BCEA67778F" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="8ec7100a-cb96-4f5d-a163-bf363403f2a2"
/dev/nvme0n1p1: LABEL_FATBOOT="SYSTEM" LABEL="SYSTEM" UUID="6065-FA50" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="27512373-8426-420b-ae7b-c2b8368b2096"
/dev/nvme0n1p6: UUID="dca430a4-dafc-4131-b202-d6c2e92337da" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="93b6d88c-682c-412d-aadb-2fa00e54a84c"
/dev/nvme0n1p4: LABEL="RECOVERY" BLOCK_SIZE="512" UUID="746AA86B6AA82C34" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="279de244-fc79-441b-82f1-3498b852e0f1"
/dev/mapper/tmpData: UUID="Ldh1Ju-c3yL-dE0k-3sdd-mZq9-8XUc-216gkF" TYPE="LVM2_member"
/dev/nvme0n1p2: PARTLABEL="Microsoft reserved partition" PARTUUID="5ff45ccb-dcd7-4cfb-b733-222f88e58b4b"
 
 
================================ LVM activation ================================
 
modprobe dm-mod  
vgscan --mknodes
  Found volume group "vgubuntu" using metadata type lvm2
vgchange -ay
  2 logical volume(s) in volume group "vgubuntu" now active
lvscan
  ACTIVE            '/dev/vgubuntu/swap_1' [8.00 GiB] inherit
  ACTIVE            '/dev/vgubuntu/root' [<364.15 GiB] inherit
blkid -g
 
 
 
Suggested repair: ______________________________________________________________
 
The default repair of the Boot-Repair utility would purge (in order to sign-grub) and reinstall the grub-efi-amd64-signed of
mapper/vgubuntu-root,
using the following options:  nvme0n1p6/boot nvme0n1p1/boot/efi
Additional repair would be performed: unhide-bootmenu-10s use-standard-efi-file restore-efi-backups
 
Final advice in case of suggested repair: ______________________________________
 
Please do not forget to make your UEFI firmware boot on the The OS now in use - Ubuntu 22.04.3 LTS entry (nvme0n1p1/efi/****/shim****.efi (**** will be updated in the final message) file) !
If your computer reboots directly into Windows, try to change the boot order in your UEFI firmware.
If your UEFI firmware does not allow to change the boot order, change the default boot entry of the Windows bootloader.
For example you can boot into Windows, then type the following command in an admin command prompt:
bcdedit /set {bootmgr} path \EFI\****\shim****.efi (**** will be updated in the final message)

Dernière modification par mkd_dkm (Le 22/12/2023, à 12:47)

Hors ligne

#2 Le 04/01/2024, à 11:54

mkd_dkm

Re : Problème de localisation de la partition à déchiffrer au boot

Par ailleurs, quand je fais un

 apt  update 

J'obtiens ce warning:

update-initramfs: Generating /boot/initrd.img-6.2.0-37-generic
cryptsetup: WARNING: target 'tmpData' not found in /etc/crypttab
I: The initramfs will attempt to resume from /dev/dm-1
I: (/dev/mapper/vgubuntu-swap_1)
I: Set the RESUME variable to override this.

Hors ligne