CRIMA a écritBonjour
Depuis un moment j'essaie d'installer Ubuntu Hirsute 21.04 sur deux machines différentes en Legacy mais je bute toujours sur le même problème (impossible d'installer Grub sur sd(x) cette erreur est fatale) donc impossible redémarrer.
....
Je me pose la question : Ubuntu deviendrait-il incompatible avec une installation Legacy, autrement pour des machines "anciennes" ?
Salutations
Bonjour
Il n'y a aucune difficulté à installer ubuntu avec une machine légacy. Il faut simplement se souvenir qu'il faut un
disque ayant une table de partition GPT.
Donc la technique est la suivante
Soit choisir l'option EFFACER le DISQUE et installer ubuntu
Soit convertir préventivement la table de partition MSDOS en GPT
=>
https://forum.ubuntu-fr.org/viewtopic.php?pid=22401642#p22401642
Attention, si ce disque contient un windows, celui-ci risque très certainement de ne plus booter!!!
et choisir l'option
autre chose.
Ne pas oublier qu'il va falloir une partition de boot en FAT32
et une partition de boot "bios-boot"
https://doc.ubuntu-fr.org/gpt#creer_une_partition_bios-boot
Au final , le résultat sera comme cela
sudo parted /dev/sdd unit MiB print
Modèle: Maxtor 6 L200M0 (scsi)
Disque /dev/sdd : 194480MiB
Taille des secteurs (logiques/physiques): 512B/512B
Table de partitions : gpt
Drapeaux de disque :
Numéro Début Fin Taille Système de fichiers Nom Fanions
1 32,0MiB 64,0MiB 32,0MiB bios_grub
2 64,0MiB 576MiB 512MiB fat32 EFI System Partition démarrage, esp
3 576MiB 194461MiB 193885MiB ext4
Mais pour le démarrage, cela va se compliquer, Le bios legacy peut de ne pas avoir prévu de booter sur un disque ayant une table de partition GPT.
Dans ce dernier contexte, il faut un vieux ubuntu sur un autre disque et faire un dual boot.
j'en dirais un peu plus dans quelque temps.
EXTRAITS d'un boot-info réalisé àpartion de la version 20.04.1
---------------------------------------------------------------------------
=> Grub2 (v2.00) is installed in the MBR of /dev/sdd and looks at sector
65535 of the same hard drive for core.img. core.img is at this location
and looks for (,gpt3)/boot/grub. It also embeds following components:
modules
---------------------------------------------------------------------------
fshelp ext2 part_gpt biosdisk
---------------------------------------------------------------------------
sdd1: __________________________________________________________________________
File system: BIOS Boot partition
Boot sector type: Grub2's core.img
Boot sector info:
sdd2: __________________________________________________________________________
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
sdd3: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu Hirsute Hippo (development branch)
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
/boot/grub/i386-pc/core.img
===================================== UEFI =====================================
This installed-session is not in EFI-mode.
2895d47544fd587b26c7e29be1295c27 sdd2/BOOT/fbx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84 sdd2/BOOT/mmx64.efi
b2397619ff27be0a74f5c5609e61e775 sdd2/ubuntu/grubx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84 sdd2/ubuntu/mmx64.efi
78415fb8fb9b909f8029858113f1335f sdd2/ubuntu/shimx64.efi
78415fb8fb9b909f8029858113f1335f sdd2/BOOT/BOOTX64.efi
Disks info: ____________________________________________________________________
sdd : is-GPT, hasBIOSboot, has---ESP, not-usb, not-mmc, has-os, 2048 sectors * 512 bytes
sdd2 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sdd3 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, farbios
sdd2 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sdd3 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sdd2 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sdd
sdd3 : not-sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sdd
Disk sdd: 189.94 GiB, 203927027200 bytes, 398294975 sectors
Disk identifier: 2C292D99-36D5-481D-AEB4-DFF9B014CD0A
Start End Sectors Size Type
sdd1 65535 131069 65535 32M BIOS boot
sdd2 131070 1179629 1048560 512M EFI System
sdd3 1179630 398256194 397076565 189.3G Linux filesystem
sdd:204GB:scsi:512:512:gpt:Maxtor 6 L200M0:;
1:33.6MB:67.1MB:33.6MB:::bios_grub;
2:67.1MB:604MB:537MB:fat32:EFI System Partition:boot, esp;
3:604MB:204GB:203GB:ext4::;
sdd
├─sdd1 2451208f-a464-44cb-81be-bb99b432a3e8
├─sdd2 vfat A0D4-F1A5 86f40222-2f36-4f21-9571-a8dad551a315 EFI System Partition
└─sdd3 ext4 eef074f1-04c9-4071-a9af-2172ebdd8cfc d825fc5a-5197-4495-9128-3ce937c0c482
df (filtered): _________________________________________________________________
Avail Use% Mounted on
sdd2 503.2M 2% /mnt/boot-sav/sdd2
sdd3 168.4G 4% /media/a/eef074f1-04c9-4071-a9af-2172ebdd8cfc
===================== sdd2/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid eef074f1-04c9-4071-a9af-2172ebdd8cfc root hd4,gpt3
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
====================== sdd3/boot/grub/grub.cfg (filtered) ======================
Ubuntu eef074f1-04c9-4071-a9af-2172ebdd8cfc
Ubuntu, avec Linux 5.8.0-36-generic eef074f1-04c9-4071-a9af-2172ebdd8cfc
========================== sdd3/etc/fstab (filtered) ===========================
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sde3 during installation
UUID=eef074f1-04c9-4071-a9af-2172ebdd8cfc / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sde2 during installation
UUID=A0D4-F1A5 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
======================= sdd3/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=""
==================== sdd3: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
36,717238426 = 39,424834560 boot/grub/grub.cfg 3
6,969965935 = 7,483943936 boot/grub/i386-pc/core.img 1
5,504950523 = 5,910895616 boot/vmlinuz 1
5,504950523 = 5,910895616 boot/vmlinuz-5.8.0-36-generic 1
183,699709892 = 197,246061568 boot/initrd.img 5
183,699709892 = 197,246061568 boot/initrd.img-5.8.0-36-generic 5
183,699709892 = 197,246061568 boot/initrd.img.old 5
===================== sdd3: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 18151 déc. 12 01:50 10_linux
-rwxr-xr-x 1 root root 42359 déc. 12 01:50 10_linux_zfs
-rwxr-xr-x 1 root root 12894 déc. 12 01:50 20_linux_xen
-rwxr-xr-x 1 root root 12059 déc. 12 01:50 30_os-prober
-rwxr-xr-x 1 root root 1424 déc. 12 01:50 30_uefi-firmware
-rwxr-xr-x 1 root root 214 déc. 12 01:50 40_custom
-rwxr-xr-x 1 root root 216 déc. 12 01:50 41_custom
The default repair of the Boot-Repair utility would purge (in order to enable-raid) and reinstall the grub2 of
sda4 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