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 17/05/2020, à 17:37

Nico_ldl

Dual Boot UEFI - "grub-install /dev/sda failed"

Bonjour,

Je veux installer Ubuntu en dual boot sur mon ordinateur (marque MSI, Windows 10, mode UEFI).
J'ai créé une clé bootable à l'aide de Rufus où j'ai mis "ubuntu-20.04-desktop-amd64.iso", avec comme schéma de partition : "GPT", comme système de destination "UEFI (non CSM)".
J'ai libéré un espace non alloué d'environ 80Go (il y a 2 autres espaces non alloués mais je n'arrive pas à les fusionner).
J'ai désactivé le "secure boot" et le "fast boot" dans le menu BIOS puis j'ai booté sur ma clé.
Mon installation plante si je n'écrit pas "acpi=off" dans la configuration Ubuntu, donc je fais aussi cette étape.
Lors de la préparation de l'installation, aucune erreur n'est trouvée.
Je configure pour avoir une installation minimale, puis je choisi "installation à côté de windows boot manager". Il m’avertit que les tables de partition qui seront changées sont "SCSI2(0,0,0) (sda)" et que la partition qui sera formatée est la 6.
L'installation démarre puis je tombe sur l'erreur "grub-install /dev/sda failed".

Ceci arrive de manière récurrente. J'ai essayé différentes méthodes, par exemple de choisir moi même les partitions (une Ext, une BIOS et une SWAP).
Le boot-repair ne fonctionne pas directement pour réparer : "/target detected. Please reboot and try again from a new live session."
La seule technique qui a marché était d'installer Ubuntu en ayant le boot mode en LEGACY et non pas en UEFI. Je passais d'un OS à un autre en changeant le boot mode. Mais de ce que j'ai compris, cette installation n'est pas recommandé (?) (j'avais d'ailleurs pas mal de problèmes de réseaux après, à voir si c'était lié) -> si ça n'est pas déconseillé je vais refaire ça et je regarderai mes problèmes au cas par cas.

Actuellement, si je veux redémarrer sur Linux, j'arrive sur une sorte de terminal Grub dont je n'arrive pas à sortir.

Voici mon boot-info actuel :

boot-repair-4ppa119                                              [20200517_1706]

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

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

sda1: __________________________________________________________________________

    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/MSI/Boot/bootmgfw.efi 
                       /efi/MSI/Boot/bootmgr.efi /efi/MSI/Boot/memtest.efi 
                       /efi/Microsoft/Boot/bootmgfw.efi 
                       /efi/Microsoft/Boot/bootmgr.efi 
                       /efi/Microsoft/Boot/memtest.efi

sda2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  According to the info in the boot sector, sda2 starts 
                       at sector 0. But according to the info from fdisk, 
                       sda2 starts at sector 25251840.
    Operating System:  Windows 10
    Boot files:        /bootmgr /Windows/System32/winload.exe

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:  
    Boot files:        

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:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 20.04 LTS
    Boot files:        /etc/fstab /etc/default/grub

sdb1: __________________________________________________________________________

    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:        /boot/grub/grub.cfg /syslinux.cfg 
                       /efi/BOOT/grubx64.efi /efi/BOOT/mmx64.efi


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

OS#1:   Windows 10 on sda2
OS#2:   Ubuntu 20.04 LTS on sda6

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

CPU architecture: 64-bit
Live-session OS is Ubuntu 64-bit (Ubuntu 20.04 LTS, focal, x86_64)


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

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

efibootmgr -v
BootCurrent: 0007
Timeout: 0 seconds
BootOrder: 0007,0005,0006,0000,0004
Boot0000* Windows Boot Manager	HD(1,GPT,5b59b24d-d508-4e29-9da5-75576ceed718,0x800,0x96000)/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.}...i................
Boot0004* ubuntu	HD(1,GPT,5b59b24d-d508-4e29-9da5-75576ceed718,0x800,0x96000)/File(\EFI\UBUNTU\SHIMX64.EFI)..BO
Boot0005* UEFI: PXE IP4 Qualcomm Atheros PCIe Network Controller	PciRoot(0x0)/Pci(0x1c,0x5)/Pci(0x0,0x0)/MAC(4ccc6ae12edb,0)/IPv4(0.0.0.00.0.0.0,0,0)..BO
Boot0006* UEFI: PXE IP6 Qualcomm Atheros PCIe Network Controller	PciRoot(0x0)/Pci(0x1c,0x5)/Pci(0x0,0x0)/MAC(4ccc6ae12edb,0)/IPv6([::]:<->[::]:,0,0)..BO
Boot0007* UEFI:  USB Flash MemoryPMAP, Partition 1	PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(1,GPT,af847b83-1ebf-4477-8b5b-72535215c24d,0x800,0x7767df)..BO

f7a57b08bc7c1c85417ae4cea582d1d4   sda1/Boot/bootx64.efi
bed45d1c9554cea09924d3814cb7c446   sda1/Boot/fbx64.efi
4487628005555bfd4a4c0a47211e0700   sda1/Boot/mmx64.efi
98bea152fadd26c4e9136916f6cc32a8   sda1/ubuntu/grubx64.efi
4487628005555bfd4a4c0a47211e0700   sda1/ubuntu/mmx64.efi
f7a57b08bc7c1c85417ae4cea582d1d4   sda1/ubuntu/shimx64.efi
18a3724224b0f82a36941982259339b6   sda1/MSI/Boot/bootmgfw.efi
4e3a2ee37111132b1bb95323dfc123d2   sda1/MSI/Boot/bootmgr.efi
cb8e4284804d56f058c0e1cf111eeedd   sda1/Microsoft/Boot/bootmgfw.efi
3df357ffd0654bb80f2a575485e6e0cc   sda1/Microsoft/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): _________________________________________________________

sda1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda2	: is-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda3	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda4	: no-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	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios

Partitions info (2/3): _________________________________________________________

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

Partitions info (3/3): _________________________________________________________

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,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: B9197F3D-7E30-47C7-933F-B52C02D17A7A
           Start        End   Sectors   Size Type
sda1        2048     616447    614400   300M EFI System
sda2    25251840  991709183 966457344 460.9G Microsoft basic data
sda3  1172989952 1174833151   1843200   900M Windows recovery environment
sda4  1174833152 1799813119 624979968   298G Microsoft basic data
sda5  1918412800 1953523711  35110912  16.8G Windows recovery environment
sda6   991709184 1172989951 181280768  86.5G Linux filesystem
Partition table entries are not in disk order.
Disk sdb: 3.75 GiB, 4007657472 bytes, 7827456 sectors
Disk identifier: B8FBE763-891A-49EF-8630-575328F638B5
      Start     End Sectors  Size Type
sdb1   2048 7827422 7825375  3.7G Microsoft basic data

parted -lm (filtered): _________________________________________________________

sda:1000GB:scsi:512:4096:gpt:ATA ST1000LM048-2E71:;
1:1049kB:316MB:315MB:fat32:EF:boot, esp;
2:12.9GB:508GB:495GB:ntfs::msftdata;
6:508GB:601GB:92.8GB:ext4::;
3:601GB:602GB:944MB:ntfs:Ba:hidden, diag;
4:602GB:922GB:320GB:ntfs:Ba:msftdata;
5:982GB:1000GB:18.0GB:ntfs:Ba:hidden, diag;
sdb:4008MB:scsi:512:512:gpt: USB Flash Memory:;
1:1049kB:4008MB:4007MB:fat32:Main Data Partition:msftdata;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL       PARTLABEL
sda                                                                                                   
├─sda1 vfat     4C3B-5289                            5b59b24d-d508-4e29-9da5-75576ceed718 SYSTEM      EF
├─sda2 ntfs     01D6209CB807E340                     822c531f-704d-468f-862f-b9f59f5f9dea Windows     
├─sda3 ntfs     D8523D49523D2D9E                     6a1c09e4-331c-40b8-8438-782993c729d0 WinRE tools Ba
├─sda4 ntfs     3862409D624061AC                     ea0bb657-ce93-439a-86d2-ade27ed8eb6b Data        Ba
├─sda5 ntfs     C0BA41E8BA41DC12                     d4acf54b-4fb6-41b5-8f74-fc0284273ce8 BIOS_RVY    Ba
└─sda6 ext4     41b48813-8bb2-4cd1-93c6-40e60ac09314 d12a7502-33f2-4445-b1a6-0f07c52b7726             
sdb                                                                                                   
└─sdb1 vfat     08FC-DA87                            af847b83-1ebf-4477-8b5b-72535215c24d UBUNTU 20_0 Main Data Partition

df (filtered): _________________________________________________________________

       Avail Use% Mounted on
sda1   238.8M  19% /mnt/boot-sav/sda1
sda2   197.8G  57% /mnt/boot-sav/sda2
sda3   401.1M  55% /mnt/boot-sav/sda3
sda4   283.7G   5% /mnt/boot-sav/sda4
sda5     1.2G  93% /mnt/boot-sav/sda5
sda6    73.6G   8% /target
sdb1     1.2G  68% /cdrom

Mount options: __________________________________________________________________

sda1   rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sda2   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,errors=remount-ro
sdb1   ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro

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

search.fs_uuid 41b48813-8bb2-4cd1-93c6-40e60ac09314 root hd0,gpt6 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda6 during installation
UUID=41b48813-8bb2-4cd1-93c6-40e60ac09314 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=4C3B-5289  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

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

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

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

           GiB - GB             File                                 Fragment(s)
 476.761833191 = 511.919120384  boot/vmlinuz                                   1
 476.761833191 = 511.919120384  boot/vmlinuz-5.4.0-26-generic                  1
 523.240131378 = 561.824813056  boot/initrd.img                                2
 523.240131378 = 561.824813056  boot/initrd.img-5.4.0-26-generic               2
 523.240131378 = 561.824813056  boot/initrd.img.old                            2

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

-rwxr-xr-x 1 root root 17123 Apr 15 13:31 10_linux
-rwxr-xr-x 1 root root 42128 Apr 15 13:31 10_linux_zfs
-rwxr-xr-x 1 root root 12894 Apr 15 13:31 20_linux_xen
-rwxr-xr-x 1 root root 12059 Apr 15 13:31 30_os-prober
-rwxr-xr-x 1 root root  1424 Apr 15 13:31 30_uefi-firmware
-rwxr-xr-x 1 root root   214 Apr 15 13:31 40_custom
-rwxr-xr-x 1 root root   216 Apr 15 13:31 41_custom

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

Ubuntu
Ubuntu (safe graphics)
OEM install (for manufacturers)
Boot from next volume
UEFI Firmware Settings

========================= sdb1/syslinux.cfg (filtered) =========================

DEFAULT loadconfig

LABEL loadconfig
  CONFIG /isolinux/isolinux.cfg
  APPEND /isolinux/

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

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

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

           GiB - GB             File                                 Fragment(s)
            ?? = ??             syslinux.cfg                                   1


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

Unknown MBR on /dev/sdb

00000000  41 4b 45 4f fc 31 c0 fa  8e d0 bc 00 7c fb 8e d8  |AKEO.1......|...|
00000010  bb 13 04 8b 07 83 e8 04  89 07 c1 e0 06 8e c0 b7  |................|
00000020  07 b8 7f 00 cd 10 31 db  31 c9 ba 4f 18 b8 00 06  |......1.1..O....|
00000030  cd 10 31 d2 b4 02 cd 10  b4 41 bb aa 55 cd 13 72  |..1......A..U..r|
00000040  27 81 fb 55 aa 75 21 f7  c1 01 00 74 1b 66 31 c0  |'..U.u!....t.f1.|
00000050  66 50 6a 22 06 66 50 6a  08 6a 10 89 e6 b4 42 cd  |fPj".fPj.j....B.|
00000060  13 9f 83 c4 10 9e eb 0d  b8 08 02 b9 23 00 ba 80  |............#...|
00000070  00 31 db cd 13 bb 07 00  72 0b 31 f6 8c c0 8e d8  |.1......r.1.....|
00000080  e8 3f 00 eb 06 be 17 7d  e8 37 00 31 c0 8e d8 be  |.?.....}.7.1....|
00000090  63 7d e8 2d 00 e8 1d 00  b4 01 cd 16 75 08 b4 02  |c}.-........u...|
000000a0  cd 16 24 04 74 f2 31 c0  8e d8 b8 34 12 a3 73 04  |..$.t.1....4..s.|
000000b0  ea 00 00 ff ff b4 01 cd  16 74 06 b4 00 cd 16 e2  |.........t......|
000000c0  f4 c3 ac 3c 00 74 4f 3c  0d 74 f7 3c 0a 75 10 53  |...<.tO<.t.<.u.S|
000000d0  b4 03 cd 10 fe c6 b2 00  b4 02 cd 10 5b eb e3 3c  |............[..<|
000000e0  5c 75 1c b1 02 ac 3c 46  7f d8 2c 30 3c 09 7e 02  |\u....<F..,0<.~.|
000000f0  2c 07 c0 e3 04 24 0f 08  c3 fe c9 75 e8 eb c3 b9  |,....$.....u....|
00000100  01 00 b4 09 cd 10 53 31  db b4 03 cd 10 fe c2 b4  |......S1........|
00000110  02 cd 10 5b eb ac c3 0d  0a 20 20 20 20 20 20 20  |...[.....       |
00000120  20 20 20 20 20 20 5c 30  34 2a 2a 2a 20 45 52 52  |      \04*** ERR|
00000130  4f 52 3a 20 54 48 49 53  20 4d 45 44 49 41 20 43  |OR: THIS MEDIA C|
00000140  41 4e 4e 4f 54 20 42 4f  4f 54 20 49 4e 20 4c 45  |ANNOT BOOT IN LE|
00000150  47 41 43 59 20 4d 4f 44  45 20 2a 2a 2a 5c 30 37  |GACY MODE ***\07|
00000160  0d 0a 00 0d 0a 0d 0a 20  20 20 20 20 20 20 20 20  |.......         |
00000170  20 20 20 20 5c 37 30 50  6c 65 61 73 65 20 72 65  |    \70Please re|
00000180  6d 6f 76 65 20 74 68 69  73 20 6d 65 64 69 61 20  |move this media |
00000190  61 6e 64 20 70 72 65 73  73 20 61 6e 79 20 6b 65  |and press any ke|
000001a0  79 20 74 6f 20 72 65 62  6f 6f 74 5c 30 37 00 00  |y to reboot\07..|
000001b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001c0  02 00 ee fe 7f e6 01 00  00 00 ff ff ff ff 00 00  |................|
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200


Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed of
sda6,
using the following options:        sda1/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s win-legacy-basic-fix use-standard-efi-file    

Blockers in case of suggested repair: __________________________________________

/target detected. Please reboot and try again from a new live session. 

Final advice in case of suggested repair: ______________________________________


Please do not forget to make your UEFI firmware boot on sda1/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)
udo fdisk -lu & sudo blkid
[1] 84982
Disk /dev/loop0: 1.93 GiB, 2049204224 bytes, 4002352 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 27.9 MiB, 28405760 bytes, 55480 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 54.97 MiB, 57614336 bytes, 112528 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop3: 240.82 MiB, 252493824 bytes, 493152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop4: 62.9 MiB, 65105920 bytes, 127160 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop5: 49.8 MiB, 52203520 bytes, 101960 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000LM048-2E71
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: B9197F3D-7E30-47C7-933F-B52C02D17A7A

Device          Start        End   Sectors   Size Type
/dev/sda1        2048     616447    614400   300M EFI System
/dev/sda2    25251840  991709183 966457344 460.9G Microsoft basic data
/dev/sda3  1172989952 1174833151   1843200   900M Windows recovery environment
/dev/sda4  1174833152 1799813119 624979968   298G Microsoft basic data
/dev/sda5  1918412800 1953523711  35110912  16.8G Windows recovery environment
/dev/sda6   991709184 1172989951 181280768  86.5G Linux filesystem

Partition table entries are not in disk order.


Disk /dev/sdb: 3.75 GiB, 4007657472 bytes, 7827456 sectors
Disk model: USB Flash Memory
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: B8FBE763-891A-49EF-8630-575328F638B5

Device     Start     End Sectors  Size Type
/dev/sdb1   2048 7827422 7825375  3.7G Microsoft basic data
/dev/sda1: LABEL="SYSTEM" UUID="4C3B-5289" TYPE="vfat" PARTLABEL="EF" PARTUUID="5b59b24d-d508-4e29-9da5-75576ceed718"
/dev/sda2: LABEL="Windows" UUID="01D6209CB807E340" TYPE="ntfs" PARTUUID="822c531f-704d-468f-862f-b9f59f5f9dea"
/dev/sda3: LABEL="WinRE tools" UUID="D8523D49523D2D9E" TYPE="ntfs" PARTLABEL="Ba" PARTUUID="6a1c09e4-331c-40b8-8438-782993c729d0"
/dev/sda4: LABEL="Data" UUID="3862409D624061AC" TYPE="ntfs" PARTLABEL="Ba" PARTUUID="ea0bb657-ce93-439a-86d2-ade27ed8eb6b"
/dev/sda5: LABEL="BIOS_RVY" UUID="C0BA41E8BA41DC12" TYPE="ntfs" PARTLABEL="Ba" PARTUUID="d4acf54b-4fb6-41b5-8f74-fc0284273ce8"
/dev/sdb1: LABEL="UBUNTU 20_0" UUID="08FC-DA87" TYPE="vfat" PARTLABEL="Main Data Partition" PARTUUID="af847b83-1ebf-4477-8b5b-72535215c24d"
/dev/sda6: UUID="41b48813-8bb2-4cd1-93c6-40e60ac09314" TYPE="ext4" PARTUUID="d12a7502-33f2-4445-b1a6-0f07c52b7726"
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"

En espérant avoir fourni les informations nécéssaires (j'ai pris des screens du rapport d'erreur en plus que je peux fournir si besoin),
Merci d'avance et bonne journée !

Ps : ça fait deux semaines que je suis la dessus, je commence un peu à désespérer ..  et j'ai vraiment besoin de linux pour coder :3

Dernière modification par Nico_ldl (Le 18/05/2020, à 09:47)

Hors ligne

#2 Le 17/05/2020, à 17:53

geole

Re : Dual Boot UEFI - "grub-install /dev/sda failed"

Bonjour.
Réponse très rapide à ton urgence:  "j'ai vraiment besoin de linux pour coder "
Si ton problème est du codage et que le windows n'est pas piraté, fais le codage  avec windows en utilisant une de ses applications.  https://doc.ubuntu-fr.org/wsl


Pour ton autre problème, je n'ai pas tout compris du problème de la réparation par boot-repair
Tu as ensuite fait un boot-info dont j'extrais

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

Cela montre que tu bootes bien en EFI

efibootmgr -v
BootCurrent: 0007
Timeout: 0 seconds
BootOrder: 0007,0005,0006,0000,0004
Boot0000* Windows Boot Manager	HD(1,GPT,5b59b24d-d508-4e29-9da5-75576ceed718,0x800,0x96000)/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.}...i................
Boot0004* ubuntu	HD(1,GPT,5b59b24d-d508-4e29-9da5-75576ceed718,0x800,0x96000)/File(\EFI\UBUNTU\SHIMX64.EFI)..BO
├─sda1 vfat     4C3B-5289                            5b59b24d-d508-4e29-9da5-75576ceed718 SYSTEM      EF

On voit aussi que la NVRAM contient la description de ubuntu pointant sur SDA1

===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid 41b48813-8bb2-4cd1-93c6-40e60ac09314 root hd0,gpt6 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
└─sda6 ext4     41b48813-8bb2-4cd1-93c6-40e60ac09314 d12a7502-33f2-4445-b1a6-0f07c52b7726 

Cela montre que la partie de boot EFI  est traitée  correctement et pointe sur SDA6

==================== sda6: Location of files loaded by Grub ====================
           GiB - GB             File                                 Fragment(s)
 476.761833191 = 511.919120384  boot/vmlinuz                                   1
 476.761833191 = 511.919120384  boot/vmlinuz-5.4.0-26-generic                  1
 523.240131378 = 561.824813056  boot/initrd.img                                2
 523.240131378 = 561.824813056  boot/initrd.img-5.4.0-26-generic               2
 523.240131378 = 561.824813056  boot/initrd.img.old                            2

Cela montre que les noyaux sont bien présents

MAIS LE GRUB standard est introuvable.

Vu le passé que tu décris, je te  propose quand même   de faire cette commande depuis une live USB qui met  ubuntu prioritaire
[.code]sudo efibootmgr   -v   4,0[./code]
Tu rebooteras. Je crains que cela soit windows qui se lance car l'installation standard le fait déjà.
Tu iras dans le bios, tu essayeras de voir si tu peux ordonner tout cela en mettant ubuntu en  tête
    ( If your computer reboots directly into Windows, try to change the boot order in your UEFI firmware. )

Si tu ne trouves rien , tu lances windows et tu l'informe d'utiliser un autre chargeur de boot pour le prochain boot.   
   ( 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))
Dans ton contexte, la commande est  à faire en mode administratif    de l'application windows powershell.
    bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi
Il n'y a pas lieu d'y mettre le shim puisque le mode sécure n'est pas activé. Mais je ne suis pas certain de l'exactitude de la commande qui à varié suivant les mises à jour de windows, Elle pourrait être
[.code]   bcdedit /set  "{bootmgr}" path \EFI\ubuntu\grubx64.efi [./code]
ou
[.code] bcdedit /set  '{bootmgr}' path \EFI\ubuntu\grubx64.efi [./code]
Tu diras laquelle est la bonne

Je barre, Car j'ai un contrôle supplémentaire a faire, il est possible que le grub ne soit pas présent. Dans ce cas, on installera refind.   Je vais regarder  un peu dans internet.

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


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

Hors ligne

#3 Le 17/05/2020, à 18:26

Nico_ldl

Re : Dual Boot UEFI - "grub-install /dev/sda failed"

Merci beaucoup de votre réponse, je vais regarder cela et je vous tiens au courant ! smile

Hors ligne

#4 Le 17/05/2020, à 18:52

geole

Re : Dual Boot UEFI - "grub-install /dev/sda failed"

Pourrais-tu relancer  le boot-repair et poster son contenu après exécution

Il faudrait que tu choisisses  "options avancées" puis dans la paragraphe 3.3 l'option Purge GRUB before reinstalling it

Raison, tu as déjà certainement lancé boot-repair en demandant la réinstallation.   Cette option va ajouter la purge puis la récupération du dernier logiciel du grub .    Je pense que tu as encore son  logiciel LEGACY incapable de fonctionner en EFI
On verra  bien au retour.

D'autre part, peux-tu donner la référence commerciale de ton MSI afin de chercher sur internet un cas semblable?

Dernière modification par geole (Le 17/05/2020, à 19:21)


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

#5 Le 17/05/2020, à 19:18

Nico_ldl

Re : Dual Boot UEFI - "grub-install /dev/sda failed"

Entre temps j’avais effacé mes partitions donc j’ai dû refaire l’installation, ce qui a pris un peu de temps.

Pour votre premier message, les commandes fonctionnaient toutes les deux et cela a changé le fait que dans le bios, dons l’onglet boot, j’avais en plus de « Ubuntu » et « Windows », « Windows boot manager » comme choix. Comme j ai rebooté sur la clé usb pour faire l instal j’ai pas vérifié ce que cela changeait - j'ai de nouveau eu la même erreur à la fin de l'instal "grub-install /dev/sda failed".

J'ai installé boot-repair

sudo add-apt-repository -y ppa:yannubuntu/boot-repair && sudo apt update && sudo apt install -y boot-repair

j'ai fait les mises à jour

sudo apt update
sudo apt upgrade

"134 mis à jour, 32 nouvellement installés, 0 à enlever et 0 non mis à jour."

J'attends la fin de cette commande et je lance le boot-repair.
Aurais-tu une commande pour avoir le nom de l'ordi ? Impossible de le trouver quelque part .. :c et j'ai pas trouvé de commande sur internet

Dernière modification par Nico_ldl (Le 17/05/2020, à 20:20)

Hors ligne

#6 Le 17/05/2020, à 19:38

Nico_ldl

Re : Dual Boot UEFI - "grub-install /dev/sda failed"

Pour le boot-repair, j'ai toujours l'erreur "/target détecté. Veuillez redémarrer l'ordinateur et re-essayer depuis une nouvelle session live." lorsque je veux appliquer les réparations.

Hors ligne

#7 Le 17/05/2020, à 19:42

Nico_ldl

Re : Dual Boot UEFI - "grub-install /dev/sda failed"

J'ai refait un boot-info et j'ai eu le même résultat que tout à l'heure.

Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed of
sda6,
using the following options:        sda1/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s win-legacy-basic-fix use-standard-efi-file    

Dernière modification par Nico_ldl (Le 17/05/2020, à 20:23)

Hors ligne

#8 Le 17/05/2020, à 20:42

lucmars

Re : Dual Boot UEFI - "grub-install /dev/sda failed"

Nico_ldl a écrit :

J'ai refait un boot-info et j'ai eu le même résultat que tout à l'heure.

Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed of
sda6,
using the following options:        sda1/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s win-legacy-basic-fix use-standard-efi-file    

Normal, ce sont des suggestions "automatisées" ! Rebalances ton dernier boot-info.


Gaulois Matter !

Hors ligne

#9 Le 17/05/2020, à 21:29

Nico_ldl

Re : Dual Boot UEFI - "grub-install /dev/sda failed"

Voilà le nouveau boot (ça doit être le même que le premier car je viens de refaire l'install)

boot-repair-4ppa119                                              [20200517_2128]

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

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

sda1: __________________________________________________________________________

    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:        

sda2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  According to the info in the boot sector, sda2 starts 
                       at sector 0. But according to the info from fdisk, 
                       sda2 starts at sector 25251840.
    Operating System:  Windows 10
    Boot files:        /bootmgr /Windows/System32/winload.exe

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:  
    Boot files:        

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:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 20.04 LTS
    Boot files:        /etc/fstab /etc/default/grub

sdb1: __________________________________________________________________________

    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:        /boot/grub/grub.cfg /syslinux.cfg 
                       /efi/BOOT/grubx64.efi /efi/BOOT/mmx64.efi


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

OS#1:   Windows 10 on sda2
OS#2:   Ubuntu 20.04 LTS on sda6

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

CPU architecture: 64-bit
Live-session OS is Ubuntu 64-bit (Ubuntu 20.04 LTS, focal, x86_64)


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

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

efibootmgr -v
BootCurrent: 0008
Timeout: 0 seconds
BootOrder: 0008,0007,0000,0004,0005,0006
Boot0000* Windows Boot Manager	HD(1,GPT,5b59b24d-d508-4e29-9da5-75576ceed718,0x800,0x96000)/File(\EFI\UBUNTU\GRUBX64.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.}...i................
Boot0004* ubuntu	HD(1,GPT,5b59b24d-d508-4e29-9da5-75576ceed718,0x800,0x96000)/File(\EFI\UBUNTU\SHIMX64.EFI)..BO
Boot0005* UEFI: PXE IP4 Qualcomm Atheros PCIe Network Controller	PciRoot(0x0)/Pci(0x1c,0x5)/Pci(0x0,0x0)/MAC(4ccc6ae12edb,0)/IPv4(0.0.0.00.0.0.0,0,0)..BO
Boot0006* UEFI: PXE IP6 Qualcomm Atheros PCIe Network Controller	PciRoot(0x0)/Pci(0x1c,0x5)/Pci(0x0,0x0)/MAC(4ccc6ae12edb,0)/IPv6([::]:<->[::]:,0,0)..BO
Boot0007* Windows Boot Manager	HD(1,GPT,5b59b24d-d508-4e29-9da5-75576ceed718,0x800,0x96000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)..BO
Boot0008* UEFI:  USB Flash MemoryPMAP, Partition 1	PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(1,GPT,af847b83-1ebf-4477-8b5b-72535215c24d,0x800,0x7767df)..BO

f7a57b08bc7c1c85417ae4cea582d1d4   sda1/Boot/bootx64.efi
bed45d1c9554cea09924d3814cb7c446   sda1/Boot/fbx64.efi
4487628005555bfd4a4c0a47211e0700   sda1/Boot/mmx64.efi
98bea152fadd26c4e9136916f6cc32a8   sda1/ubuntu/grubx64.efi
4487628005555bfd4a4c0a47211e0700   sda1/ubuntu/mmx64.efi
f7a57b08bc7c1c85417ae4cea582d1d4   sda1/ubuntu/shimx64.efi
cb8e4284804d56f058c0e1cf111eeedd   sda1/Microsoft/Boot/bootmgfw.efi
3df357ffd0654bb80f2a575485e6e0cc   sda1/Microsoft/Boot/bootmgr.efi
18a3724224b0f82a36941982259339b6   sda1/MSI/Boot/bootmgfw.efi
4e3a2ee37111132b1bb95323dfc123d2   sda1/MSI/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): _________________________________________________________

sda1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda2	: is-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda3	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda4	: no-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	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios

Partitions info (2/3): _________________________________________________________

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

Partitions info (3/3): _________________________________________________________

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,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: B9197F3D-7E30-47C7-933F-B52C02D17A7A
           Start        End   Sectors   Size Type
sda1        2048     616447    614400   300M EFI System
sda2    25251840  991709183 966457344 460.9G Microsoft basic data
sda3  1172989952 1174833151   1843200   900M Windows recovery environment
sda4  1174833152 1799813119 624979968   298G Microsoft basic data
sda5  1918412800 1953523711  35110912  16.8G Windows recovery environment
sda6   991709184 1172989951 181280768  86.5G Linux filesystem
Partition table entries are not in disk order.
Disk sdb: 3.75 GiB, 4007657472 bytes, 7827456 sectors
Disk identifier: B8FBE763-891A-49EF-8630-575328F638B5
      Start     End Sectors  Size Type
sdb1   2048 7827422 7825375  3.7G Microsoft basic data

parted -lm (filtered): _________________________________________________________

sda:1000GB:scsi:512:4096:gpt:ATA ST1000LM048-2E71:;
1:1049kB:316MB:315MB:fat32:EF:boot, esp;
2:12.9GB:508GB:495GB:ntfs::msftdata;
6:508GB:601GB:92.8GB:ext4::;
3:601GB:602GB:944MB:ntfs:Ba:hidden, diag;
4:602GB:922GB:320GB:ntfs:Ba:msftdata;
5:982GB:1000GB:18.0GB:ntfs:Ba:hidden, diag;
sdb:4008MB:scsi:512:512:gpt: USB Flash Memory:;
1:1049kB:4008MB:4007MB:fat32:Main Data Partition:msftdata;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL       PARTLABEL
sda                                                                                                   
├─sda1 vfat     4C3B-5289                            5b59b24d-d508-4e29-9da5-75576ceed718 SYSTEM      EF
├─sda2 ntfs     01D6209CB807E340                     822c531f-704d-468f-862f-b9f59f5f9dea Windows     
├─sda3 ntfs     D8523D49523D2D9E                     6a1c09e4-331c-40b8-8438-782993c729d0 WinRE tools Ba
├─sda4 ntfs     3862409D624061AC                     ea0bb657-ce93-439a-86d2-ade27ed8eb6b Data        Ba
├─sda5 ntfs     C0BA41E8BA41DC12                     d4acf54b-4fb6-41b5-8f74-fc0284273ce8 BIOS_RVY    Ba
└─sda6 ext4     6b62ce16-0645-403d-9b47-c8adf78ab091 d50a6e36-062b-4d78-927c-e9cd55f256a8             
sdb                                                                                                   
└─sdb1 vfat     08FC-DA87                            af847b83-1ebf-4477-8b5b-72535215c24d UBUNTU 20_0 Main Data Partition

df (filtered): _________________________________________________________________

       Avail Use% Mounted on
sda1   238.8M  19% /target/boot/efi
sda2   197.7G  57% /mnt/boot-sav/sda2
sda3   401.1M  55% /mnt/boot-sav/sda3
sda4   283.7G   5% /mnt/boot-sav/sda4
sda5     1.2G  93% /mnt/boot-sav/sda5
sda6    73.2G   8% /target
sdb1     1.2G  68% /cdrom

Mount options: __________________________________________________________________

sda1   rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sda2   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,errors=remount-ro
sdb1   ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro

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

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda6 during installation
UUID=6b62ce16-0645-403d-9b47-c8adf78ab091 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=4C3B-5289  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

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

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

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

           GiB - GB             File                                 Fragment(s)
 476,813472748 = 511,974567936  boot/vmlinuz                                   2
 476,813472748 = 511,974567936  boot/vmlinuz-5.4.0-26-generic                  2
 557,747032166 = 598,876315648  boot/initrd.img                                1
 557,747032166 = 598,876315648  boot/initrd.img-5.4.0-26-generic               1
 557,747032166 = 598,876315648  boot/initrd.img.old                            1

===================== sda6: 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

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

Ubuntu
Ubuntu (safe graphics)
OEM install (for manufacturers)
Boot from next volume
UEFI Firmware Settings

========================= sdb1/syslinux.cfg (filtered) =========================

DEFAULT loadconfig

LABEL loadconfig
  CONFIG /isolinux/isolinux.cfg
  APPEND /isolinux/

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

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

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

           GiB - GB             File                                 Fragment(s)
            ?? = ??             syslinux.cfg                                   1


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

Unknown MBR on /dev/sdb

00000000  41 4b 45 4f fc 31 c0 fa  8e d0 bc 00 7c fb 8e d8  |AKEO.1......|...|
00000010  bb 13 04 8b 07 83 e8 04  89 07 c1 e0 06 8e c0 b7  |................|
00000020  07 b8 7f 00 cd 10 31 db  31 c9 ba 4f 18 b8 00 06  |......1.1..O....|
00000030  cd 10 31 d2 b4 02 cd 10  b4 41 bb aa 55 cd 13 72  |..1......A..U..r|
00000040  27 81 fb 55 aa 75 21 f7  c1 01 00 74 1b 66 31 c0  |'..U.u!....t.f1.|
00000050  66 50 6a 22 06 66 50 6a  08 6a 10 89 e6 b4 42 cd  |fPj".fPj.j....B.|
00000060  13 9f 83 c4 10 9e eb 0d  b8 08 02 b9 23 00 ba 80  |............#...|
00000070  00 31 db cd 13 bb 07 00  72 0b 31 f6 8c c0 8e d8  |.1......r.1.....|
00000080  e8 3f 00 eb 06 be 17 7d  e8 37 00 31 c0 8e d8 be  |.?.....}.7.1....|
00000090  63 7d e8 2d 00 e8 1d 00  b4 01 cd 16 75 08 b4 02  |c}.-........u...|
000000a0  cd 16 24 04 74 f2 31 c0  8e d8 b8 34 12 a3 73 04  |..$.t.1....4..s.|
000000b0  ea 00 00 ff ff b4 01 cd  16 74 06 b4 00 cd 16 e2  |.........t......|
000000c0  f4 c3 ac 3c 00 74 4f 3c  0d 74 f7 3c 0a 75 10 53  |...<.tO<.t.<.u.S|
000000d0  b4 03 cd 10 fe c6 b2 00  b4 02 cd 10 5b eb e3 3c  |............[..<|
000000e0  5c 75 1c b1 02 ac 3c 46  7f d8 2c 30 3c 09 7e 02  |\u....<F..,0<.~.|
000000f0  2c 07 c0 e3 04 24 0f 08  c3 fe c9 75 e8 eb c3 b9  |,....$.....u....|
00000100  01 00 b4 09 cd 10 53 31  db b4 03 cd 10 fe c2 b4  |......S1........|
00000110  02 cd 10 5b eb ac c3 0d  0a 20 20 20 20 20 20 20  |...[.....       |
00000120  20 20 20 20 20 20 5c 30  34 2a 2a 2a 20 45 52 52  |      \04*** ERR|
00000130  4f 52 3a 20 54 48 49 53  20 4d 45 44 49 41 20 43  |OR: THIS MEDIA C|
00000140  41 4e 4e 4f 54 20 42 4f  4f 54 20 49 4e 20 4c 45  |ANNOT BOOT IN LE|
00000150  47 41 43 59 20 4d 4f 44  45 20 2a 2a 2a 5c 30 37  |GACY MODE ***\07|
00000160  0d 0a 00 0d 0a 0d 0a 20  20 20 20 20 20 20 20 20  |.......         |
00000170  20 20 20 20 5c 37 30 50  6c 65 61 73 65 20 72 65  |    \70Please re|
00000180  6d 6f 76 65 20 74 68 69  73 20 6d 65 64 69 61 20  |move this media |
00000190  61 6e 64 20 70 72 65 73  73 20 61 6e 79 20 6b 65  |and press any ke|
000001a0  79 20 74 6f 20 72 65 62  6f 6f 74 5c 30 37 00 00  |y to reboot\07..|
000001b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001c0  02 00 ee fe 7f e6 01 00  00 00 ff ff ff ff 00 00  |................|
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200


Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed of
sda6,
using the following options:        sda1/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s win-legacy-basic-fix use-standard-efi-file    

Blockers in case of suggested repair: __________________________________________

/target detected. Please reboot and try again from a new live session. 

Final advice in case of suggested repair: ______________________________________


Please do not forget to make your UEFI firmware boot on sda1/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)

Dernière modification par Nico_ldl (Le 17/05/2020, à 21:36)

Hors ligne

#10 Le 17/05/2020, à 21:33

Nico_ldl

Re : Dual Boot UEFI - "grub-install /dev/sda failed"

Pour info, je regarde pour un tuto pour installer manuellement grub https://doc.ubuntu-fr.org/grub-pc.
Les manips que j'ai faites dans les messages précédent ont été perdues car j'ai voulu voir si ça changeait quelque chose en redémarrant et je suis tombé sur le même terminal Grub où je ne sais pas faire grand chose. Du coup j'ai refait une nouvelle instal, avec toujours le même problème.

J'ai exécuté la commande suivante afin d'installer grub :

sudo apt purge grub grub-pc grub-common -y && sudo apt install grub-pc -y

A la question "périphérique où installer GRUB:" j'ai le choix entre " [ ] /dev/sda " (qui est mon disque) et " [ ] /dev/sdb" (qui doit être ma clé).
Entre les crochés j'ai comme une insertion rouge possible mais je n'arrive pas à insérer quoi que ce soit. Est-ce qu'il faut insérer quelque chose ? (un numéro de partition ? )
Si j'appuie juste sur "entré" en ayant le curseur rouge sur /dev/sda, j'obtient ansuite le message suivant :

"Vous avez choisi de n'installer GRUB sur aucun périphérique. Si vous     
│ poursuivez, il est possible que le programme de démarrage ne soit pas     
│ configuré correctement et que la machine démarre avec ce qui était       
│ précédemment installé sur le secteur d'amorçage. Si une ancienne version
│ de GRUB 2 s'y trouve, il est possible qu'elle ne puisse pas charger       
│ certains modules ou lire le fichier de configuration actuel.             
│                                                                         
│ Si vous utilisez déjà un autre programme de démarrage et souhaitez       
│ poursuivre ou si, en raison d'un environnement particulier, vous n'avez   │
│ pas besoin de programme de démarrage, vous pouvez continuer malgré tout.
│ Dans le cas contraire, il est nécessaire d'installer GRUB quelque part. 
│                                                                           
│ Faut-il poursuivre sans installer GRUB ?           
"                   

Et si je continue en répondant "oui", j'ai le message dans le terminal :
Creating config file /etc/default/grub with new version
grub-probe : erreur : impossible d'obtenir le chemin canonique de « /cow ».

Apparemment c'est un pb connu, je vais regarder du coup, si jamais vous avez des solutions je suis preneur !

J'ai par ailleurs refait un boot repair et quasiment rien n'a changé à par les boot files pour sda1 mais je ne mesure pas les conséquences de ces changements ..

sda1: __________________________________________________________________________

    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/MSI/Boot/bootmgfw.efi /efi/MSI/Boot/bootmgr.efi 
                       /efi/MSI/Boot/memtest.efi

Dernière modification par Nico_ldl (Le 17/05/2020, à 22:10)

Hors ligne

#11 Le 17/05/2020, à 22:48

Babdu89

Re : Dual Boot UEFI - "grub-install /dev/sda failed"

Bonsoir.
Post#1 on lit;

Ceci arrive de manière récurrente. J'ai essayé différentes méthodes, par exemple de choisir moi même les partitions (une Ext, une BIOS et une SWAP).
Le boot-repair ne fonctionne pas directement pour réparer : "/target detected. Please reboot and try again from a new live session."
La seule technique qui a marché était d'installer Ubuntu en ayant le boot mode en LEGACY et non pas en UEFI. Je passais d'un OS à un autre en changeant le boot mode. Mais de ce que j'ai compris, cette installation n'est pas recommandé (?) (j'avais d'ailleurs pas mal de problèmes de réseaux après, à voir si c'était lié) -> si ça n'est pas déconseillé je vais refaire ça et je regarderai mes problèmes au cas par cas.

On voit un résidu de l'installation en Bios_Legacy,  grub première partie est écrit dans le secteur de boot du disque /dev/sda, la partition d'installation était la /dev/sda8

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

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

On voit çà dans les deux boot info.

geole donnera un avis, mais il n'est pas impossible que l'installateur de Ubuntu, même lancé en live UEFI soit trompé par cette configuration du disque. On voit ce type de problème souvent dernièrement.


Dans le boot-info du post#1, on voit l'installation faite en mode UEFI dans /dev/sda6. La partition boot-efi /dev/sda1 sert au démarrage, et contient des données pour démarrer ne mode UEFI..

Dans le boot-info du post#9, on voit une installation bizarre.

La partition boot-efi . /dev/sda1 est vide de données permettant de booter en mode UEFI.
C'est un grub-efi qui est installé dans le Ubuntu de /dev/sda6

sda6	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios

Qu'est-ce qui marche dans ce type de configuration? Windows et Ubuntu?.

En réponse au post10.

Tu utilises une commande pour réinstaller un grub-pc et non un grub-efi depuis ton Ubuntu lancé en UEFI.
C'est normale que tu retrouves encore la possibilité de réinstaller grub dans /dev/sda.


@+.    Babdu89   .


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

Hors ligne

#12 Le 17/05/2020, à 23:17

Nico_ldl

Re : Dual Boot UEFI - "grub-install /dev/sda failed"

Bonsoir Babdu89,

Merci pour ton retour qui me permet d'y voir plus clair.
Pour ta question Qu'est-ce qui marche dans ce type de configuration? Windows et Ubuntu?., je ne suis pas sûr de la comprendre

Tu utilises une commande pour réinstaller un grub-pc et non un grub-efi depuis ton Ubuntu lancé en UEFI. oui effectivement .. un copier-coller pas très malin ..

Pour information, mon ordinateur s'est éteint, acpi=off ....., du coup j'ai reboot sur le windows car sinon il fallait que je refasse toute l'installation, ce dont je n'ai pas eu le courage.
Par contre je pense que je vais envisager "en urgence" d'utiliser Linux avec une interface graphique sous windows (https://openclassrooms.com/fr/courses/4 … reau-unity) comme proposer par Geole , ce qui est plus simple à mettre en place. Je vais voir si ça peut répondre à mes besoins (installer IDE python + docker)

Sinon pour le pb du dual boot, je pourrai retenter l'install manuelle de grub-efi, en ayant clean les résidus de l'install que j'avais en legacy (aucune idée de comment on fait big_smile)

Hors ligne

#13 Le 18/05/2020, à 09:12

ikewdu

Re : Dual Boot UEFI - "grub-install /dev/sda failed"

Salut,

Fais ce Geole demande. Lance la réparation avec boot-repair et donne le rapport (de boot-repair, et non de boot-info) qui va avec pour qu'on puisse voir à quel moment ça bloque.

Hors ligne

#14 Le 18/05/2020, à 09:36

Nico_ldl

Re : Dual Boot UEFI - "grub-install /dev/sda failed"

Bonjour,

Malheureusement dès que je lance les réparation du boot-repair (avec ou sans option "purge grub"), j'ai l'erreur /target détecté. Veuillez redémarrer l'ordinateur et re-essayer depuis une nouvelle session live.

Dernière modification par Nico_ldl (Le 18/05/2020, à 09:48)

Hors ligne

#15 Le 18/05/2020, à 09:46

Nico_ldl

Re : Dual Boot UEFI - "grub-install /dev/sda failed"

J'ai trouvé une solution de secours d'utilisant pas le dual boot. Je ne vais pas pouvoir regarder d'avantage ce problème dans l’immédiat (si vous voulez trouver une solution pour le forum, je pourrai regarder plus en profondeur le soir).

Merci beaucoup pour votre aide en tout cas,
Bonne journée

Hors ligne

#16 Le 18/05/2020, à 13:18

geole

Re : Dual Boot UEFI - "grub-install /dev/sda failed"

Bonjour.
Je suis surpris que le réparateur ne produise pas un extrait et te balance froidement la commande "/target détecté. Veuillez redémarrer l'ordinateur et re-essayer depuis une nouvelle session live."

Il serait vraiment  temps qu'il commence à dire que le boot à été fait en  mode LEGACY   ou en MODE EFI dès son démarrage.
Je suis surpris, qu'il ne te propose pas  une sortie papier.

Pour la suite, si tu le désires
  1) Booter avec le support d'installation de ubuntu
  2) Choisir essayer avant d'installer et ouvrir un terminal
  3) Vérifier que le boot a bien eu lieu en mode EFI et pas en mode LEGACY. C'est toi qui aiguille avec le bios et ses priorités
=> Lis cette documentation https://doc.ubuntu-fr.org/uefi tout spécialement le chapitre 3.
et fais la commande

[ -d /sys/firmware/efi ] && echo "Installé en mode EFI" || echo "Installé en mode classique"

Tant que la réponse sera  "Installé en mode classique", tu n'auras aucune chance pour pouvoir modifier la NVRAM pour y installer la structure de boot.    Cela continuera de te proposer les début de disques pour installer le grub.
Je n'ai pas encore regardé le dernier boot-info.
NOTA.   Dans un de tes anciens  boot-info. J'ai réellement vu une NVRAM contenant ubuntu. Donc ce n'est pas un ordinateur bridé refusant cette modification.
Boot-repair est totalement capable de  permuter la structure de boot EFI <=> LEGACY dans les deux sens. Il est inutile de faire des réinstallations.
   4) Installe boot-repair
   5) Choisis de supprimer le grub et de le réinstaller
        a) Tu auras les bonnes commandes de suppression
        b) Tu auras la bonne commande d'installation
   6 )Tu postes le rapport que tu obtiendras.

Dernière modification par geole (Le 18/05/2020, à 14:08)


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

Hors ligne

#17 Le 18/05/2020, à 14:54

Nico_ldl

Re : Dual Boot UEFI - "grub-install /dev/sda failed"

Hello Geole,

Oui c'est un peu frustrant le message d'erreur, surtout quand toutes les solutions recommandent d'utiliser le boot-repair

Merci pour ta réponse, je prendrais le temps de regarder ça cette semaine. Pour ta réponse Boot-repair est totalement capable de  permuter la structure de boot EFI <=> LEGACY, quand j'avais fait l'install en mode LEGACY, j'avais fait un boot repair (sans message d'erreur, mais je ne suis pas sur d'avoir mis l'option "purge grub") pour essayer de passer en EFI mais de ce que je me souviens, cela n'avait pas marché sad

Bonne journée,

Hors ligne

#18 Le 18/05/2020, à 15:27

YannUbuntu

Re : Dual Boot UEFI - "grub-install /dev/sda failed"

bonjour
Le message ' /target détecté.' s'affiche lorsque l'installateur Ubuntu a prealablement été démarré. Et cela bloque toute reparation via Boot-Repair.

Donc si vous voulez pouvoir faire une réparation via Boot-Repair, il faut une session live 'fraiche' dans laquelle vous n'avez jamais démarré l'installateur Ubuntu.


à consulter/améliorer: Guide du Débutant, Logiciels, Ecole, Travail, Maison

Hors ligne

#19 Le 18/05/2020, à 18:48

geole

Re : Dual Boot UEFI - "grub-install /dev/sda failed"

Donc   Un nouveau boot  fait avec le support d''installation de ubuntu dans lequel on installe  immédiatement boot-repair.
et qu'on lance dans la foulée   puis publication du compte-rendu.
    Soit le grub.efi s'installe et c'est réparé.   Soit l'installation du grub-efi plante. Dans ce cas, il devrait y avoir le message d'erreur  contrairement à l'installation initiale


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

#20 Le 20/05/2020, à 10:42

Nico_ldl

Re : Dual Boot UEFI - "grub-install /dev/sda failed"

Bonjour,

Merci pour vos réponses, je n'ai pas eu le temps de regarder encore mais je vais essayer de faire cela cette semaine. Avec tous vos conseils ça devrait être plus simple !

Hors ligne

#21 Le 24/05/2020, à 23:00

Nico_ldl

Re : Dual Boot UEFI - "grub-install /dev/sda failed"

Bonjour,

J'ai du coup fait les actions conseillées, voici-ci mon boot-info après mon boot-repair :

boot-repair-4ppa124                                              [20200524_2053]

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



Default settings: ______________________________________________________________

The default repair of the Boot-Repair utility would not act on the MBR.
Additional repair would be performed:  win-legacy-basic-fix     

User settings: _________________________________________________________________

/usr/share/boot-sav/bs-cmd_terminal.sh: ligne 177: avertissement : substitution de commande: octet nul ignoré en entrée
No OS or WinEFI system
The settings chosen by the user will not act on the MBR.
Additional repair will be performed:  win-legacy-basic-fix


Quantity of real Windows: 1

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

Vous pouvez maintenant redémarrer votre ordinateur.


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

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

sda1: __________________________________________________________________________

    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/MSI/Boot/bootmgfw.efi /efi/MSI/Boot/bootmgr.efi 
                       /efi/MSI/Boot/memtest.efi

sda2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  According to the info in the boot sector, sda2 starts 
                       at sector 0. But according to the info from fdisk, 
                       sda2 starts at sector 25251840.
    Operating System:  Windows 10
    Boot files:        /bootmgr /Windows/System32/winload.exe

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:  
    Boot files:        

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:        

sdb1: __________________________________________________________________________

    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:        /boot/grub/grub.cfg /syslinux.cfg 
                       /efi/BOOT/grubx64.efi /efi/BOOT/mmx64.efi


================================ 1 OS detected =================================

OS#1:   Windows 10 on sda2

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

CPU architecture: 64-bit
Live-session OS is Ubuntu 64-bit (Ubuntu 20.04 LTS, focal, x86_64)


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

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

efibootmgr -v
BootCurrent: 0008
Timeout: 0 seconds
BootOrder: 0008,0007,0000,0004,0005,0006
Boot0000* Windows Boot Manager	HD(1,GPT,5b59b24d-d508-4e29-9da5-75576ceed718,0x800,0x96000)/File(\EFI\UBUNTU\GRUBX64.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.}...i................
Boot0004* ubuntu	HD(1,GPT,5b59b24d-d508-4e29-9da5-75576ceed718,0x800,0x96000)/File(\EFI\UBUNTU\SHIMX64.EFI)..BO
Boot0005* UEFI: PXE IP4 Qualcomm Atheros PCIe Network Controller	PciRoot(0x0)/Pci(0x1c,0x5)/Pci(0x0,0x0)/MAC(4ccc6ae12edb,0)/IPv4(0.0.0.00.0.0.0,0,0)..BO
Boot0006* UEFI: PXE IP6 Qualcomm Atheros PCIe Network Controller	PciRoot(0x0)/Pci(0x1c,0x5)/Pci(0x0,0x0)/MAC(4ccc6ae12edb,0)/IPv6([::]:<->[::]:,0,0)..BO
Boot0007* Windows Boot Manager	HD(1,GPT,5b59b24d-d508-4e29-9da5-75576ceed718,0x800,0x96000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)..BO
Boot0008* UEFI:  USB Flash MemoryPMAP, Partition 1	PciRoot(0x0)/Pci(0x14,0x0)/USB(5,0)/HD(1,GPT,af847b83-1ebf-4477-8b5b-72535215c24d,0x800,0x7767df)..BO

f7a57b08bc7c1c85417ae4cea582d1d4   sda1/Boot/bootx64.efi
bed45d1c9554cea09924d3814cb7c446   sda1/Boot/fbx64.efi
4487628005555bfd4a4c0a47211e0700   sda1/Boot/mmx64.efi
98bea152fadd26c4e9136916f6cc32a8   sda1/ubuntu/grubx64.efi
4487628005555bfd4a4c0a47211e0700   sda1/ubuntu/mmx64.efi
f7a57b08bc7c1c85417ae4cea582d1d4   sda1/ubuntu/shimx64.efi
cb8e4284804d56f058c0e1cf111eeedd   sda1/Microsoft/Boot/bootmgfw.efi
3df357ffd0654bb80f2a575485e6e0cc   sda1/Microsoft/Boot/bootmgr.efi
18a3724224b0f82a36941982259339b6   sda1/MSI/Boot/bootmgfw.efi
4e3a2ee37111132b1bb95323dfc123d2   sda1/MSI/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): _________________________________________________________

sda1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda2	: is-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda3	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda4	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda5	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios

Partitions info (2/3): _________________________________________________________

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

Partitions info (3/3): _________________________________________________________

sda1	: not-sepboot,	no-kernel,	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

fdisk -l (filtered): ___________________________________________________________

Disk sda: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: B9197F3D-7E30-47C7-933F-B52C02D17A7A
           Start        End   Sectors   Size Type
sda1        2048     616447    614400   300M EFI System
sda2    25251840  991709183 966457344 460.9G Microsoft basic data
sda3  1172989952 1174833151   1843200   900M Windows recovery environment
sda4  1174833152 1799813119 624979968   298G Microsoft basic data
sda5  1918412800 1953523711  35110912  16.8G Windows recovery environment
Disk sdb: 3.75 GiB, 4007657472 bytes, 7827456 sectors
Disk identifier: B8FBE763-891A-49EF-8630-575328F638B5
      Start     End Sectors  Size Type
sdb1   2048 7827422 7825375  3.7G Microsoft basic data

parted -lm (filtered): _________________________________________________________

sda:1000GB:scsi:512:4096:gpt:ATA ST1000LM048-2E71:;
1:1049kB:316MB:315MB:fat32:EF:boot, esp;
2:12.9GB:508GB:495GB:ntfs::msftdata;
3:601GB:602GB:944MB:ntfs:Ba:hidden, diag;
4:602GB:922GB:320GB:ntfs:Ba:msftdata;
5:982GB:1000GB:18.0GB:ntfs:Ba:hidden, diag;
sdb:4008MB:scsi:512:512:gpt: USB Flash Memory:;
1:1049kB:4008MB:4007MB:fat32:Main Data Partition:msftdata;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL       PARTLABEL
sda                                                                                                   
├─sda1 vfat     4C3B-5289                            5b59b24d-d508-4e29-9da5-75576ceed718 SYSTEM      EF
├─sda2 ntfs     01D6209CB807E340                     822c531f-704d-468f-862f-b9f59f5f9dea Windows     
├─sda3 ntfs     D8523D49523D2D9E                     6a1c09e4-331c-40b8-8438-782993c729d0 WinRE tools Ba
├─sda4 ntfs     3862409D624061AC                     ea0bb657-ce93-439a-86d2-ade27ed8eb6b Data        Ba
└─sda5 ntfs     C0BA41E8BA41DC12                     d4acf54b-4fb6-41b5-8f74-fc0284273ce8 BIOS_RVY    Ba
sdb                                                                                                   
└─sdb1 vfat     08FC-DA87                            af847b83-1ebf-4477-8b5b-72535215c24d UBUNTU 20_0 Main Data Partition

df (filtered): _________________________________________________________________

       Avail Use% Mounted on
sda1   238.7M  19% /mnt/boot-sav/sda1
sda2   181.6G  61% /mnt/boot-sav/sda2
sda3   401.1M  55% /mnt/boot-sav/sda3
sda4   283.7G   5% /mnt/boot-sav/sda4
sda5     1.2G  93% /mnt/boot-sav/sda5
sdb1     1.2G  68% /cdrom

Mount options: __________________________________________________________________

sda1   rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sda2   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
sdb1   ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro

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

search.fs_uuid 6b62ce16-0645-403d-9b47-c8adf78ab091 root hd0,gpt6 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

Ubuntu
Ubuntu (safe graphics)
OEM install (for manufacturers)
Boot from next volume
UEFI Firmware Settings

========================= sdb1/syslinux.cfg (filtered) =========================

DEFAULT loadconfig

LABEL loadconfig
  CONFIG /isolinux/isolinux.cfg
  APPEND /isolinux/

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

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

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

           GiB - GB             File                                 Fragment(s)
            ?? = ??             syslinux.cfg                                   1


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

Unknown MBR on /dev/sdb

00000000  41 4b 45 4f fc 31 c0 fa  8e d0 bc 00 7c fb 8e d8  |AKEO.1......|...|
00000010  bb 13 04 8b 07 83 e8 04  89 07 c1 e0 06 8e c0 b7  |................|
00000020  07 b8 7f 00 cd 10 31 db  31 c9 ba 4f 18 b8 00 06  |......1.1..O....|
00000030  cd 10 31 d2 b4 02 cd 10  b4 41 bb aa 55 cd 13 72  |..1......A..U..r|
00000040  27 81 fb 55 aa 75 21 f7  c1 01 00 74 1b 66 31 c0  |'..U.u!....t.f1.|
00000050  66 50 6a 22 06 66 50 6a  08 6a 10 89 e6 b4 42 cd  |fPj".fPj.j....B.|
00000060  13 9f 83 c4 10 9e eb 0d  b8 08 02 b9 23 00 ba 80  |............#...|
00000070  00 31 db cd 13 bb 07 00  72 0b 31 f6 8c c0 8e d8  |.1......r.1.....|
00000080  e8 3f 00 eb 06 be 17 7d  e8 37 00 31 c0 8e d8 be  |.?.....}.7.1....|
00000090  63 7d e8 2d 00 e8 1d 00  b4 01 cd 16 75 08 b4 02  |c}.-........u...|
000000a0  cd 16 24 04 74 f2 31 c0  8e d8 b8 34 12 a3 73 04  |..$.t.1....4..s.|
000000b0  ea 00 00 ff ff b4 01 cd  16 74 06 b4 00 cd 16 e2  |.........t......|
000000c0  f4 c3 ac 3c 00 74 4f 3c  0d 74 f7 3c 0a 75 10 53  |...<.tO<.t.<.u.S|
000000d0  b4 03 cd 10 fe c6 b2 00  b4 02 cd 10 5b eb e3 3c  |............[..<|
000000e0  5c 75 1c b1 02 ac 3c 46  7f d8 2c 30 3c 09 7e 02  |\u....<F..,0<.~.|
000000f0  2c 07 c0 e3 04 24 0f 08  c3 fe c9 75 e8 eb c3 b9  |,....$.....u....|
00000100  01 00 b4 09 cd 10 53 31  db b4 03 cd 10 fe c2 b4  |......S1........|
00000110  02 cd 10 5b eb ac c3 0d  0a 20 20 20 20 20 20 20  |...[.....       |
00000120  20 20 20 20 20 20 5c 30  34 2a 2a 2a 20 45 52 52  |      \04*** ERR|
00000130  4f 52 3a 20 54 48 49 53  20 4d 45 44 49 41 20 43  |OR: THIS MEDIA C|
00000140  41 4e 4e 4f 54 20 42 4f  4f 54 20 49 4e 20 4c 45  |ANNOT BOOT IN LE|
00000150  47 41 43 59 20 4d 4f 44  45 20 2a 2a 2a 5c 30 37  |GACY MODE ***\07|
00000160  0d 0a 00 0d 0a 0d 0a 20  20 20 20 20 20 20 20 20  |.......         |
00000170  20 20 20 20 5c 37 30 50  6c 65 61 73 65 20 72 65  |    \70Please re|
00000180  6d 6f 76 65 20 74 68 69  73 20 6d 65 64 69 61 20  |move this media |
00000190  61 6e 64 20 70 72 65 73  73 20 61 6e 79 20 6b 65  |and press any ke|
000001a0  79 20 74 6f 20 72 65 62  6f 6f 74 5c 30 37 00 00  |y to reboot\07..|
000001b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001c0  02 00 ee fe 7f e6 01 00  00 00 ff ff ff ff 00 00  |................|
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200

Je peux du coup tester l'installation ? (je suppose que oui)

Hors ligne

#22 Le 24/05/2020, à 23:34

Nico_ldl

Re : Dual Boot UEFI - "grub-install /dev/sda failed"

J'ai du coup dans la foulé fait l'instal depuis la même session et j'ai eu le message " grub-install dev/sda failed".

Hors ligne

#23 Le 24/05/2020, à 23:38

geole

Re : Dual Boot UEFI - "grub-install /dev/sda failed"

Bonsoir
Je ne sais pas trop ce qui c'est passé ni quand cela a eu lieu mais ubuntu a totalement disparu de ton ordinaleur!!!!!!

sda1: __________________________________________________________________________
    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/MSI/Boot/bootmgfw.efi /efi/MSI/Boot/bootmgr.efi 
                       /efi/MSI/Boot/memtest.efi

sda2: __________________________________________________________________________
    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  According to the info in the boot sector, sda2 starts 
                       at sector 0. But according to the info from fdisk, 
                       sda2 starts at sector 25251840.
    Operating System:  Windows 10
    Boot files:        /bootmgr /Windows/System32/winload.exe

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:  
    Boot files:        

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: 

       
Il n'y a plus aucune partition formatée EXT4 de présentes.

Dernière modification par geole (Le 24/05/2020, à 23:39)


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

#24 Le 24/05/2020, à 23:42

Nico_ldl

Re : Dual Boot UEFI - "grub-install /dev/sda failed"

Ah c'est parce que j'avais virer mon instal en supprimant la partition à l'aide d'un logiciel (c'est comme ça que je fais pour retenter une nouvelle installation).

Ce boot-info a été fait après l'action du boot-repair sur une session Test de Ubuntu, et avant de faire l'installation.

Dernière modification par Nico_ldl (Le 24/05/2020, à 23:44)

Hors ligne

#25 Le 24/05/2020, à 23:48

geole

Re : Dual Boot UEFI - "grub-install /dev/sda failed"

C'était donc irréparable!   Il ne te reste plus qu'à réinstaller   en ayant bien vérifié que le boot de l'installateur a eu lieu en EFI  avant de commencer l'installation avec cette commande

[ -d /sys/firmware/efi ] && echo "Installé en mode EFI" || echo "Installé en mode classique"

et tu racontes en joignant un boot info à la fin de l'installation et en cessant de modifier dans tous les sens

Dernière modification par geole (Le 24/05/2020, à 23:50)


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

Hors ligne