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 27/02/2023, à 17:08

Alain 86400

[Résolu] Démarrage du bon Ubuntu

Bonjour,
Dès l'allumage de mon ordi, j'ai le message suivant que j'ai scanné avec Zupimages. Voici le lien:
https://zupimages.net/viewer.php?id=23/06/qmy6.jpg
Si on laisse faire le démarrage sur la 1ère position, la session s'ouvre sur l'Ubuntu de l'install (vide) dans une petite partition.
Si je vais sur la 3ème position tout est Ok.
Que dois-je faire pour automatiser cette position?
Merci de votre aide,
Alain

Dernière modification par Alain 86400 (Le 10/03/2023, à 11:58)

Hors ligne

#2 Le 27/02/2023, à 17:42

geole

Re : [Résolu] Démarrage du bon Ubuntu

Bonjour
Il faut dire que cela démarre sur la ligne N° 2 au lieu de la ligne  N° 0 Voir paragraphe 2.3

sudo sed -i 's/GRUB_DEFAULT=0/GRUB_DEFAULT=2/' /etc/default/grub

puis informer

sudo update-grub

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 27/02/2023, à 17:49

ar barzh paour

Re : [Résolu] Démarrage du bon Ubuntu

en EFI je ne sais pas

si ce n'est pas en EFI
une façon de faire :
modifier le fichier /etc/default/grub
de façon à avoir

GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true

ces valeurs permettent  de lancer le dernier choix

donc le choix sera à faire une fois

il faut faire suivre d'une mise à jour de grub

sudo update-grub

je viens de voir que geole t'a donné une autre façon de faire , j'aime moins utiliser le N° de ligne qui peut changer
la référence est la même
(et c'est l'un ou l'autre : ou par la ligne ou par saved)
une autre remarque , c'est le grub de lancement qu'il faut modifier !!
je dis ça parce que je ne saisis pas bien le "Ubuntu vide"
c'est très important , il y a le risque suivant  : une mise à jour de Ubuntu 22.04 pourrait de pas être pris en compte dans le grub de lancement

Dernière modification par ar barzh paour (Le 27/02/2023, à 18:15)


PC          : B760M DS3H DDR4,  12th Gen Intel(R) Core(TM) i3-12100, RAM DDR4 8GiB -2400 Ubuntu 22.04, 22.04, 23.04
Portable1 : Intel(R) Core(TM)2 Duo CPU     T6570  @ 2.10GHz RAM 4GiB DDR2 667 MHz Ubuntu 23.04 ( en voyage )
Portable2 : T5750  @ 2.00GHz RAM 1GiB DDR2 667 Mhz Ubuntu 20.04 ( batterie HS )
stourm a ran war bep tachenn (Angela Duval) ( Je combats sur tous les fronts )

Hors ligne

#4 Le 27/02/2023, à 18:42

Alain 86400

Re : [Résolu] Démarrage du bon Ubuntu

Si j’essaie la première solution j'obtiens:

alain@alain-desktop:~$ sudo sed -i 's/GRUB_DEFAULT=0/GRUB_DEFAULT=2/' /etc/default/grub
[sudo] Mot de passe de alain : 
alain@alain-desktop:~$ sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-60-generic
Found initrd image: /boot/initrd.img-5.15.0-60-generic
Found linux image: /boot/vmlinuz-5.15.0-58-generic
Found initrd image: /boot/initrd.img-5.15.0-58-generic
Found linux image: /boot/vmlinuz-3.13.0-92-generic
Found initrd image: /boot/initrd.img-3.13.0-92-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
alain@alain-desktop:~$ 

Et çà ne marche pas: au démarrage l'invite est toujours sur la première ligne!

Hors ligne

#5 Le 27/02/2023, à 18:56

ar barzh paour

Re : [Résolu] Démarrage du bon Ubuntu

c'est bien ce que je pensais , tu as modifié le grub de ubuntu 22.04 et non le grub de lancement
[EDIT] du 28/02/2023
en fait j'aurais du dire : tu n'as pas modifié le grub de lancement !!!!
[/EDIT]
à quoi te sert ton Ubuntu vide ?

Dernière modification par ar barzh paour (Le 28/02/2023, à 17:19)


PC          : B760M DS3H DDR4,  12th Gen Intel(R) Core(TM) i3-12100, RAM DDR4 8GiB -2400 Ubuntu 22.04, 22.04, 23.04
Portable1 : Intel(R) Core(TM)2 Duo CPU     T6570  @ 2.10GHz RAM 4GiB DDR2 667 MHz Ubuntu 23.04 ( en voyage )
Portable2 : T5750  @ 2.00GHz RAM 1GiB DDR2 667 Mhz Ubuntu 20.04 ( batterie HS )
stourm a ran war bep tachenn (Angela Duval) ( Je combats sur tous les fronts )

Hors ligne

#6 Le 27/02/2023, à 22:52

Alain 86400

Re : [Résolu] Démarrage du bon Ubuntu

A rien! Il s'est installé sur la partition 6 lorsqu'on a lancé le DVD d'instal.
Ci-joint une photo des partitions du disque dur:

https://zupimages.net/viewer.php?id=23/09/0mcb.jpg

Hors ligne

#7 Le 28/02/2023, à 00:42

geole

Re : [Résolu] Démarrage du bon Ubuntu

Peux-tu faire un boot-info depuuis le ubuntu installé et poster l'URL qui sera générée


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

#8 Le 28/02/2023, à 10:38

Alain 86400

Re : [Résolu] Démarrage du bon Ubuntu

Voici le boot-info:

https://paste.ubuntu.com/p/G4BmhchCrd/

Hors ligne

#9 Le 28/02/2023, à 10:45

xubu1957

Re : [Résolu] Démarrage du bon Ubuntu

Bonjour,

Collage du Boot-info :

boot-info-4ppa2056                                              [20230228_0935]

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

 => libparted MBR boot code is installed in the MBR of /dev/sda.
 => Grub2 (v2.00) is installed in the MBR of /dev/sdb and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for (,msdos1)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk
    ---------------------------------------------------------------------------

sda1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 22.04.1 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img

sda2: __________________________________________________________________________

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

sda5: __________________________________________________________________________

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

sda6: __________________________________________________________________________

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

sda3: __________________________________________________________________________

    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

sdb1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 22.04.2 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img

sdb2: __________________________________________________________________________

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

sdb5: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 


================================ 3 OS detected =================================

OS#1:   Ubuntu 22.04.1 LTS on sda1
OS#2:   Ubuntu 22.04.1 LTS on sda6
OS#3:   Ubuntu 22.04.2 LTS on sdb1

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

CPU architecture: 64-bit
Video: 4th Generation Core Processor Family Integrated Graphics Controller from Intel Corporation
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.15.0-58-generic root=UUID=774e87f5-2dec-4ccc-bb35-4196100addb9 ro quiet splash
df -Th / : /dev/sdb1        ext4   455G    129G  304G  30% /

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

BIOS/UEFI firmware: P1.60(4.6) from American Megatrends Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this installed-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0006
Timeout: 1 seconds
BootOrder: 0006,0001,0005,0003
Boot0001* Hard Drive 	BBS(HD,,0x0)..GO..NO........o.S.P.C.C. .S.o.l.i.d. .S.t.a.t.e. .D.i.s.k....................A...........................>..Gd-.;.A..MQ..L.0.3.8.0.8.0.3.4.7.9. .4. . . . . . . . ........BO..NO........o.S.T.5.0.0.D.M.0.0.2.-.1.B.D.1.4.2....................A...........................>..Gd-.;.A..MQ..L. . . . . . . . . . . . .3.W.B.T.B.V.H.R........BO
Boot0003* CD/DVD Drive 	BBS(CDROM,,0x0)..GO..NO........o.A.T.A.P.I. . . .i.H.A.S.1.2.4. . . .E....................A...........................>..Gd-.;.A..MQ..L.5.3.4.2.0.7. .3.B.2.4.8.7.3.0.5.8.1.4.2........BO
Boot0005* Network Card 	BBS(Network,,0x0)..GO..NO........k.R.e.a.l.t.e.k. .P.X.E. .B.0.3. .D.0.0.........................rN.D+..,.\...........<..Gd-.;.A..MQ..L.R.e.a.l.t.e.k. .P.X.E. .B.0.3. .D.0.0........BO
Boot0006* ubuntu	HD(4,MBR,0xc7ada,0x3b8e0800,0x100800)/File(\EFI\ubuntu\grubx64.efi)..BO

c152ec201c37b6e97bbc2207e49d1271   sda3/BOOT/fbx64.efi
fdafb5eece6caeccb788c946a28e6872   sda3/BOOT/mmx64.efi
3f347c1ffd7bf309741eb7cfbdff2ab6   sda3/ubuntu/grubx64.efi
fdafb5eece6caeccb788c946a28e6872   sda3/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95   sda3/ubuntu/shimx64.efi
728124f6ec8e22fbdbe7034812c81b95   sda3/BOOT/BOOTX64.efi

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

Disks info: ____________________________________________________________________

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

Partitions info (1/3): _________________________________________________________

sdb1	: is-os,	64, apt-get,	grub-pc ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios
sda3	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda1	: is-os,	64, apt-get,	grub-pc ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios
sda6	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios
sda5	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios

Partitions info (2/3): _________________________________________________________

sdb1	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda3	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda1	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda6	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda5	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sdb1	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sdb
sda3	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda1	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sda6	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sda5	: maybesepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk identifier: 0x000c7ada
      Boot     Start        End   Sectors   Size Id Type
sda1  *         2048  969093119 969091072 462.1G 83 Linux
sda2       969095166  999163903  30068738  14.3G  5 Extended
sda3       999163904 1000214527   1050624   513M ef EFI (FAT-12/16/32)
sda5       969095168  976771071   7675904   3.7G 82 Linux swap / Solaris
sda6       976773120  999163903  22390784  10.7G 83 Linux
Partition table entries are not in disk order.
Disk sdb: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: 0x000c7ada
      Boot     Start       End   Sectors   Size Id Type
sdb1            2048 969093119 969091072 462.1G 83 Linux
sdb2       969095166 976771071   7675906   3.7G  5 Extended
sdb5       969095168 976771071   7675904   3.7G 82 Linux swap / Solaris

parted -lm (filtered): _________________________________________________________

sda:512GB:scsi:512:512:msdos:ATA SPCC Solid State:;
1:1049kB:496GB:496GB:ext4::boot;
2:496GB:512GB:15.4GB:::;
5:496GB:500GB:3930MB:::;
6:500GB:512GB:11.5GB:ext4::;
3:512GB:512GB:538MB:fat32::esp;
sdb:500GB:scsi:512:4096:msdos:ATA ST500DM002-1BD14:;
1:1049kB:496GB:496GB:ext4::;
2:496GB:500GB:3930MB:::;
5:496GB:500GB:3930MB:linux-swap(v1)::;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL PARTLABEL
sda                                                                                             
├─sda1 ext4     774e87f5-2dec-4ccc-bb35-4196100addb9 000c7ada-01                                
├─sda2                                               000c7ada-02                                
├─sda3 vfat     E240-B613                            000c7ada-03                                
├─sda5                                               000c7ada-05                                
└─sda6 ext4     69770f4f-63f7-4e58-955f-dff1d0d46e3d 000c7ada-06                                
sdb                                                                                             
├─sdb1 ext4     774e87f5-2dec-4ccc-bb35-4196100addb9 000c7ada-01                                
├─sdb2                                               000c7ada-02                                
└─sdb5 swap     bbc4d063-27b5-4a8d-9596-df442c944ff2 000c7ada-05                                

Mount points (filtered): _______________________________________________________

                                 Avail Use% Mounted on
/dev/sda1                         306G  28% /mnt/boot-sav/sda1
/dev/sda3                       505.9M   1% /mnt/boot-sav/sda3
/dev/sda6                      1002.3M  85% /mnt/boot-sav/sda6
/dev/sdb1                       303.2G  28% /

Mount options (filtered): ______________________________________________________


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

Ubuntu   774e87f5-2dec-4ccc-bb35-4196100addb9
Ubuntu, with Linux 5.15.0-60-generic   774e87f5-2dec-4ccc-bb35-4196100addb9
Ubuntu, with Linux 5.15.0-58-generic   774e87f5-2dec-4ccc-bb35-4196100addb9
Ubuntu, with Linux 3.13.0-92-generic   774e87f5-2dec-4ccc-bb35-4196100addb9
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

========================== sda1/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=774e87f5-2dec-4ccc-bb35-4196100addb9 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=bbc4d063-27b5-4a8d-9596-df442c944ff2 none            swap    sw              0       0

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

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

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

           GiB - GB             File                                 Fragment(s)
  37.246044159 = 39.992635392   boot/grub/grub.cfg                             1
   0.155025482 = 0.166457344    boot/grub/i386-pc/core.img                     1
  50.605484009 = 54.337224704   boot/vmlinuz                                   2
  43.404846191 = 46.605598720   boot/vmlinuz-3.13.0-92-generic                 1
 445.144546509 = 477.970317312  boot/vmlinuz-5.15.0-58-generic                 1
  50.605484009 = 54.337224704   boot/vmlinuz-5.15.0-60-generic                 2
 445.144546509 = 477.970317312  boot/vmlinuz.old                               1
 247.868160248 = 266.146410496  boot/initrd.img                                7
 246.360347748 = 264.527409152  boot/initrd.img-3.13.0-92-generic              5
  50.575691223 = 54.305234944   boot/initrd.img-5.15.0-58-generic              8
 247.868160248 = 266.146410496  boot/initrd.img-5.15.0-60-generic              7
  50.575691223 = 54.305234944   boot/initrd.img.old                            8

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

-rwxr-xr-x 1 root root 18683 Apr 15  2022 10_linux
-rwxr-xr-x 1 root root 43031 Apr 15  2022 10_linux_zfs
-rwxr-xr-x 1 root root 14180 Apr 15  2022 20_linux_xen
-rwxr-xr-x 1 root root 13369 Apr 15  2022 30_os-prober
-rwxr-xr-x 1 root root  1372 Apr 15  2022 30_uefi-firmware
-rwxr-xr-x 1 root root   700 Feb 21  2022 35_fwupd
-rwxr-xr-x 1 root root   214 May 15  2014 40_custom
-rwxr-xr-x 1 root root   215 Apr 15  2022 41_custom

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

Ubuntu   69770f4f-63f7-4e58-955f-dff1d0d46e3d
Ubuntu, with Linux 5.15.0-60-generic   69770f4f-63f7-4e58-955f-dff1d0d46e3d
Ubuntu, with Linux 5.15.0-43-generic   69770f4f-63f7-4e58-955f-dff1d0d46e3d
Ubuntu 22.04.1 LTS (22.04) (on sda1)   774e87f5-2dec-4ccc-bb35-4196100addb9
Ubuntu (on sda1)   774e87f5-2dec-4ccc-bb35-4196100addb9
Ubuntu, with Linux 5.15.0-58-generic (on sda1)   774e87f5-2dec-4ccc-bb35-4196100addb9
Ubuntu, with Linux 5.15.0-57-generic (on sda1)   774e87f5-2dec-4ccc-bb35-4196100addb9
Ubuntu, with Linux 3.13.0-92-generic (on sda1)   774e87f5-2dec-4ccc-bb35-4196100addb9
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sda6/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda6 during installation
UUID=69770f4f-63f7-4e58-955f-dff1d0d46e3d /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda3 during installation
UUID=E240-B613  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

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

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

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

           GiB - GB             File                                 Fragment(s)
 467.557357788 = 502.035890176  boot/grub/grub.cfg                             1
 472.863277435 = 507.733078016  boot/vmlinuz                                   2
 470.959545135 = 505.688961024  boot/vmlinuz-5.15.0-43-generic                 1
 472.863277435 = 507.733078016  boot/vmlinuz-5.15.0-60-generic                 2
 470.959545135 = 505.688961024  boot/vmlinuz.old                               1
 476.267086029 = 511.387889664  boot/initrd.img                               76
 474.597652435 = 509.595348992  boot/initrd.img-5.15.0-43-generic              6
 476.267086029 = 511.387889664  boot/initrd.img-5.15.0-60-generic             76
 474.597652435 = 509.595348992  boot/initrd.img.old                            6

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

-rwxr-xr-x 1 root root 18683 Apr 15  2022 10_linux
-rwxr-xr-x 1 root root 43031 Apr 15  2022 10_linux_zfs
-rwxr-xr-x 1 root root 14180 Apr 15  2022 20_linux_xen
-rwxr-xr-x 1 root root 13369 Apr 15  2022 30_os-prober
-rwxr-xr-x 1 root root  1372 Apr 15  2022 30_uefi-firmware
-rwxr-xr-x 1 root root   700 Feb 19  2022 35_fwupd
-rwxr-xr-x 1 root root   214 Apr 15  2022 40_custom
-rwxr-xr-x 1 root root   215 Apr 15  2022 41_custom

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

search.fs_uuid 69770f4f-63f7-4e58-955f-dff1d0d46e3d root hd0,msdos6 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

Ubuntu   774e87f5-2dec-4ccc-bb35-4196100addb9
Ubuntu, with Linux 5.15.0-60-generic   774e87f5-2dec-4ccc-bb35-4196100addb9
Ubuntu, with Linux 5.15.0-58-generic   774e87f5-2dec-4ccc-bb35-4196100addb9
Ubuntu, with Linux 3.13.0-92-generic   774e87f5-2dec-4ccc-bb35-4196100addb9
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

========================== sdb1/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=774e87f5-2dec-4ccc-bb35-4196100addb9 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=bbc4d063-27b5-4a8d-9596-df442c944ff2 none            swap    sw              0       0

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

GRUB_DEFAULT=2
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_GFXPAYLOAD_LINUX=None

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

           GiB - GB             File                                 Fragment(s)
  16.913631439 = 18.160873472   boot/grub/grub.cfg                             1
  28.147575378 = 30.223228928   boot/grub/i386-pc/core.img                     1
   7.972671509 = 8.560590848    boot/vmlinuz                                   1
  43.404846191 = 46.605598720   boot/vmlinuz-3.13.0-92-generic                 1
 445.144546509 = 477.970317312  boot/vmlinuz-5.15.0-58-generic                 1
   7.972671509 = 8.560590848    boot/vmlinuz-5.15.0-60-generic                 1
 445.144546509 = 477.970317312  boot/vmlinuz.old                               1
  25.905582428 = 27.815907328   boot/initrd.img                                2
  77.618534088 = 83.342266368   boot/initrd.img-3.13.0-92-generic              2
  77.481933594 = 83.195592704   boot/initrd.img-5.15.0-58-generic              2
  25.905582428 = 27.815907328   boot/initrd.img-5.15.0-60-generic              2
  77.481933594 = 83.195592704   boot/initrd.img.old                            2

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

-rwxr-xr-x 1 root root 18683 Apr 15  2022 10_linux
-rwxr-xr-x 1 root root 43031 Apr 15  2022 10_linux_zfs
-rwxr-xr-x 1 root root 14180 Apr 15  2022 20_linux_xen
-rwxr-xr-x 1 root root 13369 Apr 15  2022 30_os-prober
-rwxr-xr-x 1 root root  1372 Apr 15  2022 30_uefi-firmware
-rwxr-xr-x 1 root root   700 Feb 21  2022 35_fwupd
-rwxr-xr-x 1 root root   214 May 15  2014 40_custom
-rwxr-xr-x 1 root root   215 Apr 15  2022 41_custom



Suggested repair: ______________________________________________________________

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

Final advice in case of suggested repair: ______________________________________

Please do not forget to make your UEFI firmware boot on the Ubuntu 22.04.2 LTS entry (sda3/efi/****/grub****.efi (**** will be updated in the final message) file) !

Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

En ligne

#10 Le 28/02/2023, à 15:47

ar barzh paour

Re : [Résolu] Démarrage du bon Ubuntu

présence EFI , je passe !
de plus il y a deux disques
sans être sur boot sur sdb part1 ?

Dernière modification par ar barzh paour (Le 28/02/2023, à 17:10)


PC          : B760M DS3H DDR4,  12th Gen Intel(R) Core(TM) i3-12100, RAM DDR4 8GiB -2400 Ubuntu 22.04, 22.04, 23.04
Portable1 : Intel(R) Core(TM)2 Duo CPU     T6570  @ 2.10GHz RAM 4GiB DDR2 667 MHz Ubuntu 23.04 ( en voyage )
Portable2 : T5750  @ 2.00GHz RAM 1GiB DDR2 667 Mhz Ubuntu 20.04 ( batterie HS )
stourm a ran war bep tachenn (Angela Duval) ( Je combats sur tous les fronts )

Hors ligne

#11 Le 28/02/2023, à 16:01

Nasman

Re : [Résolu] Démarrage du bon Ubuntu

Je pense que ton (tes) installations sont compliquées.

Ce que j'en déduit (à confirmer):
- disques sda et sdb avec des tables msdos
- présence d'une partition efi sur sda3
- des systèmes sur sda1 et sda6

- le disque sdb devrait pouvoir booter en legacy (sans doute présence de boot.img dans le mbr) avec sdb1 (et sans doute avec sda1 et sda6).

On va vérifier le début des deux disques avec

sudo dd if=/dev/sda bs=512 count=4 | hexdump -C

et

sudo dd if=/dev/sdb bs=512 count=4 | hexdump -C

Donc (à vérifier) :
- boot mode bios sur sdb
- boot mode uefi sur sda

Dernière modification par Nasman (Le 28/02/2023, à 16:02)


PC fixe sous Bionic 64 bits et portable avec Focal 64 bits

Hors ligne

#12 Le 28/02/2023, à 16:17

Alain 86400

Re : [Résolu] Démarrage du bon Ubuntu

Ci-joint les résultats:

 sudo dd if=/dev/sda bs=512 count=4 | hexdump -C
[sudo] Mot de passe de alain : 
00000000  fa b8 00 10 8e d0 bc 00  b0 b8 00 00 8e d8 8e c0  |................|
00000010  fb be 00 7c bf 00 06 b9  00 02 f3 a4 ea 21 06 00  |...|.........!..|
00000020  00 be be 07 38 04 75 0b  83 c6 10 81 fe fe 07 75  |....8.u........u|
00000030  f3 eb 16 b4 02 b0 01 bb  00 7c b2 80 8a 74 01 8b  |.........|...t..|
00000040  4c 02 cd 13 ea 00 7c 00  00 eb fe 00 00 00 00 00  |L.....|.........|
00000050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001b0  00 00 00 00 00 00 00 00  da 7a 0c 00 00 00 80 20  |.........z..... |
000001c0  21 00 83 fe ff ff 00 08  00 00 00 28 c3 39 00 fe  |!..........(.9..|
000001d0  ff ff 05 fe c2 ff fe 37  c3 39 02 d0 ca 01 00 fe  |.......7.9......|
000001e0  c2 ff ef fe c2 ff 00 08  8e 3b 00 08 10 00 00 00  |.........;......|
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200  52 e8 28 01 74 08 56 be  33 81 e8 4c 01 5e bf f4  |R.(.t.V.3..L.^..|
00000210  81 66 8b 2d 83 7d 08 00  0f 84 e9 00 80 7c ff 00  |.f.-.}.......|..|
00000220  74 46 66 8b 1d 66 8b 4d  04 66 31 c0 b0 7f 39 45  |tFf..f.M.f1...9E|
00000230  08 7f 03 8b 45 08 29 45  08 66 01 05 66 83 55 04  |....E.)E.f..f.U.|
00000240  00 c7 04 10 00 89 44 02  66 89 5c 08 66 89 4c 0c  |......D.f.\.f.L.|
00000250  c7 44 06 00 70 50 c7 44  04 00 00 b4 42 cd 13 0f  |.D..pP.D....B...|
00000260  82 bb 00 bb 00 70 eb 68  66 8b 45 04 66 09 c0 0f  |.....p.hf.E.f...|
00000270  85 a3 00 66 8b 05 66 31  d2 66 f7 34 88 54 0a 66  |...f..f1.f.4.T.f|
00000280  31 d2 66 f7 74 04 88 54  0b 89 44 0c 3b 44 08 0f  |1.f.t..T..D.;D..|
00000290  8d 83 00 8b 04 2a 44 0a  39 45 08 7f 03 8b 45 08  |.....*D.9E....E.|
000002a0  29 45 08 66 01 05 66 83  55 04 00 8a 54 0d c0 e2  |)E.f..f.U...T...|
000002b0  06 8a 4c 0a fe c1 08 d1  8a 6c 0c 5a 52 8a 74 0b  |..L......l.ZR.t.|
000002c0  50 bb 00 70 8e c3 31 db  b4 02 cd 13 72 50 8c c3  |P..p..1.....rP..|
000002d0  8e 45 0a 58 c1 e0 05 01  45 0a 60 1e c1 e0 03 89  |.E.X....E.`.....|
000002e0  c1 31 ff 31 f6 8e db fc  f3 a5 1f e8 3e 00 74 06  |.1.1........>.t.|
000002f0  be 3b 81 e8 63 00 61 83  7d 08 00 0f 85 1d ff 83  |.;..c.a.}.......|
00000300  ef 0c e9 0f ff e8 24 00  74 06 be 3d 81 e8 49 00  |......$.t..=..I.|
00000310  5a ea 00 82 00 00 be 40  81 e8 3d 00 eb 06 be 45  |Z......@..=....E|
00000320  81 e8 35 00 be 4a 81 e8  2f 00 eb fe bb 17 04 f6  |..5..J../.......|
00000330  07 03 c3 6c 6f 61 64 69  6e 67 00 2e 00 0d 0a 00  |...loading......|
00000340  47 65 6f 6d 00 52 65 61  64 00 20 45 72 72 6f 72  |Geom.Read. Error|
00000350  00 bb 01 00 b4 0e cd 10  46 8a 04 3c 00 75 f2 c3  |........F..<.u..|
00000360  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000003f0  00 00 00 00 02 00 00 00  00 00 00 00 67 00 20 08  |............g. .|
00000400  ea 1c 82 00 00 00 00 00  53 59 00 00 fc b1 00 00  |........SY......|
00000410  7d 69 00 00 6f 07 00 00  ff ff ff 00 fa 31 c0 8e  |}i..o........1..|
00000420  d8 8e d0 8e c0 66 bd f0  1f 00 00 66 89 ec fb 88  |.....f.....f....|
00000430  16 1b 82 cd 13 66 e8 97  00 00 00 fc e8 79 06 00  |.....f.......y..|
00000440  00 8b 15 08 82 00 00 81  c2 c1 03 00 00 8b 0d 10  |................|
00000450  82 00 00 8d 05 6f 89 00  00 fc e8 2d 03 00 00 e9  |.....o.....-....|
00000460  66 07 00 00 f0 ff 07 00  eb 16 8d b4 26 00 00 00  |f...........&...|
00000470  00 8d b4 26 00 00 00 00  8d b4 26 00 00 00 00 90  |...&......&.....|
00000480  00 00 00 00 00 00 00 00  ff ff 00 00 00 9a cf 00  |................|
00000490  ff ff 00 00 00 92 cf 00  ff ff 00 00 00 9e 00 00  |................|
000004a0  ff ff 00 00 00 92 00 00  eb 16 8d b4 26 00 00 00  |............&...|
000004b0  00 8d b4 26 00 00 00 00  8d b4 26 00 00 00 00 90  |...&......&.....|
000004c0  27 00 80 82 00 00 00 04  00 00 00 00 00 00 00 00  |'...............|
000004d0  00 00 fa 31 c0 8e d8 66  0f 01 16 c0 82 0f 20 c0  |...1...f...... .|
000004e0  66 83 c8 01 0f 22 c0 66  ea ef 82 00 00 08 00 66  |f....".f.......f|
000004f0  b8 10 00 8e d8 8e c0 8e  e0 8e e8 8e d0 8b 04 24  |...............$|
00000500  a3 f0 1f 00 00 a1 64 82  00 00 89 c4 89 c5 a1 f0  |......d.........|
00000510  1f 00 00 89 04 24 31 c0  0f 01 0d c6 82 00 00 0f  |.....$1.........|
00000520  01 1d cc 82 00 00 c3 0f  01 15 c0 82 00 00 0f 01  |................|
00000530  0d cc 82 00 00 0f 01 1d  c6 82 00 00 89 e0 a3 64  |...............d|
00000540  82 00 00 8b 04 24 a3 f0  1f 00 00 b8 f0 1f 00 00  |.....$..........|
00000550  89 c4 89 c5 66 b8 20 00  8e d8 8e c0 8e e0 8e e8  |....f. .........|
00000560  8e d0 ea 69 83 00 00 18  00 0f 20 c0 66 83 e0 fe  |...i...... .f...|
00000570  0f 22 c0 66 ea 7b 83 00  00 00 00 66 31 c0 8e d8  |.".f.{.....f1...|
00000580  8e c0 8e e0 8e e8 8e d0  fb 66 c3 55 89 e5 57 56  |.........f.U..WV|
00000590  53 89 c6 89 cf 31 db 31  c0 85 d2 78 29 0f b6 0c  |S....1.1...x)...|
000005a0  16 84 c9 74 0e 0f b6 89  00 02 10 00 32 84 0b 00  |...t........2...|
000005b0  00 10 00 01 fb 81 fb fe  00 00 00 7e 06 81 eb ff  |...........~....|
000005c0  00 00 00 4a eb d3 5b 5e  5f 5d c3 84 d2 74 20 84  |...J..[^_]...t .|
000005d0  c0 74 1c 0f b6 c0 0f b6  88 00 02 10 00 0f b6 d2  |.t..............|
000005e0  0f b6 82 00 02 10 00 8a  84 01 00 00 10 00 c3 31  |...............1|
000005f0  c0 c3 55 89 e5 57 56 53  83 ec 3c 89 45 d8 89 55  |..U..WVS..<.E..U|
00000600  e4 89 4d d4 31 c0 3b 45  d8 7d 0e c7 04 85 00 03  |..M.1.;E.}......|
00000610  10 00 ff ff ff ff 40 eb  ed 31 c0 3b 45 e4 7d 0a  |......@..1.;E.}.|
00000620  8b 7d d4 c6 04 07 00 40  eb f1 8b 45 e4 40 89 45  |.}.....@...E.@.E|
00000630  dc 31 c9 c7 45 e0 00 00  00 00 89 45 c4 8b 7d e0  |.1..E......E..}.|
00000640  39 7d d8 0f 8e cb 00 00  00 31 db 39 5d e4 7e 0d  |9}.......1.9].~.|
00000650  80 bc 0b 00 10 10 00 00  75 0d 43 eb ee 75 08 ff  |........u.C..u..|
00000660  45 e0 03 4d dc eb d6 8b  45 e0 89 1c 85 00 03 10  |E..M....E.......|
00000670  00 0f b6 84 0b 00 10 10  00 0f b6 80 00 02 10 00  |................|
00000680  ba ff 00 00 00 29 c2 31  f6 8d b9 00 10 10 00 89  |.....).1........|
00000690  7d d0 0f b6 82 00 00 10  00 89 45 cc 39 75 e4 7c  |}.........E.9u.||
000006a0  1c 89 4d c8 8b 45 d0 8d  3c 30 0f b6 07 8b 55 cc  |..M..E..<0....U.|
000006b0  e8 16 ff ff ff 88 07 46  8b 4d c8 eb df 8b 45 e0  |.......F.M....E.|
000006c0  40 89 45 d0 8b 45 dc 8d  3c 01 8b 55 d0 39 55 d8  |@.E..E..<..U.9U.|
000006d0  74 8d 31 f6 0f b6 84 3b  00 10 10 00 89 45 cc 8d  |t.1....;.....E..|
000006e0  87 00 10 10 00 89 45 c8  39 75 e4 7c 1f 0f b6 84  |......E.9u.|....|
000006f0  0e 00 10 10 00 89 4d c0  8b 55 cc e8 cb fe ff ff  |......M..U......|
00000700  8b 55 c8 30 04 32 46 8b  4d c0 eb dc ff 45 d0 03  |.U.0.2F.M....E..|
00000710  7d c4 eb b6 8b 75 d8 4e  8b 45 e4 f7 d0 89 45 d8  |}....u.N.E....E.|
00000720  8b 5d dc 0f af de 03 5d  e4 85 f6 78 57 8b 04 b5  |.].....]...xW...|
00000730  00 03 10 00 89 45 e0 40  74 44 89 d8 2b 45 e4 89  |.....E.@tD..+E..|
00000740  45 dc 31 ff 31 c9 39 4d  e4 7e 22 8b 45 d4 0f b6  |E.1.1.9M.~".E...|
00000750  14 08 8b 45 dc 0f b6 84  01 00 10 10 00 89 4d d0  |...E..........M.|
00000760  e8 66 fe ff ff 31 c7 8b  4d d0 41 eb d9 89 f8 32  |.f...1..M.A....2|
00000770  83 00 10 10 00 8b 55 d4  8b 7d e0 88 04 3a 4e 03  |......U..}...:N.|
00000780  5d d8 eb a5 83 c4 3c 5b  5e 5f 5d c3 f3 0f 1e fb  |].....<[^_].....|
00000790  55 89 e5 57 56 53 83 ec  4c 89 45 c0 89 4d dc 85  |U..WVS..L.E..M..|
000007a0  c9 0f 84 0b 03 00 00 89  d7 01 d0 89 45 cc 8d 4c  |............E..L|
000007b0  08 ff 89 c8 3b 45 cc 72  08 80 38 00 75 03 48 eb  |....;E.r..8.u.H.|
000007c0  f3 29 c1 bb 02 00 00 00  8b 45 dc 99 f7 fb 39 c1  |.).......E....9.|
000007d0  0f 8f dc 02 00 00 c6 05  00 02 10 00 00 ba 00 00  |................|
000007e0  10 00 b0 01 88 02 88 82  ff 00 00 00 0f b6 c8 88  |................|
000007f0  91 00 02 10 00 84 c0 79  08 8d 04 09 83 f0 1d eb  |.......y........|
4+0 enregistrements lus
4+0 enregistrements écrits
2048 octets (2,0 kB, 2,0 KiB) copiés, 0,00825786 s, 248 kB/s
00000800
alain@alain-desktop:~$ 
sudo dd if=/dev/sdb bs=512 count=4 | hexdump -C
4+0 enregistrements lus
4+0 enregistrements écrits
2048 octets (2,0 kB, 2,0 KiB) copiés, 5,0672e-05 s, 40,4 MB/s
00000000  eb 63 90 10 8e d0 bc 00  b0 b8 00 00 8e d8 8e c0  |.c..............|
00000010  fb be 00 7c bf 00 06 b9  00 02 f3 a4 ea 21 06 00  |...|.........!..|
00000020  00 be be 07 38 04 75 0b  83 c6 10 81 fe fe 07 75  |....8.u........u|
00000030  f3 eb 16 b4 02 b0 01 bb  00 7c b2 80 8a 74 01 8b  |.........|...t..|
00000040  4c 02 cd 13 ea 00 7c 00  00 eb fe 00 00 00 00 00  |L.....|.........|
00000050  00 00 00 00 00 00 00 00  00 00 00 80 01 00 00 00  |................|
00000060  00 00 00 00 ff fa 90 90  f6 c2 80 74 05 f6 c2 70  |...........t...p|
00000070  74 02 b2 80 ea 79 7c 00  00 31 c0 8e d8 8e d0 bc  |t....y|..1......|
00000080  00 20 fb a0 64 7c 3c ff  74 02 88 c2 52 bb 17 04  |. ..d|<.t...R...|
00000090  f6 07 03 74 06 be 88 7d  e8 17 01 be 05 7c b4 41  |...t...}.....|.A|
000000a0  bb aa 55 cd 13 5a 52 72  3d 81 fb 55 aa 75 37 83  |..U..ZRr=..U.u7.|
000000b0  e1 01 74 32 31 c0 89 44  04 40 88 44 ff 89 44 02  |..t21..D.@.D..D.|
000000c0  c7 04 10 00 66 8b 1e 5c  7c 66 89 5c 08 66 8b 1e  |....f..\|f.\.f..|
000000d0  60 7c 66 89 5c 0c c7 44  06 00 70 b4 42 cd 13 72  |`|f.\..D..p.B..r|
000000e0  05 bb 00 70 eb 76 b4 08  cd 13 73 0d 5a 84 d2 0f  |...p.v....s.Z...|
000000f0  83 d0 00 be 93 7d e9 82  00 66 0f b6 c6 88 64 ff  |.....}...f....d.|
00000100  40 66 89 44 04 0f b6 d1  c1 e2 02 88 e8 88 f4 40  |@f.D...........@|
00000110  89 44 08 0f b6 c2 c0 e8  02 66 89 04 66 a1 60 7c  |.D.......f..f.`||
00000120  66 09 c0 75 4e 66 a1 5c  7c 66 31 d2 66 f7 34 88  |f..uNf.\|f1.f.4.|
00000130  d1 31 d2 66 f7 74 04 3b  44 08 7d 37 fe c1 88 c5  |.1.f.t.;D.}7....|
00000140  30 c0 c1 e8 02 08 c1 88  d0 5a 88 c6 bb 00 70 8e  |0........Z....p.|
00000150  c3 31 db b8 01 02 cd 13  72 1e 8c c3 60 1e b9 00  |.1......r...`...|
00000160  01 8e db 31 f6 bf 00 80  8e c6 fc f3 a5 1f 61 ff  |...1..........a.|
00000170  26 5a 7c be 8e 7d eb 03  be 9d 7d e8 34 00 be a2  |&Z|..}....}.4...|
00000180  7d e8 2e 00 cd 18 eb fe  47 52 55 42 20 00 47 65  |}.......GRUB .Ge|
00000190  6f 6d 00 48 61 72 64 20  44 69 73 6b 00 52 65 61  |om.Hard Disk.Rea|
000001a0  64 00 20 45 72 72 6f 72  0d 0a 00 bb 01 00 b4 0e  |d. Error........|
000001b0  cd 10 ac 3c 00 75 f4 c3  da 7a 0c 00 00 00 00 20  |...<.u...z..... |
000001c0  21 00 83 fe ff ff 00 08  00 00 00 28 c3 39 00 fe  |!..........(.9..|
000001d0  ff ff 05 fe ff ff fe 37  c3 39 02 20 75 00 00 00  |.......7.9. u...|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200  52 e8 28 01 74 08 56 be  33 81 e8 4c 01 5e bf f4  |R.(.t.V.3..L.^..|
00000210  81 66 8b 2d 83 7d 08 00  0f 84 e9 00 80 7c ff 00  |.f.-.}.......|..|
00000220  74 46 66 8b 1d 66 8b 4d  04 66 31 c0 b0 7f 39 45  |tFf..f.M.f1...9E|
00000230  08 7f 03 8b 45 08 29 45  08 66 01 05 66 83 55 04  |....E.)E.f..f.U.|
00000240  00 c7 04 10 00 89 44 02  66 89 5c 08 66 89 4c 0c  |......D.f.\.f.L.|
00000250  c7 44 06 00 70 50 c7 44  04 00 00 b4 42 cd 13 0f  |.D..pP.D....B...|
00000260  82 bb 00 bb 00 70 eb 68  66 8b 45 04 66 09 c0 0f  |.....p.hf.E.f...|
00000270  85 a3 00 66 8b 05 66 31  d2 66 f7 34 88 54 0a 66  |...f..f1.f.4.T.f|
00000280  31 d2 66 f7 74 04 88 54  0b 89 44 0c 3b 44 08 0f  |1.f.t..T..D.;D..|
00000290  8d 83 00 8b 04 2a 44 0a  39 45 08 7f 03 8b 45 08  |.....*D.9E....E.|
000002a0  29 45 08 66 01 05 66 83  55 04 00 8a 54 0d c0 e2  |)E.f..f.U...T...|
000002b0  06 8a 4c 0a fe c1 08 d1  8a 6c 0c 5a 52 8a 74 0b  |..L......l.ZR.t.|
000002c0  50 bb 00 70 8e c3 31 db  b4 02 cd 13 72 50 8c c3  |P..p..1.....rP..|
000002d0  8e 45 0a 58 c1 e0 05 01  45 0a 60 1e c1 e0 03 89  |.E.X....E.`.....|
000002e0  c1 31 ff 31 f6 8e db fc  f3 a5 1f e8 3e 00 74 06  |.1.1........>.t.|
000002f0  be 3b 81 e8 63 00 61 83  7d 08 00 0f 85 1d ff 83  |.;..c.a.}.......|
00000300  ef 0c e9 0f ff e8 24 00  74 06 be 3d 81 e8 49 00  |......$.t..=..I.|
00000310  5a ea 00 82 00 00 be 40  81 e8 3d 00 eb 06 be 45  |Z......@..=....E|
00000320  81 e8 35 00 be 4a 81 e8  2f 00 eb fe bb 17 04 f6  |..5..J../.......|
00000330  07 03 c3 6c 6f 61 64 69  6e 67 00 2e 00 0d 0a 00  |...loading......|
00000340  47 65 6f 6d 00 52 65 61  64 00 20 45 72 72 6f 72  |Geom.Read. Error|
00000350  00 bb 01 00 b4 0e cd 10  46 8a 04 3c 00 75 f2 c3  |........F..<.u..|
00000360  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000003f0  00 00 00 00 02 00 00 00  00 00 00 00 67 00 20 08  |............g. .|
00000400  ea 1c 82 00 00 00 00 00  53 59 00 00 fc b1 00 00  |........SY......|
00000410  7d 69 00 00 6f 07 00 00  ff ff ff 00 fa 31 c0 8e  |}i..o........1..|
00000420  d8 8e d0 8e c0 66 bd f0  1f 00 00 66 89 ec fb 88  |.....f.....f....|
00000430  16 1b 82 cd 13 66 e8 97  00 00 00 fc e8 79 06 00  |.....f.......y..|
00000440  00 8b 15 08 82 00 00 81  c2 c1 03 00 00 8b 0d 10  |................|
00000450  82 00 00 8d 05 6f 89 00  00 fc e8 2d 03 00 00 e9  |.....o.....-....|
00000460  66 07 00 00 f0 ff 07 00  eb 16 8d b4 26 00 00 00  |f...........&...|
00000470  00 8d b4 26 00 00 00 00  8d b4 26 00 00 00 00 90  |...&......&.....|
00000480  00 00 00 00 00 00 00 00  ff ff 00 00 00 9a cf 00  |................|
00000490  ff ff 00 00 00 92 cf 00  ff ff 00 00 00 9e 00 00  |................|
000004a0  ff ff 00 00 00 92 00 00  eb 16 8d b4 26 00 00 00  |............&...|
000004b0  00 8d b4 26 00 00 00 00  8d b4 26 00 00 00 00 90  |...&......&.....|
000004c0  27 00 80 82 00 00 00 04  00 00 00 00 00 00 00 00  |'...............|
000004d0  00 00 fa 31 c0 8e d8 66  0f 01 16 c0 82 0f 20 c0  |...1...f...... .|
000004e0  66 83 c8 01 0f 22 c0 66  ea ef 82 00 00 08 00 66  |f....".f.......f|
000004f0  b8 10 00 8e d8 8e c0 8e  e0 8e e8 8e d0 8b 04 24  |...............$|
00000500  a3 f0 1f 00 00 a1 64 82  00 00 89 c4 89 c5 a1 f0  |......d.........|
00000510  1f 00 00 89 04 24 31 c0  0f 01 0d c6 82 00 00 0f  |.....$1.........|
00000520  01 1d cc 82 00 00 c3 0f  01 15 c0 82 00 00 0f 01  |................|
00000530  0d cc 82 00 00 0f 01 1d  c6 82 00 00 89 e0 a3 64  |...............d|
00000540  82 00 00 8b 04 24 a3 f0  1f 00 00 b8 f0 1f 00 00  |.....$..........|
00000550  89 c4 89 c5 66 b8 20 00  8e d8 8e c0 8e e0 8e e8  |....f. .........|
00000560  8e d0 ea 69 83 00 00 18  00 0f 20 c0 66 83 e0 fe  |...i...... .f...|
00000570  0f 22 c0 66 ea 7b 83 00  00 00 00 66 31 c0 8e d8  |.".f.{.....f1...|
00000580  8e c0 8e e0 8e e8 8e d0  fb 66 c3 55 89 e5 57 56  |.........f.U..WV|
00000590  53 89 c6 89 cf 31 db 31  c0 85 d2 78 29 0f b6 0c  |S....1.1...x)...|
000005a0  16 84 c9 74 0e 0f b6 89  00 02 10 00 32 84 0b 00  |...t........2...|
000005b0  00 10 00 01 fb 81 fb fe  00 00 00 7e 06 81 eb ff  |...........~....|
000005c0  00 00 00 4a eb d3 5b 5e  5f 5d c3 84 d2 74 20 84  |...J..[^_]...t .|
000005d0  c0 74 1c 0f b6 c0 0f b6  88 00 02 10 00 0f b6 d2  |.t..............|
000005e0  0f b6 82 00 02 10 00 8a  84 01 00 00 10 00 c3 31  |...............1|
000005f0  c0 c3 55 89 e5 57 56 53  83 ec 3c 89 45 d8 89 55  |..U..WVS..<.E..U|
00000600  e4 89 4d d4 31 c0 3b 45  d8 7d 0e c7 04 85 00 03  |..M.1.;E.}......|
00000610  10 00 ff ff ff ff 40 eb  ed 31 c0 3b 45 e4 7d 0a  |......@..1.;E.}.|
00000620  8b 7d d4 c6 04 07 00 40  eb f1 8b 45 e4 40 89 45  |.}.....@...E.@.E|
00000630  dc 31 c9 c7 45 e0 00 00  00 00 89 45 c4 8b 7d e0  |.1..E......E..}.|
00000640  39 7d d8 0f 8e cb 00 00  00 31 db 39 5d e4 7e 0d  |9}.......1.9].~.|
00000650  80 bc 0b 00 10 10 00 00  75 0d 43 eb ee 75 08 ff  |........u.C..u..|
00000660  45 e0 03 4d dc eb d6 8b  45 e0 89 1c 85 00 03 10  |E..M....E.......|
00000670  00 0f b6 84 0b 00 10 10  00 0f b6 80 00 02 10 00  |................|
00000680  ba ff 00 00 00 29 c2 31  f6 8d b9 00 10 10 00 89  |.....).1........|
00000690  7d d0 0f b6 82 00 00 10  00 89 45 cc 39 75 e4 7c  |}.........E.9u.||
000006a0  1c 89 4d c8 8b 45 d0 8d  3c 30 0f b6 07 8b 55 cc  |..M..E..<0....U.|
000006b0  e8 16 ff ff ff 88 07 46  8b 4d c8 eb df 8b 45 e0  |.......F.M....E.|
000006c0  40 89 45 d0 8b 45 dc 8d  3c 01 8b 55 d0 39 55 d8  |@.E..E..<..U.9U.|
000006d0  74 8d 31 f6 0f b6 84 3b  00 10 10 00 89 45 cc 8d  |t.1....;.....E..|
000006e0  87 00 10 10 00 89 45 c8  39 75 e4 7c 1f 0f b6 84  |......E.9u.|....|
000006f0  0e 00 10 10 00 89 4d c0  8b 55 cc e8 cb fe ff ff  |......M..U......|
00000700  8b 55 c8 30 04 32 46 8b  4d c0 eb dc ff 45 d0 03  |.U.0.2F.M....E..|
00000710  7d c4 eb b6 8b 75 d8 4e  8b 45 e4 f7 d0 89 45 d8  |}....u.N.E....E.|
00000720  8b 5d dc 0f af de 03 5d  e4 85 f6 78 57 8b 04 b5  |.].....]...xW...|
00000730  00 03 10 00 89 45 e0 40  74 44 89 d8 2b 45 e4 89  |.....E.@tD..+E..|
00000740  45 dc 31 ff 31 c9 39 4d  e4 7e 22 8b 45 d4 0f b6  |E.1.1.9M.~".E...|
00000750  14 08 8b 45 dc 0f b6 84  01 00 10 10 00 89 4d d0  |...E..........M.|
00000760  e8 66 fe ff ff 31 c7 8b  4d d0 41 eb d9 89 f8 32  |.f...1..M.A....2|
00000770  83 00 10 10 00 8b 55 d4  8b 7d e0 88 04 3a 4e 03  |......U..}...:N.|
00000780  5d d8 eb a5 83 c4 3c 5b  5e 5f 5d c3 f3 0f 1e fb  |].....<[^_].....|
00000790  55 89 e5 57 56 53 83 ec  4c 89 45 c0 89 4d dc 85  |U..WVS..L.E..M..|
000007a0  c9 0f 84 0b 03 00 00 89  d7 01 d0 89 45 cc 8d 4c  |............E..L|
000007b0  08 ff 89 c8 3b 45 cc 72  08 80 38 00 75 03 48 eb  |....;E.r..8.u.H.|
000007c0  f3 29 c1 bb 02 00 00 00  8b 45 dc 99 f7 fb 39 c1  |.).......E....9.|
000007d0  0f 8f dc 02 00 00 c6 05  00 02 10 00 00 ba 00 00  |................|
000007e0  10 00 b0 01 88 02 88 82  ff 00 00 00 0f b6 c8 88  |................|
000007f0  91 00 02 10 00 84 c0 79  08 8d 04 09 83 f0 1d eb  |.......y........|
00000800
alain@alain-desktop:~$ 

Hors ligne

#13 Le 28/02/2023, à 16:47

Nasman

Re : [Résolu] Démarrage du bon Ubuntu

On a bien effectivement boot.img dans le mbr de sdb avec une référence à GRUB et l'adresse de diskboot.img à la LBA 01 (indiquée à l'offset 5C.

Il n'y a quasiment pas de code exécutable dans le mbr de sda. Le disque sda est sensé démarrer en mode uefi - dans ce mode de démarrage on ne recherche pas du code exécutable dans les premiers secteurs du disque mais la présence d'une partition efi et des fichiers de boot présents à l'intérieur de cette partition. Ici la particularité c'est que c'est un démarrage uefi avec une table msdos.


PC fixe sous Bionic 64 bits et portable avec Focal 64 bits

Hors ligne

#14 Le 28/02/2023, à 17:01

geole

Re : [Résolu] Démarrage du bon Ubuntu

Bonjour
extraits du boot-info

BIOS/UEFI firmware: P1.60(4.6) from American Megatrends Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this installed-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0006
Timeout: 1 seconds
BootOrder: 0006,0001,0005,0003
Boot0006* ubuntu	HD(4,MBR,0xc7ada,0x3b8e0800,0x100800)/File(\EFI\ubuntu\grubx64.efi)..BO

Donc boot en  EFI sur une partition EFI   N°4  Commençant au secteur 0xc7ada, finissant au secteur 0x3b8e0800 pour une taille  de 0x100800 secteurs
La quatrième partition est devenue SDA3

sda3: __________________________________________________________________________
    File system:       vfat
    Boot sector type:  FAT32 
    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

===================== sda3/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid 69770f4f-63f7-4e58-955f-dff1d0d46e3d root hd0,msdos6 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

qui fait donc booter sur sda6

blkid (filtered): ______________________________________________________________
NAME   FSTYPE   UUID                                 PARTUUID                             LABEL PARTLABEL
sda                                                                                                                                         000c7ada-05                                
└─sda6 ext4     69770f4f-63f7-4e58-955f-dff1d0d46e3d 000c7ada-06   

dont le fichier grub

======================= sda6/etc/default/grub (filtered) =======================
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

N'a pas été modifié car c'est celui-ci qui aurait  été modifié.

======================= sdb1/etc/default/grub (filtered) =======================
GRUB_DEFAULT=2

A mon avis, de temps en temps, tu bootes en LEGACY  pour booter sur SDB et de temps en temps en EFI pour booter sur SDA.
Tout se passe comme si tu avais fait la modif sur SDB.  Mais il ne  connait pas SDA

====================== sdb1/boot/grub/grub.cfg (filtered) ======================
Ubuntu   774e87f5-2dec-4ccc-bb35-4196100addb9
Ubuntu, with Linux 5.15.0-60-generic   774e87f5-2dec-4ccc-bb35-4196100addb9
Ubuntu, with Linux 5.15.0-58-generic   774e87f5-2dec-4ccc-bb35-4196100addb9
Ubuntu, with Linux 3.13.0-92-generic   774e87f5-2dec-4ccc-bb35-4196100addb9
### END /etc/grub.d/30_os-prober ###

Donc tu as bien booté sur SDA6 car il sait afficher SDA1

====================== sda6/boot/grub/grub.cfg (filtered) ======================
Ubuntu   69770f4f-63f7-4e58-955f-dff1d0d46e3d
Ubuntu, with Linux 5.15.0-60-generic   69770f4f-63f7-4e58-955f-dff1d0d46e3d
Ubuntu, with Linux 5.15.0-43-generic   69770f4f-63f7-4e58-955f-dff1d0d46e3d
Ubuntu 22.04.1 LTS (22.04) (on sda1)   774e87f5-2dec-4ccc-bb35-4196100addb9
Ubuntu (on sda1)   774e87f5-2dec-4ccc-bb35-4196100addb9
Ubuntu, with Linux 5.15.0-58-generic (on sda1)   774e87f5-2dec-4ccc-bb35-4196100addb9
Ubuntu, with Linux 5.15.0-57-generic (on sda1)   774e87f5-2dec-4ccc-bb35-4196100addb9
Ubuntu, with Linux 3.13.0-92-generic (on sda1)   774e87f5-2dec-4ccc-bb35-4196100addb9
### END /etc/grub.d/30_os-prober ###

Donc tu vas recommencer les commandes
en vérifiant
1)

 grep DEFAULT /etc/default/grub

2) Repasser la commande

sudo sed -i 's/GRUB_DEFAULT=0/GRUB_DEFAULT=2/' /etc/default/grub

3) Vérifier de nouveau

 grep DEFAULT /etc/default/grub

Si la valeur n a pas passé a 2, tu utiliseras un éditeur de texte.
Lorsque la valeur sera 2, tu regénères le grub.

sudo update-grub

Si je peux te donner un conseil, tu devrais transformer  tes disques MS-DOS en disque GPT
Il existe une procédure rapide qui permet de le faire sans reformater. Cependant, il est préférable d'avoir sauvé ses données personnelles avant de la lancer car on ne sait jamais.
Je te donnerais le mode d'emploi si tu le fais.
Seule contraite, il faudra faire un bootrepair pour réinstaller le grub dans la NVRAM si elle ne le détecte pas automatiquement

Dernière modification par geole (Le 28/02/2023, à 17:12)


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 28/02/2023, à 17:36

Alain 86400

Re : [Résolu] Démarrage du bon Ubuntu

Après le N°1, la valeur est de 2:

alain@alain-desktop:~$  grep DEFAULT /etc/default/grub
GRUB_DEFAULT=2
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
alain@alain-desktop:~$ sudo update-grub
[sudo] Mot de passe de alain : 
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-60-generic
Found initrd image: /boot/initrd.img-5.15.0-60-generic
Found linux image: /boot/vmlinuz-5.15.0-58-generic
Found initrd image: /boot/initrd.img-5.15.0-58-generic
Found linux image: /boot/vmlinuz-3.13.0-92-generic
Found initrd image: /boot/initrd.img-3.13.0-92-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
alain@alain-desktop:~$ 

Hors ligne

#16 Le 28/02/2023, à 17:42

geole

Re : [Résolu] Démarrage du bon Ubuntu

Alain 86400 a écrit :
sudo update-grub
.........
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
echo GRUB_DISABLE_OS_PROBER=false | sudo tee -a /etc/default/grub
sudo update-grub
df -htext4

Dernière modification par geole (Le 28/02/2023, à 17:45)


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 28/02/2023, à 17:44

Alain 86400

Re : [Résolu] Démarrage du bon Ubuntu

Pour expliquer ce qui a été fait:
Pour booster mon DD 500 Gb, on a fait un clone sur un SSD de 512 GB. Mais l'ordi ne démarrait pas sur le nouveau!
Alors on a fait une instal par DVD sur le nouveau. En rendant bootable la bonne partition du DD SSD on peut démarrer et on n'a rien perdu!
On a ré-installé l'ancien DD pour s'en servir de sauvegarde ... mais l'ordi ne le reconnait pas!
Sur le bureau, dans mes favoris, j'ai le SSD volume de 11GB! (avec l'Ubuntu vierge de l'instal )
Et, au démarrage, si je ne l'oriente pas vers la ligne 3, il démarre sur l'Ubuntu vierge!
J'espère que j'ai été compréhensible ...
Que faire?
Merci de ta patience,
Alain

Hors ligne

#18 Le 28/02/2023, à 17:51

geole

Re : [Résolu] Démarrage du bon Ubuntu

Je ne sais pas ce que tu entends par vierge. Pour boot-repair, il y a  trois O.S.

================================ 3 OS detected =================================
OS#1:   Ubuntu 22.04.1 LTS on sda1
OS#2:   Ubuntu 22.04.1 LTS on sda6
OS#3:   Ubuntu 22.04.2 LTS on sdb1

Je ne vois de raison pour qu'ils ne puissent pas commencer à booter tous les trois.
Je vais regarder les contenus des trois fstab car souvent  c'est oublié lors des duplications.

========================== sda1/etc/fstab (filtered) ===========================
# / was on /dev/sda1 during installation
UUID=774e87f5-2dec-4ccc-bb35-4196100addb9 /               ext4    errors=remount-ro 0   

========================== sda6/etc/fstab (filtered) ===========================
# / was on /dev/sda6 during installation
UUID=69770f4f-63f7-4e58-955f-dff1d0d46e3d /               ext4    errors=remount-ro 0       1 

========================== sdb1/etc/fstab (filtered) ===========================
# / was on /dev/sda1 during installation
UUID=774e87f5-2dec-4ccc-bb35-4196100addb9 /               ext4    errors=remount-ro 0       1 
blkid (filtered): ______________________________________________________________
NAME   FSTYPE   UUID                                 PARTUUID                             LABEL PARTLABEL                                                                                         
├─sda1 ext4     774e87f5-2dec-4ccc-bb35-4196100addb9 000c7ada-01                                                         
└─sda6 ext4     69770f4f-63f7-4e58-955f-dff1d0d46e3d 000c7ada-06                                                                                                                            
├─sdb1 ext4     774e87f5-2dec-4ccc-bb35-4196100addb9 000c7ada-01       

                         
Il va falloir que tu changes avec gparted le UUID    de soit SDA1 soit SDB1    car dans l'état actuel, il y a confusion.   Le mauvais peut être monté surtout qu'ils ne sont pas dans la même version.
et que tu rectifies le /etc/fstab de la partition modifiée pour le mettre en phase avec la nouvelle valeur.

parted -lm (filtered): _________________________________________________________
sda:512GB:scsi:512:512:msdos:ATA SPCC Solid State:;
1:1049kB:496GB:496GB:ext4::boot;
6:500GB:512GB:11.5GB:ext4::;
sdb:500GB:scsi:512:4096:msdos:ATA ST500DM002-1BD14:;
1:1049kB:496GB:496GB:ext4::;

Mount points (filtered): _______________________________________________________
                                 Avail Use% Mounted on
/dev/sda1                         306G  28% /mnt/boot-sav/sda1
/dev/sda6                      1002.3M  85% /mnt/boot-sav/sda6
/dev/sdb1                       303.2G  28% /
Mount options (filtered): ______________________

SDA6 est quasiment plein, il fait juste office de clé USB......

Dernière modification par geole (Le 28/02/2023, à 18: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

#19 Le 28/02/2023, à 18:41

Alain 86400

Re : [Résolu] Démarrage du bon Ubuntu

Je te donne le retour de tes dernières commandes:

alain@alain-desktop:~$ echo GRUB_DISABLE_OS_PROBER=false | sudo tee -a /etc/default/grub
[sudo] Mot de passe de alain : 
GRUB_DISABLE_OS_PROBER=false
alain@alain-desktop:~$
alain@alain-desktop:~$ sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-60-generic
Found initrd image: /boot/initrd.img-5.15.0-60-generic
Found linux image: /boot/vmlinuz-5.15.0-58-generic
Found initrd image: /boot/initrd.img-5.15.0-58-generic
Found linux image: /boot/vmlinuz-3.13.0-92-generic
Found initrd image: /boot/initrd.img-3.13.0-92-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Ubuntu 22.04.1 LTS (22.04) on /dev/sda1
Found Ubuntu 22.04.1 LTS (22.04) on /dev/sda6
Adding boot menu entry for UEFI Firmware Settings ...
done
alain@alain-desktop:~$
alain@alain-desktop:~$ df -htext4
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
/dev/sdb1          455G    129G  304G  30% /
alain@alain-desktop:~$ 

Hors ligne

#20 Le 28/02/2023, à 19:25

geole

Re : [Résolu] Démarrage du bon Ubuntu

Comme tu as l'air de booter maintenant en legacy ou indirectement depuis SDA6,
Lance gparted,

sudo apt install gparted && gparted

modifies le UUID de sda1. de SDA1
Puis

sudo blkid

pour récupérer le nouvel UUID afin de mettre à jour le /etc/fstab de SDA1
et de nouveau

sudo update-grug

ds

Dernière modification par geole (Le 28/02/2023, à 19:27)


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 28/02/2023, à 20:26

Alain 86400

Re : [Résolu] Démarrage du bon Ubuntu

Voici ce que j’obtiens avec gparted:

https://zupimages.net/viewer.php?id=23/09/dg75.jpg

Merci de me dire ce que tu entends par:

modifies le UUID de sda1. de SDA1

Je suis débutant et si tu peux donner une commande précise ce sera mieux!
Merci d'avance

Hors ligne

#22 Le 28/02/2023, à 20:47

geole

Re : [Résolu] Démarrage du bon Ubuntu

Il faut te positionner sur SDA1 cliquer sur modifier et valider Nouvel UUID
https://doc.ubuntu-fr.org/gparted
La mise a jour du fichier fstab se fait par un editeur de texte

sudo gedit admin:///etc/fstab

Dernière modification par geole (Le 28/02/2023, à 20:50)


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 28/02/2023, à 22:37

Alain 86400

Re : [Résolu] Démarrage du bon Ubuntu

Qu'est-ce que cela va faire de modifier l'UUID de sda1?
Je n'avais pas vu qu'il y avait un autre gparted:

https://zupimages.net/viewer.php?id=23/09/3c81.jpg

Hors ligne

#24 Le 28/02/2023, à 23:16

geole

Re : [Résolu] Démarrage du bon Ubuntu

Le UID de sda1 sera modifié ne pourra plus être confondu avec  le uuid de SDB1.
Je te rappelle que dans un fstab je lis cela
UUID=69770f4f-63f7-4e58-955f-dff1d0d46e3d /               ext4    errors=remount-ro 0       1
il est impossible de savoir si on s'adresse à SDA1 ou à SDB1.

Dernière modification par geole (Le 28/02/2023, à 23:19)


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 28/02/2023, à 23:53

Alain 86400

Re : [Résolu] Démarrage du bon Ubuntu

J'ai modifié le UID de sda1 et validé la modif.
Mais le retour de

La mise a jour du fichier fstab se fait par un editeur de texte
sudo gedit admin:///etc/fstab

est:

 sudo gedit admin:///etc/fstab
[sudo] Mot de passe de alain : 

** (gedit:47192): WARNING **: 22:47:52.313: Opération non prise en charge

** (gedit:47192): WARNING **: 22:51:38.568: Set document metadata failed: Opération non prise en charge
alain@alain-desktop:~$ 

Que faut-il faire?

Hors ligne