Contenu | Rechercher | Menus

Annonce

DVD, clés USB et t-shirts Ubuntu-fr disponibles sur la boutique En Vente Libre

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 23/05/2022, à 15:09

yvos81

[ RESOLU] "Locked-NVram détecté" intallation Ubuntu 22.04

Bonjour,
Tous d'abord des infos concernant mon système et mon problème :

infos sysrème

le Bootinfo :

boot-repair-4ppa200                                              [20220523_0952]

============================= Boot Repair Summary ==============================






Recommended repair: ____________________________________________________________

The default repair of the Boot-Repair utility will reinstall the grub-efi of
sda2,
using the following options:  sda1/boot/efi
Additional repair will be performed: unhide-bootmenu-10s use-standard-efi-file restore-efi-backups


rm /mnt/boot-sav/sda1/efi/Boot/bootx64.efi
mv /mnt/boot-sav/sda1/efi/Boot/bkpbootx64.efi /mnt/boot-sav/sda1/efi/Boot/bootx64.efi
Mount sda1 on /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c/boot/efi

======================== Reinstall the grub-efi of sda2 ========================

chroot /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c grub-install --version
grub-install (GRUB) 2.06-2ubuntu7
chroot /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c modprobe efivars

chroot /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c efibootmgr -v before grub install
BootCurrent: 0007
Timeout: 0 seconds
No BootOrder is set; firmware will attempt recovery

chroot /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c uname -r
5.15.0-25-generic

chroot /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: warning: EFI variables cannot be set on this system.
grub-install: warning: You will have to complete the GRUB setup manually.
Installation finished. No error reported.
df /dev/sda1
mv /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c/boot/efi/EFI/Boot/bootx64.efi /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c/boot/efi/EFI/Boot/bkpbootx64.efi
cp /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c/boot/efi/efi/ubuntu/grubx64.efi /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c/boot/efi/EFI/Boot/bootx64.efi

chroot /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: warning: EFI variables cannot be set on this system.
grub-install: warning: You will have to complete the GRUB setup manually.
Installation finished. No error reported.

chroot /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c efibootmgr -v after grub install
BootCurrent: 0007
Timeout: 0 seconds
No BootOrder is set; firmware will attempt recovery
Error: NVram is locked (Ubuntu not found in efibootmgr). Veuillez indiquer ce message à boot.repair@gmail.com

chroot /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-25-generic
Found initrd image: /boot/initrd.img-5.15.0-25-generic
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.

Unhide GRUB boot menu in sda2/boot/grub/grub.cfg

Une erreur est survenue pendant la réparation.
Error: NVram is locked (Ubuntu not found in efibootmgr). Veuillez indiquer ce message à boot.repair@gmail.com

Locked-NVram détecté.


============================ Boot Info After Repair ============================

 => No boot loader is installed in the MBR of /dev/sda.
 => No boot loader is installed in the MBR of /dev/sdb.
 => Syslinux MBR (5.00 and higher) is installed in the MBR of /dev/sdc.
 => Syslinux MBR (5.00 and higher) is installed in the MBR of /dev/sdd.

sda1: __________________________________________________________________________

    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

sda2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 22.04 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub

sdb1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdc1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr

sdc2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Unknown
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sdd1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 2000/XP: NTFS
    Boot sector info:  The info in boot sector on the starting sector of the 
                       MFT is wrong. The info in the boot sector on the 
                       starting sector of the MFT Mirror is wrong.
    Operating System:  
    Boot files:        

sdd2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sde: ___________________________________________________________________________

    File system:       iso9660
    Boot sector type:  Grub2 (v1.99-2.00)
    Boot sector info:  Grub2 (v1.99-2.00) is installed in the boot sector of 
                       sde and looks at sector 0 of the same hard drive for 
                       core.img, but core.img can not be found at this 
                       location.
    Mounting failed:   mount: /mnt/BootInfo/FD/sde: /dev/sde déjà monté ou point de montage actif.


================================ 1 OS detected =================================

OS#1:   Ubuntu 22.04 LTS on sda2

================================ Host/Hardware =================================

CPU architecture: 64-bit
Video: GK208B [GeForce GT 710] 2nd Generation Core Processor Family Integrated Graphics Controller from NVIDIA Corporation Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 22.04 LTS, jammy, x86_64)

===================================== UEFI =====================================

BIOS/UEFI firmware: J01 v02.15(2.15) from Hewlett-Packard
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled - This system doesn't support Secure Boot.
BootCurrent: 0007
Timeout: 0 seconds
No BootOrder is set; firmware will attempt recovery

728124f6ec8e22fbdbe7034812c81b95   sda1/BOOT/bkpbootx64.efi
728124f6ec8e22fbdbe7034812c81b95   sda1/BOOT/bootx64.efi
c152ec201c37b6e97bbc2207e49d1271   sda1/BOOT/fbx64.efi
f62c28d9b477b6a1a7b1c991b2b6637d   sda1/BOOT/grubx64.efi
fdafb5eece6caeccb788c946a28e6872   sda1/BOOT/mmx64.efi
f62c28d9b477b6a1a7b1c991b2b6637d   sda1/ubuntu/grubx64.efi
fdafb5eece6caeccb788c946a28e6872   sda1/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95   sda1/ubuntu/shimx64.efi

============================= Drive/Partition Info =============================

Disks info: ____________________________________________________________________

sda	: is-GPT,	no-BIOSboot,	has---ESP, 	not-usb,	not-mmc, has-os,	no-wind,	2048 sectors * 512 bytes
sdb	: is-GPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, no-os,	no-wind,	2048 sectors * 512 bytes
sdc	: notGPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, no-os,	no-wind,	2048 sectors * 512 bytes
sdd	: notGPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, no-os,	no-wind,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sda1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda2	: is-os,	64, apt-get,	signed grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios
sdb1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdc1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdc2	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdd1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdd2	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios

Partitions info (2/3): _________________________________________________________

sda1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda2	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdc1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	bootmgr,	notwinboot
sdc2	: 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
sdd2	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sda1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda2	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sdb1	: maybesepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdb
sdc1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdc
sdc2	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdc
sdd1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdd
sdd2	: maybesepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdd

fdisk -l (filtered): ___________________________________________________________

Disk sda: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: 49537D1D-99DF-4359-B287-D7AF7B0DBB40
        Start       End   Sectors   Size Type
sda1     2048   1050623   1048576   512M EFI System
sda2  1050624 976771071 975720448 465.3G Linux filesystem
Disk sdb: 232.89 GiB, 250059350016 bytes, 488397168 sectors
Disk identifier: C0303EB8-EC1A-4551-8761-430B4B6AA5BF
      Start       End   Sectors   Size Type
sdb1   2048 488396799 488394752 232.9G Linux filesystem
Disk sdc: 232.89 GiB, 250059350016 bytes, 488397168 sectors
Disk identifier: 0xbf128121
      Boot     Start       End   Sectors   Size Id Type
sdc1            2048 283594743 283592696 135.2G  b W95 FAT32
sdc2       283594752 392361736 108766985  51.9G  7 HPFS/NTFS/exFAT
Disk sde: 29.3 GiB, 31457280000 bytes, 61440000 sectors
Disk identifier: A09DB2B8-B5F6-43AE-AFB3-91E0A90189A1
        Start      End  Sectors  Size Type
sde1       64  7129427  7129364  3.4G Microsoft basic data
sde2  7129428  7137923     8496  4.1M EFI System
sde3  7137924  7138523      600  300K Microsoft basic data
sde4  7139328 61439936 54300609 25.9G Linux filesystem
Disk sdd: 3.64 TiB, 4000752599040 bytes, 976746240 sectors
Disk identifier: 0xdb4bf07b
      Boot     Start       End   Sectors  Size Id Type
sdd1             256 489044223 489043968  1.8T  7 HPFS/NTFS/exFAT
sdd2  *    489044224 976746239 487702016  1.8T 83 Linux

parted -lm (filtered): _________________________________________________________

sda:500GB:scsi:512:4096:gpt:ATA CT500MX500SSD1:;
1:1049kB:538MB:537MB:fat32:EFI System Partition:boot, esp;
2:538MB:500GB:500GB:ext4::;
sdb:250GB:scsi:512:512:gpt:ATA MAXTOR STM325031:;
1:1049kB:250GB:250GB:ext4:DiskFree:;
sdc:250GB:scsi:512:512:msdos:ATA ST3250824AS:;
1:1049kB:145GB:145GB:ntfs::;
2:145GB:201GB:55.7GB:ntfs::;
sdd:4001GB:scsi:4096:4096:msdos:WD My Book 1230:;
1:1049kB:2003GB:2003GB:ntfs::;
2:2003GB:4001GB:1998GB:ext4::boot;
sde:31.5GB:scsi:512:512:gpt: USB DISK 3.0:;
1:32.8kB:3650MB:3650MB::ISO9660:hidden, msftdata;
2:3650MB:3655MB:4350kB::Appended2:boot, esp;
3:3655MB:3655MB:307kB::Gap1:hidden, msftdata;
4:3655MB:31.5GB:27.8GB:::;

Free space >10MiB: ______________________________________________________________

sdc: 191583MiB:238475MiB:46892MiB

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL                  PARTLABEL
sda                                                                                                              
├─sda1 vfat     A01A-4BE0                            162b058e-b443-4b8c-90c1-56333bbf79ae                        EFI System Partition
└─sda2 ext4     1223f434-1ef8-474c-908b-a3ad0e31589c 6b20a2c8-97bb-4199-8187-e35c7655aa22                        
sdb                                                                                                              
└─sdb1 ext4     2ce8c8f5-3cb9-4c53-8af7-2fcfced12cc1 d96b5585-b284-4a0d-b7fe-bb57b12d86e9 DiskFree               DiskFree
sdc                                                                                                              
├─sdc1 ntfs     B44C08ED4C08ABE4                     bf128121-01                          Video                  
└─sdc2 ntfs     4B910A0C0C09E320                     bf128121-02                          Donnees                
sdd                                                                                                              
├─sdd1 ntfs     A2CA0AEBCA0ABC13                     db4bf07b-01                          My Book                
└─sdd2 ext4     d6b176fc-c915-49a3-9ddd-947cc215989e db4bf07b-02                          Stock                  
sde    iso9660  2022-04-19-10-23-19-00                                                    Ubuntu 22.04 LTS amd64 
├─sde1 iso9660  2022-04-19-10-23-19-00               a09db2b8-b5f6-43ae-afb2-91e0a90189a1 Ubuntu 22.04 LTS amd64 ISO9660
├─sde2 vfat     8D6C-A9F8                            a09db2b8-b5f6-43ae-afb1-91e0a90189a1 ESP                    Appended2
├─sde3                                               a09db2b8-b5f6-43ae-afb0-91e0a90189a1                        Gap1
└─sde4                                               525aaec6-eb31-7f47-bacd-3f1b792d7ed8                        

Mount points (filtered): _______________________________________________________

                        Avail Use% Mounted on
/dev/sda1              503.2M   2% /mnt/boot-sav/sda1
/dev/sda2              424.3G   2% /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c
/dev/sdb1              216.5G   0% /mnt/boot-sav/sdb1
/dev/sdc1               54.2G  60% /mnt/boot-sav/sdc1
/dev/sdc2               49.1G   5% /mnt/boot-sav/sdc2
/dev/sdd1                  1T  44% /mnt/boot-sav/sdd1
/dev/sdd2                1.6T   5% /media/ubuntu/Stock
/dev/sde1                   0 100% /cdrom

Mount options (filtered): ______________________________________________________

/dev/sda1              vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sda2              ext4            rw,nosuid,nodev,relatime,errors=remount-ro
/dev/sdb1              ext4            rw,relatime
/dev/sdc1              fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sdc2              fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sdd1              fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sdd2              ext4            rw,nosuid,nodev,relatime,errors=remount-ro
/dev/sde1              iso9660         ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8

===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================

search.fs_uuid 1223f434-1ef8-474c-908b-a3ad0e31589c root hd0,gpt2 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

====================== sda2/boot/grub/grub.cfg (filtered) ======================

Ubuntu   1223f434-1ef8-474c-908b-a3ad0e31589c
Ubuntu, with Linux 5.15.0-25-generic   1223f434-1ef8-474c-908b-a3ad0e31589c
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sda2/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=1223f434-1ef8-474c-908b-a3ad0e31589c /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=A01A-4BE0  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

======================= sda2/etc/default/grub (filtered) =======================

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_OS_PROBER=false

==================== sda2: Location of files loaded by Grub ====================

           GiB - GB             File                                 Fragment(s)
            ?? = ??             boot/grub/grub.cfg                             1
   6,047847748 = 6,493827072    boot/vmlinuz                                   2
   6,047847748 = 6,493827072    boot/vmlinuz-5.15.0-25-generic                 2
   7,054851532 = 7,575089152    boot/initrd.img                                1
   7,054851532 = 7,575089152    boot/initrd.img-5.15.0-25-generic              1
   7,054851532 = 7,575089152    boot/initrd.img.old                            1

===================== sda2: ls -l /etc/grub.d/ (filtered) ======================

-rwxr-xr-x 1 root root 18683 Apr 15 21:50 10_linux
-rwxr-xr-x 1 root root 43031 Apr 15 21:50 10_linux_zfs
-rwxr-xr-x 1 root root 14180 Apr 15 21:50 20_linux_xen
-rwxr-xr-x 1 root root 13369 Apr 15 21:50 30_os-prober
-rwxr-xr-x 1 root root  1372 Apr 15 21:50 30_uefi-firmware
-rwxr-xr-x 1 root root   214 Apr 15 21:50 40_custom
-rwxr-xr-x 1 root root   215 Apr 15 21:50 41_custom

Et donc mon ordinateur ne trouve plus GRUB et ne démarre plus !

Merci de votre aide

Dernière modification par yvos81 (Le 23/05/2022, à 18:07)

Hors ligne

#2 Le 23/05/2022, à 15:19

xubu1957

Re : [ RESOLU] "Locked-NVram détecté" intallation Ubuntu 22.04

Bonjour,

Collage du Boot-repair, pour les spécialistes :

boot-repair-4ppa200                                              [20220523_0952]

============================= Boot Repair Summary ==============================






Recommended repair: ____________________________________________________________

The default repair of the Boot-Repair utility will reinstall the grub-efi of
sda2,
using the following options:  sda1/boot/efi
Additional repair will be performed: unhide-bootmenu-10s use-standard-efi-file restore-efi-backups


rm /mnt/boot-sav/sda1/efi/Boot/bootx64.efi
mv /mnt/boot-sav/sda1/efi/Boot/bkpbootx64.efi /mnt/boot-sav/sda1/efi/Boot/bootx64.efi
Mount sda1 on /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c/boot/efi

======================== Reinstall the grub-efi of sda2 ========================

chroot /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c grub-install --version
grub-install (GRUB) 2.06-2ubuntu7
chroot /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c modprobe efivars

chroot /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c efibootmgr -v before grub install
BootCurrent: 0007
Timeout: 0 seconds
No BootOrder is set; firmware will attempt recovery

chroot /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c uname -r
5.15.0-25-generic

chroot /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: warning: EFI variables cannot be set on this system.
grub-install: warning: You will have to complete the GRUB setup manually.
Installation finished. No error reported.
df /dev/sda1
mv /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c/boot/efi/EFI/Boot/bootx64.efi /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c/boot/efi/EFI/Boot/bkpbootx64.efi
cp /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c/boot/efi/efi/ubuntu/grubx64.efi /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c/boot/efi/EFI/Boot/bootx64.efi

chroot /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: warning: EFI variables cannot be set on this system.
grub-install: warning: You will have to complete the GRUB setup manually.
Installation finished. No error reported.

chroot /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c efibootmgr -v after grub install
BootCurrent: 0007
Timeout: 0 seconds
No BootOrder is set; firmware will attempt recovery
Error: NVram is locked (Ubuntu not found in efibootmgr). Veuillez indiquer ce message à boot.repair@gmail.com

chroot /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-25-generic
Found initrd image: /boot/initrd.img-5.15.0-25-generic
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.

Unhide GRUB boot menu in sda2/boot/grub/grub.cfg

Une erreur est survenue pendant la réparation.
Error: NVram is locked (Ubuntu not found in efibootmgr). Veuillez indiquer ce message à boot.repair@gmail.com

Locked-NVram détecté.


============================ Boot Info After Repair ============================

 => No boot loader is installed in the MBR of /dev/sda.
 => No boot loader is installed in the MBR of /dev/sdb.
 => Syslinux MBR (5.00 and higher) is installed in the MBR of /dev/sdc.
 => Syslinux MBR (5.00 and higher) is installed in the MBR of /dev/sdd.

sda1: __________________________________________________________________________

    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

sda2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 22.04 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub

sdb1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdc1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr

sdc2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Unknown
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sdd1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 2000/XP: NTFS
    Boot sector info:  The info in boot sector on the starting sector of the 
                       MFT is wrong. The info in the boot sector on the 
                       starting sector of the MFT Mirror is wrong.
    Operating System:  
    Boot files:        

sdd2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sde: ___________________________________________________________________________

    File system:       iso9660
    Boot sector type:  Grub2 (v1.99-2.00)
    Boot sector info:  Grub2 (v1.99-2.00) is installed in the boot sector of 
                       sde and looks at sector 0 of the same hard drive for 
                       core.img, but core.img can not be found at this 
                       location.
    Mounting failed:   mount: /mnt/BootInfo/FD/sde: /dev/sde déjà monté ou point de montage actif.


================================ 1 OS detected =================================

OS#1:   Ubuntu 22.04 LTS on sda2

================================ Host/Hardware =================================

CPU architecture: 64-bit
Video: GK208B [GeForce GT 710] 2nd Generation Core Processor Family Integrated Graphics Controller from NVIDIA Corporation Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 22.04 LTS, jammy, x86_64)

===================================== UEFI =====================================

BIOS/UEFI firmware: J01 v02.15(2.15) from Hewlett-Packard
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled - This system doesn't support Secure Boot.
BootCurrent: 0007
Timeout: 0 seconds
No BootOrder is set; firmware will attempt recovery

728124f6ec8e22fbdbe7034812c81b95   sda1/BOOT/bkpbootx64.efi
728124f6ec8e22fbdbe7034812c81b95   sda1/BOOT/bootx64.efi
c152ec201c37b6e97bbc2207e49d1271   sda1/BOOT/fbx64.efi
f62c28d9b477b6a1a7b1c991b2b6637d   sda1/BOOT/grubx64.efi
fdafb5eece6caeccb788c946a28e6872   sda1/BOOT/mmx64.efi
f62c28d9b477b6a1a7b1c991b2b6637d   sda1/ubuntu/grubx64.efi
fdafb5eece6caeccb788c946a28e6872   sda1/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95   sda1/ubuntu/shimx64.efi

============================= Drive/Partition Info =============================

Disks info: ____________________________________________________________________

sda	: is-GPT,	no-BIOSboot,	has---ESP, 	not-usb,	not-mmc, has-os,	no-wind,	2048 sectors * 512 bytes
sdb	: is-GPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, no-os,	no-wind,	2048 sectors * 512 bytes
sdc	: notGPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, no-os,	no-wind,	2048 sectors * 512 bytes
sdd	: notGPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, no-os,	no-wind,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sda1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda2	: is-os,	64, apt-get,	signed grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios
sdb1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdc1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdc2	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdd1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdd2	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios

Partitions info (2/3): _________________________________________________________

sda1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda2	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdc1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	bootmgr,	notwinboot
sdc2	: 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
sdd2	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sda1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda2	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sdb1	: maybesepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdb
sdc1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdc
sdc2	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdc
sdd1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdd
sdd2	: maybesepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdd

fdisk -l (filtered): ___________________________________________________________

Disk sda: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: 49537D1D-99DF-4359-B287-D7AF7B0DBB40
        Start       End   Sectors   Size Type
sda1     2048   1050623   1048576   512M EFI System
sda2  1050624 976771071 975720448 465.3G Linux filesystem
Disk sdb: 232.89 GiB, 250059350016 bytes, 488397168 sectors
Disk identifier: C0303EB8-EC1A-4551-8761-430B4B6AA5BF
      Start       End   Sectors   Size Type
sdb1   2048 488396799 488394752 232.9G Linux filesystem
Disk sdc: 232.89 GiB, 250059350016 bytes, 488397168 sectors
Disk identifier: 0xbf128121
      Boot     Start       End   Sectors   Size Id Type
sdc1            2048 283594743 283592696 135.2G  b W95 FAT32
sdc2       283594752 392361736 108766985  51.9G  7 HPFS/NTFS/exFAT
Disk sde: 29.3 GiB, 31457280000 bytes, 61440000 sectors
Disk identifier: A09DB2B8-B5F6-43AE-AFB3-91E0A90189A1
        Start      End  Sectors  Size Type
sde1       64  7129427  7129364  3.4G Microsoft basic data
sde2  7129428  7137923     8496  4.1M EFI System
sde3  7137924  7138523      600  300K Microsoft basic data
sde4  7139328 61439936 54300609 25.9G Linux filesystem
Disk sdd: 3.64 TiB, 4000752599040 bytes, 976746240 sectors
Disk identifier: 0xdb4bf07b
      Boot     Start       End   Sectors  Size Id Type
sdd1             256 489044223 489043968  1.8T  7 HPFS/NTFS/exFAT
sdd2  *    489044224 976746239 487702016  1.8T 83 Linux

parted -lm (filtered): _________________________________________________________

sda:500GB:scsi:512:4096:gpt:ATA CT500MX500SSD1:;
1:1049kB:538MB:537MB:fat32:EFI System Partition:boot, esp;
2:538MB:500GB:500GB:ext4::;
sdb:250GB:scsi:512:512:gpt:ATA MAXTOR STM325031:;
1:1049kB:250GB:250GB:ext4:DiskFree:;
sdc:250GB:scsi:512:512:msdos:ATA ST3250824AS:;
1:1049kB:145GB:145GB:ntfs::;
2:145GB:201GB:55.7GB:ntfs::;
sdd:4001GB:scsi:4096:4096:msdos:WD My Book 1230:;
1:1049kB:2003GB:2003GB:ntfs::;
2:2003GB:4001GB:1998GB:ext4::boot;
sde:31.5GB:scsi:512:512:gpt: USB DISK 3.0:;
1:32.8kB:3650MB:3650MB::ISO9660:hidden, msftdata;
2:3650MB:3655MB:4350kB::Appended2:boot, esp;
3:3655MB:3655MB:307kB::Gap1:hidden, msftdata;
4:3655MB:31.5GB:27.8GB:::;

Free space >10MiB: ______________________________________________________________

sdc: 191583MiB:238475MiB:46892MiB

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL                  PARTLABEL
sda                                                                                                              
├─sda1 vfat     A01A-4BE0                            162b058e-b443-4b8c-90c1-56333bbf79ae                        EFI System Partition
└─sda2 ext4     1223f434-1ef8-474c-908b-a3ad0e31589c 6b20a2c8-97bb-4199-8187-e35c7655aa22                        
sdb                                                                                                              
└─sdb1 ext4     2ce8c8f5-3cb9-4c53-8af7-2fcfced12cc1 d96b5585-b284-4a0d-b7fe-bb57b12d86e9 DiskFree               DiskFree
sdc                                                                                                              
├─sdc1 ntfs     B44C08ED4C08ABE4                     bf128121-01                          Video                  
└─sdc2 ntfs     4B910A0C0C09E320                     bf128121-02                          Donnees                
sdd                                                                                                              
├─sdd1 ntfs     A2CA0AEBCA0ABC13                     db4bf07b-01                          My Book                
└─sdd2 ext4     d6b176fc-c915-49a3-9ddd-947cc215989e db4bf07b-02                          Stock                  
sde    iso9660  2022-04-19-10-23-19-00                                                    Ubuntu 22.04 LTS amd64 
├─sde1 iso9660  2022-04-19-10-23-19-00               a09db2b8-b5f6-43ae-afb2-91e0a90189a1 Ubuntu 22.04 LTS amd64 ISO9660
├─sde2 vfat     8D6C-A9F8                            a09db2b8-b5f6-43ae-afb1-91e0a90189a1 ESP                    Appended2
├─sde3                                               a09db2b8-b5f6-43ae-afb0-91e0a90189a1                        Gap1
└─sde4                                               525aaec6-eb31-7f47-bacd-3f1b792d7ed8                        

Mount points (filtered): _______________________________________________________

                        Avail Use% Mounted on
/dev/sda1              503.2M   2% /mnt/boot-sav/sda1
/dev/sda2              424.3G   2% /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c
/dev/sdb1              216.5G   0% /mnt/boot-sav/sdb1
/dev/sdc1               54.2G  60% /mnt/boot-sav/sdc1
/dev/sdc2               49.1G   5% /mnt/boot-sav/sdc2
/dev/sdd1                  1T  44% /mnt/boot-sav/sdd1
/dev/sdd2                1.6T   5% /media/ubuntu/Stock
/dev/sde1                   0 100% /cdrom

Mount options (filtered): ______________________________________________________

/dev/sda1              vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sda2              ext4            rw,nosuid,nodev,relatime,errors=remount-ro
/dev/sdb1              ext4            rw,relatime
/dev/sdc1              fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sdc2              fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sdd1              fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sdd2              ext4            rw,nosuid,nodev,relatime,errors=remount-ro
/dev/sde1              iso9660         ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8

===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================

search.fs_uuid 1223f434-1ef8-474c-908b-a3ad0e31589c root hd0,gpt2 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

====================== sda2/boot/grub/grub.cfg (filtered) ======================

Ubuntu   1223f434-1ef8-474c-908b-a3ad0e31589c
Ubuntu, with Linux 5.15.0-25-generic   1223f434-1ef8-474c-908b-a3ad0e31589c
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sda2/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=1223f434-1ef8-474c-908b-a3ad0e31589c /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=A01A-4BE0  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

======================= sda2/etc/default/grub (filtered) =======================

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_OS_PROBER=false

==================== sda2: Location of files loaded by Grub ====================

           GiB - GB             File                                 Fragment(s)
            ?? = ??             boot/grub/grub.cfg                             1
   6,047847748 = 6,493827072    boot/vmlinuz                                   2
   6,047847748 = 6,493827072    boot/vmlinuz-5.15.0-25-generic                 2
   7,054851532 = 7,575089152    boot/initrd.img                                1
   7,054851532 = 7,575089152    boot/initrd.img-5.15.0-25-generic              1
   7,054851532 = 7,575089152    boot/initrd.img.old                            1

===================== sda2: ls -l /etc/grub.d/ (filtered) ======================

-rwxr-xr-x 1 root root 18683 Apr 15 21:50 10_linux
-rwxr-xr-x 1 root root 43031 Apr 15 21:50 10_linux_zfs
-rwxr-xr-x 1 root root 14180 Apr 15 21:50 20_linux_xen
-rwxr-xr-x 1 root root 13369 Apr 15 21:50 30_os-prober
-rwxr-xr-x 1 root root  1372 Apr 15 21:50 30_uefi-firmware
-rwxr-xr-x 1 root root   214 Apr 15 21:50 40_custom
-rwxr-xr-x 1 root root   215 Apr 15 21:50 41_custom

Important : Pensez à passer vos sujets en [Résolu] 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.

Xubuntu 20.04 LTS - Lenovo T410 -18.04.1 LTS Toshiba Satellite A300  Membre de Linux-Azur

En ligne

#3 Le 23/05/2022, à 15:35

yvos81

Re : [ RESOLU] "Locked-NVram détecté" intallation Ubuntu 22.04

Merci xubu1957

je viens de trouver comment coller le boot-repair

Hors ligne

#4 Le 23/05/2022, à 18:34

yvos81

Re : [ RESOLU] "Locked-NVram détecté" intallation Ubuntu 22.04

J'ai réussi a restaurer le MBR sur sda avec boot-repair, puis ré-installer GRUB toujours grâce à boot-repair.
Merci quand même à xubu1957 qui m'a permit de comprendre mieux le fonctionnement du forum

Hors ligne

#5 Le 23/05/2022, à 18:47

geole

Re : [ RESOLU] "Locked-NVram détecté" intallation Ubuntu 22.04

Bonjour
Tu as certainement un ordinateur qui boote   en EFI  uniquement  sur windows.
et le réparateur   ne fait qu'en standard
cp /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c/boot/efi/efi/ubuntu/grubx64.efi /media/ubuntu/1223f434-1ef8-474c-908b-a3ad0e31589c/boot/efi/EFI/Boot/bootx64.efi
Comme il boote aussi en LEGACY, ce n'est grave

Sauf erreur de ma part tu n'as pas d'O.S windows, si tu n'as pas prévu d'en installer c'est grave d'avoir des partitions windows en NTFS que ubuntu ne maîtrise pas parfaitement en cas de besoin de réparation.  Tu devrais les reformater en EXT4 ou EXFAT

parted -lm (filtered): _________________________________________________________
sdc:250GB:scsi:512:512:msdos:ATA ST3250824AS:;
1:1049kB:145GB:145GB:ntfs::;
2:145GB:201GB:55.7GB:ntfs::;
sdd:4001GB:scsi:4096:4096:msdos:WD My Book 1230:;
1:1049kB:2003GB:2003GB:ntfs::;

Mount points (filtered): _______________________________________________________
                        Avail Use% Mounted on
/dev/sdc1               54.2G  60% /mnt/boot-sav/sdc1
/dev/sdc2               49.1G   5% /mnt/boot-sav/sdc2
/dev/sdd1                  1T  44% /mnt/boot-sav/sdd1

Dernière modification par geole (Le 23/05/2022, à 19:00)

En ligne