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 14/02/2021, à 20:57

Sylvd

[Résolu] Impossible de lancer Windows après réinstallation Unbuntu

Bonjour à tous

J'ai épluché je ne sais combien de page sur des sujets similaires mais cette saleté refuse toujours de démarer. Avant de perdre totalement la raison je me dis que quelqu'un va voir le détail que j'ai raté. Merci d'avance pour votre aide.

Historique :
[*]PC Win7 + Unbuntu 16 en dual boot fonctionnel
Crash unbuntu, il ne repart plus (win fonctionne bien, lancé depuis Grub)
Réinstallation Unbuntu 20 sur la partition qui hébergeait le 16
Unbuntu 20 va bien, mais grub ne reconnait pas Windows et ne le lance pas malgré les tentatives de configurations manuelles.
[/*]

Les deux OS sont sur le même disque SSD (sda), l'autre ne sert qu'à de la donnée froide.

Le Win7 semble installé en Bios historique, pour l'Unbuntu je n'ai pas fait attention en l'installant, il est donc en UEFI par défaut. Je suis a peu près sur que le problème vient de la.

J'ai tenté de lancer en direct le Win7 depuis le bootloader (sans attendre le chargement de grub) mais j'ai maintenant un bel écran noir (ce qui semble logique puisque si j'ai bien suivi, grub a écrasé le MBR)

J'ai tenté un boot repair qui n'a pas changé grand chose, voici le rapport :

boot-repair-4ppa125                                              [20210214_1845]

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



/usr/share/boot-sav/bs-cmd_terminal.sh: ligne 177: avertissement : substitution de commande: octet nul ignoré en entrée

Recommended repair: ____________________________________________________________

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


/boot/efi added in sda6/fstab
sda6/boot/efi not empty

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

================= Reinstall the grub-efi-amd64-signed of sda6 ==================

grub-install --version
grub-install (GRUB) 2.04-1ubuntu26.8

efibootmgr -v from chroot before grub install
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0003,0001,0002
Boot0000* ubuntu	HD(3,MBR,0x4d7d014e,0x249f0800,0x100800)/File(EFIUBUNTUSHIMX64.EFI)
Boot0001* Hard Drive	BBS(HD,,0x0)..GO..NO........o.S.T.2.0.0.0.D.M.0.0.1.-.1.E.R.1.6.4....................A...........................>..Gd-.;.A..MQ..L. . . . . . . . . . . . .8.Z.0.E.8.7.L.Y........BO..NO........o.C.r.u.c.i.a.l._.C.T.5.2.5.M.X.3.0.0.S.S.D.1....................A...........................>..Gd-.;.A..MQ..L. . . . . . . . .6.1.7.3.3.1.7.E.F.A.A.D........BO
Boot0002* CD/DVD Drive	BBS(CDROM,,0x0)..GO..NO........o.D.R.W.-.2.4.D.5.M.T....................A...........................>..Gd-.;.A..MQ..L.8.K.G.T.G.5.3.B.1.3. .4. . . . . . . . ........BO
Boot0003* Windows Boot Manager	HD(3,MBR,0x4d7d014e,0x249f0800,0x100800)/File(EFIMICROSOFTBOOTBOOTMGFW.EFI)..BO

uname -r
5.8.0-43-generic

grub-install --efi-directory=/boot/efi --target=x86_64-efi --uefi-secure-boot
Installing for x86_64-efi platform.
Installation finished. No error reported.
df /dev/sda3
mv /boot/efi/EFI/Boot/bootx64.efi /boot/efi/EFI/Boot/bkpbootx64.efi
cp /boot/efi/EFI/ubuntu/shimx64.efi /boot/efi/EFI/Boot/bootx64.efi
cp /boot/efi/EFI/ubuntu/grubx64.efi /boot/efi/EFI/Boot/

grub-install --efi-directory=/boot/efi --target=x86_64-efi --uefi-secure-boot
Installing for x86_64-efi platform.
Installation finished. No error reported.

efibootmgr -v from chroot after grub install
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0003,0001,0002
Boot0000* ubuntu	HD(3,MBR,0x4d7d014e,0x249f0800,0x100800)/File(EFIubuntushimx64.efi)
Boot0001* Hard Drive	BBS(HD,,0x0)..GO..NO........o.S.T.2.0.0.0.D.M.0.0.1.-.1.E.R.1.6.4....................A...........................>..Gd-.;.A..MQ..L. . . . . . . . . . . . .8.Z.0.E.8.7.L.Y........BO..NO........o.C.r.u.c.i.a.l._.C.T.5.2.5.M.X.3.0.0.S.S.D.1....................A...........................>..Gd-.;.A..MQ..L. . . . . . . . .6.1.7.3.3.1.7.E.F.A.A.D........BO
Boot0002* CD/DVD Drive	BBS(CDROM,,0x0)..GO..NO........o.D.R.W.-.2.4.D.5.M.T....................A...........................>..Gd-.;.A..MQ..L.8.K.G.T.G.5.3.B.1.3. .4. . . . . . . . ........BO
Boot0003* Windows Boot Manager	HD(3,MBR,0x4d7d014e,0x249f0800,0x100800)/File(EFIMICROSOFTBOOTBOOTMGFW.EFI)..BO

update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
using custom appearance settings
Found background image: /home/sylvestre/Images/fond_grub.jpg
Found linux image: /boot/vmlinuz-5.8.0-43-generic
Found initrd image: /boot/initrd.img-5.8.0-43-generic
Found linux image: /boot/vmlinuz-5.8.0-41-generic
Found initrd image: /boot/initrd.img-5.8.0-41-generic
Adding boot menu entry for UEFI Firmware Settings

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

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

Vous pouvez maintenant redémarrer votre ordinateur.

N'oubliez pas de faire démarrer votre firmware UEFI sur l'entrée L'OS actuellement utilisé - Ubuntu 20.04.2 LTS CurrentSession (fichier sda3/EFI/ubuntu/shimx64.efi) !
Si votre ordinateur redémarre directement dans Windows, essayez de changer l'ordre de démarrage dans votre firmware UEFI.

Si votre firmware UEFI ne permet pas de changer l'ordre de démarrage, changez l'entrée de démarrage par défaut de l'amorceur Windows.
Par exemple, vous pouvez démarrer Windows, puis saisir la commande suivante dans une invite de commande en mode administrateur :
bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi

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

 => Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for (,msdos5)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk
    ---------------------------------------------------------------------------
 => Grub2 (v2.00) is installed in the MBR of /dev/sdb and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for /boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk search_fs_uuid
    ---------------------------------------------------------------------------
    
    config script
    ---------------------------------------------------------------------------
    search.fs_uuid 55ed0f06-5cdf-4b04-bb28-1b97fdfb004b root hd0,msdos5 
    set prefix=($root)'/boot/grub'
    
    ---------------------------------------------------------------------------

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda2: __________________________________________________________________________

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

sda5: __________________________________________________________________________

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

sda6: __________________________________________________________________________

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

sda3: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/BOOT/bkpbootx64.efi /efi/BOOT/bootx64.efi 
                       /efi/BOOT/fbx64.efi /efi/BOOT/grubx64.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

sdb1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sdb2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sdb3: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        


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

OS#1:   L'OS actuellement utilisé - Ubuntu 20.04.2 LTS CurrentSession on sda6
OS#2:   Windows 7 on sda1

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

CPU architecture: 64-bit
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.8.0-43-generic root=UUID=52e81e03-89cc-497a-8c69-128e5d2bf2fc ro quiet splash vt.handoff=7


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

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

efibootmgr -v
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0003,0001,0002
Boot0000* ubuntu	HD(3,MBR,0x4d7d014e,0x249f0800,0x100800)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0001* Hard Drive	BBS(HD,,0x0)..GO..NO........o.S.T.2.0.0.0.D.M.0.0.1.-.1.E.R.1.6.4....................A...........................>..Gd-.;.A..MQ..L. . . . . . . . . . . . .8.Z.0.E.8.7.L.Y........BO..NO........o.C.r.u.c.i.a.l._.C.T.5.2.5.M.X.3.0.0.S.S.D.1....................A...........................>..Gd-.;.A..MQ..L. . . . . . . . .6.1.7.3.3.1.7.E.F.A.A.D........BO
Boot0002* CD/DVD Drive	BBS(CDROM,,0x0)..GO..NO........o.D.R.W.-.2.4.D.5.M.T....................A...........................>..Gd-.;.A..MQ..L.8.K.G.T.G.5.3.B.1.3. .4. . . . . . . . ........BO
Boot0003* Windows Boot Manager	HD(3,MBR,0x4d7d014e,0x249f0800,0x100800)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)..BO

2895d47544fd587b26c7e29be1295c27   sda3/BOOT/fbx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84   sda3/BOOT/mmx64.efi
637fa7fabc8a2f70312edf2f15e275ff   sda3/ubuntu/grubx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84   sda3/ubuntu/mmx64.efi
78415fb8fb9b909f8029858113f1335f   sda3/ubuntu/shimx64.efi
d6c2e79aa2ba2a2e8e6445e9a6d493c0   sda3/Microsoft/Boot/bootmgfw.efi
78415fb8fb9b909f8029858113f1335f   sda3/BOOT/BOOTX64.efi


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

Disks info: ____________________________________________________________________

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

Partitions info (1/3): _________________________________________________________

sda6	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios
sda1	: 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
sdb1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdb2	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdb3	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios

Partitions info (2/3): _________________________________________________________

sda6	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda1	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	bootmgr,	is-winboot
sda3	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb2	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb3	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sda6	: 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
sda3	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda
sdb1	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sdb
sdb2	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sdb
sdb3	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sdb

fdisk -l (filtered): ___________________________________________________________

Disk sda: 489.5 GiB, 525112713216 bytes, 1025610768 sectors
Disk identifier: 0x4d7d014e
      Boot      Start        End   Sectors   Size Id Type
sda1             2048  614402047 614400000   293G  7 HPFS/NTFS/exFAT
sda2        615454718 1025609727 410155010 195.6G  5 Extended
sda3  *     614402048  615452671   1050624   513M ef EFI (FAT-12/16/32)
sda5       1006082048 1025609727  19527680   9.3G 82 Linux swap / Solaris
sda6        615454720 1006082047 390627328 186.3G 83 Linux
Partition table entries are not in disk order.
Disk sdb: 1.84 TiB, 2000398934016 bytes, 3907029168 sectors
Disk identifier: 0x3935f82c
      Boot      Start        End    Sectors   Size Id Type
sdb1             2048 1024002047 1024000000 488.3G  7 HPFS/NTFS/exFAT
sdb2       1024002048 2048002047 1024000000 488.3G  7 HPFS/NTFS/exFAT
sdb3       2048002048 3072002047 1024000000 488.3G  7 HPFS/NTFS/exFAT

parted -lm (filtered): _________________________________________________________

sda:525GB:scsi:512:512:msdos:ATA Crucial_CT525MX3:;
1:1049kB:315GB:315GB:ntfs::;
3:315GB:315GB:538MB:fat32::boot, esp;
2:315GB:525GB:210GB:::;
6:315GB:515GB:200GB:ext4::;
5:515GB:525GB:9998MB:linux-swap(v1)::;
sdb:2000GB:scsi:512:4096:msdos:ATA ST2000DM001-1ER1:;
1:1049kB:524GB:524GB:ntfs::;
2:524GB:1049GB:524GB:ntfs::;
3:1049GB:1573GB:524GB:ntfs::;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL            PARTLABEL
sda                                                                                                        
├─sda1 ntfs     046401BF6401B488                     4d7d014e-01                          Win7             
├─sda2                                               4d7d014e-02                                           
├─sda3 vfat     B407-8A20                            4d7d014e-03                                           
├─sda5 swap     ae7e3b17-207f-4ec6-a030-242e9043f702 4d7d014e-05                                           
└─sda6 ext4     52e81e03-89cc-497a-8c69-128e5d2bf2fc 4d7d014e-06                                           
sdb                                                                                                        
├─sdb1 ntfs     52920E8D920E762F                     3935f82c-01                          Documents        
├─sdb2 ntfs     38D07F6AD07F2D6E                     3935f82c-02                          Documents Aurore 
└─sdb3 ntfs     9A9C1FC89C1F9DB7                     3935f82c-03                          Films et cie     

df (filtered): _________________________________________________________________

                   Avail Use% Mounted on
sda1               21.8G  93% /mnt/boot-sav/sda1
sda6              161.7G   6% /
sdb1              395.3G  19% /mnt/boot-sav/sdb1
sdb2               47.7G  90% /mnt/boot-sav/sdb2
sdb3              149.2G  69% /mnt/boot-sav/sdb3

Mount options: __________________________________________________________________

sda1              rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda6              rw,relatime,errors=remount-ro
sdb1              rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sdb2              rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sdb3              rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096

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

Ubuntu   52e81e03-89cc-497a-8c69-128e5d2bf2fc
Ubuntu, with Linux 5.8.0-43-generic   52e81e03-89cc-497a-8c69-128e5d2bf2fc
Ubuntu, with Linux 5.8.0-41-generic   52e81e03-89cc-497a-8c69-128e5d2bf2fc
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###
Windows 7 (loader) (on sda1)

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

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda6 during installation
UUID=52e81e03-89cc-497a-8c69-128e5d2bf2fc /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda3 during installation
/swapfile                                 none            swap    sw              0       0
UUID=B407-8A20  /boot/efi       vfat    defaults      0       1

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

GRUB_DEFAULT="0"
GRUB_TIMEOUT_STYLE="hidden"
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
export GRUB_COLOR_NORMAL="light-gray/black"
export GRUB_COLOR_HIGHLIGHT="magenta/black"
export GRUB_MENU_PICTURE="/home/sylvestre/Images/fond_grub.jpg"

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

           GiB - GB             File                                 Fragment(s)
 332,097095490 = 356,586541056  boot/grub/grub.cfg                             1
 330,715103149 = 355,102638080  boot/vmlinuz                                   1
 298,635738373 = 320,657682432  boot/vmlinuz-5.8.0-41-generic                  2
 330,715103149 = 355,102638080  boot/vmlinuz-5.8.0-43-generic                  1
 298,635738373 = 320,657682432  boot/vmlinuz.old                               2
 330,981048584 = 355,388194816  boot/initrd.img                                3
 330,552925110 = 354,928500736  boot/initrd.img-5.8.0-41-generic               4
 330,981048584 = 355,388194816  boot/initrd.img-5.8.0-43-generic               3
 330,552925110 = 354,928500736  boot/initrd.img.old                            4

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

-rwxr-xr-x 1 root root 17622 janv. 13 15:12 10_linux
-rwxr-xr-x 1 root root 42359 janv. 13 15:12 10_linux_zfs
-rwxr-xr-x 1 root root 12894 janv. 13 15:12 20_linux_xen
-rwxr-xr-x 1 root root 12059 janv. 13 15:12 30_os-prober
-rwxr-xr-x 1 root root  1424 janv. 13 15:12 30_uefi-firmware
-rwxr-xr-x 1 root root   405 févr. 14 18:22 40_custom
-rwxr-xr-x 1 root root   216 janv. 13 15:12 41_custom
drwxr-xr-x 4 root root  4096 févr. 14 14:41 backup

========================== sda6/etc/grub.d/40_custom ===========================

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "Windows 7 (loader) (on /dev/sda1)" {
    insmod part_msdos
    insmod ntfs
    set root='(hd0,msdos1)'
    search --no-floppy --fs-uuid --set 046401BF6401B488
    chainloader +1
}

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

search.fs_uuid 52e81e03-89cc-497a-8c69-128e5d2bf2fc root hd0,msdos6 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

Dernière modification par Sylvd (Le 09/03/2021, à 01:24)

Hors ligne

#2 Le 14/02/2021, à 21:36

jpoc

Re : [Résolu] Impossible de lancer Windows après réinstallation Unbuntu

Moi je pense qu'il ne faut pas fonctionner en mode EFI pour ce W7 déjà installé
Donc mettre BIOS en mode Legacy
le disque ne doit pas etre en GPT
si c'est le cas W7 est très très mal
Avec un live CD/DVD voir les partitions du disque

Si le disque n'etait pas en GPT je vois pas comment Ubuntu se serait installé en UEFI

Hors ligne

#3 Le 15/02/2021, à 08:50

malbo

Re : [Résolu] Impossible de lancer Windows après réinstallation Unbuntu

Sylvd a écrit :

Le Win7 semble installé en Bios historique, pour l'Unbuntu je n'ai pas fait attention en l'installant, il est donc en UEFI par défaut. Je suis a peu près sur que le problème vient de la.

Tu as raison. Pour obtenir un dual-boot correct, tu vas devoir démarrer en mode Bios (et non pas en mode EFI) sur le support live de Ubuntu 20.04 qui t'a servi pour l'installation. Tu sélectionneras "Essayer Ubuntu" afin de démarrer une session live. Puis tu passeras la commande suivante dans un terminal depuis la session live :

[ -d /sys/firmware/efi ] && echo "Session EFI" || echo "Session non-EFI"

- si le résultat est "Session EFI", ne va pas plus loin : redémarre ton ordi et va dans le Bios afin de trouver le moyen de démarrer en mode non-EFI (en mode Bios) jusqu'à ce que tu obtiennes "Session non-EFI"
- si le résultat est "Session non-EFI", c'est bon, tu peux procéder comme suit :
1) avec Gparted lancé depuis la session live, tu supprimes (*) toutes les partitions du disque sda pour ne laisser que la partition sda1 qui contient W7, puis tu quittes Gparted
2) tu lances l'installation de Ubuntu 20.04 - toujours depuis la même session live - avec le choix "installer Ubuntu à côté de Windows 7" à l'étape "Type d'installation". L'installateur va créer deux partitions : il va annoncer son intention avec un message de ce style : https://pix.toile-libre.org/?img=1613143357.png ( partition n°2, c'est sda2, partition n°5, c'est sda5)

(*) pour supprimer ces partitions, utilise le paragraphe "Suppression d’une partition" de la doc Gparted. Quand elles sont toutes supprimées, il est nécessaire de valider l'ensemble de ces suppressions comme expliqué dans le paragraphe "Application de toutes les opérations"

Dernière modification par malbo (Le 15/02/2021, à 10:01)

Hors ligne

#4 Le 15/02/2021, à 10:05

FrancisFDZ

Re : [Résolu] Impossible de lancer Windows après réinstallation Unbuntu

Bonjour,
Je remarque que ce genre de problème revient souvent, et qu'il est généralement lié à l'installation de plusieurs OS différents (généralement Windows et Ubuntu) sur des modes différents (UEFI ou Legacy). Les tutos traitant de l'installation en multiboot sont parfois obsolètes et ne traitent pas tous de ce point délicat.
Il y a donc lieu de bien lire le tuto que l'on compte utiliser, après avoir vérifié sa date de publication (il n'existe malheureusement pas de critère de date de péremption wink )

Dernière modification par FrancisFDZ (Le 15/02/2021, à 10:06)


-- On peut avoir des raisons de se plaindre et n'avoir pas raison de se plaindre --
[Victor Hugo]

Hors ligne

#5 Le 15/02/2021, à 12:53

ikewdu

Re : [Résolu] Impossible de lancer Windows après réinstallation Unbuntu

Salut,

Une chose m'étonne tout de même dans tout ça : c'est ceci :

===================================== UEFI =====================================
BIOS is EFI-compatible, and is setup in EFI-mode for this installed-session.
Boot0003* Windows Boot Manager	HD(3,MBR,0x4d7d014e,0x249f0800,0x100800)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)..BO
d6c2e79aa2ba2a2e8e6445e9a6d493c0   sda3/Microsoft/Boot/bootmgfw.efi

On note la présence en NVram et sur la partition sda3 (pseudo "efi") de fichiers Windows pour l'UEFI. Soit un précédent Windows a été installé en UEFI sur ce disque dos, soit ce W7 est lui-même installé en UEFI. Or, des fichiers de démarrage pour Legacy-dos sont également présents :

sda1: __________________________________________________________________________
        Operating System:  Windows 7
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

La réparation proposée par malbo est à faire dans tous les cas, mais je ne suis pas absolument certain que ça réglera le problème du démarrage de W7. D'autant plus que grub semble bien vouloir lancer le bootloader de W7 sur sda1 et pas celui sur sda3 (est-ce toi qui l'as configuré manuellement ou non ? On peut l'imaginer puisqu'il est hors de 30_os-prober) :

====================== sda6/boot/grub/grub.cfg (filtered) ======================
Windows 7 (loader) (on sda1)

Tout ça va dépendre du contenu de la base BCD en sda1. Je ne peux être affirmatif, mais une réparation du démarrage de W7 n'est donc peut-être pas à exclure. Ne sois pas trop surpris si la réinstallation d'Ubuntu en Legacy venait à ne pas suffire.

Dernière modification par ikewdu (Le 15/02/2021, à 13:31)

Hors ligne

#6 Le 16/02/2021, à 22:57

Sylvd

Re : [Résolu] Impossible de lancer Windows après réinstallation Unbuntu

Merci pour vos conseils, Je vais tester ces options et je vous dirais ce que ça donne (avec un peu de chance demain soir).

Il n'y avait pas de Window précédent sur ce disque, j'ai installé Win 7 et Unbuntu 16 en même temps (2016 donc) et les OS n'ont pas bougés (en dehors des mises à jour) depuis ce temps
Pour le grub Win7 c'est effectivement moi qui l'ai configuré (mais il ne fonctionne pas).

Sauf erreur de ma part, si je passe le bios en BIOS et non en UEFI je peux faire une croix sur la clef usb Linux et je dois graver l'OS sur un DVD puisque le BIOS legacy ne supporte pas le boot USB, c'est bien ça ?
On va espérer que je puisse me passer de la réparation de W7 puisque je n'ai pas la moindre idée d'ou est passé le CD (et qu'en trouver un autre avec le couvre feu est peu pratique).

Sinon faudra peut être que j'envisage de m'offrir une licence Win10 ou que je monte une VM capable de faire tourner steam (c'est à peu près la seule appli que je fasse tourner sur la session Win...)

Hors ligne

#7 Le 17/02/2021, à 00:14

ikewdu

Re : [Résolu] Impossible de lancer Windows après réinstallation Unbuntu

Re,

Fais ce que malbo t'a proposé. On avisera en cas de souci.

Hors ligne

#8 Le 17/02/2021, à 09:53

FrancisFDZ

Re : [Résolu] Impossible de lancer Windows après réinstallation Unbuntu

Bonjour,

Sylvd a écrit :

Sauf erreur de ma part, si je passe le bios en BIOS et non en UEFI je peux faire une croix sur la clef usb Linux et je dois graver l'OS sur un DVD puisque le BIOS legacy ne supporte pas le boot USB, c'est bien ça ?

Personnellement, je dirais (presque) le contraire : je n'ai pas d'UEFI, donc je suis en bios legacy, et rien ne m’empêche de booter en USB ! Du moment que le périphérique usb est reconnu (et bootable, évidemment), je ne vois pas ce qui peut interdire de booter dessus.

Dernière modification par FrancisFDZ (Le 17/02/2021, à 09:53)


-- On peut avoir des raisons de se plaindre et n'avoir pas raison de se plaindre --
[Victor Hugo]

Hors ligne

#9 Le 21/02/2021, à 03:06

Sylvd

Re : [Résolu] Impossible de lancer Windows après réinstallation Unbuntu

Effectivement le bios (réglé en legacy) charge bien le live Ubuntu depuis ma clef USB.

Opération testée :

  • Mettre le bios en legacy

  • Lancer Ubuntu 20 depuis la clef USB

  • Vérifier le répertoire /sys/firmware/efi => il n'existe pas => on est bien en legacy

  • Réinstallation Ubuntu en écrasant l'installation précédente

Fin de l'installation, redémarage, je me retrouve avec le grub en mode text...

Reboot sur la clef USB et exécution d'un rapport boot repair :

boot-repair-4ppa125                                              [20210221_0019]

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

 => Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for (,msdos6)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk
    ---------------------------------------------------------------------------
 => Grub2 (v2.00) is installed in the MBR of /dev/sdb and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for /boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk search_fs_uuid
    ---------------------------------------------------------------------------
    
    config script
    ---------------------------------------------------------------------------
    search.fs_uuid 55ed0f06-5cdf-4b04-bb28-1b97fdfb004b root hd0,msdos5 
    set prefix=($root)'/boot/grub'
    
    ---------------------------------------------------------------------------
 => Syslinux MBR (5.00 and higher) is installed in the MBR of /dev/sdc.

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda2: __________________________________________________________________________

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

sda5: __________________________________________________________________________

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

sda6: __________________________________________________________________________

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

sda3: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/BOOT/bkpbootx64.efi /efi/BOOT/bootx64.efi 
                       /efi/BOOT/fbx64.efi /efi/BOOT/grubx64.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

sda4: __________________________________________________________________________

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

sdb1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sdb2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sdb3: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sdc1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  SYSLINUX 6.04
    Boot sector info:  Syslinux looks at sector 32776 of /dev/sdc1 for its 
                       second stage. The integrity check of Syslinux failed. 
                       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 /ldlinux.sys


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

OS#1:   Windows 7 on sda1
OS#2:   Ubuntu 20.04.2 LTS on sda6

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

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


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

BIOS is EFI-compatible, but it is not setup in EFI-mode for this live-session.
EFI in dmesg.
[    0.006927] ACPI: UEFI 0x00000000BEC2E928 000042 (v01 INTEL  EDK2     00000002      01000013)

78415fb8fb9b909f8029858113f1335f   sda3/BOOT/bkpbootx64.efi
78415fb8fb9b909f8029858113f1335f   sda3/BOOT/bootx64.efi
2895d47544fd587b26c7e29be1295c27   sda3/BOOT/fbx64.efi
637fa7fabc8a2f70312edf2f15e275ff   sda3/BOOT/grubx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84   sda3/BOOT/mmx64.efi
637fa7fabc8a2f70312edf2f15e275ff   sda3/ubuntu/grubx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84   sda3/ubuntu/mmx64.efi
78415fb8fb9b909f8029858113f1335f   sda3/ubuntu/shimx64.efi
d6c2e79aa2ba2a2e8e6445e9a6d493c0   sda3/Microsoft/Boot/bootmgfw.efi


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

Disks info: ____________________________________________________________________

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

Partitions info (1/3): _________________________________________________________

sda1	: 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
sda6	: is-os,	64, apt-get,	grub-pc ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios
sdb1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdb2	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdb3	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios

Partitions info (2/3): _________________________________________________________

sda1	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	bootmgr,	is-winboot
sda3	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda4	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda6	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb2	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb3	: isnotESP,	part-has-no-fstab,	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
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
sda6	: not-sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sdb1	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sdb
sdb2	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sdb
sdb3	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sdb

fdisk -l (filtered): ___________________________________________________________

Disk sda: 489.5 GiB, 525112713216 bytes, 1025610768 sectors
Disk identifier: 0x4d7d014e
      Boot      Start        End   Sectors   Size Id Type
sda1             2048  614402047 614400000   293G  7 HPFS/NTFS/exFAT
sda2        616505342 1025609727 409104386 195.1G  5 Extended
sda3  *     614402048  615452671   1050624   513M ef EFI (FAT-12/16/32)
sda4        615452672  616503295   1050624   513M  b W95 FAT32
sda5       1006082048 1025609727  19527680   9.3G 82 Linux swap / Solaris
sda6        616505344 1006082047 389576704 185.8G 83 Linux
Partition table entries are not in disk order.
Disk sdb: 1.84 TiB, 2000398934016 bytes, 3907029168 sectors
Disk identifier: 0x3935f82c
      Boot      Start        End    Sectors   Size Id Type
sdb1             2048 1024002047 1024000000 488.3G  7 HPFS/NTFS/exFAT
sdb2       1024002048 2048002047 1024000000 488.3G  7 HPFS/NTFS/exFAT
sdb3       2048002048 3072002047 1024000000 488.3G  7 HPFS/NTFS/exFAT
Disk sdc: 7.51 GiB, 8053063680 bytes, 15728640 sectors
Disk identifier: 0x0011e2df
      Boot Start      End  Sectors  Size Id Type
sdc1  *     2048 15728639 15726592  7.5G  c W95 FAT32 (LBA)

parted -lm (filtered): _________________________________________________________

sda:525GB:scsi:512:512:msdos:ATA Crucial_CT525MX3:;
1:1049kB:315GB:315GB:ntfs::;
3:315GB:315GB:538MB:fat32::boot, esp;
4:315GB:316GB:538MB:fat32::;
2:316GB:525GB:209GB:::;
6:316GB:515GB:199GB:ext4::;
5:515GB:525GB:9998MB:linux-swap(v1)::;
sdb:2000GB:scsi:512:4096:msdos:ATA ST2000DM001-1ER1:;
1:1049kB:524GB:524GB:ntfs::;
2:524GB:1049GB:524GB:ntfs::;
3:1049GB:1573GB:524GB:ntfs::;
sdc:8053MB:scsi:512:512:msdos:Generic Flash Disk:;
1:1049kB:8053MB:8052MB:fat32::boot, lba;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL            PARTLABEL
sda                                                                                                        
├─sda1 ntfs     046401BF6401B488                     4d7d014e-01                          Win7             
├─sda2                                               4d7d014e-02                                           
├─sda3 vfat     B407-8A20                            4d7d014e-03                                           
├─sda4 vfat     ABA2-A7F4                            4d7d014e-04                                           
├─sda5 swap     ae7e3b17-207f-4ec6-a030-242e9043f702 4d7d014e-05                                           
└─sda6 ext4     e58b62bb-498c-4823-a47b-f09a1f996dc9 4d7d014e-06                                           
sdb                                                                                                        
├─sdb1 ntfs     52920E8D920E762F                     3935f82c-01                          Documents        
├─sdb2 ntfs     38D07F6AD07F2D6E                     3935f82c-02                          Documents Aurore 
└─sdb3 ntfs     9A9C1FC89C1F9DB7                     3935f82c-03                          Films et cie     
sdc                                                                                                        
└─sdc1 vfat     84D8-12A5                            0011e2df-01                          UBUNTU 20_0      

df (filtered): _________________________________________________________________

                   Avail Use% Mounted on
sda1               21.8G  93% /mnt/boot-sav/sda1
sda3              500.5M   2% /mnt/boot-sav/sda3
sda4                512M   0% /media/ubuntu/ABA2-A7F4
sda6              164.5G   4% /media/ubuntu/e58b62bb-498c-4823-a47b-f09a1f996dc9
sdb1              395.3G  19% /mnt/boot-sav/sdb1
sdb2               47.7G  90% /mnt/boot-sav/sdb2
sdb3              149.2G  69% /mnt/boot-sav/sdb3
sdc1                4.8G  36% /cdrom

Mount options: __________________________________________________________________

sda1              rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda3              rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sda4              rw,nosuid,nodev,relatime,uid=999,gid=999,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro
sda6              rw,nosuid,nodev,relatime
sdb1              rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sdb2              rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sdb3              rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sdc1              ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro

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

Ubuntu   e58b62bb-498c-4823-a47b-f09a1f996dc9
Ubuntu, avec Linux 5.8.0-43-generic   e58b62bb-498c-4823-a47b-f09a1f996dc9
Ubuntu, avec Linux 5.8.0-41-generic   e58b62bb-498c-4823-a47b-f09a1f996dc9
Windows 7 (sur sda1)   046401BF6401B488
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

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

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda6 during installation
UUID=e58b62bb-498c-4823-a47b-f09a1f996dc9 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda4 during installation
UUID=ABA2-A7F4  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

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

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

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

           GiB - GB             File                                 Fragment(s)
 416,191413879 = 446,882127872  boot/grub/grub.cfg                             2
 416,100269318 = 446,784262144  boot/grub/i386-pc/core.img                     1
 417,200454712 = 447,965577216  boot/vmlinuz                                   1
 298,989517212 = 321,037549568  boot/vmlinuz-5.8.0-41-generic                  1
 417,200454712 = 447,965577216  boot/vmlinuz-5.8.0-43-generic                  1
 298,989517212 = 321,037549568  boot/vmlinuz.old                               1
 417,443004608 = 448,226013184  boot/initrd.img                                2
 417,042964935 = 447,796473856  boot/initrd.img-5.8.0-41-generic               3
 417,443004608 = 448,226013184  boot/initrd.img-5.8.0-43-generic               2
 417,042964935 = 447,796473856  boot/initrd.img.old                            3

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

-rwxr-xr-x 1 root root 17622 janv. 13 14:12 10_linux
-rwxr-xr-x 1 root root 42359 janv. 13 14:12 10_linux_zfs
-rwxr-xr-x 1 root root 12894 janv. 13 14:12 20_linux_xen
-rwxr-xr-x 1 root root 12059 janv. 13 14:12 30_os-prober
-rwxr-xr-x 1 root root  1424 janv. 13 14:12 30_uefi-firmware
-rwxr-xr-x 1 root root   214 janv. 13 14:12 40_custom
-rwxr-xr-x 1 root root   216 janv. 13 14:12 41_custom

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

search.fs_uuid 52e81e03-89cc-497a-8c69-128e5d2bf2fc root hd0,msdos6 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

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

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

DEFAULT loadconfig

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

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

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

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

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


=============================== StdErr Messages ================================

File descriptor 63 (pipe:[159792]) leaked on lvs invocation. Parent PID 20095: /bin/bash

Suggested repair: ______________________________________________________________

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

Blockers in case of suggested repair: __________________________________________

The current session is in BIOS-compatibility mode. Please disable BIOS-compatibility/CSM/Legacy mode in your UEFI firmware, and use this software from a live-CD (or live-USB) that is compatible with UEFI booting mode. For example, use a live-USB of Boot-Repair-Disk-64bit (www.sourceforge.net/p/boot-repair-cd), after making sure your BIOS is set up to boot USB in EFI mode. 

Final advice in case of suggested repair: ______________________________________


Please do not forget to make your UEFI firmware boot on the Ubuntu 20.04.2 LTS entry (sda3/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)
The boot of your PC is in BIOS-compatibility/CSM/Legacy mode. You may want to retry after changing it to UEFI mode.

Je tente un update-grub mais il m'envoi sur les roses.

En fouillant un peu sur le net je trouve un cas similaire. Je tente les commandes suivantes sous grub :

set prefix=(hd0,msdos6)/boot/grub
insmod normal
normal 

J'arrive sur un menu grub. A ma demande, ca boot sur Ubuntu correctement

Je tente un update-grub pour avoir la détection de l'OS. Ca marche.

Reboot, toujours le grub minimaliste, je retape les commandes et la je me retrouve sur Ubuntu sans passer pas le menu (ça sent pas bon).

Je relance un rapport de boot

boot-repair-4ppa125                                              [20210221_0145]

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

 => Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for (,msdos6)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk
    ---------------------------------------------------------------------------
 => Grub2 (v2.00) is installed in the MBR of /dev/sdb and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for /boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk search_fs_uuid
    ---------------------------------------------------------------------------
    
    config script
    ---------------------------------------------------------------------------
    search.fs_uuid 55ed0f06-5cdf-4b04-bb28-1b97fdfb004b root hd0,msdos5 
    set prefix=($root)'/boot/grub'
    
    ---------------------------------------------------------------------------

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda2: __________________________________________________________________________

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

sda5: __________________________________________________________________________

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

sda6: __________________________________________________________________________

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

sda3: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/BOOT/bkpbootx64.efi /efi/BOOT/bootx64.efi 
                       /efi/BOOT/fbx64.efi /efi/BOOT/grubx64.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

sda4: __________________________________________________________________________

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

sdb1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sdb2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sdb3: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        


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

OS#1:   L'OS actuellement utilisé - Ubuntu 20.04.2 LTS CurrentSession on sda6
OS#2:   Windows 7 on sda1

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

CPU architecture: 64-bit
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.8.0-43-generic root=UUID=e58b62bb-498c-4823-a47b-f09a1f996dc9 ro quiet splash vt.handoff=7


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

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

efibootmgr -v
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0003,0001,0002
Boot0000* ubuntu	HD(3,MBR,0x4d7d014e,0x249f0800,0x100800)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0001* Hard Drive	BBS(HD,,0x0)..GO..NO........o.S.T.2.0.0.0.D.M.0.0.1.-.1.E.R.1.6.4....................A...........................>..Gd-.;.A..MQ..L. . . . . . . . . . . . .8.Z.0.E.8.7.L.Y........BO..NO........o.C.r.u.c.i.a.l._.C.T.5.2.5.M.X.3.0.0.S.S.D.1....................A...........................>..Gd-.;.A..MQ..L. . . . . . . . .6.1.7.3.3.1.7.E.F.A.A.D........BO
Boot0002* CD/DVD Drive	BBS(CDROM,,0x0)..GO..NO........o.D.R.W.-.2.4.D.5.M.T....................A...........................>..Gd-.;.A..MQ..L.8.K.G.T.G.5.3.B.1.3. .4. . . . . . . . ........BO
Boot0003* Windows Boot Manager	HD(3,MBR,0x4d7d014e,0x249f0800,0x100800)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)..BO

78415fb8fb9b909f8029858113f1335f   sda3/BOOT/bkpbootx64.efi
78415fb8fb9b909f8029858113f1335f   sda3/BOOT/bootx64.efi
2895d47544fd587b26c7e29be1295c27   sda3/BOOT/fbx64.efi
637fa7fabc8a2f70312edf2f15e275ff   sda3/BOOT/grubx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84   sda3/BOOT/mmx64.efi
637fa7fabc8a2f70312edf2f15e275ff   sda3/ubuntu/grubx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84   sda3/ubuntu/mmx64.efi
78415fb8fb9b909f8029858113f1335f   sda3/ubuntu/shimx64.efi
d6c2e79aa2ba2a2e8e6445e9a6d493c0   sda3/Microsoft/Boot/bootmgfw.efi


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

Disks info: ____________________________________________________________________

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

Partitions info (1/3): _________________________________________________________

sda6	: is-os,	64, apt-get,	grub-pc ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios
sda1	: 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
sdb1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdb2	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdb3	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios

Partitions info (2/3): _________________________________________________________

sda6	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda1	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	bootmgr,	is-winboot
sda3	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda4	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb2	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb3	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sda6	: 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
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
sdb1	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sdb
sdb2	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sdb
sdb3	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sdb

fdisk -l (filtered): ___________________________________________________________

Disk sda: 489.5 GiB, 525112713216 bytes, 1025610768 sectors
Disk identifier: 0x4d7d014e
      Boot      Start        End   Sectors   Size Id Type
sda1             2048  614402047 614400000   293G  7 HPFS/NTFS/exFAT
sda2        616505342 1025609727 409104386 195.1G  5 Extended
sda3  *     614402048  615452671   1050624   513M ef EFI (FAT-12/16/32)
sda4        615452672  616503295   1050624   513M  b W95 FAT32
sda5       1006082048 1025609727  19527680   9.3G 82 Linux swap / Solaris
sda6        616505344 1006082047 389576704 185.8G 83 Linux
Partition table entries are not in disk order.
Disk sdb: 1.84 TiB, 2000398934016 bytes, 3907029168 sectors
Disk identifier: 0x3935f82c
      Boot      Start        End    Sectors   Size Id Type
sdb1             2048 1024002047 1024000000 488.3G  7 HPFS/NTFS/exFAT
sdb2       1024002048 2048002047 1024000000 488.3G  7 HPFS/NTFS/exFAT
sdb3       2048002048 3072002047 1024000000 488.3G  7 HPFS/NTFS/exFAT

parted -lm (filtered): _________________________________________________________

sda:525GB:scsi:512:512:msdos:ATA Crucial_CT525MX3:;
1:1049kB:315GB:315GB:ntfs::;
3:315GB:315GB:538MB:fat32::boot, esp;
4:315GB:316GB:538MB:fat32::;
2:316GB:525GB:209GB:::;
6:316GB:515GB:199GB:ext4::;
5:515GB:525GB:9998MB:linux-swap(v1)::;
sdb:2000GB:scsi:512:4096:msdos:ATA ST2000DM001-1ER1:;
1:1049kB:524GB:524GB:ntfs::;
2:524GB:1049GB:524GB:ntfs::;
3:1049GB:1573GB:524GB:ntfs::;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL            PARTLABEL
sda                                                                                                        
├─sda1 ntfs     046401BF6401B488                     4d7d014e-01                          Win7             
├─sda2                                               4d7d014e-02                                           
├─sda3 vfat     B407-8A20                            4d7d014e-03                                           
├─sda4 vfat     ABA2-A7F4                            4d7d014e-04                                           
├─sda5 swap     ae7e3b17-207f-4ec6-a030-242e9043f702 4d7d014e-05                                           
└─sda6 ext4     e58b62bb-498c-4823-a47b-f09a1f996dc9 4d7d014e-06                                           
sdb                                                                                                        
├─sdb1 ntfs     52920E8D920E762F                     3935f82c-01                          Documents        
├─sdb2 ntfs     38D07F6AD07F2D6E                     3935f82c-02                          Documents Aurore 
└─sdb3 ntfs     9A9C1FC89C1F9DB7                     3935f82c-03                          Films et cie     

df (filtered): _________________________________________________________________

                   Avail Use% Mounted on
sda1               21.8G  93% /mnt/boot-sav/sda1
sda3              500.5M   2% /mnt/boot-sav/sda3
sda6              164.2G   5% /
sdb1              395.3G  19% /mnt/boot-sav/sdb1
sdb2               47.7G  90% /mnt/boot-sav/sdb2
sdb3              149.2G  69% /mnt/boot-sav/sdb3

Mount options: __________________________________________________________________

sda1              rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda3              rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sda6              rw,relatime,errors=remount-ro
sdb1              rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sdb2              rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sdb3              rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096

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

Ubuntu   e58b62bb-498c-4823-a47b-f09a1f996dc9
Ubuntu, avec Linux 5.8.0-43-generic   e58b62bb-498c-4823-a47b-f09a1f996dc9
Ubuntu, avec Linux 5.8.0-41-generic   e58b62bb-498c-4823-a47b-f09a1f996dc9
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

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

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda6 during installation
UUID=e58b62bb-498c-4823-a47b-f09a1f996dc9 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda4 during installation
UUID=ABA2-A7F4  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

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

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

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

           GiB - GB             File                                 Fragment(s)
 417,625442505 = 448,421904384  boot/grub/grub.cfg                             2
 416,100269318 = 446,784262144  boot/grub/i386-pc/core.img                     1
 417,200454712 = 447,965577216  boot/vmlinuz                                   1
 298,989517212 = 321,037549568  boot/vmlinuz-5.8.0-41-generic                  1
 417,200454712 = 447,965577216  boot/vmlinuz-5.8.0-43-generic                  1
 298,989517212 = 321,037549568  boot/vmlinuz.old                               1
 417,443004608 = 448,226013184  boot/initrd.img                                2
 417,042964935 = 447,796473856  boot/initrd.img-5.8.0-41-generic               3
 417,443004608 = 448,226013184  boot/initrd.img-5.8.0-43-generic               2
 417,042964935 = 447,796473856  boot/initrd.img.old                            3

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

-rwxr-xr-x 1 root root 17622 janv. 13 15:12 10_linux
-rwxr-xr-x 1 root root 42359 janv. 13 15:12 10_linux_zfs
-rwxr-xr-x 1 root root 12894 janv. 13 15:12 20_linux_xen
-rwxr-xr-x 1 root root 12059 janv. 13 15:12 30_os-prober
-rwxr-xr-x 1 root root  1424 janv. 13 15:12 30_uefi-firmware
-rwxr-xr-x 1 root root   214 janv. 13 15:12 40_custom
-rwxr-xr-x 1 root root   216 janv. 13 15:12 41_custom

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

search.fs_uuid 52e81e03-89cc-497a-8c69-128e5d2bf2fc root hd0,msdos6 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg


Suggested repair: ______________________________________________________________

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

Final advice in case of suggested repair: ______________________________________


Please do not forget to make your UEFI firmware boot on the L'OS actuellement utilisé - Ubuntu 20.04.2 LTS CurrentSession entry (sda3/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)

Visiblement le Ubuntu live était bien en BIOS mais la version installée sur mon disque est en UEFI...

J'ai foiré un truc quelque part mais je vois pas bien ou.

Merci pour vos lumières.

Hors ligne

#10 Le 21/02/2021, à 08:43

malbo

Re : [Résolu] Impossible de lancer Windows après réinstallation Unbuntu

Extrait du post #1 :

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

 => Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for (,msdos5)/boot/grub.


On y voit un chargeur de Grub dans le MBR du disque sda qui pointe sur msdos5. Il s'agit d'un reliquat de ton ancienne installation, du temps où ton dual-boot fonctionnait. Ce chargeur ne pouvait plus fonctionner.
Extrait du Boot-info du post #9 :

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

 => Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for (,msdos6)/boot/grub.

Il y a eu une nouvelle écriture du chargeur de Grub qui pointe à présent sur msdos6 qui est la partition racine de Ubuntu. Pour moi, cela veut dire que l'installation a bien été réalisée en mode Bios (et non pas en mode UEFI)

Autre confirmation :
Extrait du post #1 qui mentionne grub-efi, c'est à dire la version de Grub adaptée pour l'UEFI :

sda6	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2

Extrait du post #9 :

sda6	: is-os,	64, apt-get,	grub-pc ,	grub2

On peut voir qu'il n'y a plus de grub-efi mais seulement grub-pc qui est la version de Grub adaptée pour le mode Bios.

Dernière modification par malbo (Le 21/02/2021, à 08:48)

Hors ligne

#11 Le 21/02/2021, à 09:09

ikewdu

Re : [Résolu] Impossible de lancer Windows après réinstallation Unbuntu

Salut,

Comme malbo,  je pense que cette installation est bonne, et que tu as probablement deux problèmes restant à régler :

1 : la priorité de ton BIOS est réglée sur l'uefi. Ça expliquerait le fait que boot-info pense toujours que tu bootes en uefi.
2. Tu as le bug d'affichage de GRUB s'il n'est pas en mode console.

A ta place, avec le navigateur en mode admin, je commencerais par renommer le dossier efi de la partition sda3 en oldefi. Ou tu supprimes carrément la partition sda3 avec gparted. Il faudra aussi modifier le fichier /etc/fstab en mettant # devant la ligne suivante pour ne pas avoir d'erreur au démarrage :

UUID=ABA2-A7F4  /boot/efi       vfat    umask=0077      0       1

Au prochain démarrage, je pense que ton Ubuntu devrait booter directement sans afficher un GRUB.

Si oui, il faudra modifier le fichier /etc/défaut/GRUB pour retirer le # devant la ligne

# GRUB_TERMINAL=console 

et faire un

sudo update-grub

et ton menu devrait apparaître.

Dernière modification par ikewdu (Le 21/02/2021, à 09:30)

Hors ligne

#12 Le 21/02/2021, à 10:18

malbo

Re : [Résolu] Impossible de lancer Windows après réinstallation Unbuntu

Il faut que tu ailles dans le Boot menu de ton ordi au démarrage pour sélectionner le démarrage sur Crucial CT525MX3 (ton disque dur sda) et non pas sur l'entrée "ubuntu" parce que cette dernière démarre en mode EFI. Il est possible que le Boot menu te propose deux entrée pour Crucial CT525MX3, du genre :

(UEFI) Crucial_CT525MX3
Crucial_CT525MX3  

Il faut prendre l'entrée qui ne comporte pas la mention "UEFI" afin de démarrer en mode Bios sur ton Ubuntu installé.

Dernière modification par malbo (Le 21/02/2021, à 10:19)

Hors ligne

#13 Le 24/02/2021, à 01:09

Sylvd

Re : [Résolu] Impossible de lancer Windows après réinstallation Unbuntu

Bonsoir à tous,

J'ai fini par craquer et me décider à refaire une installation à zéro des deux OS. Du coup j'ai rebasculé le bios en mode UEFI et ai cherché à booter sur une clef Win10 fraichement préparée. La clef win 10 a planté (sans doute mal copiée ? ) mais en rebootant le pc pour la refaire le grub de Ubuntu est parti correctement et a accepté de lancer Win7.

Je ne comprend pas vraiment ce qui lui arrive mais pour ce mois ci j'ai passé assez de temps à jouer à l'adminsys. Ca m'a donné l'occasion de me remettre à niveau sur le boot et ses subtilités (visiblement pas toutes encore) mais pour le moment je vais m’arrêter la.

Merci à tous pour votre aide.

Hors ligne

#14 Le 24/02/2021, à 01:39

MicP

Re : [Résolu] Impossible de lancer Windows après réinstallation Unbuntu

… le grub de Ubuntu est parti correctement et a accepté de lancer Win7.  …

Coooool !

Ça a finit par tomber en marche.  smile

Dernière modification par MicP (Le 24/02/2021, à 01:39)

Hors ligne

#15 Le 24/02/2021, à 09:29

malbo

Re : [Résolu] Impossible de lancer Windows après réinstallation Unbuntu

Bonjour,
Depuis une session de ton Ubuntu installé, je te prie de passer la commande suivante :

[ -d /sys/firmware/efi ] && echo "Session EFI" || echo "Session non-EFI"

Dis-nous le résultat de cette commande

Hors ligne

#16 Le 27/02/2021, à 19:28

Sylvd

Re : [Résolu] Impossible de lancer Windows après réinstallation Unbuntu

Bonjour,

La session est en non EFI selon cette méthode.

J'ai un peu de mal à comprendre comment j'en suis arrivé à ce stade mais au final :
[*]Si je laisse le PC booter tout seul je tombe sur un grub en ligne de commande. Je peux lancer linux à condition d'avoir les commandes. [/*]
[*]Si au boot je force le bootLoader sur le disque P0 il boot sur le grub avec l'interface proposant les différents choix [/*]
[*]Dans celle ci Windows accepte de démarer.[/*]

J'ai un peu de mal à saisir comment j'en suis arrivé à ce stade. J'aurais quelque chose de plus propre en réinstallant tout à partir de 0 mais j'y ai déja passé pas mal de temps. Ce sera pour la prochaine fois qu'il crash. Ca m'a au moins rappelé de mettre à jour mes sauvegardes externes.

Merci pour votre aide en tout cas.

Hors ligne

#17 Le 28/02/2021, à 09:41

malbo

Re : [Résolu] Impossible de lancer Windows après réinstallation Unbuntu

Sylvd a écrit :

La session est en non EFI selon cette méthode.

C'est correct. Depuis le début de ce fil, j'ai affirmé que Ubuntu doit être installé - et doit fonctionner - en mode non-EFI ( c'est à dire en mode Bios classique) parce que Windows 7 est installé en mode non-EFI. Pour le reste, je ne sais pas interpréter tout ce que tu décris et en particulier, je ne sais pas expliquer ça : "Si je laisse le PC booter tout seul je tombe sur un grub en ligne de commande"

EDIT : puisque tu souhaites en rester là, je te prie de procéder comme suit pour fermer cette discussion, :
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] Impossible de lancer Windows après réinstallation Unbuntu

Je propose de virer la mention "dual boot" pour éviter que le titre soit trop long.

Dernière modification par malbo (Le 28/02/2021, à 09:50)

Hors ligne

#18 Le 28/02/2021, à 10:03

FrancisFDZ

Re : [Résolu] Impossible de lancer Windows après réinstallation Unbuntu

Si j'ai bien compris, la solution passe par la simplicité : tous les os installés doivent l'être sur la même base (MBR ou UEFI), le panachage pourrait marcher, mais est fortement déconseillé
J'ai bon ?


-- On peut avoir des raisons de se plaindre et n'avoir pas raison de se plaindre --
[Victor Hugo]

Hors ligne

#19 Le 28/02/2021, à 10:08

malbo

Re : [Résolu] Impossible de lancer Windows après réinstallation Unbuntu

FrancisFDZ a écrit :

tous les os installés doivent l'être sur la même base (MBR ou UEFI)

Oui, c'est le sujet de mon tuto qui est épinglé sur le forum "Questions et informations avant l'installation" :  [Tuto] Faut-il installer Ubuntu en mode EFI ou en mode BIOS ?

Hors ligne