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 28/03/2023, à 21:52

CF

Ubuntu s'est installé dans les périphériques et grub ne se lance pas

Bonjour
J'ai installé Ubuntu en cohabitation avec windows 10.
Je ne comprends pas pourquoi windows se lance directement au démarrage en ne me laissant pas le choix entre ubuntu et windows alors que j'ai bien choisi la cohabitation lors de l'installation d'ubuntu.
En revanche j'arrive à accéder à grub en passant par le bios. En effet j'y ai découvert que l'accès à mon Ubuntu peut se faire par les périphériques depuis le menu du bios "boot device option".

Comment faire pour que grub se lance tout seul au démarrage du pc ?
Ci dessous mon rapport boot repair :
https://paste.ubuntu.com/p/wsdyCwx5Kd/

Hors ligne

#2 Le 28/03/2023, à 21:54

xubu1957

Re : Ubuntu s'est installé dans les périphériques et grub ne se lance pas

Bonjour,

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

boot-repair-4ppa203                                              [20230324_0613]

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

User choice:

Is there RAID on this computer? yes
[dmraid] packages may interfere with MDraid. Do you want to remove them? no

Unusual RAID (no raid in blkid).

=================== blkid (filtered) before raid activation ====================

/dev/mapper/ventoy: BLOCK_SIZE="2048" UUID="2022-10-20-07-22-49-00" LABEL="Ubuntu 22.10 amd64" TYPE="iso9660" PTUUID="a9694891-aa3f-477b-ab3b-77efbbb2b778" PTTYPE="gpt"
/dev/sdb1: LABEL="Ventoy" UUID="4E21-0000" BLOCK_SIZE="512" TYPE="exfat" PTTYPE="dos" PARTUUID="a8244ad5-01"
/dev/sda4: LABEL="Windows" BLOCK_SIZE="512" UUID="54EE1520EE14FC44" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="2403261d-b1b6-4f84-ba3c-143bc2417eb4"
/dev/sda2: UUID="046A-E21B" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="c4dcf360-98a6-4339-9609-30ca6580a242"
/dev/sda7: UUID="c7499111-aead-4fe1-8218-f202946aed7f" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="bf34ea70-56ae-4272-83be-a0c0310a2188"
/dev/sda5: BLOCK_SIZE="512" UUID="A4D284F1D284C94E" TYPE="ntfs" PARTUUID="9de90fb9-bf40-415d-bb85-653f24582585"
/dev/sda1: LABEL="WINRE" BLOCK_SIZE="512" UUID="582E39342E390C8E" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="dcdb71cf-880c-4463-bafc-be340086e93b"
/dev/sda6: LABEL="RECOVERY" BLOCK_SIZE="512" UUID="249270A792707F5C" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="28a56375-0ba9-4a96-8116-8727ed388e8e"
/dev/sda3: PARTLABEL="Microsoft reserved partition" PARTUUID="95d2579d-ca88-43be-90bb-fc38ddfbc477"


==================================== dmraid ====================================

dmraid -si -c
no raid disks
No DMRAID disk.
User chose to keep dmraid. It may interfere with mdadm.


==================================== mdadm =====================================
mdadm --assemble --scan

mdadm --detail --scan

Warning: no active raid (DMRAID nor MD_ARRAY).
No active RAID.



Ceci installera les paquets [mdadm]. Voulez-vous continuer ?
mdadm: No arrays found in config file or automatically
grub-probe : erreur : impossible de trouver un périphérique GRUB pour /dev/sdb2. Vérifiez device.map..
grub-probe : erreur : impossible de trouver un périphérique GRUB pour /dev/sdb2. Vérifiez device.map..

Recommended repair: ____________________________________________________________

The default repair of the Boot-Repair utility will purge (in order to enable-raid) and reinstall the grub-efi of
sda7,
using the following options:  sda2/boot/efi
Additional repair will be performed: unhide-bootmenu-10s use-standard-efi-file


Mount sda2 on /mnt/boot-sav/sda7/boot/efi
chroot /mnt/boot-sav/sda7 apt-get -y update
Purge the GRUB of sda7
grub-efi available
Lecture des listes de paquets…SET@_progressbar1.pulse()

Construction de l'arbre des dépendances…SET@_progressbar1.pulse()

Lecture des informations d'état…
Les paquets supplémentaires suivants seront installés :
grub-efi-amd64
Les paquets suivants seront ENLEVÉS :
grub-gfxpayload-lists grub-pc
Les NOUVEAUX paquets suivants seront installés :
grub-efi grub-efi-amd64
0 mis à jour, 2 nouvellement installés, 2 à enlever et 156 non mis à jour.
Il est nécessaire de prendre 49,3 ko dans les archives.
Après cette opération, 419 ko d'espace disque seront libérés.
Réception de :1 http://fr.archive.ubuntu.com/ubuntu kinetic-updates/main amd64 grub-efi-amd64 amd64 2.06-2ubuntu14.1 [47,1 kB]
Réception de :2 http://fr.archive.ubuntu.com/ubuntu kinetic-updates/main amd64 grub-efi amd64 2.06-2ubuntu12.1 [2236 B]
49,3 ko réceptionnés en 0s (178 ko/s)
Téléchargement achevé et dans le mode téléchargement uniquement
DEBCHECK debOK, grub-efi
DEBCHECK debOK
Please type: sudo chroot "/mnt/boot-sav/sda7" dpkg --configure -ansudo chroot "/mnt/boot-sav/sda7" apt-get install -fynsudo chroot "/mnt/boot-sav/sda7" apt-get install -y mdadmnsudo chroot "/mnt/boot-sav/sda7" mdadm --assemble --scannsudo chroot "/mnt/boot-sav/sda7" apt-get install -y dmraidnsudo chroot "/mnt/boot-sav/sda7" dmraid -aynsudo chroot "/mnt/boot-sav/sda7" apt-get purge --allow-remove-essential -y grub-com*nsudo chroot "/mnt/boot-sav/sda7" apt-get purge --allow-remove-essential -y grub2-com*nsudo chroot "/mnt/boot-sav/sda7" apt-get purge --allow-remove-essential -y shim-signednsudo chroot "/mnt/boot-sav/sda7" apt-get purge --allow-remove-essential -y grub-common:*nsudo chroot "/mnt/boot-sav/sda7" apt-get purge --allow-remove-essential -y grub2-common:*n
GRUB est encore présent. Veuillez réessayer. (purge grub* packages from /mnt/boot-sav/sda7)
Then type: sudo chroot "/mnt/boot-sav/sda7" apt-get install -y grub-efi

Unhide GRUB boot menu in sda7/etc/default/grub

======================== Reinstall the grub-efi of sda7 ========================

chroot /mnt/boot-sav/sda7 grub-install --version
grub-install (GRUB) 2.06-2ubuntu12.1
chroot /mnt/boot-sav/sda7 modprobe efivars

chroot /mnt/boot-sav/sda7 efibootmgr -v before grub install
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0001,3001,0004,2001,2002,2003
Boot0000* Notebook Hard Drive	BBS(HD,,0x500)................-.`.......`.A.`....................................2........A.........................
Boot0001* Windows Boot Manager	HD(2,GPT,c4dcf360-98a6-4339-9609-30ca6580a242,0x145800,0x82000)/File(EFIMicrosoftBootbootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}.../................
Boot0002* USB Hard Drive - VerbatimSTORE N GO	BBS(7,,0x500)..................................................................r.........A...........................
Boot0003* USB Hard Drive (UEFI) - VerbatimSTORE N GO	PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(2,0)/HD(2,MBR,0xa8244ad5,0x39c2000,0x10000)RC
Boot0004* ubuntu	HD(2,GPT,c4dcf360-98a6-4339-9609-30ca6580a242,0x145800,0x82000)/File(EFIubuntushimx64.efi)
Boot2001* USB Drive (UEFI)	RC
Boot2002* Internal CD/DVD ROM Drive (UEFI)	RC
Boot3000* Internal Hard Disk or Solid State Disk	RC
Boot3001* Internal Hard Disk or Solid State Disk	RC
Boot3002* Internal Hard Disk or Solid State Disk	RC
Boot3003* Internal Hard Disk or Solid State Disk	RC

chroot /mnt/boot-sav/sda7 uname -r
5.19.0-21-generic

chroot /mnt/boot-sav/sda7 grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: warning: EFI variables cannot be set on this system.
grub-install: warning: You will have to complete the GRUB setup manually.
Installation finished. No error reported.
df /dev/sda2
mv /mnt/boot-sav/sda7/boot/efi/EFI/Boot/bootx64.efi /mnt/boot-sav/sda7/boot/efi/EFI/Boot/bkpbootx64.efi
cp /mnt/boot-sav/sda7/boot/efi/efi/ubuntu/grubx64.efi /mnt/boot-sav/sda7/boot/efi/EFI/Boot/bootx64.efi

chroot /mnt/boot-sav/sda7 grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: warning: EFI variables cannot be set on this system.
grub-install: warning: You will have to complete the GRUB setup manually.
Installation finished. No error reported.

chroot /mnt/boot-sav/sda7 efibootmgr -v after grub install
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0001,3001,0004,2001,2002,2003
Boot0000* Notebook Hard Drive	BBS(HD,,0x500)................-.`.......`.A.`....................................2........A.........................
Boot0001* Windows Boot Manager	HD(2,GPT,c4dcf360-98a6-4339-9609-30ca6580a242,0x145800,0x82000)/File(EFIMicrosoftBootbootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}.../................
Boot0002* USB Hard Drive - VerbatimSTORE N GO	BBS(7,,0x500)..................................................................r.........A...........................
Boot0003* USB Hard Drive (UEFI) - VerbatimSTORE N GO	PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(2,0)/HD(2,MBR,0xa8244ad5,0x39c2000,0x10000)RC
Boot0004* ubuntu	HD(2,GPT,c4dcf360-98a6-4339-9609-30ca6580a242,0x145800,0x82000)/File(EFIubuntushimx64.efi)
Boot2001* USB Drive (UEFI)	RC
Boot2002* Internal CD/DVD ROM Drive (UEFI)	RC
Boot3000* Internal Hard Disk or Solid State Disk	RC
Boot3001* Internal Hard Disk or Solid State Disk	RC
Boot3002* Internal Hard Disk or Solid State Disk	RC
Boot3003* Internal Hard Disk or Solid State Disk	RC
Warning: NVram was not modified.

chroot /mnt/boot-sav/sda7 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.19.0-38-generic
Found initrd image: /boot/initrd.img-5.19.0-38-generic
Found linux image: /boot/vmlinuz-5.19.0-21-generic
Found initrd image: /boot/initrd.img-5.19.0-21-generic
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
grub-probe: error: cannot find a GRUB drive for /dev/sdb2.  Check your device.map.
Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi

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

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

Vous pouvez maintenant redémarrer votre ordinateur.
N'oubliez pas de faire démarrer votre firmware UEFI sur l'entrée Ubuntu 22.10 (fichier sda2/efi/ubuntu/grubx64.efi) !
Si votre ordinateur redémarre directement dans Windows, essayez de changer l'ordre de démarrage dans votre firmware UEFI.
Si votre firmware UEFI ne permet pas de changer l'ordre de démarrage, changez l'entrée de démarrage par défaut de l'amorceur Windows.
Par exemple, vous pouvez démarrer Windows, puis saisir la commande suivante dans une invite de commande en mode administrateur :
bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi


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

 => No boot loader 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 (,2)/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    offsetio extcmd macho elf file gettext boot bufio verifiers crypto 
    terminal normal datetime date mmap drivemap blocklist archelp newc 
    vga_text relocator video chain ntldr search_label search_fs_file 
    search_fs_uuid search keylayouts at_keyboard pci usb usb_keyboard gcry_md5 
    hashsum gcry_crc gzio xzio lzopio lspci fshelp ext2 xfs acpi reboot 
    iso9660 gcry_sha1 div udf exfat font diskfilter raid6rec zstd btrfs ventoy 
    read halt video_fb vbe linux linux16 test true sleep echo bitmap gfxterm 
    bitmap_scale trig video_colors gfxmenu videotest videoinfo functional_test 
    videotest_checksum video_cirrus video_bochs vga minicmd help configfile tr 
    biosdisk disk ls tar zfs squash4 pbkdf2 gcry_sha512 password_pbkdf2 
    all_video png jpeg part_gpt part_msdos fat ntfs loopback 
    gfxterm_background procfs gfxterm_menu smbios
    ---------------------------------------------------------------------------

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/10/11/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sda2: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  Windows 8/10/11/2012: FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/Boot/bkpbootx64.efi /efi/Boot/bootx64.efi 
                       /efi/Boot/fbx64.efi /efi/Boot/mmx64.efi 
                       /efi/HP/bootmgr.efi /efi/ubuntu/grubx64.efi 
                       /efi/ubuntu/mmx64.efi /efi/ubuntu/shimx64.efi 
                       /efi/ubuntu/grub.cfg /efi/HP/BIOSUpdate/CryptRSA32.efi 
                       /efi/HP/BIOSUpdate/CryptRSA.efi 
                       /efi/HP/BIOSUpdate/HpBiosUpdate32.efi 
                       /efi/HP/BIOSUpdate/HpBiosUpdate.efi 
                       /efi/HP/Boot/bootmgfw.efi /efi/HP/Boot/bootmgr.efi 
                       /efi/HP/SystemDiags/CryptRSA32.efi 
                       /efi/HP/SystemDiags/CryptRSA.efi 
                       /efi/HP/SystemDiags/SystemDiags32.efi 
                       /efi/HP/SystemDiags/SystemDiags.efi 
                       /efi/Microsoft/Boot/bootmgfw.efi 
                       /efi/Microsoft/Boot/bootmgr.efi

sda3: __________________________________________________________________________

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

sda4: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/10/11/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 8 or 10
    Boot files:        /bootmgr /Windows/System32/winload.exe

sda5: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/10/11/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sda6: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/10/11/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /Boot/BCD

sda7: __________________________________________________________________________

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

sdb1: __________________________________________________________________________

    File system:       exfat
    Boot sector type:  -
    Boot sector info: 
    Mounting failed:   mount: /mnt/BootInfo/sdb1: /dev/sdb1 déjà monté ou point de montage actif.
       dmesg(1) may have more information after failed mount system call.

sdb2: __________________________________________________________________________

    File system:       iso9660
    Boot sector type:  Grub2 (v1.99-2.00)
    Boot sector info:  Grub2 (v1.99-2.00) is installed in the boot sector of 
                       sdb2 and looks at sector 0 of the same hard drive for 
                       core.img, but core.img can not be found at this 
                       location.
    Operating System:  
    Boot files:        /boot/grub/grub.cfg


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

OS#1:   Ubuntu 22.10 on sda7
OS#2:   Windows 8 or 10 on sda4

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

CPU architecture: 64-bit
Video: Haswell-ULT Integrated Graphics Controller from Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 22.10, kinetic, x86_64)

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

BIOS/UEFI firmware: F.02(15.2) from Insyde
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0001,3001,0004,2001,2002,2003
Boot0000* Notebook Hard Drive	BBS(HD,,0x500)................-.`.......`.A.`....................................2........A.........................
Boot0001* Windows Boot Manager	HD(2,GPT,c4dcf360-98a6-4339-9609-30ca6580a242,0x145800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}.../................
Boot0002* USB Hard Drive - VerbatimSTORE N GO	BBS(7,,0x500)..................................................................r.........A...........................
Boot0003* USB Hard Drive (UEFI) - VerbatimSTORE N GO	PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(2,0)/HD(2,MBR,0xa8244ad5,0x39c2000,0x10000)RC
Boot0004* ubuntu	HD(2,GPT,c4dcf360-98a6-4339-9609-30ca6580a242,0x145800,0x82000)/File(\EFI\ubuntu\shimx64.efi)
Boot2001* USB Drive (UEFI)	RC
Boot2002* Internal CD/DVD ROM Drive (UEFI)	RC
Boot3000* Internal Hard Disk or Solid State Disk	RC
Boot3001* Internal Hard Disk or Solid State Disk	RC
Boot3002* Internal Hard Disk or Solid State Disk	RC
Boot3003* Internal Hard Disk or Solid State Disk	RC

112aec6a437f7709d0148f2b34a1e14c   sda2/Boot/bkpbootx64.efi
112aec6a437f7709d0148f2b34a1e14c   sda2/Boot/bootx64.efi
0a832cd2c33c8a146b78778df8d33417   sda2/Boot/fbx64.efi
abfc1dc97795531c0390328f9dd1a281   sda2/Boot/mmx64.efi
b5ee19a9ccdc0078c0e3d81e7f977054   sda2/HP/bootmgr.efi
112aec6a437f7709d0148f2b34a1e14c   sda2/ubuntu/grubx64.efi
abfc1dc97795531c0390328f9dd1a281   sda2/ubuntu/mmx64.efi
64349b3622c65f495a99dbf6102496e3   sda2/ubuntu/shimx64.efi
1b8c0684ede8539ccc205cf7a750eca3   sda2/HP/BIOSUpdate/CryptRSA32.efi
6488d391f74263c9da3c3d47dffa6212   sda2/HP/BIOSUpdate/CryptRSA.efi
0d568a32ec4ba497be13ea06af466014   sda2/HP/BIOSUpdate/HpBiosUpdate32.efi
e49feddbf098e58d6e609e07335f21d1   sda2/HP/BIOSUpdate/HpBiosUpdate.efi
bad97e7203aec2bd026403a7f70688b9   sda2/HP/Boot/bootmgfw.efi
976a6ef4ad76d6f70c6c357a93f0fd47   sda2/HP/Boot/bootmgr.efi
1b8c0684ede8539ccc205cf7a750eca3   sda2/HP/SystemDiags/CryptRSA32.efi
6488d391f74263c9da3c3d47dffa6212   sda2/HP/SystemDiags/CryptRSA.efi
dae533bd3aa5fda7f14eb6fa522584dd   sda2/HP/SystemDiags/SystemDiags32.efi
901ed5177494abcd72d65ed7a75b109f   sda2/HP/SystemDiags/SystemDiags.efi
20ac8dde00311476f3755604eb0e545a   sda2/Microsoft/Boot/bootmgfw.efi
27d382c5fc21df6f4a75baed05aa1d9d   sda2/Microsoft/Boot/bootmgr.efi
7ac06cc534d41e22fdf5025a01a1bb8a   sda6/Boot/bootx64.efi

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

Disks info: ____________________________________________________________________

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

Partitions info (1/3): _________________________________________________________

sdb1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda4	: is-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda2	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda7	: 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
sda1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda6	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios

Partitions info (2/3): _________________________________________________________

sdb1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda4	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	bootmgr,	notwinboot
sda2	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda7	: 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,	recovery-or-hidden,	no-bmgr,	notwinboot
sda1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	no-bmgr,	notwinboot
sda6	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	bootmgr,	is-winboot

Partitions info (3/3): _________________________________________________________

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

fdisk -l (filtered): ___________________________________________________________

Disk sda: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: 3775B844-6E97-4B6C-BF86-6B3261D77FFA
          Start       End   Sectors   Size Type
sda1       2048   1333247   1331200   650M Windows recovery environment
sda2    1333248   1865727    532480   260M EFI System
sda3    1865728   2127871    262144   128M Microsoft reserved
sda4    2127872 483944104 481816233 229.7G Microsoft basic data
sda5  941436928 943284223   1847296   902M Windows recovery environment
sda6  943284224 976762879  33478656    16G Microsoft basic data
sda7  483944448 941436927 457492480 218.1G Linux filesystem
Partition table entries are not in disk order.
Disk sdb: 28.91 GiB, 31042043904 bytes, 60628992 sectors
Disk identifier: 0xa8244ad5
      Boot    Start      End  Sectors  Size Id Type
sdb1  *        2048 60563455 60561408 28.9G  7 HPFS/NTFS/exFAT
sdb2       60563456 60628991    65536   32M ef EFI (FAT-12/16/32)
Disk mapper/ventoy: 3.79 GiB, 4071903232 bytes, 7952936 sectors
Disk identifier: A9694891-AA3F-477B-AB3B-77EFBBB2B778
                      Start     End Sectors  Size Type
mapper/ventoy-part1      64 7943767 7943704  3.8G Microsoft basic data
mapper/ventoy-part2 7943768 7952271    8504  4.2M EFI System
mapper/ventoy-part3 7952272 7952871     600  300K Microsoft basic data

parted -lm (filtered): _________________________________________________________

sda:500GB:scsi:512:4096:gpt:ATA ST500LT012-1DG14:;
1:1049kB:683MB:682MB:ntfs:Basic data partition:hidden, diag;
2:683MB:955MB:273MB:fat32:EFI system partition:boot, esp;
3:955MB:1089MB:134MB::Microsoft reserved partition:msftres;
4:1089MB:248GB:247GB:ntfs:Basic data partition:msftdata;
7:248GB:482GB:234GB:ext4::;
5:482GB:483GB:946MB:ntfs::hidden, diag;
6:483GB:500GB:17.1GB:ntfs:Basic data partition:hidden, msftdata;
sdb:31.0GB:scsi:512:512:msdos:Verbatim STORE N GO:;
1:1049kB:31.0GB:31.0GB:::boot;
2:31.0GB:31.0GB:33.6MB:fat16::esp;
mapper/ventoy:4072MB:dm:512:512:gpt:Linux device-mapper (linear):;
1:32.8kB:4067MB:4067MB::ISO9660:hidden, msftdata;
2:4067MB:4072MB:4354kB::Appended2:boot, esp;
3:4072MB:4072MB:307kB::Gap1:hidden, msftdata;

blkid (filtered): ______________________________________________________________

NAME       FSTYPE   UUID                                 PARTUUID                             LABEL    PARTLABEL
sda                                                                                                    
├─sda1     ntfs     582E39342E390C8E                     dcdb71cf-880c-4463-bafc-be340086e93b WINRE    Basic data partition
├─sda2     vfat     046A-E21B                            c4dcf360-98a6-4339-9609-30ca6580a242          EFI system partition
├─sda3                                                   95d2579d-ca88-43be-90bb-fc38ddfbc477          Microsoft reserved partition
├─sda4     ntfs     54EE1520EE14FC44                     2403261d-b1b6-4f84-ba3c-143bc2417eb4 Windows  Basic data partition
├─sda5     ntfs     A4D284F1D284C94E                     9de90fb9-bf40-415d-bb85-653f24582585          
├─sda6     ntfs     249270A792707F5C                     28a56375-0ba9-4a96-8116-8727ed388e8e RECOVERY Basic data partition
└─sda7     ext4     c7499111-aead-4fe1-8218-f202946aed7f bf34ea70-56ae-4272-83be-a0c0310a2188          
sdb                                                                                                    
├─sdb1     exfat    4E21-0000                            a8244ad5-01                          Ventoy   
│ └─ventoy                                                                                             
└─sdb2                                                                                                 

Mount points (filtered): _______________________________________________________

                           Avail Use% Mounted on
/dev/mapper/ventoy             0 100% /cdrom
/dev/sda1                 377.9M  42% /mnt/boot-sav/sda1
/dev/sda2                 134.5M  47% /mnt/boot-sav/sda2
/dev/sda4                 123.5G  46% /mnt/boot-sav/sda4
/dev/sda5                 306.4M  66% /mnt/boot-sav/sda5
/dev/sda6                   1.8G  89% /mnt/boot-sav/sda6
/dev/sda7                   190G   6% /mnt/boot-sav/sda7

Mount options (filtered): ______________________________________________________


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

/dev/mapper:
control
ventoy

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

search.fs_uuid c7499111-aead-4fe1-8218-f202946aed7f root hd0,gpt7 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

Ubuntu   c7499111-aead-4fe1-8218-f202946aed7f
Ubuntu, with Linux 5.19.0-38-generic   c7499111-aead-4fe1-8218-f202946aed7f
Ubuntu, with Linux 5.19.0-21-generic   c7499111-aead-4fe1-8218-f202946aed7f
Windows Boot Manager (on sda2)   osprober-efi-046A-E21B
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sda7/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda7 during installation
UUID=c7499111-aead-4fe1-8218-f202946aed7f /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda2 during installation
UUID=046A-E21B  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

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

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

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

           GiB - GB             File                                 Fragment(s)
            ?? = ??             boot/grub/grub.cfg                             1
 239,570877075 = 257,237270528  boot/vmlinuz                                   1
 421,684566498 = 452,780355584  boot/vmlinuz-5.19.0-21-generic                 2
 239,570877075 = 257,237270528  boot/vmlinuz-5.19.0-38-generic                 1
 421,684566498 = 452,780355584  boot/vmlinuz.old                               2
 307,819763184 = 330,518953984  boot/initrd.img                                1
 422,004878998 = 453,124288512  boot/initrd.img-5.19.0-21-generic              7
 307,819763184 = 330,518953984  boot/initrd.img-5.19.0-38-generic              1
 422,004878998 = 453,124288512  boot/initrd.img.old                            7

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

-rwxr-xr-x 1 root root 18683 Dec  2 14:54 10_linux
-rwxr-xr-x 1 root root 43263 Dec  2 14:54 10_linux_zfs
-rwxr-xr-x 1 root root 14387 Dec  2 14:54 20_linux_xen
-rwxr-xr-x 1 root root 13369 Dec  2 14:54 30_os-prober
-rwxr-xr-x 1 root root  1372 Dec  2 14:54 30_uefi-firmware
-rwxr-xr-x 1 root root   214 Dec  2 14:54 40_custom
-rwxr-xr-x 1 root root   215 Dec  2 14:54 41_custom

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

Try or Install Ubuntu
Ubuntu (safe graphics)
OEM install (for manufacturers)
Boot from next volume
UEFI Firmware Settings
Test memory

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

           GiB - GB             File                                 Fragment(s)
            ?? = ??             boot/grub/grub.cfg                             1

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

#3 Le 28/03/2023, à 22:03

Qid

Re : Ubuntu s'est installé dans les périphériques et grub ne se lance pas

Vu ce qui en est dit il y a pas besoin du bootinfo pour savoir qu'il suffit de changer la séquence de démarrage du bios... Celà dit ça a l'avantage de confirmer :

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

BIOS/UEFI firmware: F.02(15.2) from Insyde
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0001,3001,0004,2001,2002,2003
Boot0000* Notebook Hard Drive	BBS(HD,,0x500)................-.`.......`.A.`....................................2........A.........................
Boot0001* Windows Boot Manager	HD(2,GPT,c4dcf360-98a6-4339-9609-30ca6580a242,0x145800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}.../................
Boot0002* USB Hard Drive - VerbatimSTORE N GO	BBS(7,,0x500)..................................................................r.........A...........................
Boot0003* USB Hard Drive (UEFI) - VerbatimSTORE N GO	PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(2,0)/HD(2,MBR,0xa8244ad5,0x39c2000,0x10000)RC
Boot0004* ubuntu	HD(2,GPT,c4dcf360-98a6-4339-9609-30ca6580a242,0x145800,0x82000)/File(\EFI\ubuntu\shimx64.efi)
Boot2001* USB Drive (UEFI)	RC
Boot2002* Internal CD/DVD ROM Drive (UEFI)	RC
Boot3000* Internal Hard Disk or Solid State Disk	RC
Boot3001* Internal Hard Disk or Solid State Disk	RC
Boot3002* Internal Hard Disk or Solid State Disk	RC
Boot3003* Internal Hard Disk or Solid State Disk	RC

Le bios uefi sait faire comme le grub : choisir quel OS démarrer... Et c'est un classique que l'install d'Ubuntu qui permettra de démarrer windows ne passe pas en tête lors de l'installation... Mais en principe c'est on ne peut plus simple à modifier... D'autant que t'as fait les 2/3 du boulot tout seul vu ton diagnostic...


"GNU/Linux c'est que du bon mais M$ Windows ce n'est pas si mal"
Référent technique Ubuntu d'un Groupe d'Utilisateur du Libre
plus d'info sur mon profil

Hors ligne

#4 Le 29/03/2023, à 07:37

CF

Re : Ubuntu s'est installé dans les périphériques et grub ne se lance pas

Merci xubu1957
Qid, en quoi changer la séquence de démarrage du bios va t-il  déplacer Ubuntu depuis les périphériques ?

Hors ligne

#5 Le 29/03/2023, à 08:10

Qid

Re : Ubuntu s'est installé dans les périphériques et grub ne se lance pas

CF a écrit :

Qid, en quoi changer la séquence de démarrage du bios va t-il  déplacer Ubuntu depuis les périphériques ?

Bah... Ce que j'ai cité dans mon post précédent est la configuration de la séquence de démarrage de ton BIOS... Et on y voit clairement :

BootOrder: 0001,3001,0004,2001,2002,2003

Ubuntu en 3ieme position après windows et un autre en lien avec ton disque interne...

Après si tu ne veux pas changer cet ordre de démarrage je ne sais pas ce que tu veux...


"GNU/Linux c'est que du bon mais M$ Windows ce n'est pas si mal"
Référent technique Ubuntu d'un Groupe d'Utilisateur du Libre
plus d'info sur mon profil

Hors ligne

#6 Le 29/03/2023, à 10:02

geole

Re : Ubuntu s'est installé dans les périphériques et grub ne se lance pas

Bonjour.
Après avoir lancé ubuntu par ta méthode, tu peux tenter de réordonner avec cette commande.

sudo efibootmgr -o 4,1

Mais comme ton ordinateur est certainement un HP, il est classique de devoir passer par le bios.
Il est aussi possible de demander à windows de lancer ubuntu. Quelquefois cela marche.
Si on fait trop d'erreurs dans le nom du fichier à lancer, il faudra réparer le boot de windows.
Lancer l'application windows powershell (admin) et faire un copier/coller de

bcdedit /set "{bootmgr}" path \EFI\ubuntu\grubx64.efi

Dernière modification par geole (Le 29/03/2023, à 10:22)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#7 Le 29/03/2023, à 12:25

CF

Re : Ubuntu s'est installé dans les périphériques et grub ne se lance pas

Qid a écrit :

Bah... Ce que j'ai cité dans mon post précédent est la configuration de la séquence de démarrage de ton BIOS... Et on y voit clairement :

BootOrder: 0001,3001,0004,2001,2002,2003 

Ubuntu en 3ieme position après windows et un autre en lien avec ton disque interne...

Ok je comprends mieux

Qid a écrit :

Après si tu ne veux pas changer cet ordre de démarrage je ne sais pas ce que tu veux...

Je veux avoir le choix au démarrage entre Windows 10 et Ubuntu. Je me demande aussi s'il est pertinent qu' Ubuntu cesse de s'afficher parmi les périphériques du bios.

geole a écrit :

Mais comme ton ordinateur est certainement un HP, il est classique de devoir passer par le bios.

Oui c'est un HP (modèle 350G2)

geole a écrit :

Il est aussi possible de demander à windows de lancer ubuntu. Quelquefois cela marche.

Dans ce cas de figure, vais-je devoir d'abord me connecter à Windows (entrer sur le bureau) avant de devoir redémarrer pour booter sur Ubuntu ?

Hors ligne

#8 Le 29/03/2023, à 12:32

Qid

Re : Ubuntu s'est installé dans les périphériques et grub ne se lance pas

...
mad
Grub qui est le démarreur de linux sait démarrer et linux et windows ! Donc si c'est Linux qui est en premier au démarrage tu auras le choix entre linux et windows... C'est clair cette fois où toujours pas !?


"GNU/Linux c'est que du bon mais M$ Windows ce n'est pas si mal"
Référent technique Ubuntu d'un Groupe d'Utilisateur du Libre
plus d'info sur mon profil

Hors ligne

#9 Le 29/03/2023, à 15:26

geole

Re : Ubuntu s'est installé dans les périphériques et grub ne se lance pas

CF a écrit :
geole a écrit :

Il est aussi possible de demander à windows de lancer ubuntu. Quelquefois cela marche.

Dans ce cas de figure, vais-je devoir d'abord me connecter à Windows (entrer sur le bureau) avant de devoir redémarrer pour booter sur Ubuntu ?

En standard,    microsoft a équipé son logiciel d'un lanceur faisant l'équivalent du grub   mais uniquement pour les logiciels windows
    Lorsque plusieurs windows sont présents dans l'ordinateur, il affiche une liste sous forme d'icônes.
                de tous les windows 11   10 et 8 présents
                et une icône pour tous les autres windows  ( 7,   vista,  xp )   ===> Si  ce choix est fait,  une sous-liste est affichée

Il faut d'abord lancer windows pour remplacer ce lanceur (bootmgrfw)   par le grub (ou refind).
Lorsque cela est fait,   C'est la grille d'accueil du grub   avec un choix sous forme de lignes incluant aussi  windows  ( ou les icones refind)   qui s'affiche.   et tu peux choisir entre windows et ubuntu qui est devenu le choix par défaut.

Dernière modification par geole (Le 29/03/2023, à 15: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

#10 Le 29/03/2023, à 15:27

Qid

Re : Ubuntu s'est installé dans les périphériques et grub ne se lance pas

Modifier le lanceur de windows ne me semble vraiment pas une bonne idée mais bon...


"GNU/Linux c'est que du bon mais M$ Windows ce n'est pas si mal"
Référent technique Ubuntu d'un Groupe d'Utilisateur du Libre
plus d'info sur mon profil

Hors ligne

#11 Le 29/03/2023, à 15:33

geole

Re : Ubuntu s'est installé dans les périphériques et grub ne se lance pas

Comme en standard, ubuntu se met en premier, comme il ne l'est plus,  il y des risques que cela  soit impossible de le remettre en premier avec la séquence EFIBOOTMGR.    Il faut certainement  le faire de façon complexe (mode acer) par le bios EFI. Ce qui n'est  possible que si ce bios accepte.   Comme on a la référence de l'ordinateur, il va être possible de se mettre à chercher une solution éprouvée si publiée.
Ajout: Pas trouvé de références dans internet. Reste le tâtonnement

Boot3000* Internal Hard Disk or Solid State Disk	RC
Boot3001* Internal Hard Disk or Solid State Disk	RC
Boot3002* Internal Hard Disk or Solid State Disk	RC
Boot3003* Internal Hard Disk or Solid State Disk	RC

A mon avis,  Si tu trouves comment dire que l'une de ces lignes doit être systématiquement utilisée. C'est gagné.
Souvent publier des photos du bios dans un site dédié peut aider à trouver.

Dernière modification par geole (Le 29/03/2023, à 19:32)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#12 Le 29/03/2023, à 16:12

Qid

Re : Ubuntu s'est installé dans les périphériques et grub ne se lance pas

Je ne comprends pas que vous patiniez pour aller au bout de la modification de la configuration de la séquence de démarrage du bios... Le plus simple est quand même de passer par lui (mais dans ce cas il n'y a rien d'universel pour aider... Il suffit de lire un peu...)... Mais si vous voulez jouer avec EFIBOOTMGR après tout pourquoi pas et il y a une Doc qui aide bien


"GNU/Linux c'est que du bon mais M$ Windows ce n'est pas si mal"
Référent technique Ubuntu d'un Groupe d'Utilisateur du Libre
plus d'info sur mon profil

Hors ligne

#13 Le 29/03/2023, à 19:22

CF

Re : Ubuntu s'est installé dans les périphériques et grub ne se lance pas

Ca y'est j'ai changé la séquence de démarrage du bios et ça fonctionne ! Grub se lance en premier ! Merci pour votre aide !

Hors ligne