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.

#26 Le 13/08/2020, à 09:45

geole

Re : Dualboot avec 2 ubuntu sur le même SSD

geole a écrit :

Bonjour.
Bien que ne connaissant pas le problème du dual boot chiffré, je pense que tu peux choisir la partition de boot du premier ubuntu, il devrait certainement détecter le premier O.S. si tu prends la precaution de monter la partition avant. Sinon il ne saura pas savoir qu'elle contient déjà un O.S. â proposer au boot.
.

Sinon fabrique deux partitions de boot totalement indépendantes et installe refind pour qu'il te propose le choix de booter avec l'une des deux.

Bonjour.

Boote avec le second O.S.
puis monte la partition contenant le premier O.S. afin de la déverrouiller et la rendre disponible dans son mapper.
   car le boot-info montre clairement que tu ne l'as pas fait!!!!
   

df (filtered): _________________________________________________________________
 
                   Avail Use% Mounted on
mapper/sda5_crypt  12.1G  28% /
sda2              756.1M  11% /mnt/boot-sav/sda2
sda3              756.1M  11% /boot
 
 

Il aurait certainement été visible sous le nom mapper/sda4_crypt puis fais ces commandes

df -h
sudo os-prober

qui devraient montrer qu'il est détecté. Donc

sudo update-grub

pour fabriquer le dual boot.

Dernière modification par geole (Le 13/08/2020, à 09:59)


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

#27 Le 13/08/2020, à 11:40

geole

Re : Dualboot avec 2 ubuntu sur le même SSD

Je viens de faire l'essai suivant  et je constate que os-prober ne sait pas détecter les autres ubuntu installés dans une partition chiffrée montée.
Donc: Seule solution refind pour faire booter avec la partition de boot dédiée à chaque instance chiffrée comme c'est le cas avec les instances installées dans les partitions BTRFS.
Quelques extraits
L'existence d'une instance ubuntu est bien visible ici

@a:/media/a/588eff65-b7e4-41dc-83b5-80f5d1933b27$ ls -als
total 461244
     4 drwxr-xr-x   24 root root      4096 déc.  25  2019 .
     4 drwxr-x---+   5 root root      4096 août  13 11:15 ..
     4 drwxr-xr-x    2 root root      4096 déc.  25  2019 bin
     4 drwxr-xr-x    2 root root      4096 déc.  25  2019 boot
     4 drwxr-xr-x    2 root root      4096 déc.  25  2019 cdrom
     4 drwxr-xr-x    4 root root      4096 juil. 25  2018 dev
    12 drwxr-xr-x  124 root root     12288 déc.  25  2019 etc
     4 drwxr-xr-x    3 root root      4096 déc.  25  2019 home
     0 lrwxrwxrwx    1 root root        33 déc.  25  2019 initrd.img -> boot/initrd.img-4.15.0-29-generic
     0 lrwxrwxrwx    1 root root        33 déc.  25  2019 initrd.img.old -> boot/initrd.img-4.15.0-29-generic
     4 drwxr-xr-x   22 root root      4096 déc.  25  2019 lib
     4 drwxr-xr-x    2 root root      4096 juil. 25  2018 lib64
    16 drwx------    2 root root     16384 déc.  25  2019 lost+found
     4 drwxr-xr-x    3 root root      4096 févr.  5  2020 media
     4 drwxr-xr-x    2 root root      4096 juil. 25  2018 mnt
     4 drwxr-xr-x    2 root root      4096 juil. 25  2018 opt
     4 drwxr-xr-x    2 root root      4096 avril 24  2018 proc
     4 drwx------    3 root root      4096 juil. 25  2018 root
     4 drwxr-xr-x   14 root root      4096 juil. 25  2018 run
    12 drwxr-xr-x    2 root root     12288 déc.  25  2019 sbin
     4 drwxr-xr-x   10 root root      4096 janv. 25  2020 snap
     4 drwxr-xr-x    2 root root      4096 juil. 25  2018 srv
461120 -rw-------    1 root root 472186880 déc.  25  2019 swapfile
     4 drwxr-xr-x    2 root root      4096 avril 24  2018 sys
     4 drwxrwxrwt    7 root root      4096 févr.  5  2020 tmp
     4 drwxr-xr-x   10 root root      4096 juil. 25  2018 usr
     4 drwxr-xr-x   14 root root      4096 juil. 25  2018 var
     0 lrwxrwxrwx    1 root root        30 déc.  25  2019 vmlinuz -> boot/vmlinuz-4.15.0-29-generic
a@a:/media/a/588eff65-b7e4-41dc-83b5-80f5d1933b27$ 

Pourtant, elle n'est pas détectée par OS-PROBER bien que la partition soit montée.

a@a:~$ sudo os-prober
/dev/sda16:Ubuntu 19.10 (19.10):Ubuntu:linux
/dev/sda18:Ubuntu 12.04.5 LTS (12.04):Ubuntu1:linux
/dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
/dev/sda20:Ubuntu 18.04.5 LTS (18.04):Ubuntu2:linux
/dev/sda27:Ubuntu 18.04.3 LTS (18.04):Ubuntu3:linux
/dev/sda5:Ubuntu 16.04.7 LTS (16.04):Ubuntu4:linux
/dev/sda7:Ubuntu 18.04.5 LTS (18.04):Ubuntu5:linux
/dev/sda9:Ubuntu 15.10 (15.10):Ubuntu6:linux

car pas stockée dans une partition ext4....

AJOUT. Assez drôle, le boot-info détecte plus de choses mais pas la structure de boot EFI de windows

================================ 12 OS detected ================================

OS#1:   L'OS actuellement utilisé - Ubuntu 20.04.1 LTS CurrentSession on sda30
OS#2:   Ubuntu 19.10 on sda16
OS#3:   Ubuntu 12.04.5 LTS on sda18
OS#4:   Ubuntu 18.04.5 LTS on sda20
OS#5:   Ubuntu 18.04.3 LTS on sda27
OS#6:   Ubuntu 16.04.7 LTS on sda5
OS#7:   Ubuntu 18.04.5 LTS on sda7
OS#8:   Ubuntu 15.10 on sda9
OS#9:   Windows 8 or 10 on sda4
OS#10:   Windows 8 or 10 on sda14
OS#11:   Windows 8 or 10 on sda23
OS#12:   Ubuntu 18.04.1 LTS on mapper/luks-16f1cc0a-2cc5-4ed6-893d-f233cf283821

Dernière modification par geole (Le 13/08/2020, à 12:06)


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

#28 Le 13/08/2020, à 22:04

Miel13

Re : Dualboot avec 2 ubuntu sur le même SSD

Merci pour vos réponses.

Nouveau boot-info avec la deuxième partition chiffrée montée :

boot-info-4ppa125                                              [20200813_2149]

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

 => No boot loader is installed in the MBR of /dev/sda.

sda1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/BOOT/fbx64.efi /efi/BOOT/mmx64.efi 
                       /efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi 
                       /efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg

sda2: __________________________________________________________________________

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

sda3: __________________________________________________________________________

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

sda4: __________________________________________________________________________

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

sda5: __________________________________________________________________________

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


================================ 2 OS detected =================================

OS#1:   L'OS actuellement utilisé - Ubuntu 20.04.1 LTS CurrentSession on mapper/sda5_crypt
OS#2:   Ubuntu 20.04.1 LTS on mapper/luks-85fe9054-a45f-4018-a4e5-ea0aaa8f1350

============================ Architecture/Host Info ============================

CPU architecture: 64-bit
BOOT_IMAGE of the installed session in use:
/vmlinuz-5.4.0-42-generic root=UUID=d54edc92-fabf-4632-ab87-2ce5dac483dd ro quiet splash vt.handoff=7


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

BIOS is EFI-compatible, and is setup in EFI-mode for this installed-session.
SecureBoot disabled.

efibootmgr -v
BootCurrent: 0006
Timeout: 1 seconds
BootOrder: 0006,0007,0003
Boot0003  UEFI: Built-in EFI Shell 	VenMedia(5023b95c-db26-429b-a648-bd47664c8012)..BO
Boot0006* ubuntu	HD(1,GPT,150be938-eefc-4b8c-8b3d-29cc13b4b0d6,0x800,0x1dc800)/File(\EFI\ubuntu\grubx64.efi)..BO
Boot0007* Hard Drive 	BBS(HD,,0x0)..GO..NO........o.H.i.t.a.c.h.i. .H.T.S.5.4.5.0.3.2.B.9.A.3.0.0....................A...........................>..Gd-.;.A..MQ..L.9.0.6.0.4.2.B.P.C.4.0.0.Y.Q.B.H.Z.P.A.H........BO

bed45d1c9554cea09924d3814cb7c446   sda1/BOOT/fbx64.efi
4487628005555bfd4a4c0a47211e0700   sda1/BOOT/mmx64.efi
1476c8ed1ce8271aab2fbe89d534cfa4   sda1/ubuntu/grubx64.efi
4487628005555bfd4a4c0a47211e0700   sda1/ubuntu/mmx64.efi
f7a57b08bc7c1c85417ae4cea582d1d4   sda1/ubuntu/shimx64.efi
f7a57b08bc7c1c85417ae4cea582d1d4   sda1/BOOT/BOOTX64.efi
bed45d1c9554cea09924d3814cb7c446   sda3/BOOT/fbx64.efi
4487628005555bfd4a4c0a47211e0700   sda3/BOOT/mmx64.efi
1476c8ed1ce8271aab2fbe89d534cfa4   sda3/ubuntu/grubx64.efi
4487628005555bfd4a4c0a47211e0700   sda3/ubuntu/mmx64.efi
f7a57b08bc7c1c85417ae4cea582d1d4   sda3/ubuntu/shimx64.efi
f7a57b08bc7c1c85417ae4cea582d1d4   sda3/BOOT/BOOTX64.efi


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

Disks info: ____________________________________________________________________

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

Partitions info (1/3): _________________________________________________________

mapper/sda5_crypt	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	grubenv-ng,	update-grub,	not-far
sda1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda2	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	grubenv-ok,	noupdategrub,	not-far
sda3	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	grubenv-ng,	noupdategrub,	not-far
mapper/luks-85fe9054-a45f-4018-a4e5-ea0aaa8f1350	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	no-grubenv,	update-grub,	not-far

Partitions info (2/3): _________________________________________________________

mapper/sda5_crypt	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda2	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda3	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
mapper/luks-85fe9054-a45f-4018-a4e5-ea0aaa8f1350	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

mapper/sda5_crypt	: not-sepboot,	with-boot,	fstab-has-goodBOOT,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sda1	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda
sda2	: is-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda
sda3	: is-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda
mapper/luks-85fe9054-a45f-4018-a4e5-ea0aaa8f1350	: not-sepboot,	no-boot,	fstab-has-goodBOOT,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 298.9 GiB, 320072933376 bytes, 625142448 sectors
Disk identifier: 86004AC9-13D8-4655-975A-0BC8D065D45C
         Start      End  Sectors  Size Type
sda1      2048  1953791  1951744  953M EFI System
sda2   1953792  3907583  1953792  954M Linux filesystem
sda3   3907584  5861375  1953792  954M Linux filesystem
sda4   5861376 44922879 39061504 18.6G Linux filesystem
sda5  44922880 83984383 39061504 18.6G Linux filesystem
Disk mapper/sda5_crypt: 18.63 GiB, 19982712832 bytes, 39028736 sectors
Disk mapper/luks-85fe9054-a45f-4018-a4e5-ea0aaa8f1350: 18.63 GiB, 19982712832 bytes, 39028736 sectors

parted -lm (filtered): _________________________________________________________

sda:320GB:scsi:512:512:gpt:ATA Hitachi HTS54503:;
1:1049kB:1000MB:999MB:fat32::boot, esp;
2:1000MB:2001MB:1000MB:ext4::;
3:2001MB:3001MB:1000MB:ext4::;
4:3001MB:23.0GB:20.0GB:::;
5:23.0GB:43.0GB:20.0GB:::;
mapper/luks-85fe9054-a45f-4018-a4e5-ea0aaa8f1350:20.0GB:dm:512:512:loop:Linux device-mapper (crypt):;
1:0.00B:20.0GB:20.0GB:ext4::;
mapper/sda5_crypt:20.0GB:dm:512:512:loop:Linux device-mapper (crypt):;
1:0.00B:20.0GB:20.0GB:ext4::;

blkid (filtered): ______________________________________________________________

NAME                                          FSTYPE      UUID                                 PARTUUID                             LABEL PARTLABEL
sda                                                                                                                                       
├─sda1                                        vfat        F3F9-8A60                            150be938-eefc-4b8c-8b3d-29cc13b4b0d6       
├─sda2                                        ext4        57f07c64-6630-4f97-bec2-4343b3a08926 acf8b6e0-2327-4a72-b45e-436ce74d2807       
├─sda3                                        ext4        32b8009f-11f3-407d-a45d-b17360b62f6f ac090bbf-837c-4602-9e0f-b07d3338e47f       
├─sda4                                        crypto_LUKS 85fe9054-a45f-4018-a4e5-ea0aaa8f1350 39f35981-0e02-4e33-abd8-112eb4cd6582       
│ └─luks-85fe9054-a45f-4018-a4e5-ea0aaa8f1350 ext4        01dc8113-4b79-4eca-9fb3-0f38cad68ae5                                            
└─sda5                                        crypto_LUKS b3c1e612-98f9-41e5-b517-7d8c99754db3 0f562410-882b-4dca-a000-1593992007c4       
  └─sda5_crypt                                ext4        d54edc92-fabf-4632-ab87-2ce5dac483dd                                            

df (filtered): _________________________________________________________________

                                                  Avail Use% Mounted on
mapper/luks-85fe9054-a45f-4018-a4e5-ea0aaa8f1350  12.3G  27% /mnt/boot-sav/mapper/luks-85fe9054-a45f-4018-a4e5-ea0aaa8f1350
mapper/sda5_crypt                                 12.1G  28% /
sda2                                             756.1M  11% /mnt/boot-sav/sda2
sda3                                             756.1M  11% /boot

Mount options: __________________________________________________________________

mapper/luks-85fe9054-a45f-4018-a4e5-ea0aaa8f1350 rw,relatime
mapper/sda5_crypt                                rw,relatime,errors=remount-ro
sda2                                             rw,relatime
sda3                                             rw,relatime

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

/dev/mapper:
control
luks-85fe9054-a45f-4018-a4e5-ea0aaa8f1350
sda5_crypt

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

search.fs_uuid 32b8009f-11f3-407d-a45d-b17360b62f6f root hd0,gpt3 
set prefix=($root)'/grub'
configfile $prefix/grub.cfg

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

Ubuntu   01dc8113-4b79-4eca-9fb3-0f38cad68ae5
Ubuntu, avec Linux 5.4.0-42-generic   01dc8113-4b79-4eca-9fb3-0f38cad68ae5
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

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

           GiB - GB             File                                 Fragment(s)
   1,159061432 = 1,244532736    grub/grub.cfg                                  2
   1,080074310 = 1,159720960    vmlinuz                                        2
   1,080074310 = 1,159720960    vmlinuz-5.4.0-42-generic                       2
   1,345699310 = 1,444933632    initrd.img                                     3
   1,345699310 = 1,444933632    initrd.img-5.4.0-42-generic                    3
   1,345699310 = 1,444933632    initrd.img.old                                 3

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

Ubuntu   d54edc92-fabf-4632-ab87-2ce5dac483dd
Ubuntu, avec Linux 5.4.0-42-generic   d54edc92-fabf-4632-ab87-2ce5dac483dd
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

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

           GiB - GB             File                                 Fragment(s)
   2,091506958 = 2,245738496    grub/grub.cfg                                  2
   2,011714935 = 2,160062464    vmlinuz                                        2
   2,011714935 = 2,160062464    vmlinuz-5.4.0-42-generic                       2
   2,277339935 = 2,445275136    initrd.img                                     3
   2,277339935 = 2,445275136    initrd.img-5.4.0-42-generic                    3
   2,277339935 = 2,445275136    initrd.img.old                                 3


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

Unknown BootLoader on sda4

00000000  4c 55 4b 53 ba be 00 02  00 00 00 00 00 00 40 00  |LUKS..........@.|
00000010  00 00 00 00 00 00 00 03  00 00 00 00 00 00 00 00  |................|
00000020  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000040  00 00 00 00 00 00 00 00  73 68 61 32 35 36 00 00  |........sha256..|
00000050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000060  00 00 00 00 00 00 00 00  da e1 fd 8c 34 ac 1c aa  |............4...|
00000070  2a 03 83 7d 20 11 92 87  50 06 66 aa 74 b4 8f 00  |*..} ...P.f.t...|
00000080  a0 da 01 43 ba 66 00 0c  90 81 a5 c7 f6 58 f7 69  |...C.f.......X.i|
00000090  bc b4 3a f6 9e 38 6f 8e  43 c5 80 e1 6d 4f f0 b7  |..:..8o.C...mO..|
000000a0  04 04 6c 41 71 c0 43 e0  38 35 66 65 39 30 35 34  |..lAq.C.85fe9054|
000000b0  2d 61 34 35 66 2d 34 30  31 38 2d 61 34 65 35 2d  |-a45f-4018-a4e5-|
000000c0  65 61 30 61 61 61 38 66  31 33 35 30 00 00 00 00  |ea0aaa8f1350....|
000000d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001c0  60 0c a5 27 d4 0c 55 16  c1 f6 13 b4 1b 7d 9a 80  |`..'..U......}..|
000001d0  5b 28 29 7d de 55 46 fd  ad 8f 03 2f cd 65 de 63  |[()}.UF..../.e.c|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000200

Unknown BootLoader on sda5

00000000  4c 55 4b 53 ba be 00 02  00 00 00 00 00 00 40 00  |LUKS..........@.|
00000010  00 00 00 00 00 00 00 03  00 00 00 00 00 00 00 00  |................|
00000020  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000040  00 00 00 00 00 00 00 00  73 68 61 32 35 36 00 00  |........sha256..|
00000050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000060  00 00 00 00 00 00 00 00  cd c0 1c 22 7c 2e 13 07  |..........."|...|
00000070  c8 38 4b 65 6d 87 aa 90  41 50 e7 6a ff b4 97 56  |.8Kem...AP.j...V|
00000080  ba d1 86 9f 20 ff 95 58  86 d7 57 48 0b a6 9a 63  |.... ..X..WH...c|
00000090  62 92 cb d2 c2 bf c2 8d  16 cc 99 ec e3 0f 47 4d  |b.............GM|
000000a0  bd 43 5e e8 92 eb f6 ee  62 33 63 31 65 36 31 32  |.C^.....b3c1e612|
000000b0  2d 39 38 66 39 2d 34 31  65 35 2d 62 35 31 37 2d  |-98f9-41e5-b517-|
000000c0  37 64 38 63 39 39 37 35  34 64 62 33 00 00 00 00  |7d8c99754db3....|
000000d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001c0  ef 14 c6 39 4d 09 8f 98  e6 cf ed 9c 87 86 ca 70  |...9M..........p|
000001d0  d0 48 5e 4a ad c9 b9 c2  c0 4d 13 e0 a2 56 0c 82  |.H^J.....M...V..|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000200


================================= User choice ==================================

Is there RAID on this computer? no

Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would purge (in order to sign-grub) and reinstall the grub-efi-amd64-signed of
mapper/sda5_crypt,
using the following options:        sda3/boot, sda1/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s  use-standard-efi-file    

Confirmation request before suggested repair: __________________________________

You may want to retry after mounting your encrypted partitions so that the tool can verify their contents. (https://help.ubuntu.com/community/EncryptedPrivateDirectory)
Are you sure you want to continue anyway?

Final advice in case of suggested repair: ______________________________________


Please do not forget to make your UEFI firmware boot on the L'OS actuellement utilisé - Ubuntu 20.04.1 LTS CurrentSession entry (sda1/efi/****/shim****.efi (**** will be updated in the final message) file) !

/etc/fstab sur la partition qui démarre :

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/sda5_crypt /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda3 during installation
UUID=32b8009f-11f3-407d-a45d-b17360b62f6f /boot           ext4    defaults        0       2
# /boot/efi was on /dev/sda1 during installation
UUID=F3F9-8A60  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

gub.cfg sur la partition qui démarre :

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${initrdfail}" = 2 ]; then
   set initrdfail=
elif [ "${initrdfail}" = 1 ]; then
   set next_entry="${prev_entry}"
   set prev_entry=
   save_env prev_entry
   if [ "${next_entry}" ]; then
      set initrdfail=2
   fi
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function initrdfail {
    if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
      if [ -z "${initrdfail}" ]; then
        set initrdfail=1
        if [ -n "${boot_once}" ]; then
          set prev_entry="${default}"
          save_env prev_entry
        fi
      fi
      save_env initrdfail
    fi; fi
}
function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod ext2
set root='hd0'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0 --hint-efi=hd0 --hint-baremetal=ahci0  d54edc92-fabf-4632-ab87-2ce5dac483dd
else
  search --no-floppy --fs-uuid --set=root d54edc92-fabf-4632-ab87-2ce5dac483dd
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=fr_FR
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=hidden
    set timeout=0
  # Fallback hidden-timeout code in case the timeout_style feature is
  # unavailable.
  elif sleep --interruptible 0 ; then
    set timeout=0
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
	if [ "${1}" = "keep" ]; then
		set vt_handoff=vt.handoff=7
	else
		set vt_handoff=
	fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-d54edc92-fabf-4632-ab87-2ce5dac483dd' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  32b8009f-11f3-407d-a45d-b17360b62f6f
	else
	  search --no-floppy --fs-uuid --set=root 32b8009f-11f3-407d-a45d-b17360b62f6f
	fi
	linux	/vmlinuz-5.4.0-42-generic root=UUID=d54edc92-fabf-4632-ab87-2ce5dac483dd ro  quiet splash $vt_handoff
	initrd	/initrd.img-5.4.0-42-generic
}
submenu 'Options avancées pour Ubuntu' $menuentry_id_option 'gnulinux-advanced-d54edc92-fabf-4632-ab87-2ce5dac483dd' {
	menuentry 'Ubuntu, avec Linux 5.4.0-42-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-42-generic-advanced-d54edc92-fabf-4632-ab87-2ce5dac483dd' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  32b8009f-11f3-407d-a45d-b17360b62f6f
		else
		  search --no-floppy --fs-uuid --set=root 32b8009f-11f3-407d-a45d-b17360b62f6f
		fi
		echo	'Chargement de Linux 5.4.0-42-generic…'
		linux	/vmlinuz-5.4.0-42-generic root=UUID=d54edc92-fabf-4632-ab87-2ce5dac483dd ro  quiet splash $vt_handoff
		echo	'Chargement du disque mémoire initial…'
		initrd	/initrd.img-5.4.0-42-generic
	}
	menuentry 'Ubuntu, avec Linux 5.4.0-42-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-42-generic-recovery-d54edc92-fabf-4632-ab87-2ce5dac483dd' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  32b8009f-11f3-407d-a45d-b17360b62f6f
		else
		  search --no-floppy --fs-uuid --set=root 32b8009f-11f3-407d-a45d-b17360b62f6f
		fi
		echo	'Chargement de Linux 5.4.0-42-generic…'
		linux	/vmlinuz-5.4.0-42-generic root=UUID=d54edc92-fabf-4632-ab87-2ce5dac483dd ro recovery nomodeset 
		echo	'Chargement du disque mémoire initial…'
		initrd	/initrd.img-5.4.0-42-generic
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_linux_zfs ###
### END /etc/grub.d/10_linux_zfs ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
	fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

Je vais faire ton test geole.

Hors ligne

#29 Le 13/08/2020, à 22:15

geole

Re : Dualboot avec 2 ubuntu sur le même SSD

Bonsoir.
Je retiens du boot-info

================================ 2 OS detected =================================
OS#1:   L'OS actuellement utilisé - Ubuntu 20.04.1 LTS CurrentSession on mapper/sda5_crypt
OS#2:   Ubuntu 20.04.1 LTS on mapper/luks-85fe9054-a45f-4018-a4e5-ea0aaa8f1350

Donc attendons le retour de la commande

sudo os-prober

Dernière modification par geole (Le 13/08/2020, à 22:16)


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

#30 Le 13/08/2020, à 22:29

Miel13

Re : Dualboot avec 2 ubuntu sur le même SSD

sudo os-prober

Rien du tout..

Je suis peut-être naïf mais il ne suffit pas simplement de modifier manuellement le grub.cfg de la partition qui démarre et de rajouter un bloque comme ça (modifié en gras) :
Je suis sur un DD de test donc pas grave si ça ne fonctionne plus..

menuentry 'Ubuntu2' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-01dc8113-4b79-4eca-9fb3-0f38cad68ae5' {
    recordfail
    load_video
    gfxmode $linux_gfx_mode
    insmod gzio
    if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
    insmod part_gpt
    insmod ext2
    set root='hd0,gpt3'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  57f07c64-6630-4f97-bec2-4343b3a08926
    else
      search --no-floppy --fs-uuid --set=root 57f07c64-6630-4f97-bec2-4343b3a08926
    fi
    linux    /vmlinuz-5.4.0-42-generic root=UUID=01dc8113-4b79-4eca-9fb3-0f38cad68ae5 ro  quiet splash $vt_handoff
    initrd    /initrd.img-5.4.0-42-generic
}

Edit: Ouais enfin même si c'était possible, j'aurai un problème avec les M.A.J je pense...

Dernière modification par Miel13 (Le 13/08/2020, à 22:35)

Hors ligne

#31 Le 13/08/2020, à 22:38

geole

Re : Dualboot avec 2 ubuntu sur le même SSD

Bonsoir.
Tu peux effectivement ajouter manuellement la sequence dans le fichier
/etc/grub.d/40_custom  ( je dis de mémoire ) puis prise en compte par

sudo update-grub

Nota. je j'ai pas vérifié toutes les lignes que tu indiques.

Edit: Pour éviter le problème du suivi des mises à jour, pense à refind!!!!

Dernière modification par geole (Le 13/08/2020, à 22:41)


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

#32 Le 13/08/2020, à 23:02

Miel13

Re : Dualboot avec 2 ubuntu sur le même SSD

geole a écrit :

Bonsoir.
Tu peux effectivement ajouter manuellement la sequence dans le fichier
/etc/grub.d/40_custom  ( je dis de mémoire ) puis prise en compte par

sudo update-grub

Nota. je j'ai pas vérifié toutes les lignes que tu indiques.

Edit: Pour éviter le problème du suivi des mises à jour, pense à refind!!!!

Effectivement ça fonctionne avec le menu ajouté manuellement big_smile
C'est dommage que tout ne fonctionne pas automatiquement..
Et puis oui, il risque d'avoir un problème avec les updates à cause du numéro de version dans le menu...

Je crois que je vais finir par regarder cette histoire de refind lol

Merci

Hors ligne

#33 Le 14/08/2020, à 08:43

Babdu89

Re : Dualboot avec 2 ubuntu sur le même SSD

Bonjour.

Le modifications de fichiers de configurations de grub, lorsque l'on ne passe pas par une modification manuelle du grub.cfg. Tiennent de maj de grub en maj.

Une réinstallation de grub avec purge de ce dernier, remet tous les fichiers de configuration par défaut, donc on perd les modifs.
Un changement de version majeur; actuellement V 2.O vers V 3.0. à le même effet, sauf que pendant la mise à jour majeur, il est demandé de garder ou non les modifications des fichiers que l'on a modifié, j'ai pu le constater.

@+.   Babdu89   .

Dernière modification par Babdu89 (Le 14/08/2020, à 08:44)


J'ai découvert Ubuntu avec la 07.10.... Et alors?!...  Depuis je regarde de temps en temps si Windows marche toujours....

Hors ligne