#26 Le 28/05/2020, à 19:31
- malbo
Re : [Résolu] PC en dual boot démarre directement sur windows
Ton Boot-info est là :
boot-info-4ppa124 [20200528_1859]
============================== Boot Info Summary ===============================
=> No boot loader is installed in the MBR of /dev/sda.
sda1: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /boot/bcd
sda2: __________________________________________________________________________
File system: vfat
Boot sector type: Windows 8/2012: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/Boot/bootx64.efi /efi/Boot/fbx64.efi
/efi/Boot/mmx64.efi /efi/ubuntu/grubx64.efi
/efi/ubuntu/mmx64.efi /efi/ubuntu/shimx64.efi
/efi/ubuntu/grub.cfg /efi/Microsoft/Boot/bootmgfw.efi
/efi/Microsoft/Boot/bootmgr.efi
/efi/Microsoft/Boot/memtest.efi
/efi/toshiba/Boot/bootmgfw.efi
/efi/toshiba/Boot/bootmgr.efi
/efi/toshiba/Boot/memtest.efi
sda3: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda4: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files: /bootmgr /Windows/System32/winload.exe
sda5: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/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/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda7: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 20.04 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
================================ 2 OS detected =================================
OS#1: L'OS actuellement utilisé - Ubuntu 20.04 LTS CurrentSession on sda7
OS#2: Windows 7 on sda4
============================ Architecture/Host Info ============================
CPU architecture: 64-bit
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.4.0-29-generic root=UUID=8f73e8b0-9209-41c8-9c46-2b0f763f2f7a ro quiet splash vt.handoff=7
===================================== UEFI =====================================
BIOS is EFI-compatible, and is setup in EFI-mode for this installed-session.
SecureBoot enabled.
efibootmgr -v
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0003,0004,0000,0005,2003,2001,2002
Boot0000* Windows Boot Manager HD(2,GPT,baec9d3e-fd18-11e1-8b03-8c309e1291a2,0xe1800,0x82000)/File(\EFI\ubuntu\shimx64.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.}...c................
Boot0001* EFI Network 0 for IPv6 (4C-72-B9-D1-68-04) PciRoot(0x0)/Pci(0x15,0x2)/Pci(0x0,0x0)/MAC(4c72b9d16804,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0002* EFI Network 0 for IPv4 (4C-72-B9-D1-68-04) PciRoot(0x0)/Pci(0x15,0x2)/Pci(0x0,0x0)/MAC(4c72b9d16804,0)/IPv4(0.0.0.00.0.0.0,0,0)RC
Boot0003* ubuntu HD(2,GPT,baec9d3e-fd18-11e1-8b03-8c309e1291a2,0xe1800,0x82000)/File(\EFI\ubuntu\shimx64.efi)
Boot0004* Ubuntu HD(2,GPT,baec9d3e-fd18-11e1-8b03-8c309e1291a2,0xe1800,0x82000)/File(\EFI\ubuntu\grubx64.efi)RC
Boot0005* Windows Boot Manager HD(2,GPT,baec9d3e-fd18-11e1-8b03-8c309e1291a2,0xe1800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)RC
Boot0006* EFI Network 0 for IPv6 (4C-72-B9-D1-68-04) PciRoot(0x0)/Pci(0x15,0x2)/Pci(0x0,0x0)/MAC(4c72b9d16804,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0007* EFI Network 0 for IPv4 (4C-72-B9-D1-68-04) PciRoot(0x0)/Pci(0x15,0x2)/Pci(0x0,0x0)/MAC(4c72b9d16804,0)/IPv4(0.0.0.00.0.0.0,0,0)RC
Boot2001* EFI USB Device RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network RC
f7a57b08bc7c1c85417ae4cea582d1d4 sda2/Boot/bootx64.efi
bed45d1c9554cea09924d3814cb7c446 sda2/Boot/fbx64.efi
4487628005555bfd4a4c0a47211e0700 sda2/Boot/mmx64.efi
98bea152fadd26c4e9136916f6cc32a8 sda2/ubuntu/grubx64.efi
4487628005555bfd4a4c0a47211e0700 sda2/ubuntu/mmx64.efi
f7a57b08bc7c1c85417ae4cea582d1d4 sda2/ubuntu/shimx64.efi
958ceee3668f4eff01fb29d03518b49e sda2/Microsoft/Boot/bootmgfw.efi
2db5c324bad6a5740ca6d5b69d8feaf9 sda2/Microsoft/Boot/bootmgr.efi
87b6d22295a16073d8d456fc574441a8 sda2/toshiba/Boot/bootmgfw.efi
bb971a4a02185961543c7903473a6680 sda2/toshiba/Boot/bootmgr.efi
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sda : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
sda7 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, farbios
sda1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda2 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda3 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda4 : is-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda5 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda6 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
Partitions info (2/3): _________________________________________________________
sda7 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda1 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
sda2 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda3 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda4 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, bootmgr, notwinboot
sda5 : 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, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
sda7 : not-sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sda
sda1 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sda2 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sda3 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sda4 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sda5 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sda6 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
fdisk -l (filtered): ___________________________________________________________
Disk sda: 698.65 GiB, 750156374016 bytes, 1465149168 sectors
Disk identifier: BAEC9D35-FD18-11E1-8B03-8C309E1291A2
Start End Sectors Size Type
sda1 2048 923647 921600 450M Windows recovery environment
sda2 923648 1456127 532480 260M EFI System
sda3 1456128 1718271 262144 128M Microsoft reserved
sda4 1718272 1053782464 1052064193 501.7G Microsoft basic data
sda5 1444517888 1445234687 716800 350M Windows recovery environment
sda6 1445234688 1465147391 19912704 9.5G Windows recovery environment
sda7 1053784064 1444517887 390733824 186.3G Linux filesystem
Partition table entries are not in disk order.
parted -lm (filtered): _________________________________________________________
sda:750GB:scsi:512:4096:gpt:ATA Hitachi HTS54757:;
1:1049kB:473MB:472MB:ntfs:Ba:hidden, diag;
2:473MB:746MB:273MB:fat32:Ba:boot, esp;
3:746MB:880MB:134MB:ntfs:Ba:msftres;
4:880MB:540GB:539GB:ntfs::msftdata;
7:540GB:740GB:200GB:ext4::;
5:740GB:740GB:367MB:ntfs::hidden, diag;
6:740GB:750GB:10.2GB:ntfs:Ba:hidden, diag;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 ntfs 2254B09854B06FE1 baec9d36-fd18-11e1-8b03-8c309e1291a2 System Ba
├─sda2 vfat AAB1-E17D baec9d3e-fd18-11e1-8b03-8c309e1291a2 Ba
├─sda3 ntfs C076B44976B441C8 baec9d40-fd18-11e1-8b03-8c309e1291a2 Ba
├─sda4 ntfs C866D2ED66D2DAF0 baec9d48-fd18-11e1-8b03-8c309e1291a2
├─sda5 ntfs 847E1D8A7E1D7660 33697f6a-efc0-4cf8-af7c-baea034ff964
├─sda6 ntfs 6AA62266A622334D b0def907-8df0-4569-b926-a2f3b64060e4 Recovery Ba
└─sda7 ext4 8f73e8b0-9209-41c8-9c46-2b0f763f2f7a a045d60b-1584-47fb-894a-622f7b498743
df (filtered): _________________________________________________________________
Avail Use% Mounted on
sda1 130.2M 71% /mnt/boot-sav/sda1
sda3 114M 11% /mnt/boot-sav/sda3
sda4 473.7G 6% /mnt/boot-sav/sda4
sda5 5.6M 98% /mnt/boot-sav/sda5
sda6 674.8M 93% /mnt/boot-sav/sda6
sda7 164.7G 5% /
Mount options: __________________________________________________________________
sda1 rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda3 rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda4 rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda5 rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda6 rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda7 rw,relatime,errors=remount-ro
===================== sda2/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid 8f73e8b0-9209-41c8-9c46-2b0f763f2f7a root hd0,gpt7
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
====================== sda7/boot/grub/grub.cfg (filtered) ======================
Ubuntu 8f73e8b0-9209-41c8-9c46-2b0f763f2f7a
Ubuntu, avec Linux 5.4.0-29-generic 8f73e8b0-9209-41c8-9c46-2b0f763f2f7a
Ubuntu, avec Linux 5.4.0-26-generic 8f73e8b0-9209-41c8-9c46-2b0f763f2f7a
Windows Boot Manager (sur sda2) osprober-efi-AAB1-E17D
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings uefi-firmware
### 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=8f73e8b0-9209-41c8-9c46-2b0f763f2f7a / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda2 during installation
UUID=AAB1-E17D /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
======================= sda7/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=""
==================== sda7: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
624,783142090 = 670,855790592 boot/grub/grub.cfg 2
623,048942566 = 668,993708032 boot/vmlinuz 1
506,936519623 = 544,318943232 boot/vmlinuz-5.4.0-26-generic 2
623,048942566 = 668,993708032 boot/vmlinuz-5.4.0-29-generic 1
506,936519623 = 544,318943232 boot/vmlinuz.old 2
623,740390778 = 669,736144896 boot/initrd.img 3
623,536449432 = 669,517164544 boot/initrd.img-5.4.0-26-generic 5
623,740390778 = 669,736144896 boot/initrd.img-5.4.0-29-generic 3
623,536449432 = 669,517164544 boot/initrd.img.old 5
===================== sda7: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 17123 avril 15 13:31 10_linux
-rwxr-xr-x 1 root root 42128 avril 15 13:31 10_linux_zfs
-rwxr-xr-x 1 root root 12894 avril 15 13:31 20_linux_xen
-rwxr-xr-x 1 root root 12059 avril 15 13:31 30_os-prober
-rwxr-xr-x 1 root root 1424 avril 15 13:31 30_uefi-firmware
-rwxr-xr-x 1 root root 214 avril 15 13:31 40_custom
-rwxr-xr-x 1 root root 216 avril 15 13:31 41_custom
========= Devices which don't seem to have a corresponding hard drive ==========
sdb
Suggested repair: ______________________________________________________________
The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed of
sda7,
using the following options: sda2/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s win-legacy-basic-fix use-standard-efi-file
Confirmation request before suggested repair: __________________________________
The boot of your PC is in Secure mode. You may want to retry after changing it to non-Secure mode.
Are you sure you want to continue anyway?
Final advice in case of suggested repair: ______________________________________
Please do not forget to make your UEFI firmware boot on the L'OS actuellement utilisé - Ubuntu 20.04 LTS CurrentSession entry (sda2/efi/****/shim****.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\****\shim****.efi (**** will be updated in the final message)
ça a très bien fonctionné.
On peut voir le paramétrage du système UEFI dans cet extrait :
===================================== UEFI =====================================
BIOS is EFI-compatible, and is setup in EFI-mode for this installed-session.
SecureBoot enabled.
efibootmgr -v
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0003,0004,0000,0005,2003,2001,2002
Boot0000* Windows Boot Manager HD(2,GPT,baec9d3e-fd18-11e1-8b03-8c309e1291a2,0xe1800,0x82000)/File(\EFI\ubuntu\shimx64.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.}...c................
Boot0001* EFI Network 0 for IPv6 (4C-72-B9-D1-68-04) PciRoot(0x0)/Pci(0x15,0x2)/Pci(0x0,0x0)/MAC(4c72b9d16804,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0002* EFI Network 0 for IPv4 (4C-72-B9-D1-68-04) PciRoot(0x0)/Pci(0x15,0x2)/Pci(0x0,0x0)/MAC(4c72b9d16804,0)/IPv4(0.0.0.00.0.0.0,0,0)RC
Boot0003* ubuntu HD(2,GPT,baec9d3e-fd18-11e1-8b03-8c309e1291a2,0xe1800,0x82000)/File(\EFI\ubuntu\shimx64.efi)
Boot0004* Ubuntu HD(2,GPT,baec9d3e-fd18-11e1-8b03-8c309e1291a2,0xe1800,0x82000)/File(\EFI\ubuntu\grubx64.efi)RC
Boot0005* Windows Boot Manager HD(2,GPT,baec9d3e-fd18-11e1-8b03-8c309e1291a2,0xe1800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)RC
Boot0006* EFI Network 0 for IPv6 (4C-72-B9-D1-68-04) PciRoot(0x0)/Pci(0x15,0x2)/Pci(0x0,0x0)/MAC(4c72b9d16804,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0007* EFI Network 0 for IPv4 (4C-72-B9-D1-68-04) PciRoot(0x0)/Pci(0x15,0x2)/Pci(0x0,0x0)/MAC(4c72b9d16804,0)/IPv4(0.0.0.00.0.0.0,0,0)RC
Boot2001* EFI USB Device RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network RC
L'entrée Boot0000 est la conséquence de ta manip faite dans Windows (celle que j'ai proposée dans le post #22 et que tu as dû adapter pour Windows 8) :
Boot0000* Windows Boot Manager HD(2,GPT,baec9d3e-fd18-11e1-8b03-8c309e1291a2,0xe1800,0x82000)/File(\EFI\ubuntu\shimx64.efi
L'entrée est désignée "Windows Boot Manager" mais elle pointe sur le fichier shimx64.efi
On peut voir qu'il existe une deuxième entrée "Windows Boot Manager" (Boot0005) qui elle permet de démarrer directement sur Windows (sans passer le menu Grub)
Si tout baigne pour toi, je te prie de passer la discussion en résolu en procédant comme suit :
1) te connecter sur le forum
2) cliquer sur "Modifier" en bas à droite de ton PREMIER post
3) modifier le titre de la discussion pour qu'il devienne :
[Résolu] PC en dual boot démarre directement sur windows
Dernière modification par malbo (Le 28/05/2020, à 19:41)
Hors ligne