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 09/01/2021, à 12:16

zumbatana

grub et win

Bonjour,

suite à une reinstall du 20.04 je n'ai plus windows dans le grub. Les 2 os sont sur des disques separés et ils etaient bien present au demarrage mais ils ne le sont plus. Voici le rapport boot-info

boot-info-4ppa125                                              [20210109_1110]

============================== 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 /boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk search_fs_uuid
    ---------------------------------------------------------------------------
    
    config script
    ---------------------------------------------------------------------------
    search.fs_uuid 6f5e1b4c-073a-4625-9658-842c2036aee8 root hd1,msdos5 
    set prefix=($root)'/boot/grub'
    
    ---------------------------------------------------------------------------
 => 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 (,msdos5)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk
    ---------------------------------------------------------------------------

sda1: __________________________________________________________________________

    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:        /bootmgr /Boot/BCD

sda2: __________________________________________________________________________

    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

sda3: __________________________________________________________________________

    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:        

sdb1: __________________________________________________________________________

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

sdb2: __________________________________________________________________________

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

sdb3: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/BOOT/fbx64.efi /efi/BOOT/mmx64.efi 
                       /efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi 
                       /efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg

sdb4: __________________________________________________________________________

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

sdb5: __________________________________________________________________________

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


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

OS#1:   L'OS actuellement utilisé - Ubuntu 20.04.1 LTS CurrentSession on sdb5
OS#2:   Windows 7 on sda2

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

CPU architecture: 64-bit
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.8.0-36-generic root=UUID=25d0b08e-3264-4d31-b5a0-66c4f963c3b0 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: 0 seconds
BootOrder: 0000,0001,0008,0009,0004
Boot0000* ubuntu	HD(3,MBR,0xcb8d8cdf,0x201000,0x100800)/File(\EFI\ubuntu\shimx64.efi)
Boot0001* Hard Drive 	BBS(HD,,0x0)..GO..NO........o.K.I.N.G.S.T.O.N. .S.U.V.5.0.0.2.4.0.G....................A...........................>..Gd-.;.A..MQ..L.0.5.2.0.B.6.6.7.2.8.E.C.E.E.8.7. . . . ........BO..NO........o.K.I.N.G.S.T.O.N. .S.V.3.0.0.S.3.7.A.6.0.G....................A...........................>..Gd-.;.A..MQ..L.0.5.2.0.B.6.7.7.8.4.C.0.3.8.6.9. . . . ........BO
Boot0004* UEFI OS	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0008* UEFI OS	HD(3,MBR,0xcb8d8cdf,0x201000,0x100800)/File(\EFI\BOOT\BOOTX64.EFI)
Boot0009* ubuntu	HD(3,MBR,0xcb8d8cdf,0x201000,0x100800)/File(\EFI\Ubuntu\grubx64.efi)
Boot000A  CD/DVD Drive 	BBS(CDROM,,0x0)..GO..NO........o.S.l.i.m.t.y.p.e. .D.V.D. .A. . .D.S.8.A.9.S.H....................A...........................>..Gd-.;.A..MQ..L.2.3.8.0.0.7. .3.4.6.3.3.2.1.0.4.5.8.3.3........BO

2895d47544fd587b26c7e29be1295c27   sdb3/BOOT/fbx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84   sdb3/BOOT/mmx64.efi
8ed07d5ee4e5e1534bcf64037b7589ff   sdb3/ubuntu/grubx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84   sdb3/ubuntu/mmx64.efi
78415fb8fb9b909f8029858113f1335f   sdb3/ubuntu/shimx64.efi
78415fb8fb9b909f8029858113f1335f   sdb3/BOOT/BOOTX64.efi


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

Disks info: ____________________________________________________________________

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

Partitions info (1/3): _________________________________________________________

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

Partitions info (2/3): _________________________________________________________

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

Partitions info (3/3): _________________________________________________________

sdb5	: not-sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sdb
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
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: 223.58 GiB, 240057409536 bytes, 468862128 sectors
Disk identifier: 0xc1628aba
      Boot     Start       End   Sectors   Size Id Type
sda1          247808    452607    204800   100M  7 HPFS/NTFS/exFAT
sda2  *       452608 246007807 245555200 117.1G  7 HPFS/NTFS/exFAT
sda3       246007808 468856831 222849024 106.3G  7 HPFS/NTFS/exFAT
Disk sdb: 55.92 GiB, 60022480896 bytes, 117231408 sectors
Disk identifier: 0xcb8d8cdf
      Boot   Start       End   Sectors  Size Id Type
sdb1          2048   1050623   1048576  512M  b W95 FAT32
sdb2       1050624   2101247   1050624  513M  b W95 FAT32
sdb3  *    2101248   3151871   1050624  513M ef EFI (FAT-12/16/32)
sdb4       3153918 117229567 114075650 54.4G  5 Extended
sdb5       3153920 117229567 114075648 54.4G 83 Linux

parted -lm (filtered): _________________________________________________________

sda:240GB:scsi:512:4096:msdos:ATA KINGSTON SUV5002:;
1:127MB:232MB:105MB:ntfs::;
2:232MB:126GB:126GB:ntfs::boot;
3:126GB:240GB:114GB:ntfs::;
sdb:60.0GB:scsi:512:512:msdos:ATA KINGSTON SV300S3:;
1:1049kB:538MB:537MB:fat32::;
2:538MB:1076MB:538MB:fat32::;
3:1076MB:1614MB:538MB:fat32::boot, esp;
4:1615MB:60.0GB:58.4GB:::;
5:1615MB:60.0GB:58.4GB:ext4::;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL              PARTLABEL
sda                                                                                                          
├─sda1 ntfs     38C6A87CC6A83BCE                     c1628aba-01                          Réservé au système 
├─sda2 ntfs     E666C3B966C388AF                     c1628aba-02                          Win7               
└─sda3 ntfs     46D0F514D0F50AC7                     c1628aba-03                          stock              
sdb                                                                                                          
├─sdb1 vfat     90C7-2495                            cb8d8cdf-01                                             
├─sdb2 vfat     6977-BF04                            cb8d8cdf-02                                             
├─sdb3 vfat     3FC2-FB4F                            cb8d8cdf-03                                             
├─sdb4                                               cb8d8cdf-04                                             
└─sdb5 ext4     25d0b08e-3264-4d31-b5a0-66c4f963c3b0 cb8d8cdf-05                                             

df (filtered): _________________________________________________________________

                   Avail Use% Mounted on
sda1               43.2M  57% /mnt/boot-sav/sda1
sda2               61.5G  48% /mnt/boot-sav/sda2
sda3               45.2G  57% /mnt/boot-sav/sda3
sdb1                511M   0% /mnt/boot-sav/sdb1
sdb2                512M   0% /mnt/boot-sav/sdb2
sdb3              504.2M   2% /mnt/boot-sav/sdb3
sdb5               40.5G  19% /

Mount options: __________________________________________________________________

sda1              rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
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
sdb1              rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sdb2              rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sdb3              rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sdb5              rw,relatime,errors=remount-ro

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

search.fs_uuid 25d0b08e-3264-4d31-b5a0-66c4f963c3b0 root hd1,msdos5 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

Ubuntu   25d0b08e-3264-4d31-b5a0-66c4f963c3b0
Ubuntu, avec Linux 5.8.0-36-generic   25d0b08e-3264-4d31-b5a0-66c4f963c3b0
Ubuntu, avec Linux 5.4.0-42-generic   25d0b08e-3264-4d31-b5a0-66c4f963c3b0
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

========================== sdb5/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdb5 during installation
UUID=25d0b08e-3264-4d31-b5a0-66c4f963c3b0 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sdb3 during installation
UUID=3FC2-FB4F  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

======================= sdb5/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=""

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

           GiB - GB             File                                 Fragment(s)
  45,709186554 = 49,079865344   boot/grub/grub.cfg                             1
  50,044204712 = 53,734555648   boot/vmlinuz                                   1
   5,910152435 = 6,345977856    boot/vmlinuz-5.4.0-42-generic                  2
  50,044204712 = 53,734555648   boot/vmlinuz-5.8.0-36-generic                  1
   5,910152435 = 6,345977856    boot/vmlinuz.old                               2
  11,255504608 = 12,085506048   boot/initrd.img                                2
  10,685226440 = 11,473174528   boot/initrd.img-5.4.0-42-generic               1
  11,255504608 = 12,085506048   boot/initrd.img-5.8.0-36-generic               2
  10,685226440 = 11,473174528   boot/initrd.img.old                            1

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

-rwxr-xr-x 1 root root 17622 nov.  13 00:15 10_linux
-rwxr-xr-x 1 root root 42359 nov.  13 00:15 10_linux_zfs
-rwxr-xr-x 1 root root 12894 juil. 31 02:34 20_linux_xen
-rwxr-xr-x 1 root root 12059 juil. 31 02:34 30_os-prober
-rwxr-xr-x 1 root root  1424 juil. 31 02:34 30_uefi-firmware
-rwxr-xr-x 1 root root   214 juil. 31 02:34 40_custom
-rwxr-xr-x 1 root root   216 juil. 31 02:34 41_custom
drwxr-xr-x 4 root root  4096 janv.  8 22:07 backup


================================= User choice ==================================

Is sdb (ATA KINGSTON SV300S3) a removable disk? no

Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would purge (in order to remove grub-efi) and reinstall the grub2 of
sdb5 into the MBRs of all disks (except live-disks and removable disks without OS).
Grub-efi would not be selected by default because: legacy-win no-win-efi 
Additional repair would be performed: unhide-bootmenu-10s      

Blockers in case of suggested repair: __________________________________________

LegacyWindows detected. Please enable BIOS-compatibility/CSM/Legacy mode in your UEFI firmware, and use this software from a live-CD (or live-USB). 

Final advice in case of suggested repair: ______________________________________


Please do not forget to make your BIOS boot on sdb (ATA KINGSTON SV300S3) disk!
The boot of your PC is in UEFI mode. You may want to retry after changing it to BIOS-compatibility/CSM/Legacy mode.

En plus je me retrouve avec des partitions de 512Mo et je sais pas à quoi elles correspondents.

Merci d'avance pour votre aide.

Hors ligne

#2 Le 09/01/2021, à 13:23

Qid

Re : grub et win

En lien avec ton Ubuntu

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

En lien avec ton windows

LegacyWindows detected. Please enable BIOS-compatibility/CSM/Legacy mode in your UEFI firmware, and use this software from a live-CD (or live-USB).

Donc en clair c'est normal qu'ils ne se voient pas car les 2 ne sont pas installé dans le même mode : Linux est en efi alors que windows est en legacy...
Va falloir réinstaller Linux en legacy si tu veux qu'il voit windows


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

Hors ligne

#3 Le 09/01/2021, à 17:00

zumbatana

Re : grub et win

Ok merci pour l'info maiis c'est bizarre parce que j'ai installé les deux systèmes sans touché au bios donc je comprends pas pkoi ils ont des modes différents.

Hors ligne

#4 Le 09/01/2021, à 17:18

Qid

Re : grub et win

zumbatana a écrit :

j'ai installé les deux systèmes sans touché au bios donc je comprends pas pkoi ils ont des modes différents.

Probablement parce-que Linux est plus souple que windows et donc qu'il proposait les deux modes de démarrage dans la séquence du bios et tu aurai choisi le mauvais... Il y a une ligne de commande qui circule sur le forum et que je n'ai pas en tête qui permet de t'assurer du mode dans lequel ton live est démarré... Après l'autre solution sans réinstaller c'est que tu passes par le menu de boot du bios pour choisir entre l'un et l'autre...


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

Hors ligne

#5 Le 10/01/2021, à 14:28

zumbatana

Re : grub et win

bonjour,

j'ai réinstallé les deux os en gardant la même config de bios et j'ai toujours le même problème. J'ai fait un boot repair qui me dit de changer le mode bios mais quand je fais ça il ne trouve plus le disque avec windows.
J'ai demandé à booté sur le disque windows après avoir remodifié le bios mais là il démarre direct sur Ubuntu.
Je suis vraiment perdu.

Hors ligne

#6 Le 10/01/2021, à 15:30

geole

Re : grub et win

Bonjour
Regarde dans ton bios si tu n'as pas une option de gestion des modes LEGACY/EFI
Si tu peux déactiver le mode EFI, cela serait parfait, Sinon regarde si tu mettre prioritaire le mode legacy

Si ce n'est pas possible, lances un boot-repair pour réparer le secteur de boot  pour y mettre un boot standard ou utilises le support d'installation de windows pour réparer
Car dans le dernier boot-info, les deux  MBR prévoient de lancer ubuntu et pas windows!!!!

============================== 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 /boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk search_fs_uuid
    ---------------------------------------------------------------------------
    
    config script
    ---------------------------------------------------------------------------
    search.fs_uuid 6f5e1b4c-073a-4625-9658-842c2036aee8 root hd1,msdos5 
    set prefix=($root)'/boot/grub'
    
    ---------------------------------------------------------------------------
 => 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 (,msdos5)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk

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

Hors ligne

#7 Le 10/01/2021, à 16:59

zumbatana

Re : grub et win

Apres le boot repair sur le live usb je voit bien le grub avec Ubuntu et Windows 7.
Par contre quand je veux booter sur win il me dit:

Error: can't find command "parttool"
Error: invalid EFI file path

Press any key ton continue

Hors ligne

#8 Le 10/01/2021, à 17:05

geole

Re : grub et win

Fournis un boot-info de l'état actuel


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

#9 Le 10/01/2021, à 17:20

zumbatana

Re : grub et win

boot-info-4ppa125                                              [20210110_1619]

============================== 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 /boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk search_fs_uuid
    ---------------------------------------------------------------------------
    
    config script
    ---------------------------------------------------------------------------
    search.fs_uuid fd39c981-393f-41c5-b4a4-4e3e62694054 root hd1,msdos6 
    set prefix=($root)'/boot/grub'
    
    ---------------------------------------------------------------------------
 => 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 (,msdos6)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk
    ---------------------------------------------------------------------------

sda1: __________________________________________________________________________

    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:        /bootmgr /Boot/BCD

sda2: __________________________________________________________________________

    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:        /Windows/System32/winload.exe

sda3: __________________________________________________________________________

    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:        

sdb1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/BOOT/fbx64.efi /efi/BOOT/mmx64.efi 
                       /efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi 
                       /efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg

sdb2: __________________________________________________________________________

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

sdb5: __________________________________________________________________________

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

sdb6: __________________________________________________________________________

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


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

OS#1:   L'OS actuellement utilisé - Ubuntu 20.04.1 LTS CurrentSession on sdb6
OS#2:   Windows 7 on sda2

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

CPU architecture: 64-bit
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.4.0-42-generic root=UUID=fd39c981-393f-41c5-b4a4-4e3e62694054 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: 000D
Timeout: 0 seconds
BootOrder: 000D,000E,0000,0010,0011,0008,0004
Boot0000* ubuntu	HD(1,MBR,0xcb8d8cdf,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
Boot0004* UEFI OS	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0008* UEFI OS	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot000D* ubuntu	HD(1,MBR,0xcb8d8cdf,0x800,0x100000)/File(\EFI\Ubuntu\grubx64.efi)
Boot000E* UEFI OS	HD(1,MBR,0xcb8d8cdf,0x800,0x100000)/File(\EFI\BOOT\BOOTX64.EFI)
Boot0010* Hard Drive 	BBS(HD,,0x0)..GO..NO........o.K.I.N.G.S.T.O.N. .S.U.V.5.0.0.2.4.0.G....................A...........................>..Gd-.;.A..MQ..L.0.5.2.0.B.6.6.7.2.8.E.C.E.E.8.7. . . . ........BO..NO........o.K.I.N.G.S.T.O.N. .S.V.3.0.0.S.3.7.A.6.0.G....................A...........................>..Gd-.;.A..MQ..L.0.5.2.0.B.6.7.7.8.4.C.0.3.8.6.9. . . . ........BO
Boot0011* CD/DVD Drive 	BBS(CDROM,,0x0)..GO..NO........o.S.l.i.m.t.y.p.e. .D.V.D. .A. . .D.S.8.A.9.S.H....................A...........................>..Gd-.;.A..MQ..L.2.3.8.0.0.7. .3.4.6.3.3.2.1.0.4.5.8.3.3........BO

bed45d1c9554cea09924d3814cb7c446   sdb1/BOOT/fbx64.efi
4487628005555bfd4a4c0a47211e0700   sdb1/BOOT/mmx64.efi
1476c8ed1ce8271aab2fbe89d534cfa4   sdb1/ubuntu/grubx64.efi
4487628005555bfd4a4c0a47211e0700   sdb1/ubuntu/mmx64.efi
f7a57b08bc7c1c85417ae4cea582d1d4   sdb1/ubuntu/shimx64.efi
f7a57b08bc7c1c85417ae4cea582d1d4   sdb1/BOOT/BOOTX64.efi


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

Disks info: ____________________________________________________________________

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

Partitions info (1/3): _________________________________________________________

sdb6	: is-os,	64, apt-get,	grub-pc ,	grub2,	grub-install,	grubenv-ok,	update-grub,	not-far
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
sdb1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far

Partitions info (2/3): _________________________________________________________

sdb6	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	bootmgr,	is-winboot
sda2	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda3	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sdb6	: not-sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sdb
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
sdb1	: 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: 223.58 GiB, 240057409536 bytes, 468862128 sectors
Disk identifier: 0xc1628aba
      Boot     Start       End   Sectors   Size Id Type
sda1  *         2048    206847    204800   100M  7 HPFS/NTFS/exFAT
sda2          206848 204802047 204595200  97.6G  7 HPFS/NTFS/exFAT
sda3       204802048 468858879 264056832 125.9G  7 HPFS/NTFS/exFAT
Disk sdb: 55.92 GiB, 60022480896 bytes, 117231408 sectors
Disk identifier: 0xcb8d8cdf
      Boot     Start       End   Sectors  Size Id Type
sdb1  *         2048   1050623   1048576  512M ef EFI (FAT-12/16/32)
sdb2         1052670 117229567 116176898 55.4G  5 Extended
sdb5       107423744 117229567   9805824  4.7G 82 Linux swap / Solaris
sdb6         1052672 107423743 106371072 50.7G 83 Linux
Partition table entries are not in disk order.

parted -lm (filtered): _________________________________________________________

sda:240GB:scsi:512:4096:msdos:ATA KINGSTON SUV5002:;
1:1049kB:106MB:105MB:ntfs::boot;
2:106MB:105GB:105GB:ntfs::;
3:105GB:240GB:135GB:ntfs::;
sdb:60.0GB:scsi:512:512:msdos:ATA KINGSTON SV300S3:;
1:1049kB:538MB:537MB:fat32::boot, esp;
2:539MB:60.0GB:59.5GB:::;
6:539MB:55.0GB:54.5GB:ext4::;
5:55.0GB:60.0GB:5021MB:linux-swap(v1)::;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL              PARTLABEL
sda                                                                                                          
├─sda1 ntfs     8C8C75BD8C75A27E                     c1628aba-01                          Réservé au système 
├─sda2 ntfs     4EAA8242AA822695                     c1628aba-02                          Win 7              
└─sda3 ntfs     16866E0A866DEAA7                     c1628aba-03                          Stockage           
sdb                                                                                                          
├─sdb1 vfat     1753-3799                            cb8d8cdf-01                                             
├─sdb2                                               cb8d8cdf-02                                             
├─sdb5 swap     dbcf074b-fed9-496c-968b-6f54635a2753 cb8d8cdf-05                                             
└─sdb6 ext4     fd39c981-393f-41c5-b4a4-4e3e62694054 cb8d8cdf-06                                             

df (filtered): _________________________________________________________________

                   Avail Use% Mounted on
sda1               75.9M  24% /mnt/boot-sav/sda1
sda2               79.1G  19% /mnt/boot-sav/sda2
sda3              125.8G   0% /mnt/boot-sav/sda3
sdb1              503.2M   2% /mnt/boot-sav/sdb1
sdb6               37.9G  19% /

Mount options: __________________________________________________________________

sda1              rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
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
sdb1              rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sdb6              rw,relatime,errors=remount-ro

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

search.fs_uuid fd39c981-393f-41c5-b4a4-4e3e62694054 root hd1,msdos6 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

Ubuntu   fd39c981-393f-41c5-b4a4-4e3e62694054
Ubuntu, with Linux 5.4.0-42-generic   fd39c981-393f-41c5-b4a4-4e3e62694054
Windows 7 (on sda1)   8C8C75BD8C75A27E
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sdb6/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdb6 during installation
UUID=fd39c981-393f-41c5-b4a4-4e3e62694054 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sdb1 during installation
/swapfile                                 none            swap    sw              0       0

======================= sdb6/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=""

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

           GiB - GB             File                                 Fragment(s)
  16,637004852 = 17,863847936   boot/grub/grub.cfg                             1
  32,823509216 = 35,243974656   boot/grub/i386-pc/core.img                     1
   4,892574310 = 5,253361664    boot/vmlinuz                                   2
   4,892574310 = 5,253361664    boot/vmlinuz-5.4.0-42-generic                  2
   5,202762604 = 5,586423808    boot/initrd.img                                4
   5,202762604 = 5,586423808    boot/initrd.img-5.4.0-42-generic               4
   5,202762604 = 5,586423808    boot/initrd.img.old                            4

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

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


================================= User choice ==================================

Is sdb (ATA KINGSTON SV300S3) a removable disk? no

Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub2 of
sdb6 into the MBRs of all disks (except live-disks and removable disks without OS).
Grub-efi would not be selected by default because: legacy-win no-win-efi 
Additional repair would be performed: unhide-bootmenu-10s win-legacy-basic-fix     

Blockers in case of suggested repair: __________________________________________

LegacyWindows detected. Please enable BIOS-compatibility/CSM/Legacy mode in your UEFI firmware, and use this software from a live-CD (or live-USB). 

Final advice in case of suggested repair: ______________________________________


Please do not forget to make your BIOS boot on sdb (ATA KINGSTON SV300S3) disk!
The boot of your PC is in UEFI mode. You may want to retry after changing it to BIOS-compatibility/CSM/Legacy mode.

Est ce que dans ce cas il faurdait pas reinstaller Windows en uefi? et si oui il faut repartitionner en GPT non?

Dernière modification par zumbatana (Le 10/01/2021, à 17:22)

Hors ligne

#10 Le 10/01/2021, à 18:04

geole

Re : grub et win

Je vois que tu continues de booter en EFI

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

Que windows sur sda1 est proposé

====================== sdb6/boot/grub/grub.cfg (filtered) ======================
Ubuntu   fd39c981-393f-41c5-b4a4-4e3e62694054
Ubuntu, with Linux 5.4.0-42-generic   fd39c981-393f-41c5-b4a4-4e3e62694054
Windows 7 (on sda1)   8C8C75BD8C75A27E
### END /etc/grub.d/30_os-prober ###

Mais que cette partition n'a pas de fichier de boot EFI (d'où le message)

sda1: __________________________________________________________________________
    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:        /bootmgr /Boot/BCD

Que tu n'as toujours pas réparé le MBR de boot de windows  (fixmbr)

============================== 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 /boot/grub. It also embeds following components:
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk search_fs_uuid
    ---------------------------------------------------------------------------
    config script
    ---------------------------------------------------------------------------
    search.fs_uuid fd39c981-393f-41c5-b4a4-4e3e62694054 root hd1,msdos6 
    set prefix=($root)'/boot/grub'
        ---------------------------------------------------------------------------

Si tu as utilisé boot-repair en bootant en mode EFI, je ne suis pas certain qu'il te propose l'option de fabriquer un MBR standard. https://doc.ubuntu-fr.org/boot-repair#o … efi_legacy

Si tu ne trouves plus le moyen de booter en légacy, je te propose de supprimer la partition de boot EFI SDB1 avec gparted

sdb1: __________________________________________________________________________
    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/BOOT/fbx64.efi /efi/BOOT/mmx64.efi 
                       /efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi 
                       /efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg

Puis de rebooter ubuntu de mettre à jour son grub

sudo update-grub

et de rebooter et de choisir windows. Cela devrait fonctionner. Du moins je l'espère



Si tu veux installer windows en  EFI, comme les windows7 ont rarement la structure de boot EFI il te faudra
Télécharger windows10 faire une clé de boot , mettre le disque SDA en GPT et y installer windows10
Tu auras un problème de licence car je crains que la licence windows ne puisse pas activer windows10 mais cela n'est pas sur du tout.

Dernière modification par geole (Le 10/01/2021, à 18:07)


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

#11 Le 10/01/2021, à 18:20

Qid

Re : grub et win

geole a écrit :

Si tu ne trouves plus le moyen de booter en légacy, je te propose de supprimer la partition de boot EFI SDB1 avec gparted

Puis de rebooter ubuntu de mettre à jour son grub

sudo update-grub

et de rebooter et de choisir windows. Cela devrait fonctionner. Du moins je l'espère

je ne prendrais pas ce pari perso : ça ne marchera que si le linux n'est pas en efi sinon il va forcément chercher la partition qui va bien... enfin moi je dis ça... ce n'est qu'un ressenti non vérifié wink


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

Hors ligne

#12 Le 10/01/2021, à 18:33

zumbatana

Re : grub et win

Pourtant j'ai bien Launch CSM disable dans le bios. Donc à part ça je sais pas qoui touche d'autre ppour virer l'uefi (quick boot peut etre?)

Pour le MBR c'est dans boot repair?

Hors ligne

#13 Le 10/01/2021, à 18:50

ikewdu

Re : grub et win

Salut,

Boot-repair te permet en effet de rétablir le mbr d'un disque pour le rendre compatible avec Windows. Mais il faut passer par les options avancées, cocher "restaurer le mbr" et décocher tout le reste. Mais j'avoue ne pas savoir si on a moyen de cibler le disque en question avec ce logiciel. Si oui, il faudra bien entendu réparer déjà le mbr sur le disque sda. Mais il faudra tout de même forcer le bios à booter en Legacy en priorité, car ça ne semble pas être le cas. Donc, la réparation du mbr risque d'être un coup d'épée dans l'eau.

Edit. Pour moi, ton rapport boot-info est étonnant. Ton Linux boote en UEFi sur un disque ms-dos, avec un "grub-pc" qui bizarrement fonctionne tout de même, et qui détecte bel et bien un Windows Legacy, qui lui, ne fonctionne pas. Je n'ai jamais vu ça... Comme Geole, je pense qu'une solution "radicale" consisterait à virer purement et simplement la partition efi de sdb, mais ton PC pourrait bien ne plus démarrer du tout... Mais si tu as le liveUSB ou un support d'installation de Windows, ça se gère.

Dernière modification par ikewdu (Le 10/01/2021, à 19:04)

Hors ligne

#14 Le 10/01/2021, à 19:00

Qid

Re : grub et win

zumbatana a écrit :

Pourtant j'ai bien Launch CSM disable dans le bios. Donc à part ça je sais pas qoui touche d'autre ppour virer l'uefi

L'uefi n'est pas forcément désactivable...


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

Hors ligne

#15 Le 10/01/2021, à 19:10

Qid

Re : grub et win

ikewdu a écrit :

Perso, je tenterais déjà de réparer Windows, puis Linux ensuite. Une solution "radicale" consisterait à virer purement et simplement la partition efi de sdb, mais ton PC pourrait bien ne plus démarrer du tout...Attends d'autres avis.

Mon avis est que je suis d'accord sur l'ordre des réparations par contre je maintiens que faire sauter les partitions efi ne me semble pas être le bon angle d'attaque...

Côté windows si lui ne démarre plus seul je pense qu'il faudrait le remettre d'aplomb avec ses outils à lui pour que le Linux n'interfère pas... Un bon outil pour forcer les systèmes à démarrer pour les réparer de l'intérieur c'est supergrubdisk... Après il faut rechercher les commandes windows qui vont bien...

Ensuite côté Linux c'est pareil : supergrubdisk pour le démarrer suivi d'un grub-install


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

Hors ligne

#16 Le 10/01/2021, à 19:22

ikewdu

Re : grub et win

Qid a écrit :

par contre je maintiens que faire sauter les partitions efi ne me semble pas être le bon angle d'attaque...

Tu sais, une partition efi n'a strictement rien à faire sur un disque ms-dos. Et un dual-boot avec Ws Legacy ne fonctionnera jamais dans ces conditions. D'où mon accord avec l'idée de Geole.

Hors ligne

#17 Le 10/01/2021, à 19:27

geole

Re : grub et win

zumbatana a écrit :

Pourtant j'ai bien Launch CSM disable dans le bios.
Pour le MBR c'est dans boot repair?

Alors cela interdit de booter en LEGACY!!!
Pour le MBR, boot-repair sait faire aussi a condition de booter en LEGACY Lorsque tu bootes en EFI, il ne s'intesse pas au  MBR (c'est un peu dommages)


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

#18 Le 10/01/2021, à 19:38

geole

Re : grub et win

Qid a écrit :
zumbatana a écrit :

Pourtant j'ai bien Launch CSM disable dans le bios. Donc à part ça je sais pas qoui touche d'autre ppour virer l'uefi

L'uefi n'est pas forcément désactivable...

J'ai pourtant l'impression que le windows7 n'a pas été installé en EFI
Donc ce n'est probablement pas un ordinateur incapable  de booter en legacy.


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

#19 Le 10/01/2021, à 19:47

geole

Re : grub et win

ikewdu a écrit :
Qid a écrit :

par contre je maintiens que faire sauter les partitions efi ne me semble pas être le bon angle d'attaque...

Tu sais, une partition efi n'a strictement rien à faire sur un disque ms-dos. Et un dual-boot avec Ws Legacy ne fonctionnera jamais dans ces conditions. D'où mon accord avec l'idée de Geole.

Je n'ai pas dit que c'était un bon angle d'attaque  mais une possibilité  car certainement plus simple que de migrer windows7 en EFI car il  me semble facile de recréer la partition  en cas d'échec   ( après avoir au besoin mis l'option noefi   si ubuntu râle un peu ) et de faire un boot-repair qui la regarnira


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 10/01/2021, à 20:00

geole

Re : grub et win

ikewdu a écrit :

Salut,

Boot-repair te permet en effet de rétablir le mbr d'un disque pour le rendre compatible avec Windows. Mais il faut passer par les options avancées, cocher "restaurer le mbr" et décocher tout le reste. Mais j'avoue ne pas savoir si on a moyen de cibler le disque en question avec ce logiciel.......

J'ai booté en légacy, Cela ouvre une case de choix contenant 3 options par disque
     généric mbr
     generic altmbr
     generic gpt mbr

Je ne connais pas celui du milieu

Lorsque ce choix est fait, une seconde ligne va permettre de choisir la partition  à faire booter dans le mbr   et elles sont toutes citées

https://doc.ubuntu-fr.org/lib/exe/fetch … 027716.png

Dernière modification par geole (Le 10/01/2021, à 20:14)


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

#21 Le 10/01/2021, à 20:05

ikewdu

Re : grub et win

Moi non plus...

Hors ligne

#22 Le 10/01/2021, à 20:07

Qid

Re : grub et win

@ ikewdu > la partition efi a bien été générée par une des installations...

@ geole > je me disais aussi qu'il y avait un truc bizarre avec ce csm...


En même temps je pense que je vais me retirer de la partie car je viens de réaliser qu'on se bat pour un windows 7


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

Hors ligne

#23 Le 10/01/2021, à 20:37

geole

Re : grub et win

Pour Qid
on est bien  d'accord
Dans ce contexte le boot initial dit pour le mbr

============================== 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 /boot/grub. It also embeds following components:
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk search_fs_uuid
    ---------------------------------------------------------------------------
    config script
    ---------------------------------------------------------------------------
    search.fs_uuid 6f5e1b4c-073a-4625-9658-842c2036aee8 root hd1,msdos5 
    set prefix=($root)'/boot/grub'
    ---------------------------------------------------------------------------
 => 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 (,msdos5)/boot/grub. It also embeds following components:
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk
    ---------------------------------------------------------------------------

Je ne sais pas trop comment c'est arrivé....une installation mais probablement une réparation

he default repair of the Boot-Repair utility would purge (in order to remove grub-efi) and reinstall the grub2 of
sdb5 into the MBRs of all disks (except live-disks and removable disks without OS).
Grub-efi would not be selected by default because: legacy-win no-win-efi 

Donc réparation normale si on boote en LEGACY.


En revanche l'installation en EFI ou une réparation EFI?) aurait fait quelques partitions FAT32  dans l'autre disque

sdb1: __________________________________________________________________________
    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        
sdb2: __________________________________________________________________________
    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        
sdb3: __________________________________________________________________________
    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/BOOT/fbx64.efi /efi/BOOT/mmx64.efi 
                       /efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi 
                       /efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg

Le grub a bien été initialement  installé en EFI. Mais ce n'est plus le cas

========================== sdb6/etc/fstab (filtered) ===========================
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdb6 during installation
UUID=fd39c981-393f-41c5-b4a4-4e3e62694054 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sdb1 during installation
/swapfile                                 none            swap    sw              0       0
======================= sdb6/etc/default/grub (filtered) =======================

Le grub actuellement présent   n'est pas EFI

sdb6	: is-os,	64, apt-get,	grub-pc ,	grub2,	grub-install,	grubenv-ok,	update-grub,
sdb6	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,

On a donc bien un ubuntu  mode LEGACY qui détecte donc bien windows, et peut proposer de le lancer, Mais pour la raison que le bios interdit actuellement le LEGACY,  Il est  lancé en EFI et bootmgrfw n'est pas présent

Dernière modification par geole (Le 10/01/2021, à 20:40)


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 10/01/2021, à 21:15

Qid

Re : grub et win

heu !? dans ce cas effectivement il faut bien réactiver le csm et si l'uefi farfouille encore dans efi dégager la partition qui parasite... mais entre nous si c'est la partition efi qui est utilisée pour le démarrage mais qu'il y a personne d'installé en uefi derrière je ne vois pas comment le démarrage peut aller au bout...


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

Hors ligne

#25 Le 10/01/2021, à 21:51

zumbatana

Re : grub et win

merci les experts smile

vous m'avez un peu perdu dans toutes vos explications. Je verrai ça le we prochain comme  je suis pas pressé tant que linux fonctionne.

Merci bien à vous et je vous dit pas à bientôt smile

Hors ligne