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 07/09/2022, à 15:26

L'Africain

Démarrage de Windows en boucle sur grub

Bonjour,
C'est plus par curiosité que je poste, car le propriétaire du PC est déjà parti. Mais j'ai un hp laptop 15dw sur lequel j'ai installé un ubuntu. Au démarrage il bootait sur windows, puis avec boot-repair et je ne sais plus quel modif dans le bios j'ai réussi à démarrer sur grub. Tout un temps autant ubuntu que WIndows 11 fonctionnait correctement. Puis après plusieurs (avec une utilisation quasi exclusive d'Ubuntu) plus moyen d'aller sur Windows, ça revenait systématiquement sur grub.
j'ai réinstallé ubuntu, idem, j'ai réutilisé boot-repair et désormais boot uniquement sur Windows. J'ai donc laissé comme ça car l'utilisateur à des applis spécifiques à son travail sur windows.
On peut toujours accéder à grub via la touche f9 et pour le coup on peut désormais (depuis que boot-repair est passé par là) aller à WIndows par grub.

Voici le lien vers le résultat de boot-repair:

pastebin
Paste from boot-repair 07 September 2022 11:09 +0000

This paste expires on 2022-10-08.

Syntax highlighting: bash
View raw

boot-repair-4ppa200                                              [20220907_1108]

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




Default settings: ______________________________________________________________

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

Final advice in case of suggested repair: ______________________________________

Please do not forget to make your UEFI firmware boot on the Ubuntu 22.04.1 LTS entry (nvme0n1p1/efi/****/grub****.efi (**** will be updated in the final message) file) !
If your computer reboots directly into Windows, try to change the boot order in your UEFI firmware.
If your UEFI firmware does not allow to change the boot order, change the default boot entry of the Windows bootloader.
For example you can boot into Windows, then type the following command in an admin command prompt:
bcdedit /set {bootmgr} path \EFI\****\grub****.efi (**** will be updated in the final message)

User settings: _________________________________________________________________

/media/ubuntu/EASY2BOOT/boot/grub/menu.lst detected
The settings chosen by the user will reinstall the grub-efi of
nvme0n1p6,
using the following options:  nvme0n1p1/boot/efi
Additional repair will be performed: unhide-bootmenu-10s win-legacy-basic-fix use-standard-efi-file restore-efi-backups


rm /mnt/boot-sav/nvme0n1p1/efi/Microsoft/Boot/bootmgfw.efi
mv /mnt/boot-sav/nvme0n1p1/efi/Microsoft/Boot/bkpbootmgfw.efi /mnt/boot-sav/nvme0n1p1/efi/Microsoft/Boot/bootmgfw.efi
rm /mnt/boot-sav/nvme0n1p1/efi/Microsoft/Boot/bootx64.efi /mnt/boot-sav/nvme0n1p1/efi/Microsoft/Boot/bootx64.efi.grb
rm /mnt/boot-sav/nvme0n1p1/efi/Boot/bootx64.efi
mv /mnt/boot-sav/nvme0n1p1/efi/Boot/bkpbootx64.efi /mnt/boot-sav/nvme0n1p1/efi/Boot/bootx64.efi
Quantity of real Windows: 1
Mount nvme0n1p1 on /mnt/boot-sav/nvme0n1p6/boot/efi

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

===================== Reinstall the grub-efi of nvme0n1p6 ======================

chroot /mnt/boot-sav/nvme0n1p6 grub-install --version
grub-install (GRUB) 2.06-2ubuntu7
chroot /mnt/boot-sav/nvme0n1p6 modprobe efivars

chroot /mnt/boot-sav/nvme0n1p6 efibootmgr -v before grub install
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0001,0002,2001,2002,2004
Boot0000* Disque dur USB (UEFI) - WD      Elements 25A2 (WD      Elements 25A2)	PciRoot(0x0)/Pci(0x14,0x0)/USB(14,0)/HD(1,MBR,0xa6901290,0x800,0x2710000)RC
Boot0001* Windows Boot Manager	HD(1,GPT,dd186592-c7bc-49ff-85c1-6a44cd22d457,0x800,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* ubuntu	HD(1,GPT,dd186592-c7bc-49ff-85c1-6a44cd22d457,0x800,0x82000)/File(EFIubuntushimx64.efi)
Boot2001* EFI USB Device	RC
Boot3001* Internal Hard Disk or Solid State Disk	RC
Boot3003* Internal Hard Disk or Solid State Disk	RC

chroot /mnt/boot-sav/nvme0n1p6 uname -r
5.15.0-25-generic

chroot /mnt/boot-sav/nvme0n1p6 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/nvme0n1p1
mv /mnt/boot-sav/nvme0n1p6/boot/efi/EFI/Boot/bootx64.efi /mnt/boot-sav/nvme0n1p6/boot/efi/EFI/Boot/bkpbootx64.efi
cp /mnt/boot-sav/nvme0n1p6/boot/efi/efi/ubuntu/grubx64.efi /mnt/boot-sav/nvme0n1p6/boot/efi/EFI/Boot/bootx64.efi

chroot /mnt/boot-sav/nvme0n1p6 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/nvme0n1p6 efibootmgr -v after grub install
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0001,0002,2001,2002,2004
Boot0000* Disque dur USB (UEFI) - WD      Elements 25A2 (WD      Elements 25A2)	PciRoot(0x0)/Pci(0x14,0x0)/USB(14,0)/HD(1,MBR,0xa6901290,0x800,0x2710000)RC
Boot0001* Windows Boot Manager	HD(1,GPT,dd186592-c7bc-49ff-85c1-6a44cd22d457,0x800,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* ubuntu	HD(1,GPT,dd186592-c7bc-49ff-85c1-6a44cd22d457,0x800,0x82000)/File(EFIubuntushimx64.efi)
Boot2001* EFI USB Device	RC
Boot3001* 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/nvme0n1p6 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-47-generic
Found initrd image: /boot/initrd.img-5.15.0-47-generic
Found linux image: /boot/vmlinuz-5.15.0-25-generic
Found initrd image: /boot/initrd.img-5.15.0-25-generic
Found linux image: /boot/vmlinuz-5.14.0-1027-oem
Found initrd image: /boot/initrd.img-5.14.0-1027-oem
Found linux image: /boot/vmlinuz-5.13.0-35-generic
Found initrd image: /boot/initrd.img-5.13.0-35-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 Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi

Unhide GRUB boot menu in nvme0n1p6/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.04.1 LTS (fichier nvme0n1p1/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/nvme0n1.
 => Grub2 (v2.00) is installed in the MBR of /dev/sda 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 fat part_msdos biosdisk
    ---------------------------------------------------------------------------

nvme0n1p1: _____________________________________________________________________

    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/DI.efi 
                       /efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi 
                       /efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg 
                       /efi/HP/BIOSUpdate/BiosMgmt.efi 
                       /efi/HP/BIOSUpdate/CryptRSA.efi 
                       /efi/HP/SystemDiags/CryptRSA.efi 
                       /efi/HP/SystemDiags/DI.efi 
                       /efi/HP/SystemDiags/SysDiags.efi 
                       /efi/Microsoft/Boot/bootmgfw.efi 
                       /efi/Microsoft/Boot/bootmgr.efi

nvme0n1p2: _____________________________________________________________________

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

nvme0n1p3: _____________________________________________________________________

    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 10 or 11
    Boot files:        /Windows/System32/winload.exe

nvme0n1p4: _____________________________________________________________________

    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:        

nvme0n1p5: _____________________________________________________________________

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

nvme0n1p6: _____________________________________________________________________

    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

sda1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  SYSLINUX 6.03 20151222............................................@.....2....0............A20 gate n
    Boot sector info:  Syslinux looks at sector 10532376 of /dev/sda1 for 
                       its second stage. SYSLINUX is installed in the 
                       /boot/syslinux directory. The integrity check of the 
                       ADV area failed. No errors found in the Boot Parameter 
                       Block.
    Boot file info:      Grub2 (v2.00) in the file 
                       /lubuntu-22.04-desktop-amd64.iso looks at sector 0 of 
                       the same hard drive for core.img, but core.img can not 
                       be found at this location. Grub2 (v2.00) in the file 
                       /ubuntu-mate-22.04-desktop-amd64.iso looks at sector 0 
                       of the same hard drive for core.img, but core.img can 
                       not be found at this location. Grub2 (v2.00) in the 
                       file /ubuntu-unity-22.04.iso looks at sector 0 of the 
                       same hard drive for core.img, but core.img can not be 
                       found at this location. Grub2 (v2.00) in the file 
                       /xubuntu-22.04-desktop-amd64.iso 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/menu.lst /boot/grub/grub.cfg 
                       /boot/syslinux/syslinux.cfg /efi/BOOT/bootia32.efi 
                       /efi/BOOT/grubx64.efi /boot/grub/i386-pc/core.img 
                       /boot/syslinux/ldlinux.sys

sda2: __________________________________________________________________________

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

sda4: __________________________________________________________________________

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


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

OS#1:   Ubuntu 22.04.1 LTS on nvme0n1p6
OS#2:   Windows 10 or 11 on nvme0n1p3

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

CPU architecture: 64-bit
Video: CometLake-U GT2 [UHD Graphics] from Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 22.04 LTS, jammy, x86_64)

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

BIOS/UEFI firmware: F.43(15.43) from Insyde
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled - SecureBoot disabled
Platform is in Setup Mode - Veuillez indiquer ce message à boot.repair@gmail.com.
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0001,0002,2001,2002,2004
Boot0000* Disque dur USB (UEFI) - WD      Elements 25A2 (WD      Elements 25A2)	PciRoot(0x0)/Pci(0x14,0x0)/USB(14,0)/HD(1,MBR,0xa6901290,0x800,0x2710000)RC
Boot0001* Windows Boot Manager	HD(1,GPT,dd186592-c7bc-49ff-85c1-6a44cd22d457,0x800,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* ubuntu	HD(1,GPT,dd186592-c7bc-49ff-85c1-6a44cd22d457,0x800,0x82000)/File(\EFI\ubuntu\shimx64.efi)
Boot2001* EFI USB Device	RC
Boot3001* Internal Hard Disk or Solid State Disk	RC
Boot3003* Internal Hard Disk or Solid State Disk	RC

728124f6ec8e22fbdbe7034812c81b95   nvme0n1p1/Boot/bkpbootx64.efi
728124f6ec8e22fbdbe7034812c81b95   nvme0n1p1/Boot/bootx64.efi
c152ec201c37b6e97bbc2207e49d1271   nvme0n1p1/Boot/fbx64.efi
fdafb5eece6caeccb788c946a28e6872   nvme0n1p1/Boot/mmx64.efi
b8fd88dceb852fe967a530e9489c1e32   nvme0n1p1/HP/DI.efi
f62c28d9b477b6a1a7b1c991b2b6637d   nvme0n1p1/ubuntu/grubx64.efi
fdafb5eece6caeccb788c946a28e6872   nvme0n1p1/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95   nvme0n1p1/ubuntu/shimx64.efi
7b5e70643634fef9ae4c3be43e4c379a   nvme0n1p1/HP/BIOSUpdate/BiosMgmt.efi
6488d391f74263c9da3c3d47dffa6212   nvme0n1p1/HP/BIOSUpdate/CryptRSA.efi
6488d391f74263c9da3c3d47dffa6212   nvme0n1p1/HP/SystemDiags/CryptRSA.efi
b8fd88dceb852fe967a530e9489c1e32   nvme0n1p1/HP/SystemDiags/DI.efi
a5d16d56dc4eb159dfb3d5a0741b9d52   nvme0n1p1/HP/SystemDiags/SysDiags.efi
7e09c5e1912455db662fa8254318faa2   nvme0n1p1/Microsoft/Boot/bootmgfw.efi
46be41b32d03ed3521b602d790327d85   nvme0n1p1/Microsoft/Boot/bootmgr.efi
1db7aa09c2bda1d08b0f7b61a54a2e2d   sda1/BOOT/bootia32.efi
1bd54ad95660feab365d15299242ff9f   sda1/BOOT/grubx64.efi
7095619324a9fb786422d7427c056405   sda1/BOOT/BOOTx64.efi

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

Disks info: ____________________________________________________________________

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

Partitions info (1/3): _________________________________________________________

nvme0n1p1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
nvme0n1p3	: is-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
nvme0n1p4	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
nvme0n1p5	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
nvme0n1p6	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios
sda4	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda2	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios

Partitions info (2/3): _________________________________________________________

nvme0n1p1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
nvme0n1p3	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	no-bmgr,	notwinboot
nvme0n1p4	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	no-bmgr,	notwinboot
nvme0n1p5	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
nvme0n1p6	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda4	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda2	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

nvme0n1p1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	nvme0n1
nvme0n1p3	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	nvme0n1
nvme0n1p4	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	nvme0n1
nvme0n1p5	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	nvme0n1
sda1	: not--sepboot,	no-kernel,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
nvme0n1p6	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	nvme0n1
sda4	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda2	: maybesepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk identifier: F291370B-ABDC-41B1-BB94-F5D8D2DACAC9
          Start     End Sectors  Size Type
loop0p1      64 6973499 6973436  3.3G Microsoft basic data
loop0p2 6973500 6981963    8464  4.1M EFI System
loop0p3 6981964 6982563     600  300K Microsoft basic data
Disk nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk identifier: 733D278D-2141-4B63-AC06-5357F2142506
              Start        End   Sectors   Size Type
nvme0n1p1      2048     534527    532480   260M EFI System
nvme0n1p2    534528     567295     32768    16M Microsoft reserved
nvme0n1p3    567296  165216255 164648960  78.5G Microsoft basic data
nvme0n1p4 998418432 1000200191   1781760   870M Windows recovery environment
nvme0n1p5 165216256  915812351 750596096 357.9G Microsoft basic data
nvme0n1p6 915812352  998417820  82605469  39.4G Linux filesystem
Partition table entries are not in disk order.
Disk sda: 1.82 TiB, 2000365289472 bytes, 3906963456 sectors
Disk identifier: 0xa6901290
      Boot      Start        End    Sectors   Size Id Type
sda1  *          2048   40962047   40960000  19.5G  b W95 FAT32
sda2         40962048 3492956159 3451994112   1.6T 83 Linux
sda4       3492958208 3906963455  414005248 197.4G  7 HPFS/NTFS/exFAT

parted -lm (filtered): _________________________________________________________

sda:2000GB:scsi:512:512:msdos:WD Elements 25A2:;
1:1049kB:21.0GB:21.0GB:fat32::boot;
2:21.0GB:1788GB:1767GB:ext4::;
4:1788GB:2000GB:212GB:ntfs::;
nvme0n1:512GB:nvme:512:512:gpt:SK hynix BC511 HFM512GDJTNI-82A0A:;
1:1049kB:274MB:273MB:fat32:EFI system partition:boot, esp;
2:274MB:290MB:16.8MB::Microsoft reserved partition:msftres;
3:290MB:84.6GB:84.3GB:ntfs:Basic data partition:msftdata;
5:84.6GB:469GB:384GB:ntfs::msftdata;
6:469GB:511GB:42.3GB:ext4::;
4:511GB:512GB:912MB:ntfs::hidden, diag;

blkid (filtered): ______________________________________________________________

NAME        FSTYPE   UUID                                 PARTUUID                             LABEL              PARTLABEL
sda                                                                                                               
├─sda1      vfat     06C4-9E62                            a6901290-01                          EASY2BOOT          
├─sda2      ext4     3c6a9a87-61d6-4b36-ad75-9f3ce2911ff2 a6901290-02                          Depots             
└─sda4      ntfs     09D6916227177074                     a6901290-04                          Elements           
nvme0n1                                                                                                           
├─nvme0n1p1 vfat     6851-4361                            dd186592-c7bc-49ff-85c1-6a44cd22d457 SYSTEM             EFI system partition
├─nvme0n1p2                                               70cdf289-e30d-433a-8e23-3eddbb62fafa                    Microsoft reserved partition
├─nvme0n1p3 ntfs     00EE48F3EE48E290                     7aed7c80-598a-4ce0-af0f-5fe752c89ad8 Windows            Basic data partition
├─nvme0n1p4 ntfs     9444D0A444D089FE                     9eb58555-3e9f-48c8-b757-235bdb96b6e3                    
├─nvme0n1p5 ntfs     26F8D0136AC4E962                     6d2065fe-c3bf-41a6-b0ee-77b4c3de26b0 Commun             
└─nvme0n1p6 ext4     bab5352b-c073-41de-a3c2-fef8e87a27ff 385d7a16-c5ce-45a8-b50b-bc25985b3a4e Ubuntu             

Mount points (filtered): _______________________________________________________

                        Avail Use% Mounted on
/dev/nvme0n1p1         169.1M  34% /mnt/boot-sav/nvme0n1p1
/dev/nvme0n1p3          20.5G  74% /mnt/boot-sav/nvme0n1p3
/dev/nvme0n1p4          89.5M  90% /mnt/boot-sav/nvme0n1p4
/dev/nvme0n1p5         188.2G  47% /mnt/boot-sav/nvme0n1p5
/dev/nvme0n1p6          20.8G  41% /mnt/boot-sav/nvme0n1p6
/dev/sda1                4.8G  75% /media/ubuntu/EASY2BOOT
/dev/sda2              136.6G  91% /media/ubuntu/Depots
/dev/sda4               90.3G  54% /media/ubuntu/Elements

Mount options (filtered): ______________________________________________________

/dev/nvme0n1p1         vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/nvme0n1p3         fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/nvme0n1p4         fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/nvme0n1p5         fuseblk         rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/nvme0n1p6         ext4            rw,relatime
/dev/sda1              vfat            rw,nosuid,nodev,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sda2              ext4            rw,nosuid,nodev,relatime,errors=remount-ro
/dev/sda4              fuseblk         rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096

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

search.fs_uuid bab5352b-c073-41de-a3c2-fef8e87a27ff root 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

Ubuntu   bab5352b-c073-41de-a3c2-fef8e87a27ff
Ubuntu, with Linux 5.15.0-47-generic   bab5352b-c073-41de-a3c2-fef8e87a27ff
Ubuntu, with Linux 5.15.0-25-generic   bab5352b-c073-41de-a3c2-fef8e87a27ff
Ubuntu, with Linux 5.14.0-1027-oem   bab5352b-c073-41de-a3c2-fef8e87a27ff
Ubuntu, with Linux 5.13.0-35-generic   bab5352b-c073-41de-a3c2-fef8e87a27ff
Windows Boot Manager (on nvme0n1p1)   osprober-efi-6851-4361
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

======================== nvme0n1p6/etc/fstab (filtered) ========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/nvme0n1p6 during installation
UUID=bab5352b-c073-41de-a3c2-fef8e87a27ff /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=6851-4361  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0
/dev/nvme0n1p5   /media/Commun    ntfs-3g rw,auto,user,fmask=0111,uid=1000,dmask=0000,noatime,nodiratime   0   0

==================== nvme0n1p6/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 acpi_backlight=vendor"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_OS_PROBER=false

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

           GiB - GB             File                                 Fragment(s)
            ?? = ??             boot/grub/grub.cfg                             1
 447,282222748 = 480,265629696  boot/vmlinuz                                   1
 447,155956268 = 480,130052096  boot/vmlinuz-5.13.0-35-generic                 1
 449,482906342 = 482,628595712  boot/vmlinuz-5.14.0-1027-oem                   1
 445,927730560 = 478,811254784  boot/vmlinuz-5.15.0-25-generic                 2
 447,282222748 = 480,265629696  boot/vmlinuz-5.15.0-47-generic                 1
 445,927730560 = 478,811254784  boot/vmlinuz.old                               2
 465,002330780 = 499,292450816  boot/initrd.img                                3
 448,169918060 = 481,218785280  boot/initrd.img-5.13.0-35-generic              2
 448,104785919 = 481,148850176  boot/initrd.img-5.14.0-1027-oem                2
 439,790653229 = 472,221618176  boot/initrd.img-5.14.0-1027-oem.old-dkms       2
 447,907688141 = 480,937218048  boot/initrd.img-5.15.0-25-generic              1
 465,002330780 = 499,292450816  boot/initrd.img-5.15.0-47-generic              3
 447,907688141 = 480,937218048  boot/initrd.img.old                            1

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

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

======================== nvme0n1p6/etc/grub.d/35_fwupd =========================

#! /bin/sh
# SPDX-License-Identifier: LGPL-2.1+
set -e
[ -d ${pkgdatadir:?} ]
# shellcheck source=/dev/null
. "$pkgdatadir/grub-mkconfig_lib"
if [ -f /var/lib/fwupd/uefi_capsule.conf ] &&
   ls /sys/firmware/efi/efivars/fwupd-*-0abba7dc-e516-4167-bbf5-4d9d1c739416 1>/dev/null 2>&1; then
      . /var/lib/fwupd/uefi_capsule.conf
      if [ "${EFI_PATH}" != "" ] && [ "${ESP}" != "" ]; then
      echo "Adding Linux Firmware Updater entry" >&2
cat << EOF
menuentry 'Linux Firmware Updater' \$menuentry_id_option 'fwupd' {
EOF
      ${grub_probe:?}
      prepare_grub_to_access_device '`${grub_probe} --target=device \${ESP}` | sed -e "s/^/\t/"'
cat << EOF
	chainloader ${EFI_PATH}
}
EOF
      fi
fi

====================== sda1/boot/grub/menu.lst (filtered) ======================

# This is a sample menu.lst file. You should make some changes to it.
# The old install method of booting via the stage-files has been removed.
# Please install GRLDR boot strap code to MBR with the bootlace.com
# utility under DOS/Win9x or Linux.
timeout 30
default /default
#convert -resize 640x480 -colors 14 /media/multisystem/boot/splash/splash.png /media/multisystem/boot/splash/splash.xpm.gz
splashimage=/boot/splash/splash.xpm.gz
#color blue/green yellow/red white/magenta white/magenta
foreground=0033FF
background=FF3300
#http://diddy.boot-land.net/grub4dos/Grub4dos.htm
#http://www.boot-land.net/forums/index.php?showforum=66
#http://diddy.boot-land.net/grub4dos/files/syntax.htm
#Ne supprimez pas ce marqueur! / Do not remove this marker!
#MULTISYSTEM_START
#MULTISYSTEM_STOP
#Ne supprimez pas ce marqueur! / Do not remove this marker!
#http://diddy.boot-land.net/grub4dos/files/syntax.htm
title Chainloader into GRUB 2
find --set-root /boot/grub/boot.img
chainloader /boot/grub/boot.img
boot
#title Chainloader into Syslinux
#map (hd0) (hd0)
#map (hd0) (hd0)
#chainloader (hd0,0)+1
#rootnoverify (hd0,0)
##Autre solution pour chainer Syslinux
##faire une copie du mbr de la clé USB
##dd if=/dev/sd?1 of=/media/multisystem/syslinux.mbr bs=512 count=1
#title Chainloader into Syslinux
#find --set-root --ignore-floppies --ignore-cd /syslinux.mbr
#map (hd0) (hd0)
#map (hd0) (hd0)
#map --rehook
#find --set-root --ignore-floppies --ignore-cd /syslinux.mbr
#chainloader /syslinux.mbr
##Autre solution pour chainer Syslinux
#title Chainloader into Syslinux
#find --set-root /boot/syslinux/ldlinux.sys
#chainloader /boot/syslinux/ldlinux.sys
##Autre solution pour chainer Syslinux
#title Chainloader into Syslinux
#find --set-root --ignore-floppies --ignore-cd /boot/syslinux/redir.img
#kernel /boot/syslinux/memdisk
#initrd /boot/syslinux/redir.img
#http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/
title FreeDos
kernel /boot/syslinux/memdisk
initrd /boot/img/fdboot.img
title find and load NTLDR of Windows NT/2K/XP
fallback 1
find --set-root --ignore-floppies --ignore-cd /ntldr
map () (hd0)
map (hd0) ()
map --rehook
find --set-root --ignore-floppies --ignore-cd /ntldr
chainloader /ntldr
savedefault --wait=2
title find and load BOOTMGR of Windows VISTA/SEVEN
fallback 2
find --set-root --ignore-floppies --ignore-cd /bootmgr
map () (hd0)
map (hd0) ()
map --rehook
find --set-root --ignore-floppies --ignore-cd /bootmgr
chainloader /bootmgr
savedefault --wait=2
title find and load CMLDR, the Recovery Console of Windows NT/2K/XP
fallback 3
find --set-root --ignore-floppies --ignore-cd /cmldr
map () (hd0)
map (hd0) ()
map --rehook
find --set-root --ignore-floppies --ignore-cd /cmldr
chainloader /cmldr
#####################################################################
# write string "cmdcons" to memory 0000:7C03 in 2 steps:
#####################################################################
# step 1. Write 4 chars "cmdc" at 0000:7C03
write 0x7C03 0x63646D63
# step 2. Write 3 chars "ons" and an ending null at 0000:7C07
write 0x7C07 0x00736E6F
savedefault --wait=2
title find and load IO.SYS of Windows 9x/Me
fallback 4
find --set-root /io.sys
chainloader /io.sys
savedefault --wait=2
title find and boot 0PE.ISO
fallback 5
find --set-root /0PE/0PE.ISO
map /0PE/0PE.ISO (0xff) || map --mem /0PE/0PE.ISO (0xff)
map --hook
chainloader (0xff)
savedefault --wait=2
title find and boot MicroPE.ISO
fallback 6
find --set-root /boot/MicroPE.ISO
map /boot/MicroPE.ISO (0xff) || map --mem /boot/MicroPE.ISO (0xff)
map --hook
chainloader (0xff)
savedefault --wait=2
title find and boot ubcd.iso
fallback 8
find --set-root /ubcd.iso
map /ubcd.iso (0xff) || map --mem /ubcd.iso (0xff)
map --hook
chainloader (0xff)
savedefault --wait=2
title commandline
commandline
title reboot
reboot
title halt
halt

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

lubuntu-22.04-desktop-amd64.iso
ubuntu-mate-22.04-desktop-amd64.iso
ubuntu-unity-22.04.iso
antiX
xubuntu-22.04-desktop-amd64.iso
______________Grub4Dos______________
Grub4Dos
______________Syslinux______________
Syslinux
______________UTIL______________
0-testfakebios
Windows 7 BIOS/MBR
Windows XP BIOS/MBR
grub.cfg auf sdb1
Chain other configfile
Return default menu
Chainer UUID de la partition
FreeBSD
PLoP Boot Manager
Super Grub2 Disk
Super Grub Disk
Smart Boot Manager
BKO (boot.kernel.org)
vbeinfo
lspci
gfxpayload 640x480
gfxpayload 800x600
gfxpayload 1024x768
gfxpayload 1280x1024
Reboot

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

default /boot/syslinux/vesamenu.c32
prompt 0
timeout 40
ontimeout 0
MENU TITLE MultiSystem LiveUSB
MENU DEFAULT 0
MENU BACKGROUND /boot/splash/splash.png
#Ne supprimez pas ce marqueur! / Do not remove this marker!
#MULTISYSTEM_START
#MULTISYSTEM_STOP
#Ne supprimez pas ce marqueur! / Do not remove this marker!
label 0
MENU LABEL PLoP Boot Manager
KERNEL /boot/img/plpbt
label 1
MENU LABEL Grub2
kernel /boot/syslinux/chain.c32 file=/boot/grub/boot.img
label 2
MENU LABEL Grub4Dos
kernel /boot/grub.exe
LABEL 3
MENU LABEL Hardware Detection Tool
KERNEL /boot/syslinux/hdt.c32
#Exemple pour booter un iso avec version recente de memdisk
#label 4
#MENU LABEL boot iso
#KERNEL /boot/syslinux/memdisk
#APPEND iso raw initrd=/g4u.iso
#LABEL 5
#KERNEL /boot/syslinux/memdisk
#APPEND initrd=freebsd.img floppy
#LABEL 6
#MENU LABEL Chainer win
#KERNEL /boot/syslinux/chain.c32 ntldr=/ntldr
#LABEL 7
#MENU LABEL Chainer partition 2
#kernel /boot/syslinux/chain.c32
#append hd0 2

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

           GiB - GB             File                                 Fragment(s)
            ?? = ??             boot/grub/menu.lst                             1
            ?? = ??             boot/grub/grub.cfg                             1
            ?? = ??             boot/grub/i386-pc/core.img                     1

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

           GiB - GB             File                                 Fragment(s)
            ?? = ??             boot/syslinux/syslinux.cfg                     1
            ?? = ??             boot/syslinux/ldlinux.sys                      1
            ?? = ??             boot/syslinux/chain.c32                        1
            ?? = ??             boot/syslinux/hdt.c32                          1
            ?? = ??             boot/syslinux/ifplop.c32                       1
            ?? = ??             boot/syslinux/ldlinux.c32                      1
            ?? = ??             boot/syslinux/menu.c32                         1
            ?? = ??             boot/syslinux/reboot.c32                       1
            ?? = ??             boot/syslinux/vesamenu.c32                     1

=============== sda1: Version of COM32(R) files used by Syslinux ===============

 boot/syslinux/chain.c32            :  not a COM32/COM32R module
 boot/syslinux/hdt.c32              :  not a COM32/COM32R module
 boot/syslinux/ifplop.c32           :  not a COM32/COM32R module
 boot/syslinux/ldlinux.c32          :  not a COM32/COM32R module
 boot/syslinux/menu.c32             :  not a COM32/COM32R module
 boot/syslinux/reboot.c32           :  not a COM32/COM32R module
 boot/syslinux/vesamenu.c32         :  not a COM32/COM32R module

New paste
Poster:

Your name (30 characters max)
Syntax:
Expiration:

Approximate and not guaranteed
Content:
© 2022 Canonical Ltd. Ubuntu and Canonical are registered trademarks of Canonical Ltd.

    Legal info 

Go to the top of the page

Merci!


Ubuntu-Unity 18.04 LDLC (clevo) X/Lubuntu-Mate
"Donne à celui qui te demande…" Mt 5,42

Hors ligne

#2 Le 07/09/2022, à 16:51

geole

Re : Démarrage de Windows en boucle sur grub

Bonjour
Peut-être cette manipulation?


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