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 08/11/2023, à 14:43

fred-cavernedufond

[RESOLU] Adapter un Ubuntu en MBR sous EFI ?

Bonjour,

Je veux cloner mon SSD contenant Ubuntu 22.04 crée sous partitions MBR, dans une nouvelle machine avec un disque SSD M2 vierge qui ne fonctionne qu'en l'EFI. Le disque à cloner contient une partition LUKS chiffrée. Je ne suis pas sur que ce soit possible sans détruire tout le disque ?

Le clonage du SSD vers le M2 avec Clonzilla a réussi mais évidement la machine ne démarre pas : "no disk boot" qui-dit-le-monsieur, s'il n'a plus son live USB. Un coup de boot-repair n'a rien fait. (cf log ci dessous) Le boot secure est désactivé dans le BIOS. Pas d'option "legacy" possible. Le BIOS de ce Lenovo est bien en EFI (test cmd "efibootmgr" sous live USB) A l'origine le disque M2 de la machine contenait les partitions windows 10...que j'ai effacé.

Si je ne me trompe pas il me faut donc reformater le disque interne M2 de la machine en GPT, ce qui veut dire que je perds toutes mes données sur ce disque...pas trop envie de recommencer meme si j'ai l'original à coté.

La question est donc de savoir comment cloner - voire adapter - les partitions de mon SSD d'origine sachant que la partition LUKS est impossible à copier avec Gpart (j'ai essayé : il ne veut rien savoir...la copie de partition LUKS verrouillé ou non, est impossible : les options "copier" ou "coller" dans Gpart sont grisées et inaccessibles...la sécurité est bien faite sous Linux smile Je souhaite éviter de toucher au disque source et jongler avec ses partitions chiffrées, peu sujettes au bricolage.

Je travaille sur ces docs mais je pense qu'il n'y a pas de solution
https://doc.ubuntu-fr.org/uefi#activerd … ecure_boot
https://forum.ubuntu-fr.org/viewtopic.p … #p22704240

Le boot-info effectué sous live, analysant ce disque M2

boot-repair-4ppa2056                                              [20231107_1608]

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



==================== blkid (filtered) before lvm activation ====================

/dev/nvme0n1p1: UUID="E7D1-1538" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="eb418a59-01"
/dev/nvme0n1p5: UUID="51c09539-2c54-47c0-ac4f-25d646097d8e" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="eb418a59-05"
/dev/sda1: BLOCK_SIZE="2048" UUID="2023-08-08-01-19-05-00" LABEL="Ubuntu 22.04.3 LTS amd64" TYPE="iso9660" PARTLABEL="ISO9660" PARTUUID="f45e2fa1-c5a6-4d79-876e-c8245af921e0"
/dev/nvme0n1p6: UUID="e9515362-8f64-4ef8-bea0-afae33ea1540" TYPE="crypto_LUKS" PARTUUID="eb418a59-06"
/dev/sda2: SEC_TYPE="msdos" LABEL_FATBOOT="ESP" LABEL="ESP" UUID="F7DB-4D56" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="Appended2" PARTUUID="f45e2fa1-c5a6-4d79-876d-c8245af921e0"
/dev/sda4: LABEL="writable" UUID="1fc71518-2def-4dfb-ad3e-d99d1d0a9d6c" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="cfa52fe1-fccd-c54b-a790-4cf7a288cd73"
/dev/mapper/vgubuntu-root: UUID="e6450911-f89a-417f-8ec6-b03dafe26909" BLOCK_SIZE="4096" TYPE="ext4"
/dev/mapper/vgubuntu-swap_1: UUID="f90e9d46-7450-49c7-93cd-39108056f46d" TYPE="swap"
/dev/mapper/luks-e9515362-8f64-4ef8-bea0-afae33ea1540: UUID="f1SHbT-4edh-6kBC-Phuv-3DHZ-2uLR-tysv6E" TYPE="LVM2_member"
/dev/sda3: PARTLABEL="Gap1" PARTUUID="f45e2fa1-c5a6-4d79-876c-c8245af921e0"


================================ 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/root' [221.35 GiB] inherit
  ACTIVE            '/dev/vgubuntu/swap_1' [976.00 MiB] inherit
blkid -g




[dmraid -sa -c] no
[dmraid -sa -c] raid
[dmraid -sa -c] disks
[dmraid -sa -c] no
[dmraid -sa -c] raid
[dmraid -sa -c] disks
modprobe: FATAL: Module efivars not found in directory /lib/modules/6.2.0-26-generic
ls: impossible d'accéder à '/sys/firmware/efi/vars': Aucun fichier ou dossier de ce type

=================== /boot détecté. Veuillez vérifier les options.

Recommended repair: ____________________________________________________________

The default repair of the Boot-Repair utility will restore the [(generic mbr)] MBR in nvme0n1, and make it boot on nvme0n1p5.
Additional repair will be performed: unhide-bootmenu-10s



============================ Restore MBR of nvme0n1 ============================

dd if=/usr/lib/syslinux/mbr/mbr.bin of=/dev/nvme0n1
parted /dev/nvme0n1 set 5 boot on
Information: Ne pas oublier de mettre à jour /etc/fstab si nécessaire.


                                                                          
SET@_progressbar1.pulse()

Le démarrage de l'ordinateur a été correctement réparé.

Vous pouvez maintenant redémarrer votre ordinateur.


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

 => Syslinux MBR (5.00 and higher) 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:        

nvme0n1p2: _____________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info: 

nvme0n1p5: _____________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        /grub/grub.cfg /grub/i386-pc/core.img

nvme0n1p6: _____________________________________________________________________

    File system:       crypto_LUKS
    Boot sector type:  Unknown
    Boot sector info: 

sda: ___________________________________________________________________________

    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 
                       sda 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/sda: /dev/sda déjà monté ou point de montage actif.


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

OS#1:   Ubuntu 22.04.3 LTS on mapper/vgubuntu-root

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

CPU architecture: 64-bit
Video: Intel Corporation from Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 22.04.3 LTS, jammy, x86_64)

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

BIOS/UEFI firmware: GGCN50WW(1.50) from LENOVO
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,2001,2002,2003
Boot0000* Linpus lite	HD(2,GPT,f45e2fa1-c5a6-4d79-876d-c8245af921e0,0x95f864,0x2754)/File(\EFI\Boot\grubx64.efi)RC
Boot2001* EFI USB Device	RC
Boot2002* EFI DVD/CDROM	RC
Boot2003* EFI Network	RC


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

Disks info: ____________________________________________________________________

nvme0n1	: notGPT,	no-BIOSboot,	has---ESP, 	not-usb,	not-mmc, no-os,	no-wind,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

nvme0n1p1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
nvme0n1p5	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	grubenv-ok,	noupdategrub,	not-far

Partitions info (2/3): _________________________________________________________

nvme0n1p1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
nvme0n1p5	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

nvme0n1p1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	nvme0n1
nvme0n1p5	: is---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: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk identifier: 0xeb418a59
          Boot   Start       End   Sectors   Size Id Type
nvme0n1p1         2048   1050623   1048576   512M  b W95 FAT32
nvme0n1p2      1052670 500117503 499064834   238G  5 Extended
nvme0n1p5 *    1052672   2549759   1497088   731M 83 Linux
nvme0n1p6      2551808 500117503 497565696 237.3G 83 Linux
Disk sda: 7.27 GiB, 7801405440 bytes, 15237120 sectors
Disk identifier: F45E2FA1-C5A6-4D79-876F-C8245AF921E0
        Start      End Sectors  Size Type
sda1       64  9828451 9828388  4.7G Microsoft basic data
sda2  9828452  9838519   10068  4.9M EFI System
sda3  9838520  9839119     600  300K Microsoft basic data
sda4  9842688 15237056 5394369  2.6G Linux filesystem
Disk mapper/luks-e9515362-8f64-4ef8-bea0-afae33ea1540: 237.24 GiB, 254736859136 bytes, 497532928 sectors
Disk mapper/vgubuntu-root: 221.35 GiB, 237674430464 bytes, 464207872 sectors
Disk mapper/vgubuntu-swap_1: 976 MiB, 1023410176 bytes, 1998848 sectors

parted -lm (filtered): _________________________________________________________

sda:7801MB:scsi:512:512:gpt:Generic Flash Disk:;
1:32.8kB:5032MB:5032MB::ISO9660:hidden, msftdata;
2:5032MB:5037MB:5155kB::Appended2:boot, esp;
3:5037MB:5038MB:307kB::Gap1:hidden, msftdata;
4:5039MB:7801MB:2762MB:ext4::;
mapper/vgubuntu-root:238GB:dm:512:512:loop:Linux device-mapper (linear):;
1:0.00B:238GB:238GB:ext4::;
mapper/vgubuntu-swap_1:1023MB:dm:512:512:loop:Linux device-mapper (linear):;
1:0.00B:1023MB:1023MB:linux-swap(v1)::;
mapper/luks-e9515362-8f64-4ef8-bea0-afae33ea1540:255GB:dm:512:512:unknown:Linux device-mapper (crypt):;
nvme0n1:256GB:nvme:512:512:msdos:SAMSUNG MZALQ256HBJD-00BL2:;
1:1049kB:538MB:537MB:fat32::boot;
2:539MB:256GB:256GB:::;
5:539MB:1305MB:767MB:ext4::;
6:1307MB:256GB:255GB:::;

blkid (filtered): ______________________________________________________________

NAME                                          FSTYPE      UUID                                   PARTUUID                             LABEL                    PARTLABEL
sda                                           iso9660     2023-08-08-01-19-05-00                                                      Ubuntu 22.04.3 LTS amd64 
├─sda1                                        iso9660     2023-08-08-01-19-05-00                 f45e2fa1-c5a6-4d79-876e-c8245af921e0 Ubuntu 22.04.3 LTS amd64 ISO9660
├─sda2                                        vfat        F7DB-4D56                              f45e2fa1-c5a6-4d79-876d-c8245af921e0 ESP                      Appended2
├─sda3                                                                                           f45e2fa1-c5a6-4d79-876c-c8245af921e0                          Gap1
└─sda4                                        ext4        1fc71518-2def-4dfb-ad3e-d99d1d0a9d6c   cfa52fe1-fccd-c54b-a790-4cf7a288cd73 writable                 
nvme0n1                                                                                                                                                        
├─nvme0n1p1                                   vfat        E7D1-1538                              eb418a59-01                                                   
├─nvme0n1p2                                                                                      eb418a59-02                                                   
├─nvme0n1p5                                   ext4        51c09539-2c54-47c0-ac4f-25d646097d8e   eb418a59-05                                                   
└─nvme0n1p6                                   crypto_LUKS e9515362-8f64-4ef8-bea0-afae33ea1540   eb418a59-06                                                   
  └─luks-e9515362-8f64-4ef8-bea0-afae33ea1540 LVM2_member f1SHbT-4edh-6kBC-Phuv-3DHZ-2uLR-tysv6E                                                               
    ├─vgubuntu-root                           ext4        e6450911-f89a-417f-8ec6-b03dafe26909                                                                 
    └─vgubuntu-swap_1                         swap        f90e9d46-7450-49c7-93cd-39108056f46d                                                                 

Mount points (filtered): _______________________________________________________

                                                               Avail Use% Mounted on
/dev/disk/by-label/writable[/install-logs-2023-11-07.4/crash]   2.3G   1% /var/crash
/dev/disk/by-label/writable[/install-logs-2023-11-07.4/log]     2.3G   1% /var/log
/dev/mapper/vgubuntu-root                                     169.8G  17% /media/ubuntu/e6450911-f89a-417f-8ec6-b03dafe26909
/dev/nvme0n1p1                                                  511M   0% /media/ubuntu/E7D1-1538
/dev/nvme0n1p5                                                361.6M  41% /media/ubuntu/51c09539-2c54-47c0-ac4f-25d646097d8e
/dev/sda1                                                          0 100% /cdrom

Mount options (filtered): ______________________________________________________


============================== ls -R /dev/mapper/ ==============================

/dev/mapper:
control
luks-e9515362-8f64-4ef8-bea0-afae33ea1540
vgubuntu-root
vgubuntu-swap_1

====================== nvme0n1p5/grub/grub.cfg (filtered) ======================

Ubuntu   e6450911-f89a-417f-8ec6-b03dafe26909
Ubuntu, with Linux 6.2.0-36-generic   e6450911-f89a-417f-8ec6-b03dafe26909
Ubuntu, with Linux 6.2.0-35-generic   e6450911-f89a-417f-8ec6-b03dafe26909
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

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

           GiB - GB             File                                 Fragment(s)
   0,628936768 = 0,675315712    grub/grub.cfg                                  1
   0,728263855 = 0,781967360    grub/i386-pc/core.img                          1
   0,671051025 = 0,720535552    vmlinuz                                        2
   0,897609711 = 0,963801088    vmlinuz-6.2.0-35-generic                       2
   0,671051025 = 0,720535552    vmlinuz-6.2.0-36-generic                       2
   0,897609711 = 0,963801088    vmlinuz.old                                    2
   1,001724243 = 1,075593216    initrd.img                                     7
   0,978336334 = 1,050480640    initrd.img-6.2.0-35-generic                    2
   1,001724243 = 1,075593216    initrd.img-6.2.0-36-generic                    7
   0,978336334 = 1,050480640    initrd.img.old                                 2

======================== Unknown MBRs/Boot Sectors/etc =========================

Unknown BootLoader on nvme0n1p6

Une idée pour que je puisse finir ce job ?
Fred

Dernière modification par fred-cavernedufond (Le 13/11/2023, à 21:06)


Fred
Ubuntu 22.04 LTS

Hors ligne

#2 Le 08/11/2023, à 15:16

geole

Re : [RESOLU] Adapter un Ubuntu en MBR sous EFI ?

Bonjour
Reponse rapide.
pour convertir ton disque dupliqué en MBR au lieu de GPT.
Il y a une commande qui conserve les données.
Il faut juste ne pas se tromper de disque car la commande inverse ne fonctionne pas si plus de quatre partitions.

sudo sgdisk --mbrtogpt /dev/nvme0n1

Puis il faut créer une partition FAT32 de 36 Mo, lui mettre un drapeau ESP et lancer boot-repair en ayant bien booté en EFI, prendre l'option réparations avancées et sélectionner cette partition comme étant celle de boot EFI, Grub EFI sera installé et le fstab mis à jour.


Ajout. Le boot-repair indique qu'il existe déjà une partition EFI

Dernière modification par geole (Le 08/11/2023, à 15:32)


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 10/11/2023, à 10:46

fred-cavernedufond

Re : [RESOLU] Adapter un Ubuntu en MBR sous EFI ?

Bonjour Geole
Merci pour la commande wink Le disque est bien passé en GPT sans perte de données mais impossible de le faire booter. J'ai bien ma FAT32, le drapeau ESP,  je lui ai spécifié avec Disk* que je voulais un point de montage sur /boot/EFI mais il lui manque un truc.

Je ne sais pas non plus quel chemin je dois lui indiquer toujours dans disk en sélectionnant la FAT puis "modifier le points de montage" après avoir décoché l'option "réglage defaut session utilisateur" : faut-il garder ce qu'il me propose comme chemin - un truc du genre /dev/nvme0n1 - ou s'il faut lui coller /dev/sda [emplacement de la FAT] ? Voici l'exemple de la boite de dialogue dans disk que je dois compléter (attention ce n'est pas le disque en question mais juste un exemple pour savoir ce que je dois compléter dans les champs :

Capture-d-cran-du-2023-11-10-09-40-11.png

Je n'arrive pas à travailler avec Boot-repair qui ne me propose pas de sélectionner la FAT comme EFI.

'manque pas grand chose mais je patauge....
Fred

Dernière modification par fred-cavernedufond (Le 10/11/2023, à 10:47)


Fred
Ubuntu 22.04 LTS

Hors ligne

#4 Le 10/11/2023, à 11:02

geole

Re : [RESOLU] Adapter un Ubuntu en MBR sous EFI ?

Bonsoir.
La partition a choisir pour mettre les fichiers de boot EFI est celle du nvme.

nvme0n1p1: _____________________________________________________________________

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

nvme0n1p2: _____________________________________________________________________

sda est trés certainement ton support d'installation car taille 8 Go.

sda:7801MB:scsi:512:512:gpt:Generic Flash Disk:;

Dernière modification par geole (Le 10/11/2023, à 11:08)


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

#5 Le 10/11/2023, à 13:32

fred-cavernedufond

Re : [RESOLU] Adapter un Ubuntu en MBR sous EFI ?

...toujours pas sad
J'ai remis les paramètres du BIOS par défaut en désactivant le secure boot. Enième relance de boot repair qui cette fois, m'a fait une réparation dont voici le dernier log et voila ce que me dit Gpart de mon disque M2.
Pourquoi indique-t-il dans les drapeaux que la partition est caché (hidden) ? qu'est-ce qui bloque nandédiou ?!! Quand je reboote, il m'affiche qu'il ne trouve rien pour démarrer si j'enlève le live usb...

Capture-d-cran-du-2023-11-10-11-15-58.png

le log boot info :

boot-repair-4ppa2056                                              [20231110_1105]

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



==================== blkid (filtered) before lvm activation ====================

/dev/nvme0n1p1: UUID="6F47-BBD1" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="83e5fa77-b856-407b-854a-82afa1abbef8"
/dev/nvme0n1p5: UUID="51c09539-2c54-47c0-ac4f-25d646097d8e" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="Linux filesystem" PARTUUID="db398e41-0490-461c-aea3-bc267226353d"
/dev/sda1: BLOCK_SIZE="2048" UUID="2023-08-08-01-19-05-00" LABEL="Ubuntu 22.04.3 LTS amd64" TYPE="iso9660" PARTLABEL="ISO9660" PARTUUID="f45e2fa1-c5a6-4d79-876e-c8245af921e0"
/dev/nvme0n1p6: UUID="e9515362-8f64-4ef8-bea0-afae33ea1540" TYPE="crypto_LUKS" PARTLABEL="Linux filesystem" PARTUUID="c6856f68-f128-46cc-9352-fa827ea0b4e0"
/dev/sda2: SEC_TYPE="msdos" LABEL_FATBOOT="ESP" LABEL="ESP" UUID="F7DB-4D56" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="Appended2" PARTUUID="f45e2fa1-c5a6-4d79-876d-c8245af921e0"
/dev/sda4: LABEL="writable" UUID="1fc71518-2def-4dfb-ad3e-d99d1d0a9d6c" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="cfa52fe1-fccd-c54b-a790-4cf7a288cd73"
/dev/mapper/nvme0n1p6_crypt: UUID="f1SHbT-4edh-6kBC-Phuv-3DHZ-2uLR-tysv6E" TYPE="LVM2_member"
/dev/mapper/vgubuntu-root: UUID="e6450911-f89a-417f-8ec6-b03dafe26909" BLOCK_SIZE="4096" TYPE="ext4"
/dev/mapper/vgubuntu-swap_1: UUID="f90e9d46-7450-49c7-93cd-39108056f46d" TYPE="swap"
/dev/sda3: PARTLABEL="Gap1" PARTUUID="f45e2fa1-c5a6-4d79-876c-c8245af921e0"


================================ 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/root' [221.35 GiB] inherit
  ACTIVE            '/dev/vgubuntu/swap_1' [976.00 MiB] inherit
blkid -g



Default settings: ______________________________________________________________

The default repair of the Boot-Repair utility would not act on the boot.

User settings: _________________________________________________________________

Vous souhaiterez peut-être re-essayer après avoir monté vos partitions cryptées afin que l'outil puisse vérifier leur contenu. (sudo cryptsetup luksOpen /dev/nvme0n1p6 myvolume)
[dmraid -sa -c] no
[dmraid -sa -c] raid
[dmraid -sa -c] disks
[dmraid -sa -c] no
[dmraid -sa -c] raid
[dmraid -sa -c] disks
modprobe: FATAL: Module efivars not found in directory /lib/modules/6.2.0-26-generic
ls: impossible d'accéder à '/sys/firmware/efi/vars': Aucun fichier ou dossier de ce type
No OS to fix.

=================== /boot détecté. Veuillez vérifier les options.
The settings chosen by the user will not act on the boot.





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

 => Syslinux MBR (5.00 and higher) 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:        

nvme0n1p5: _____________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        /grub/grub.cfg /grub/i386-pc/core.img

nvme0n1p6: _____________________________________________________________________

    File system:       crypto_LUKS
    Boot sector type:  Unknown
    Boot sector info: 

sda: ___________________________________________________________________________

    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 
                       sda 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/sda: /dev/sda déjà monté ou point de montage actif.


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

OS#1:   Ubuntu 22.04.3 LTS on mapper/vgubuntu-root

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

CPU architecture: 64-bit
Video: Intel Corporation from Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 22.04.3 LTS, jammy, x86_64)

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

BIOS/UEFI firmware: GGCN50WW(1.50) from LENOVO
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,2001,2002,2003
Boot0000* Linpus lite	HD(2,GPT,f45e2fa1-c5a6-4d79-876d-c8245af921e0,0x95f864,0x2754)/File(\EFI\Boot\grubx64.efi)RC
Boot2001* EFI USB Device	RC
Boot2002* EFI DVD/CDROM	RC
Boot2003* EFI Network	RC


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

Disks info: ____________________________________________________________________

nvme0n1	: is-GPT,	no-BIOSboot,	hashidESP, 	not-usb,	not-mmc, no-os,	no-wind,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

nvme0n1p1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
nvme0n1p5	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	grubenv-ok,	noupdategrub,	not-far

Partitions info (2/3): _________________________________________________________

nvme0n1p1	: hidenESP,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	no-bmgr,	notwinboot
nvme0n1p5	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

nvme0n1p1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	nvme0n1
nvme0n1p5	: is---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: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk identifier: 9DCAD1D2-1FA9-4518-8C7A-A19867A33F7E
            Start       End   Sectors   Size Type
nvme0n1p1    2048   1052671   1050624   513M EFI System
nvme0n1p5 1052672   2551807   1499136   732M Linux filesystem
nvme0n1p6 2551808 500117503 497565696 237.3G Linux filesystem
Disk sda: 7.27 GiB, 7801405440 bytes, 15237120 sectors
Disk identifier: F45E2FA1-C5A6-4D79-876F-C8245AF921E0
        Start      End Sectors  Size Type
sda1       64  9828451 9828388  4.7G Microsoft basic data
sda2  9828452  9838519   10068  4.9M EFI System
sda3  9838520  9839119     600  300K Microsoft basic data
sda4  9842688 15237056 5394369  2.6G Linux filesystem
Disk mapper/nvme0n1p6_crypt: 237.24 GiB, 254736859136 bytes, 497532928 sectors
Disk mapper/vgubuntu-root: 221.35 GiB, 237674430464 bytes, 464207872 sectors
Disk mapper/vgubuntu-swap_1: 976 MiB, 1023410176 bytes, 1998848 sectors

parted -lm (filtered): _________________________________________________________

sda:7801MB:scsi:512:512:gpt:Generic Flash Disk:;
1:32.8kB:5032MB:5032MB::ISO9660:hidden, msftdata;
2:5032MB:5037MB:5155kB::Appended2:boot, esp;
3:5037MB:5038MB:307kB::Gap1:hidden, msftdata;
4:5039MB:7801MB:2762MB:ext4::;
mapper/nvme0n1p6_crypt:255GB:dm:512:512:unknown:Linux device-mapper (crypt):;
mapper/vgubuntu-swap_1:1023MB:dm:512:512:loop:Linux device-mapper (linear):;
1:0.00B:1023MB:1023MB:linux-swap(v1)::;
mapper/vgubuntu-root:238GB:dm:512:512:loop:Linux device-mapper (linear):;
1:0.00B:238GB:238GB:ext4::;
nvme0n1:256GB:nvme:512:512:gpt:SAMSUNG MZALQ256HBJD-00BL2:;
1:1049kB:539MB:538MB:fat32::boot, hidden, esp;
5:539MB:1307MB:768MB:ext4:Linux filesystem:;
6:1307MB:256GB:255GB::Linux filesystem:;

blkid (filtered): ______________________________________________________________

NAME                  FSTYPE      UUID                                   PARTUUID                             LABEL                    PARTLABEL
sda                   iso9660     2023-08-08-01-19-05-00                                                      Ubuntu 22.04.3 LTS amd64 
├─sda1                iso9660     2023-08-08-01-19-05-00                 f45e2fa1-c5a6-4d79-876e-c8245af921e0 Ubuntu 22.04.3 LTS amd64 ISO9660
├─sda2                vfat        F7DB-4D56                              f45e2fa1-c5a6-4d79-876d-c8245af921e0 ESP                      Appended2
├─sda3                                                                   f45e2fa1-c5a6-4d79-876c-c8245af921e0                          Gap1
└─sda4                ext4        1fc71518-2def-4dfb-ad3e-d99d1d0a9d6c   cfa52fe1-fccd-c54b-a790-4cf7a288cd73 writable                 
nvme0n1                                                                                                                                
├─nvme0n1p1           vfat        6F47-BBD1                              83e5fa77-b856-407b-854a-82afa1abbef8                          
├─nvme0n1p5           ext4        51c09539-2c54-47c0-ac4f-25d646097d8e   db398e41-0490-461c-aea3-bc267226353d                          Linux filesystem
└─nvme0n1p6           crypto_LUKS e9515362-8f64-4ef8-bea0-afae33ea1540   c6856f68-f128-46cc-9352-fa827ea0b4e0                          Linux filesystem
  └─nvme0n1p6_crypt   LVM2_member f1SHbT-4edh-6kBC-Phuv-3DHZ-2uLR-tysv6E                                                               
    ├─vgubuntu-root   ext4        e6450911-f89a-417f-8ec6-b03dafe26909                                                                 
    └─vgubuntu-swap_1 swap        f90e9d46-7450-49c7-93cd-39108056f46d                                                                 

Mount points (filtered): _______________________________________________________

                                                               Avail Use% Mounted on
/dev/disk/by-label/writable[/install-logs-2023-11-10.2/crash]   2.3G   2% /var/crash
/dev/disk/by-label/writable[/install-logs-2023-11-10.2/log]     2.3G   2% /var/log
/dev/nvme0n1p1                                                  512M   0% /media/ubuntu/6F47-BBD1
/dev/nvme0n1p5                                                362.6M  41% /media/ubuntu/51c09539-2c54-47c0-ac4f-25d646097d8e
/dev/sda1                                                          0 100% /cdrom

Mount options (filtered): ______________________________________________________


============================== ls -R /dev/mapper/ ==============================

/dev/mapper:
control
nvme0n1p6_crypt
vgubuntu-root
vgubuntu-swap_1

====================== nvme0n1p5/grub/grub.cfg (filtered) ======================

Ubuntu   e6450911-f89a-417f-8ec6-b03dafe26909
Ubuntu, with Linux 6.2.0-36-generic   e6450911-f89a-417f-8ec6-b03dafe26909
Ubuntu, with Linux 6.2.0-35-generic   e6450911-f89a-417f-8ec6-b03dafe26909
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

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

           GiB - GB             File                                 Fragment(s)
   0,628936768 = 0,675315712    grub/grub.cfg                                  1
   0,728263855 = 0,781967360    grub/i386-pc/core.img                          1
   0,671051025 = 0,720535552    vmlinuz                                        2
   0,897609711 = 0,963801088    vmlinuz-6.2.0-35-generic                       2
   0,671051025 = 0,720535552    vmlinuz-6.2.0-36-generic                       2
   0,897609711 = 0,963801088    vmlinuz.old                                    2
   1,001724243 = 1,075593216    initrd.img                                     7
   0,978336334 = 1,050480640    initrd.img-6.2.0-35-generic                    2
   1,001724243 = 1,075593216    initrd.img-6.2.0-36-generic                    7
   0,978336334 = 1,050480640    initrd.img.old                                 2

======================== Unknown MBRs/Boot Sectors/etc =========================

Unknown BootLoader on nvme0n1p6

ce truc va me rendre cinglé mais d'un autre coté c'est très instructif, c'est pourquoi je ne lache pas le morceau wink
Fred

Dernière modification par fred-cavernedufond (Le 10/11/2023, à 13:36)


Fred
Ubuntu 22.04 LTS

Hors ligne

#6 Le 10/11/2023, à 13:41

geole

Re : [RESOLU] Adapter un Ubuntu en MBR sous EFI ?

Enlève le drapeau hidden avec gparted. Je ne sais pas pourquoi il est présent. Cela est parfois le cas avec windows. Fait un boot-info. On verra sa proposition de réparation automatique.

Dernière modification par geole (Le 10/11/2023, à 13:42)


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

#7 Le 10/11/2023, à 14:10

fred-cavernedufond

Re : [RESOLU] Adapter un Ubuntu en MBR sous EFI ?

Niet. J'ai enlevé le drapeau hidden. j'ai meme tenter une réparation en live USB mais il ne propose plus cette option => Boot-repair (sans proposition de réparation) qui dit :

boot-repair-4ppa2056                                              [20231110_1157]

============================== Boot Info Summary ===============================

 => Syslinux MBR (5.00 and higher) 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:        

nvme0n1p5: _____________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        /grub/grub.cfg /grub/i386-pc/core.img

nvme0n1p6: _____________________________________________________________________

    File system:       crypto_LUKS
    Boot sector type:  Unknown
    Boot sector info: 

sda: ___________________________________________________________________________

    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 
                       sda 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/sda: /dev/sda déjà monté ou point de montage actif.


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

OS#1:   Ubuntu 22.04.3 LTS on mapper/vgubuntu-root

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

CPU architecture: 64-bit
Video: Intel Corporation from Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 22.04.3 LTS, jammy, x86_64)

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

BIOS/UEFI firmware: GGCN50WW(1.50) from LENOVO
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,2001,2002,2003
Boot0000* Linpus lite	HD(2,GPT,f45e2fa1-c5a6-4d79-876d-c8245af921e0,0x95f864,0x2754)/File(\EFI\Boot\grubx64.efi)RC
Boot2001* EFI USB Device	RC
Boot2002* EFI DVD/CDROM	RC
Boot2003* EFI Network	RC


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

Disks info: ____________________________________________________________________

nvme0n1	: is-GPT,	no-BIOSboot,	has---ESP, 	not-usb,	not-mmc, no-os,	no-wind,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

nvme0n1p1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
nvme0n1p5	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	grubenv-ok,	noupdategrub,	not-far

Partitions info (2/3): _________________________________________________________

nvme0n1p1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
nvme0n1p5	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

nvme0n1p1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	nvme0n1
nvme0n1p5	: is---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: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk identifier: 9DCAD1D2-1FA9-4518-8C7A-A19867A33F7E
            Start       End   Sectors   Size Type
nvme0n1p1    2048   1052671   1050624   513M EFI System
nvme0n1p5 1052672   2551807   1499136   732M Linux filesystem
nvme0n1p6 2551808 500117503 497565696 237.3G Linux filesystem
Disk sda: 7.27 GiB, 7801405440 bytes, 15237120 sectors
Disk identifier: F45E2FA1-C5A6-4D79-876F-C8245AF921E0
        Start      End Sectors  Size Type
sda1       64  9828451 9828388  4.7G Microsoft basic data
sda2  9828452  9838519   10068  4.9M EFI System
sda3  9838520  9839119     600  300K Microsoft basic data
sda4  9842688 15237056 5394369  2.6G Linux filesystem
Disk mapper/luks-e9515362-8f64-4ef8-bea0-afae33ea1540: 237.24 GiB, 254736859136 bytes, 497532928 sectors
Disk mapper/vgubuntu-root: 221.35 GiB, 237674430464 bytes, 464207872 sectors
Disk mapper/vgubuntu-swap_1: 976 MiB, 1023410176 bytes, 1998848 sectors

parted -lm (filtered): _________________________________________________________

sda:7801MB:scsi:512:512:gpt:Generic Flash Disk:;
1:32.8kB:5032MB:5032MB::ISO9660:hidden, msftdata;
2:5032MB:5037MB:5155kB::Appended2:boot, esp;
3:5037MB:5038MB:307kB::Gap1:hidden, msftdata;
4:5039MB:7801MB:2762MB:ext4::;
mapper/vgubuntu-swap_1:1023MB:dm:512:512:loop:Linux device-mapper (linear):;
1:0.00B:1023MB:1023MB:linux-swap(v1)::;
mapper/vgubuntu-root:238GB:dm:512:512:loop:Linux device-mapper (linear):;
1:0.00B:238GB:238GB:ext4::;
mapper/luks-e9515362-8f64-4ef8-bea0-afae33ea1540:255GB:dm:512:512:unknown:Linux device-mapper (crypt):;
nvme0n1:256GB:nvme:512:512:gpt:SAMSUNG MZALQ256HBJD-00BL2:;
1:1049kB:539MB:538MB:fat32::boot, esp;
5:539MB:1307MB:768MB:ext4:Linux filesystem:;
6:1307MB:256GB:255GB::Linux filesystem:;

blkid (filtered): ______________________________________________________________

NAME                                          FSTYPE      UUID                                   PARTUUID                             LABEL                    PARTLABEL
sda                                           iso9660     2023-08-08-01-19-05-00                                                      Ubuntu 22.04.3 LTS amd64 
├─sda1                                        iso9660     2023-08-08-01-19-05-00                 f45e2fa1-c5a6-4d79-876e-c8245af921e0 Ubuntu 22.04.3 LTS amd64 ISO9660
├─sda2                                        vfat        F7DB-4D56                              f45e2fa1-c5a6-4d79-876d-c8245af921e0 ESP                      Appended2
├─sda3                                                                                           f45e2fa1-c5a6-4d79-876c-c8245af921e0                          Gap1
└─sda4                                        ext4        1fc71518-2def-4dfb-ad3e-d99d1d0a9d6c   cfa52fe1-fccd-c54b-a790-4cf7a288cd73 writable                 
nvme0n1                                                                                                                                                        
├─nvme0n1p1                                   vfat        6F47-BBD1                              83e5fa77-b856-407b-854a-82afa1abbef8                          
├─nvme0n1p5                                   ext4        51c09539-2c54-47c0-ac4f-25d646097d8e   db398e41-0490-461c-aea3-bc267226353d                          Linux filesystem
└─nvme0n1p6                                   crypto_LUKS e9515362-8f64-4ef8-bea0-afae33ea1540   c6856f68-f128-46cc-9352-fa827ea0b4e0                          Linux filesystem
  └─luks-e9515362-8f64-4ef8-bea0-afae33ea1540 LVM2_member f1SHbT-4edh-6kBC-Phuv-3DHZ-2uLR-tysv6E                                                               
    ├─vgubuntu-root                           ext4        e6450911-f89a-417f-8ec6-b03dafe26909                                                                 
    └─vgubuntu-swap_1                         swap        f90e9d46-7450-49c7-93cd-39108056f46d                                                                 

Mount points (filtered): _______________________________________________________

                                                               Avail Use% Mounted on
/dev/disk/by-label/writable[/install-logs-2023-11-10.3/crash]   2.3G   2% /var/crash
/dev/disk/by-label/writable[/install-logs-2023-11-10.3/log]     2.3G   2% /var/log
/dev/nvme0n1p1                                                  512M   0% /media/ubuntu/6F47-BBD1
/dev/nvme0n1p5                                                362.6M  41% /media/ubuntu/51c09539-2c54-47c0-ac4f-25d646097d8e
/dev/sda1                                                          0 100% /cdrom

Mount options (filtered): ______________________________________________________


============================== ls -R /dev/mapper/ ==============================

/dev/mapper:
control
luks-e9515362-8f64-4ef8-bea0-afae33ea1540
vgubuntu-root
vgubuntu-swap_1

====================== nvme0n1p5/grub/grub.cfg (filtered) ======================

Ubuntu   e6450911-f89a-417f-8ec6-b03dafe26909
Ubuntu, with Linux 6.2.0-36-generic   e6450911-f89a-417f-8ec6-b03dafe26909
Ubuntu, with Linux 6.2.0-35-generic   e6450911-f89a-417f-8ec6-b03dafe26909
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

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

           GiB - GB             File                                 Fragment(s)
   0,628936768 = 0,675315712    grub/grub.cfg                                  1
   0,728263855 = 0,781967360    grub/i386-pc/core.img                          1
   0,671051025 = 0,720535552    vmlinuz                                        2
   0,897609711 = 0,963801088    vmlinuz-6.2.0-35-generic                       2
   0,671051025 = 0,720535552    vmlinuz-6.2.0-36-generic                       2
   0,897609711 = 0,963801088    vmlinuz.old                                    2
   1,001724243 = 1,075593216    initrd.img                                     7
   0,978336334 = 1,050480640    initrd.img-6.2.0-35-generic                    2
   1,001724243 = 1,075593216    initrd.img-6.2.0-36-generic                    7
   0,978336334 = 1,050480640    initrd.img.old                                 2

======================== Unknown MBRs/Boot Sectors/etc =========================

Unknown BootLoader on nvme0n1p6



==================== blkid (filtered) before lvm activation ====================

/dev/nvme0n1p1: UUID="6F47-BBD1" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="83e5fa77-b856-407b-854a-82afa1abbef8"
/dev/nvme0n1p5: UUID="51c09539-2c54-47c0-ac4f-25d646097d8e" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="Linux filesystem" PARTUUID="db398e41-0490-461c-aea3-bc267226353d"
/dev/sda1: BLOCK_SIZE="2048" UUID="2023-08-08-01-19-05-00" LABEL="Ubuntu 22.04.3 LTS amd64" TYPE="iso9660" PARTLABEL="ISO9660" PARTUUID="f45e2fa1-c5a6-4d79-876e-c8245af921e0"
/dev/nvme0n1p6: UUID="e9515362-8f64-4ef8-bea0-afae33ea1540" TYPE="crypto_LUKS" PARTLABEL="Linux filesystem" PARTUUID="c6856f68-f128-46cc-9352-fa827ea0b4e0"
/dev/sda2: SEC_TYPE="msdos" LABEL_FATBOOT="ESP" LABEL="ESP" UUID="F7DB-4D56" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="Appended2" PARTUUID="f45e2fa1-c5a6-4d79-876d-c8245af921e0"
/dev/sda4: LABEL="writable" UUID="1fc71518-2def-4dfb-ad3e-d99d1d0a9d6c" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="cfa52fe1-fccd-c54b-a790-4cf7a288cd73"
/dev/mapper/vgubuntu-root: UUID="e6450911-f89a-417f-8ec6-b03dafe26909" BLOCK_SIZE="4096" TYPE="ext4"
/dev/mapper/vgubuntu-swap_1: UUID="f90e9d46-7450-49c7-93cd-39108056f46d" TYPE="swap"
/dev/mapper/luks-e9515362-8f64-4ef8-bea0-afae33ea1540: UUID="f1SHbT-4edh-6kBC-Phuv-3DHZ-2uLR-tysv6E" TYPE="LVM2_member"
/dev/sda3: PARTLABEL="Gap1" PARTUUID="f45e2fa1-c5a6-4d79-876c-c8245af921e0"


================================ 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/root' [221.35 GiB] inherit
  ACTIVE            '/dev/vgubuntu/swap_1' [976.00 MiB] inherit
blkid -g



Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would not act on the boot.

trois jours que je suis sur ce truc, je crois qu'une nouvelle installation en essayant de récupérer la partition LUKS avec les données sera plus simple...


Fred
Ubuntu 22.04 LTS

Hors ligne

#8 Le 10/11/2023, à 14:20

geole

Re : [RESOLU] Adapter un Ubuntu en MBR sous EFI ?

Je ne comprends pas pourquoi  boot-repair ne propose rien.

Suggested repair: ______________________________________________________________
The default repair of the Boot-Repair utility would not act on the boot.

Ni pourquoi tu ne peux pas positionner la partition /boot/efi sur nvme0n1p1 et la partition /boot sur nvme0n1p2
Installe refind

sudo apt install refind

en lui disant de se stocker dans la partition EFI

nvme0n1p1	: is---ESP

et il va détecter les fichiers d'initialisation de ubuntu.

=============== nvme0n1p5: Location of files loaded by Grub ==================
           GiB - GB             File                                 Fragment(s)
   0,897609711 = 0,963801088    vmlinuz-6.2.0-35-generic                       2
   0,671051025 = 0,720535552    vmlinuz-6.2.0-36-generic                       2
   0,978336334 = 1,050480640    initrd.img-6.2.0-35-generic                    2
   1,001724243 = 1,075593216    initrd.img-6.2.0-36-generic                    7

Dernière modification par geole (Le 10/11/2023, à 14:36)


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

#9 Le 10/11/2023, à 19:01

fred-cavernedufond

Re : [RESOLU] Adapter un Ubuntu en MBR sous EFI ?

il ne trouve pas le paquet refind ...chui maudit !     neutral siouplé, je demande qu'on arrête de jouer avec les poupées vaudou et les épingles, ça fait mal big_smile big_smile

Blague a part, il y a un petit mieux : j'ai réussi à lui faire prendre en charge le mtools qui gère les FAT32, donc plus de petit ? rouge. Le problème semble bien venir du point de montage ou il n'affiche pas "/boot/EFI" mais reste sur "/media/ubuntu/6F47-BBD1" probablement le point de montage du disque original.

Boot repair ne me propose toujours aucune option de réparation mais il me dit " /boot detecté. veuillez vérifier les options." et j'ai juste le choix de valider. Il semble faire une bidouille mais reste toujours bloqué sur ce qui semble etre l'ancien MBR
J'arrète pour aujourd'hui hmm
Fred


Fred
Ubuntu 22.04 LTS

Hors ligne

#10 Le 10/11/2023, à 19:15

geole

Re : [RESOLU] Adapter un Ubuntu en MBR sous EFI ?

En live USB, vérifie que tu as bien booté en EFI

[ -d /sys/firmware/efi ] && echo "Installé en mode EFI" || echo "Installé en mode classique"

Installe boot-repair choisis bien options avancées
et explique mieux pourquoi tu ne peux pas remplir cette grille

Dernière modification par geole (Le 10/11/2023, à 19:17)


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

#11 Le 10/11/2023, à 19:57

fred-cavernedufond

Re : [RESOLU] Adapter un Ubuntu en MBR sous EFI ?

Je crois que j'ai trouvé en lisant de la doc sur l'EFI* : c'est tres bete !
c'est tout simplement parce que ma FAT32 ne contient visiblement aucun fichier *.EFI ! Crée sous BIOS classique dans une autre vielle machine sans EFI, ces fichiers ne pouvaient pas exister. Nos bidouilles n'y font rien. C'est aussi pourquoi toutes les options de la grille que tu me montres sont vierges ; il n'y a aucun Grub dans les onglets - je ne comprenais pas pourquoi -  je n'ai qu'une proposition de sauvegarde de la structure des partitions  vers un dossier de mon choix dans l'onglet de gauche "main option".  Il n'y a nul part ou lui indiquer de monter le bazar sur /boot/EFI  (idem dans Gpart) De fait, Boot-repair...ne voit rien à réparer : logique.

Je pense que la solution est donc de créer une vraie partition EFI depuis cette machine et son EFI et/ou avec un live usb si le truc est possible car il faut qu'il check le BIOS de cette machine. Si ce n'est pas possible il me faudra reformater le disque, lancer une installation live ubuntu puis récoller ma partition Luks de données...si ça marche !

[ -d /sys/firmware/efi ] && echo "Installé en mode EFI" || echo "Installé en mode classique" 

De mémoire, j'avais d'emblée vérifié cette commande et il répondait bien qu'il était en EFI

Si je lance "efibootmgr" il me donne bien l'ordre de demarrage suivant
boot 1 : mon disque SSD m2
boot 2 : USB
boot 3 : DVD
boot 4 : reseau.

De toutes façons, il ne peut pas demarrer en mode Legacy, qui visiblement n'existe pas dans le BIOS de cette bécane...
*https://www.malekal.com/la-partition-efi-ou-esp/#La_Partition_EFI_sur_Linux

F raide.

Dernière modification par fred-cavernedufond (Le 10/11/2023, à 20:10)


Fred
Ubuntu 22.04 LTS

Hors ligne

#12 Le 10/11/2023, à 20:10

geole

Re : [RESOLU] Adapter un Ubuntu en MBR sous EFI ?

Ecoute: Cette partition EFI est sans fichiers  et c'est normal. Le but est d'en mettre. Boot-repair sait le faire.
Il y a probablement  un autre problème non visible  dans le boot-info.
Depuis la live-USB, lance gparted, Positionne-toi sur cette partition EFI et supprime-la.
Lorsque c'est fait,  positionne-toi dans l'espace libéré, et refabrique une partition FAT32, tu lui ajouteras le drapeau ESP
Tu quitteras gparted et tu retenteras boot-repair.
C'est le paragraphe 4.1

Dernière modification par geole (Le 10/11/2023, à 20:15)


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

#13 Le 10/11/2023, à 20:12

fred-cavernedufond

Re : [RESOLU] Adapter un Ubuntu en MBR sous EFI ?

yeap ! c'est peut-etre plus simple smile
a suivre. Merci de ton aide.
Fred


Fred
Ubuntu 22.04 LTS

Hors ligne

#14 Le 10/11/2023, à 20:25

geole

Re : [RESOLU] Adapter un Ubuntu en MBR sous EFI ?

Corrections suite à l'évolution de la réparation.

Je viens de comprendre pourquoi  boot-repair ne te propose rien.   Tu n'as pas EFI et il ne pense pas à l'installer.
Heureusement que c'est chiffré avec luks
Voici  les commandes

sudo -i    # afin de passer  le seul maitre à bord
cryptsetup luksOpen /dev/nvme0n1p6   chiffre   ## Afin de déchiffrer

La phrase secrète est alors demandée.
Vérifier ou réparer la partition

sudo  fsck -y /dev/mapper/chiffre

Comme la partition déchiffrée refuse de se monter sous le prétexte qu'elle héberge une structure en volume logique (mount: /mnt: unknown filesystem type 'LVM2_member'.). Dans ce cas, les trois commandes suivantes sont à faire:
1) Trouver la liste des partitions logiques

sudo vgscan

La réponse sera probablement Found volume group "ubuntu-vg"
2) Rechercher la liste des partitions logiques hébergées

lsblk -fe7 -o+size

On y verra probablement probablement "ubuntu–vg-root" ou vgubuntu-root
3) Monter la partition logique

sudo mount -v /dev/mapper/vgubuntu-root   /mnt 

.

Le montage des répertoires se fera avec ces commandes (copier/coller).

   mount -t proc  /proc              /mnt/proc
   mount -t sysfs /sys               /mnt/sys
   mount --bind   /dev               /mnt/dev
   mount --bind   /run               /mnt/run
   mount --bind   /sys               /mnt/sys
   mount --bind   /etc/resolv.conf   /mnt/etc/resolv.conf
   modprobe efivars     

Le changement d'environnement se fera avec cette commande

  chroot /mnt

Quelques contrôles seront à faire par exemple

mount -t devpts devpts /dev/pts 
df -h && df -i
ping -c4 8.8.8.8  && ping -c4 google.fr
ls   -ls /home 

Il est préférable de mettre à jour le logiciel de façon classique.

apt update && apt upgrade

Mettons à jour le fichier FSTAB afin qu'il connaisse la partition de boot EFI    C'est la valeur de de l'UUID nouveau

echo UUID=54ED-76C7  /boot/efi vfat umask=0077 0 1 | tee -a /etc/fstab 

Montons la partition de boot

sudo mount -v /dev/nvme0n1p5 /boot

Créons le répertoire efi

mkdir -v /boot/efi

Montons la partition EFI

mount -v /dev/nvme0n1p1 /boot/efi

Créons le réperfoire EFI

mkdir -pv /boot/efi/EFI

Installons divers logiciels

apt install secureboot-db
apt install  fwupdate    fwupdate-signed
sudo install    shim-signed
apt install  grub-efi-amd64   grub-efi grub-efi-amd64-signed

Installons le grub legacy

grub-install

Mettons à jour

update-grub

Vérifions que EFI est bien installé

ls -ls /boot/efi/EFI
efibootmgr -v

Quittons le mode chroot

exit

rebootons

shutdown

Dernière modification par geole (Le 13/11/2023, à 12:25)


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

#15 Le 10/11/2023, à 20:46

fred-cavernedufond

Re : [RESOLU] Adapter un Ubuntu en MBR sous EFI ?

donc dans l'ordre :
1- j'efface la FAT et la recrée avec le drapeau
2- je fais les commandes du lien pour installer la structure 64bits
3- je passe tes commandes ci dessus
Correct ?

Je viens de recrée la FAT...ça ne change rien. Voila le dernier boot-info et la structure du disque

boot-repair-4ppa2056                                              [20231110_1834]

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



==================== blkid (filtered) before lvm activation ====================

/dev/nvme0n1p5: UUID="51c09539-2c54-47c0-ac4f-25d646097d8e" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="Linux filesystem" PARTUUID="db398e41-0490-461c-aea3-bc267226353d"
/dev/sda1: BLOCK_SIZE="2048" UUID="2023-08-08-01-19-05-00" LABEL="Ubuntu 22.04.3 LTS amd64" TYPE="iso9660" PARTLABEL="ISO9660" PARTUUID="f45e2fa1-c5a6-4d79-876e-c8245af921e0"
/dev/nvme0n1p6: UUID="e9515362-8f64-4ef8-bea0-afae33ea1540" TYPE="crypto_LUKS" PARTLABEL="Linux filesystem" PARTUUID="c6856f68-f128-46cc-9352-fa827ea0b4e0"
/dev/sda2: SEC_TYPE="msdos" LABEL_FATBOOT="ESP" LABEL="ESP" UUID="F7DB-4D56" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="Appended2" PARTUUID="f45e2fa1-c5a6-4d79-876d-c8245af921e0"
/dev/sda4: LABEL="writable" UUID="1fc71518-2def-4dfb-ad3e-d99d1d0a9d6c" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="cfa52fe1-fccd-c54b-a790-4cf7a288cd73"
/dev/nvme0n1p1: UUID="54ED-76C7" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI partition" PARTUUID="ed8545e8-6323-4c68-80eb-f5b53f66b914"
/dev/sdb1: LABEL="cle blanche" BLOCK_SIZE="512" UUID="71A69BDB3A602476" TYPE="ntfs" PARTUUID="ba1f9bca-01"
/dev/mapper/vgubuntu-root: UUID="e6450911-f89a-417f-8ec6-b03dafe26909" BLOCK_SIZE="4096" TYPE="ext4"
/dev/mapper/vgubuntu-swap_1: UUID="f90e9d46-7450-49c7-93cd-39108056f46d" TYPE="swap"
/dev/mapper/luks-e9515362-8f64-4ef8-bea0-afae33ea1540: UUID="f1SHbT-4edh-6kBC-Phuv-3DHZ-2uLR-tysv6E" TYPE="LVM2_member"
/dev/sda3: PARTLABEL="Gap1" PARTUUID="f45e2fa1-c5a6-4d79-876c-c8245af921e0"


================================ 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/root' [221.35 GiB] inherit
  ACTIVE            '/dev/vgubuntu/swap_1' [976.00 MiB] inherit
blkid -g




[dmraid -sa -c] no
[dmraid -sa -c] raid
[dmraid -sa -c] disks
[dmraid -sa -c] no
[dmraid -sa -c] raid
[dmraid -sa -c] disks
modprobe: FATAL: Module efivars not found in directory /lib/modules/6.2.0-26-generic
ls: impossible d'accéder à '/sys/firmware/efi/vars': Aucun fichier ou dossier de ce type

=================== /boot détecté. Veuillez vérifier les options.

Recommended repair: ____________________________________________________________

The default repair of the Boot-Repair utility will restore the [(generic mbr)] MBR in sdb, and make it boot on sdb1.
Additional repair will be performed: unhide-bootmenu-10s



============================== Restore MBR of sdb ==============================

dd if=/usr/lib/syslinux/mbr/mbr.bin of=/dev/sdb

Le démarrage de l'ordinateur a été correctement réparé.

Vous pouvez maintenant redémarrer votre ordinateur.


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

 => Syslinux MBR (5.00 and higher) is installed in the MBR of /dev/nvme0n1.
 => Syslinux MBR (5.00 and higher) is installed in the MBR of /dev/sdb.

nvme0n1p1: _____________________________________________________________________

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

nvme0n1p5: _____________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        /grub/grub.cfg /grub/i386-pc/core.img

nvme0n1p6: _____________________________________________________________________

    File system:       crypto_LUKS
    Boot sector type:  Unknown
    Boot sector info: 

sdb1: __________________________________________________________________________

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

sda: ___________________________________________________________________________

    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 
                       sda 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/sda: /dev/sda déjà monté ou point de montage actif.


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

OS#1:   Ubuntu 22.04.3 LTS on mapper/vgubuntu-root

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

CPU architecture: 64-bit
Video: Intel Corporation from Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 22.04.3 LTS, jammy, x86_64)

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

BIOS/UEFI firmware: GGCN50WW(1.50) from LENOVO
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,2001,2002,2003
Boot0000* Linpus lite	HD(2,GPT,f45e2fa1-c5a6-4d79-876d-c8245af921e0,0x95f864,0x2754)/File(\EFI\Boot\grubx64.efi)RC
Boot2001* EFI USB Device	RC
Boot2002* EFI DVD/CDROM	RC
Boot2003* EFI Network	RC


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

Disks info: ____________________________________________________________________

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

Partitions info (1/3): _________________________________________________________

nvme0n1p5	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	grubenv-ok,	noupdategrub,	not-far
nvme0n1p1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sdb1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far

Partitions info (2/3): _________________________________________________________

nvme0n1p5	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	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
sdb1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

nvme0n1p5	: is---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
sdb1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdb

fdisk -l (filtered): ___________________________________________________________

Disk nvme0n1: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk identifier: 9DCAD1D2-1FA9-4518-8C7A-A19867A33F7E
            Start       End   Sectors   Size Type
nvme0n1p1    2048   1052671   1050624   513M EFI System
nvme0n1p5 1052672   2551807   1499136   732M Linux filesystem
nvme0n1p6 2551808 500117503 497565696 237.3G Linux filesystem
Disk sda: 7.27 GiB, 7801405440 bytes, 15237120 sectors
Disk identifier: F45E2FA1-C5A6-4D79-876F-C8245AF921E0
        Start      End Sectors  Size Type
sda1       64  9828451 9828388  4.7G Microsoft basic data
sda2  9828452  9838519   10068  4.9M EFI System
sda3  9838520  9839119     600  300K Microsoft basic data
sda4  9842688 15237056 5394369  2.6G Linux filesystem
Disk sdb: 14.94 GiB, 16039018496 bytes, 31326208 sectors
Disk identifier: 0xba1f9bca
      Boot Start      End  Sectors  Size Id Type
sdb1  *     2048 31326207 31324160 14.9G  7 HPFS/NTFS/exFAT
Disk mapper/luks-e9515362-8f64-4ef8-bea0-afae33ea1540: 237.24 GiB, 254736859136 bytes, 497532928 sectors
Disk mapper/vgubuntu-root: 221.35 GiB, 237674430464 bytes, 464207872 sectors
Disk mapper/vgubuntu-swap_1: 976 MiB, 1023410176 bytes, 1998848 sectors

parted -lm (filtered): _________________________________________________________

sda:7801MB:scsi:512:512:gpt:Generic Flash Disk:;
1:32.8kB:5032MB:5032MB::ISO9660:hidden, msftdata;
2:5032MB:5037MB:5155kB::Appended2:boot, esp;
3:5037MB:5038MB:307kB::Gap1:hidden, msftdata;
4:5039MB:7801MB:2762MB:ext4::;
sdb:16.0GB:scsi:512:512:msdos:Wilk :;
1:1049kB:16.0GB:16.0GB:ntfs::boot;
mapper/vgubuntu-swap_1:1023MB:dm:512:512:loop:Linux device-mapper (linear):;
1:0.00B:1023MB:1023MB:linux-swap(v1)::;
mapper/vgubuntu-root:238GB:dm:512:512:loop:Linux device-mapper (linear):;
1:0.00B:238GB:238GB:ext4::;
mapper/luks-e9515362-8f64-4ef8-bea0-afae33ea1540:255GB:dm:512:512:unknown:Linux device-mapper (crypt):;
nvme0n1:256GB:nvme:512:512:gpt:SAMSUNG MZALQ256HBJD-00BL2:;
1:1049kB:539MB:538MB:fat32:EFI partition:boot, esp;
5:539MB:1307MB:768MB:ext4:Linux filesystem:;
6:1307MB:256GB:255GB::Linux filesystem:;

blkid (filtered): ______________________________________________________________

NAME                                          FSTYPE      UUID                                   PARTUUID                             LABEL                    PARTLABEL
sda                                           iso9660     2023-08-08-01-19-05-00                                                      Ubuntu 22.04.3 LTS amd64 
├─sda1                                        iso9660     2023-08-08-01-19-05-00                 f45e2fa1-c5a6-4d79-876e-c8245af921e0 Ubuntu 22.04.3 LTS amd64 ISO9660
├─sda2                                        vfat        F7DB-4D56                              f45e2fa1-c5a6-4d79-876d-c8245af921e0 ESP                      Appended2
├─sda3                                                                                           f45e2fa1-c5a6-4d79-876c-c8245af921e0                          Gap1
└─sda4                                        ext4        1fc71518-2def-4dfb-ad3e-d99d1d0a9d6c   cfa52fe1-fccd-c54b-a790-4cf7a288cd73 writable                 
sdb                                                                                                                                                            
└─sdb1                                        ntfs        71A69BDB3A602476                       ba1f9bca-01                          cle blanche              
nvme0n1                                                                                                                                                        
├─nvme0n1p1                                   vfat        54ED-76C7                              ed8545e8-6323-4c68-80eb-f5b53f66b914                          EFI partition
├─nvme0n1p5                                   ext4        51c09539-2c54-47c0-ac4f-25d646097d8e   db398e41-0490-461c-aea3-bc267226353d                          Linux filesystem
└─nvme0n1p6                                   crypto_LUKS e9515362-8f64-4ef8-bea0-afae33ea1540   c6856f68-f128-46cc-9352-fa827ea0b4e0                          Linux filesystem
  └─luks-e9515362-8f64-4ef8-bea0-afae33ea1540 LVM2_member f1SHbT-4edh-6kBC-Phuv-3DHZ-2uLR-tysv6E                                                               
    ├─vgubuntu-root                           ext4        e6450911-f89a-417f-8ec6-b03dafe26909                                                                 
    └─vgubuntu-swap_1                         swap        f90e9d46-7450-49c7-93cd-39108056f46d                                                                 

Mount points (filtered): _______________________________________________________

                                                               Avail Use% Mounted on
/dev/disk/by-label/writable[/install-logs-2023-11-10.5/crash]   2.3G   2% /var/crash
/dev/disk/by-label/writable[/install-logs-2023-11-10.5/log]     2.3G   2% /var/log
/dev/nvme0n1p1                                                  512M   0% /media/ubuntu/54ED-76C7
/dev/nvme0n1p5                                                362.5M  41% /media/ubuntu/51c09539-2c54-47c0-ac4f-25d646097d8e
/dev/sda1                                                          0 100% /cdrom
/dev/sdb1                                                      13.3G  11% /mnt/boot-sav/sdb1

Mount options (filtered): ______________________________________________________


============================== ls -R /dev/mapper/ ==============================

/dev/mapper:
control
luks-e9515362-8f64-4ef8-bea0-afae33ea1540
vgubuntu-root
vgubuntu-swap_1

====================== nvme0n1p5/grub/grub.cfg (filtered) ======================

Ubuntu   e6450911-f89a-417f-8ec6-b03dafe26909
Ubuntu, with Linux 6.2.0-36-generic   e6450911-f89a-417f-8ec6-b03dafe26909
Ubuntu, with Linux 6.2.0-35-generic   e6450911-f89a-417f-8ec6-b03dafe26909
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

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

           GiB - GB             File                                 Fragment(s)
   0,628936768 = 0,675315712    grub/grub.cfg                                  1
   0,728263855 = 0,781967360    grub/i386-pc/core.img                          1
   0,671051025 = 0,720535552    vmlinuz                                        2
   0,897609711 = 0,963801088    vmlinuz-6.2.0-35-generic                       2
   0,671051025 = 0,720535552    vmlinuz-6.2.0-36-generic                       2
   0,897609711 = 0,963801088    vmlinuz.old                                    2
   1,001724243 = 1,075593216    initrd.img                                     7
   0,978336334 = 1,050480640    initrd.img-6.2.0-35-generic                    2
   1,001724243 = 1,075593216    initrd.img-6.2.0-36-generic                    7
   0,978336334 = 1,050480640    initrd.img.old                                 2

======================== Unknown MBRs/Boot Sectors/etc =========================

Unknown BootLoader on nvme0n1p6

Unknown BootLoader on sdb1

Capture-d-cran-du-2023-11-10-18-32-59.png

Dernière modification par fred-cavernedufond (Le 10/11/2023, à 20:49)


Fred
Ubuntu 22.04 LTS

Hors ligne

#16 Le 10/11/2023, à 20:53

geole

Re : [RESOLU] Adapter un Ubuntu en MBR sous EFI ?

A priori à toi de jouer. Mais je pars manger.
Je t'ai donné l'enchainement complet.
Pour les commandes qui ne seront pas bonnes s'il y en a, donne bien la commande et son retour

Dernière modification par geole (Le 10/11/2023, à 20:54)


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

#17 Le 12/11/2023, à 09:52

fred-cavernedufond

Re : [RESOLU] Adapter un Ubuntu en MBR sous EFI ?

Bonjour Geole
ca coince des la 3eme ligne : en root, un fois la partition déverrouillé il refuse de la monter et me dit :

 /mnt: type de systeme de fichers "LVM2_member " inconnu 
mount   /dev/mapper/chiffre /mnt

il semble que ce ne soit pas "mnt" mais "mount" qui soit accepté...(--help) Peux-tu vérifier les espaces dans tes commandes stp ?

donc si je tente :

mount /dev/mapper/chiffre/mount UUID = numero_indiqué_dans_gpart_sur_la_partition_luks 

la commande repond que le point de montage n'existe pas. J'ai essayé avec l'UUID du systeme de fichier et celle du chiffrement LUKS en vain.

voici la structure de la partition luks du disque original qui est bien en 32 bit

Capture-d-cran-du-2023-11-12-10-00-34.png

Capture-d-cran-du-2023-11-12-10-01-36.png

il me parait logique qu'on ne puisse rien monter puisque qu'il lit des UUID qui n'existe pas pour lui, d'autant que rien n'est enregistrer dans fstab ! /etc/fstab est vide !  il indique :

overlay / overlay rw 0 0 
tmpfs /tmp tmpfs nosuid,nodev 0 0

Il me faudrait donc le construire ? j'ai pas fini !  A ce stade, est-ce qu'il ne me serait pas plus simple de formater ce disque, de refaire une installation Ubuntu chiffrée "propre" en live USB dans la bécane puis au final de transférer les données de la partition LUKS vers le nouveau systeme ? Bref ca devient trop compliqué et de moins en moins élégant smile

pour info "lscpu" renvoie que c'est une architecture x86_64 ; que le mode operatoire des processeurs Intel est 32-bit,64-bit
Fred

Dernière modification par fred-cavernedufond (Le 12/11/2023, à 11:10)


Fred
Ubuntu 22.04 LTS

Hors ligne

#18 Le 12/11/2023, à 13:03

geole

Re : [RESOLU] Adapter un Ubuntu en MBR sous EFI ?

Bonjour.
J'ai adapté les consignes en prenant en compte lvm.
J'espère que je ne me suis pas trop trompé


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

#19 Le 12/11/2023, à 14:35

fred-cavernedufond

Re : [RESOLU] Adapter un Ubuntu en MBR sous EFI ?

il bloque à la commande d'installation de la structure 64bit (c'est un pross Intel et non amd)
il a aussi planté sur le module efivars

root@ubuntu:~# sudo vgscan
  Found volume group "vgubuntu" using metadata type lvm2
root@ubuntu:~# lsblk -fe7 -o+size
NAME                                    FSTYPE      FSVER            LABEL                    UUID                                   FSAVAIL FSUSE% MOUNTPOINTS   SIZE
sda                                     iso9660     Joliet Extension Ubuntu 22.04.3 LTS amd64 2023-08-08-01-19-05-00                                              7,3G
├─sda1                                  iso9660     Joliet Extension Ubuntu 22.04.3 LTS amd64 2023-08-08-01-19-05-00                       0   100% /cdrom        4,7G
├─sda2                                  vfat        FAT12            ESP                      F7DB-4D56                                                           4,9M
├─sda3                                                                                                                                                            300K
└─sda4                                  ext4        1.0              writable                 1fc71518-2def-4dfb-ad3e-d99d1d0a9d6c      2,3G     2% /var/crash    2,6G
                                                                                                                                                    /var/log    
nvme0n1                                                                                                                                                         238,5G
├─nvme0n1p1                             vfat        FAT32                                     54ED-76C7                                                           513M
├─nvme0n1p5                             ext4        1.0                                       51c09539-2c54-47c0-ac4f-25d646097d8e                                732M
└─nvme0n1p6                             crypto_LUKS 2                                         e9515362-8f64-4ef8-bea0-afae33ea1540                              237,3G
  └─luks-e9515362-8f64-4ef8-bea0-afae33ea1540
                                        LVM2_member LVM2 001                                  f1SHbT-4edh-6kBC-Phuv-3DHZ-2uLR-tysv6E                            237,2G
    ├─vgubuntu-root                     ext4        1.0                                       e6450911-f89a-417f-8ec6-b03dafe26909                              221,4G
    └─vgubuntu-swap_1                   swap        1                                         f90e9d46-7450-49c7-93cd-39108056f46d                                976M
root@ubuntu:~# sudo mount -v /dev/mapper/ubuntu--vg-root  /mnt
mount: /mnt: le périphérique spécial /dev/mapper/ubuntu--vg-root n'existe pas.
root@ubuntu:~# sudo mount -v /dev/mapper/vgubuntu-root  /mnt
mount : /dev/mapper/vgubuntu-root monté sur /mnt.
root@ubuntu:~# mount -t proc  /proc              /mnt/proc
root@ubuntu:~#    mount -t sysfs /sys               /mnt/sys
root@ubuntu:~#    mount --bind   /dev               /mnt/dev
root@ubuntu:~#    mount --bind   /run               /mnt/run
root@ubuntu:~#    mount --bind   /sys               /mnt/sys
root@ubuntu:~#    mount --bind   /etc/resolv.conf   /mnt/etc/resolv.conf
root@ubuntu:~#    modprobe efivars     
modprobe: FATAL: Module efivars not found in directory /lib/modules/6.2.0-26-generic
root@ubuntu:~#   chroot /mnt
root@ubuntu:/# mount -t devpts devpts /dev/pts 
root@ubuntu:/# df -h && df -i
Sys. de fichiers          Taille Utilisé Dispo Uti% Monté sur
/dev/mapper/vgubuntu-root   217G     36G  170G  18% /
tmpfs                       370M     12M  358M   4% /run
Sys. de fichiers            Inœuds IUtil.   ILibre IUti% Monté sur
/dev/mapper/vgubuntu-root 14508032 410547 14097485    3% /
tmpfs                       472557   1282   471275    1% /run
root@ubuntu:/# ping -c4 8.8.8.8  && ping -c4 google.fr
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=249 time=32.1 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=249 time=33.6 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=249 time=33.8 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=249 time=35.6 ms

--- 8.8.8.8 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 32.119/33.765/35.556/1.219 ms
PING google.fr (216.58.214.163) 56(84) bytes of data.
64 bytes from mad01s26-in-f3.1e100.net (216.58.214.163): icmp_seq=1 ttl=117 time=33.0 ms
64 bytes from mad01s26-in-f3.1e100.net (216.58.214.163): icmp_seq=2 ttl=117 time=52.2 ms
64 bytes from mad01s26-in-f3.1e100.net (216.58.214.163): icmp_seq=3 ttl=117 time=33.4 ms
64 bytes from mad01s26-in-f3.1e100.net (216.58.214.163): icmp_seq=4 ttl=117 time=33.2 ms

--- google.fr ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 33.012/37.952/52.213/8.234 ms
root@ubuntu:/# ls   -ls /home 
total 4
4 drwxrwxrwx 30 patrick patrick 4096 nov.   4 15:15 patrick
root@ubuntu:/# apt update && apt upgrade
Running in chroot, ignoring command 'start'
Réception de :1 https://ppa.launchpadcontent.net/gottcode/gcppa/ubuntu jammy InRelease [17,5 kB]
Réception de :2 https://ppa.launchpadcontent.net/gottcode/gcppa/ubuntu jammy/main amd64 Packages [2832 B]
Atteint :3 http://archive.ubuntu.com/ubuntu jammy InRelease
Réception de :4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Réception de :5 http://archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Réception de :6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
Réception de :7 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [1106 kB]
Réception de :8 http://archive.ubuntu.com/ubuntu jammy-updates/restricted i386 Packages [32,8 kB]                                                                    
Réception de :9 http://archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [179 kB]                                                                    
Réception de :10 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages [525 kB]                                                                          
Réception de :11 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1158 kB]                                                                       
Réception de :12 http://archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [246 kB]                                                                         
Réception de :13 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 DEP-11 Metadata [101 kB]                                                                  
Réception de :14 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [995 kB]                                                                     
Réception de :15 http://archive.ubuntu.com/ubuntu jammy-updates/universe i386 Packages [661 kB]                                                                      
Réception de :16 http://archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [218 kB]                                                                     
Réception de :17 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 DEP-11 Metadata [305 kB]                                                              
Réception de :18 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [41,6 kB]                                                                  
Réception de :19 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 DEP-11 Metadata [940 B]                                                             
Réception de :20 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages [946 kB]                                                                        
Réception de :21 http://archive.ubuntu.com/ubuntu jammy-security/main i386 Packages [361 kB]                                                                         
Réception de :22 http://archive.ubuntu.com/ubuntu jammy-security/main Translation-en [187 kB]                                                                        
Réception de :23 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 DEP-11 Metadata [43,0 kB]                                                                
Réception de :24 http://archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [793 kB]                                                                    
Réception de :25 http://archive.ubuntu.com/ubuntu jammy-security/universe i386 Packages [563 kB]                                                                     
Réception de :26 http://archive.ubuntu.com/ubuntu jammy-security/universe Translation-en [146 kB]                                                                    
Réception de :27 http://archive.ubuntu.com/ubuntu jammy-security/universe amd64 DEP-11 Metadata [55,1 kB]                                                            
Réception de :28 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 DEP-11 Metadata [19,0 kB]                                                           
Réception de :29 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 DEP-11 Metadata [4936 B]                                                               
9044 ko réceptionnés en 11s (794 ko/s)                                                                                                                              
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
10 paquets peuvent être mis à jour. Exécutez « apt list --upgradable » pour les voir.
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
Calcul de la mise à jour... Fait
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
  libvlc5 vlc-data libvlccore9 imagemagick libjs-jquery-ui libopenexr25
  libmagick++-6.q16-8 python3-scipy libpostproc55 libmagickcore-6.q16-6-extra
  libavcodec58 libmagickwand-6.q16-6 libavutil56 imagemagick-6.q16 libswscale5
  libmagickcore-6.q16-6 libswresample3 imagemagick-6-common
  vlc-plugin-video-output libavformat58 libvlc-bin vlc-plugin-base
  libavfilter7
Learn more about Ubuntu Pro at https://ubuntu.com/pro
#
# Canonical released microcode updates for both Intel (CVE-2022-40982) and AMD
# (CVE-2023-20593). ‘Unattended upgrades’ provide security updates by default.
# Ensure it remains enabled to always get all updates as they become available.
#
Les paquets suivants seront mis à jour :
  krb5-locales libgssapi-krb5-2 libgssapi-krb5-2:i386 libk5crypto3 libk5crypto3:i386 libkrb5-3 libkrb5-3:i386 libkrb5support0 libkrb5support0:i386 python3-urllib3
10 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
10 standard LTS security updates
Il est nécessaire de prendre 1414 ko dans les archives.
Après cette opération, 9216 o d'espace disque seront libérés.
Souhaitez-vous continuer ? [O/n] o
Réception de :1 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 libkrb5support0 i386 1.19.2-2ubuntu0.3 [36,9 kB]
Réception de :2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libkrb5support0 amd64 1.19.2-2ubuntu0.3 [32,2 kB]
Réception de :3 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 libkrb5-3 i386 1.19.2-2ubuntu0.3 [403 kB]
Réception de :4 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libkrb5-3 amd64 1.19.2-2ubuntu0.3 [356 kB]
Réception de :5 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 libgssapi-krb5-2 i386 1.19.2-2ubuntu0.3 [154 kB]
Réception de :6 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libgssapi-krb5-2 amd64 1.19.2-2ubuntu0.3 [144 kB]
Réception de :7 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libk5crypto3 amd64 1.19.2-2ubuntu0.3 [86,3 kB]
Réception de :8 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 libk5crypto3 i386 1.19.2-2ubuntu0.3 [91,0 kB]
Réception de :9 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 krb5-locales all 1.19.2-2ubuntu0.3 [11,7 kB]
Réception de :10 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-urllib3 all 1.26.5-1~exp1ubuntu0.1 [98,2 kB]
1414 ko réceptionnés en 1s (1264 ko/s)     
(Lecture de la base de données... 279664 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../0-libkrb5support0_1.19.2-2ubuntu0.3_amd64.deb ...
Déconfiguration de libkrb5support0:i386 (1.19.2-2ubuntu0.2), pour permettre la configuration de libkrb5support0:amd64 (1.19.2-2ubuntu0.2) ...
Dépaquetage de libkrb5support0:amd64 (1.19.2-2ubuntu0.3) sur (1.19.2-2ubuntu0.2) ...
Préparation du dépaquetage de .../1-libkrb5support0_1.19.2-2ubuntu0.3_i386.deb ...
Dépaquetage de libkrb5support0:i386 (1.19.2-2ubuntu0.3) sur (1.19.2-2ubuntu0.2) ...
Préparation du dépaquetage de .../2-libkrb5-3_1.19.2-2ubuntu0.3_amd64.deb ...
Déconfiguration de libkrb5-3:i386 (1.19.2-2ubuntu0.2), pour permettre la configuration de libkrb5-3:amd64 (1.19.2-2ubuntu0.2) ...
Dépaquetage de libkrb5-3:amd64 (1.19.2-2ubuntu0.3) sur (1.19.2-2ubuntu0.2) ...
Préparation du dépaquetage de .../3-libkrb5-3_1.19.2-2ubuntu0.3_i386.deb ...
Dépaquetage de libkrb5-3:i386 (1.19.2-2ubuntu0.3) sur (1.19.2-2ubuntu0.2) ...
Préparation du dépaquetage de .../4-libgssapi-krb5-2_1.19.2-2ubuntu0.3_amd64.deb ...
Déconfiguration de libgssapi-krb5-2:i386 (1.19.2-2ubuntu0.2), pour permettre la configuration de libgssapi-krb5-2:amd64 (1.19.2-2ubuntu0.2) ...
Dépaquetage de libgssapi-krb5-2:amd64 (1.19.2-2ubuntu0.3) sur (1.19.2-2ubuntu0.2) ...
Préparation du dépaquetage de .../5-libgssapi-krb5-2_1.19.2-2ubuntu0.3_i386.deb ...
Dépaquetage de libgssapi-krb5-2:i386 (1.19.2-2ubuntu0.3) sur (1.19.2-2ubuntu0.2) ...
Préparation du dépaquetage de .../6-libk5crypto3_1.19.2-2ubuntu0.3_i386.deb ...
Déconfiguration de libk5crypto3:amd64 (1.19.2-2ubuntu0.2), pour permettre la configuration de libk5crypto3:i386 (1.19.2-2ubuntu0.2) ...
Dépaquetage de libk5crypto3:i386 (1.19.2-2ubuntu0.3) sur (1.19.2-2ubuntu0.2) ...
Préparation du dépaquetage de .../7-libk5crypto3_1.19.2-2ubuntu0.3_amd64.deb ...
Dépaquetage de libk5crypto3:amd64 (1.19.2-2ubuntu0.3) sur (1.19.2-2ubuntu0.2) ...
Paramétrage de libkrb5support0:amd64 (1.19.2-2ubuntu0.3) ...
Paramétrage de libk5crypto3:amd64 (1.19.2-2ubuntu0.3) ...
(Lecture de la base de données... 279664 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../krb5-locales_1.19.2-2ubuntu0.3_all.deb ...
Dépaquetage de krb5-locales (1.19.2-2ubuntu0.3) sur (1.19.2-2ubuntu0.2) ...
Préparation du dépaquetage de .../python3-urllib3_1.26.5-1~exp1ubuntu0.1_all.deb ...
Dépaquetage de python3-urllib3 (1.26.5-1~exp1ubuntu0.1) sur (1.26.5-1~exp1) ...
Paramétrage de krb5-locales (1.19.2-2ubuntu0.3) ...
Paramétrage de libkrb5support0:i386 (1.19.2-2ubuntu0.3) ...
Paramétrage de libk5crypto3:i386 (1.19.2-2ubuntu0.3) ...
Paramétrage de python3-urllib3 (1.26.5-1~exp1ubuntu0.1) ...
Paramétrage de libkrb5-3:amd64 (1.19.2-2ubuntu0.3) ...
Paramétrage de libkrb5-3:i386 (1.19.2-2ubuntu0.3) ...
Paramétrage de libgssapi-krb5-2:amd64 (1.19.2-2ubuntu0.3) ...
Paramétrage de libgssapi-krb5-2:i386 (1.19.2-2ubuntu0.3) ...
Traitement des actions différées (« triggers ») pour libc-bin (2.35-0ubuntu3.4) ...
root@ubuntu:/# dpkg --add-architecture amd64
root@ubuntu:/# apt-get update
Running in chroot, ignoring command 'start'
Atteint :1 https://ppa.launchpadcontent.net/gottcode/gcppa/ubuntu jammy InRelease
Atteint :2 http://archive.ubuntu.com/ubuntu jammy InRelease
Atteint :3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Atteint :4 http://archive.ubuntu.com/ubuntu jammy-security InRelease
Atteint :5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Lecture des listes de paquets... Fait
root@ubuntu:/# apt-get install linux-image-amd64:amd64 
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
Aucune version du paquet linux-image-amd64 n'est disponible, mais il existe dans la base
de données. Cela signifie en général que le paquet est manquant, qu'il est devenu obsolète
ou qu'il n'est disponible que sur une autre source

E: Le paquet « linux-image-amd64 » n'a pas de version susceptible d'être installée
root@ubuntu:/#

rien avec "linux-image-6.2.0-26-generic-amd64" ....pas d'autres noyau en magasin avec

dpkg -l | awk '!/^rc/ && / linux-(c|g|h|i|lo|m|si|t)/{print $1,$2,$3,$4 | "sort -k3 | column -t"}'

Dernière modification par fred-cavernedufond (Le 12/11/2023, à 15:05)


Fred
Ubuntu 22.04 LTS

Hors ligne

#20 Le 12/11/2023, à 15:09

geole

Re : [RESOLU] Adapter un Ubuntu en MBR sous EFI ?

Oublions cet incident, ce  n'est  pas grave car ton installation est déjà en 64 bits puisque version jammy.
installe le shim

 sudo apt install shim-signed

Tu donneras son retour pour voir ce qu'il tracte. s'il  n'amène pas le grub

sudo apt install grub-efi-amd64-signed

Dernière modification par geole (Le 12/11/2023, à 15:20)


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

#21 Le 12/11/2023, à 15:22

fred-cavernedufond

Re : [RESOLU] Adapter un Ubuntu en MBR sous EFI ?

voila ce qu'il dit

root@ubuntu:/# sudo apt install shim-signed
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
Les paquets supplémentaires suivants seront installés : 
  efibootmgr grub-efi-amd64-bin grub-efi-amd64-signed mokutil
Les NOUVEAUX paquets suivants seront installés :
  efibootmgr grub-efi-amd64-bin grub-efi-amd64-signed mokutil shim-signed
0 mis à jour, 5 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 3704 ko dans les archives.
Après cette opération, 22,5 Mo d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] o
Réception de :1 http://archive.ubuntu.com/ubuntu jammy/main amd64 efibootmgr amd64 17-1ubuntu2 [29,8 kB]
Réception de :2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 grub-efi-amd64-bin amd64 2.06-2ubuntu14.4 [1592 kB]
Réception de :3 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 grub-efi-amd64-signed amd64 1.187.6+2.06-2ubuntu14.4 [1389 kB]
Réception de :4 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 mokutil amd64 0.6.0-2~22.04.2 [27,3 kB]
Réception de :5 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 shim-signed amd64 1.51.3+15.7-0ubuntu1 [667 kB]
3704 ko réceptionnés en 3s (1432 ko/s)
Préconfiguration des paquets...
Sélection du paquet efibootmgr précédemment désélectionné.
(Lecture de la base de données... 279664 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../efibootmgr_17-1ubuntu2_amd64.deb ...
Dépaquetage de efibootmgr (17-1ubuntu2) ...
Sélection du paquet grub-efi-amd64-bin précédemment désélectionné.
Préparation du dépaquetage de .../grub-efi-amd64-bin_2.06-2ubuntu14.4_amd64.deb ...
Dépaquetage de grub-efi-amd64-bin (2.06-2ubuntu14.4) ...
Sélection du paquet grub-efi-amd64-signed précédemment désélectionné.
Préparation du dépaquetage de .../grub-efi-amd64-signed_1.187.6+2.06-2ubuntu14.4_amd64.deb ...
Dépaquetage de grub-efi-amd64-signed (1.187.6+2.06-2ubuntu14.4) ...
Sélection du paquet mokutil précédemment désélectionné.
Préparation du dépaquetage de .../mokutil_0.6.0-2~22.04.2_amd64.deb ...
Dépaquetage de mokutil (0.6.0-2~22.04.2) ...
Sélection du paquet shim-signed précédemment désélectionné.
Préparation du dépaquetage de .../shim-signed_1.51.3+15.7-0ubuntu1_amd64.deb ...
Dépaquetage de shim-signed (1.51.3+15.7-0ubuntu1) ...
Paramétrage de efibootmgr (17-1ubuntu2) ...
Paramétrage de mokutil (0.6.0-2~22.04.2) ...
Paramétrage de grub-efi-amd64-bin (2.06-2ubuntu14.4) ...
Paramétrage de grub-efi-amd64-signed (1.187.6+2.06-2ubuntu14.4) ...
Paramétrage de shim-signed (1.51.3+15.7-0ubuntu1) ...
update-alternatives: utilisation de « /usr/lib/shim/shimx64.efi.signed.latest » pour fournir « /usr/lib/shim/shimx64.efi.signed » (shimx64.efi.signed) en mode automat
ique
Generating a new Secure Boot signing key:
Can't load /var/lib/shim-signed/mok/.rnd into RNG
804B4391F17F0000:error:12000079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:106:Filename=/var/lib/shim-signed/mok/.rnd
.+....+........+.+......+...+...........+.+...+..+...+.+.....+................+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.....+.....+++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+.+............+........+...............+.......+.....+.......+..+.+..................+..+...++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++
.....+....+.....+....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+....+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.
..+.+......+...+..+...+.......+.........+......+........+......+...............+....+..+...+.......+.....+....+...+.................+......+.........+......+...+.....
.+.+........+....+..+....+......+...+......+............+..+...+....+...+.....+......................+.....+.+.....+...+....+...+.................+.+..+............+.
.....+.+.........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-----
EFI variables are not supported on this system
Secure Boot not enabled on this system.
Traitement des actions différées (« triggers ») pour man-db (2.10.2-1) ...
root@ubuntu:/# 

pour l'installation du grub efi64 il repond

grub-efi-amd64-signed est déja dans la version la plus recente (1.187.6+2.06-2ubuntu14.4).
grub-efi-amd64-signed est passé en "installé manuellement".

donc si j'ai bien suivi et s'il n'y a pas de bug, il me reste à mettre à jour fstab + exit + shutdown ?

Dernière modification par fred-cavernedufond (Le 12/11/2023, à 15:41)


Fred
Ubuntu 22.04 LTS

Hors ligne

#22 Le 12/11/2023, à 15:50

geole

Re : [RESOLU] Adapter un Ubuntu en MBR sous EFI ?

La première commande avait tracté "Sélection du paquet grub-efi-amd64-bin précédemment désélectionné".

A priori restent
à mettre à jour /etc/fstab et

grub-install
update-grub

Dernière modification par geole (Le 12/11/2023, à 15:53)


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

#23 Le 12/11/2023, à 15:55

fred-cavernedufond

Re : [RESOLU] Adapter un Ubuntu en MBR sous EFI ?

j'ai passé sans probleme :

echo UUID=54ED-76C7  /boot/efi vfat umask=0077 0 1 | tee -a /etc/fstab 

Grub install repond

 installation pour la plateforme x86_64-efi.
grub-install : erreur : impossible de trouver le repertoire EFI

j'update grub qui répond

Memtest86+ need de 16-bit boot, that is not available on EFI, existing
Warning: os-prober will be executed to detect other bootable partitions;
It's output will be used to detect bootable binaries on them and create new boot entries.
done

alors...je reboote ou pas ? je ne veux pas le faire tant que tu ne me donnes pas le feu vert car car il demonte le live usb et ensuite il faut que je recommence tout la connexion reseau je vais aussi perdre tout le suivi que j'ai dans le terminal.
Fred

Dernière modification par fred-cavernedufond (Le 12/11/2023, à 16:04)


Fred
Ubuntu 22.04 LTS

Hors ligne

#24 Le 12/11/2023, à 16:08

geole

Re : [RESOLU] Adapter un Ubuntu en MBR sous EFI ?

oublié cela

Correction

mkdir -v /boot/efi/EFI

et  refaire boot install       et l'update
Puis vérifier que les fichiers de boot y sont bien

ls -Rls /boot/efi

Dernière modification par geole (Le 12/11/2023, à 16:26)


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

#25 Le 12/11/2023, à 16:21

fred-cavernedufond

Re : [RESOLU] Adapter un Ubuntu en MBR sous EFI ?

il cree bien le repertoire /boot/efi mais pour grub install il repond "impossible de trouver le repertoire EFI

la comme ls renvoie

ls: impossible d'acceder à 'Rls" : aucun fichier ou dossier de ce type.

erreur de frappe ? avec ls -ls /boot/efi il renvoie

total 0

je suis paumé fatigué et je sais plus ou j'en suis sad
Je ne vois pas de dossier /boot/efi dans nautilus et le fichier grub.config ne semble pas parler de l'EFI.

un Boot-repair ?

Dernière modification par fred-cavernedufond (Le 12/11/2023, à 16:41)


Fred
Ubuntu 22.04 LTS

Hors ligne