Pages : 1
#1 Le 13/11/2023, à 00:44
- wardidi
GRUB hard disk error
Bonjour,
Lorsque je passe en mode legacy, j'obtiens GRUB hard disk error.
J'ai du faire des co..ies en installant une debian ssh sur un HDD usb.
Comme vous le verrez sur mon boot-info je suis en dual-boot windows
boot-info-4ppa2056 [20231112_2349]
============================== Boot Info Summary ===============================
=> Grub Legacy is installed in the MBR of /dev/sda and looks at sector
881330176 on boot drive #2 for the stage2 file, but no stage2 files can be
found at this location..
sda1: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda2: __________________________________________________________________________
File system: vfat
Boot sector type: Windows 8/10/11/2012: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/Boot/bootx64.efi /efi/Boot/fbx64.efi
/efi/Boot/mmx64.efi /efi/ubuntu/grubx64.efi
/efi/ubuntu/mmx64.efi /efi/ubuntu/shimx64.efi
/efi/ubuntu/grub.cfg /efi/Microsoft/Boot/bootmgfw.efi
/efi/Microsoft/Boot/bootmgr.efi
sda3: __________________________________________________________________________
File system: vfat
Boot sector type: Windows 8/10/11/2012: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/Boot/bootx64.efi /efi/Microsoft/Boot/bootmgr.efi
/efi/Microsoft/Boot/LrsBootmgr.efi /bootmgr /boot/bcd
sda4: __________________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
sda5: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 8 or 10
Boot files: /bootmgr /Boot/BCD /Windows/System32/winload.exe
sda6: __________________________________________________________________________
File system:
Boot sector type: Grub2's core.img
Boot sector info:
sda7: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 22.04.3 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
/boot/grub/i386-pc/core.img
sda10: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda11: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
================================ 2 OS detected =================================
OS#1: Ubuntu 22.04.3 LTS on sda7
OS#2: Windows 8 or 10 on sda5
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: HD Graphics 5500 Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445 / 530/535 / 620/625 Mobile] from Intel Corporation Advanced Micro Devices, Inc. [AMD/ATI]
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-6.2.0-36-generic root=UUID=51b30457-84e2-4e46-a249-428ae3bda573 ro quiet splash vt.handoff=7
df -Th / : /dev/sda7 ext4 718G 650G 32G 96% /
===================================== UEFI =====================================
BIOS/UEFI firmware: C2CN21WW(V2.02)(2.21) from LENOVO
The firmware is EFI-compatible, and is set in EFI-mode for this installed-session.
SecureBoot enabled according to mokutil - Veuillez indiquer ce message à boot.repair@gmail.com.
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0003,0005,2003,0004,2001,2002
Boot0000* EFI Network 0 for IPv4 (F0-76-1C-D4-AC-F2) PciRoot(0x0)/Pci(0x1c,0x2)/Pci(0x0,0x0)/MAC(f0761cd4acf2,0)/IPv4(0.0.0.00.0.0.0,0,0)RC
Boot0001* EFI Network 0 for IPv6 (F0-76-1C-D4-AC-F2) PciRoot(0x0)/Pci(0x1c,0x2)/Pci(0x0,0x0)/MAC(f0761cd4acf2,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0003* ubuntu HD(2,GPT,0e68f65e-2692-4506-b735-f5feebd5400e,0x1f4800,0x82000)/File(\EFI\ubuntu\shimx64.efi)
Boot0004* Lenovo Recovery System HD(3,GPT,97fe1157-c3a7-489c-b4d1-af8d6d87757b,0x276800,0x1f4000)/File(\EFI\Microsoft\Boot\LrsBootMgr.efi)RC
Boot0005* Windows Boot Manager HD(2,GPT,0e68f65e-2692-4506-b735-f5feebd5400e,0x1f4800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot2001* EFI USB Device RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network RC
ff6d345785671fbcea9561a3cbc47702 sda3/Boot/bootx64.efi
bb971a4a02185961543c7903473a6680 sda3/Microsoft/Boot/bootmgr.efi
bad97e7203aec2bd026403a7f70688b9 sda3/Microsoft/Boot/LrsBootmgr.efi
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sda : is-GPT, no-BIOSboot, hashidESP, not-usb, not-mmc, has-os, has-win, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
sda7 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, farbios
sda2 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda10 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda5 : is-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda3 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda1 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda11 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda6 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
Partitions info (2/3): _________________________________________________________
sda7 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda2 : hidenESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
sda10 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
sda5 : 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, recovery-or-hidden, bootmgr, is-winboot
sda1 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
sda11 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda6 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
sda7 : not--sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sda
sda2 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda10 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda5 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda3 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda1 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda11 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda6 : maybesepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
fdisk -l (filtered): ___________________________________________________________
Disk sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: A7EFE3BF-9D17-48FD-BF47-CFC0CC93B7E6
Start End Sectors Size Type
sda1 2048 2050047 2048000 1000M Windows recovery environment
sda2 2050048 2582527 532480 260M EFI System
sda3 2582528 4630527 2048000 1000M Lenovo boot partition
sda4 4630528 4892671 262144 128M Microsoft reserved
sda5 4892672 394588159 389695488 185.8G Microsoft basic data
sda6 394588160 394590207 2048 1M Linux filesystem
sda7 394590208 1925199582 1530609375 729.9G Linux filesystem
sda10 1926993920 1953523711 26529792 12.7G Windows recovery environment
sda11 1925201920 1926993919 1792000 875M Microsoft basic data
Partition table entries are not in disk order.
Disk zram0: 256 MiB, 268435456 bytes, 65536 sectors
parted -lm (filtered): _________________________________________________________
sda:1000GB:scsi:512:4096:gpt:ATA CT1000MX500SSD1:;
1:1049kB:1050MB:1049MB:ntfs:Basic data partition:hidden, diag;
2:1050MB:1322MB:273MB:fat32:EFI system partition:boot, hidden, esp;
3:1322MB:2371MB:1049MB:fat32:Basic data partition:hidden;
4:2371MB:2505MB:134MB::Microsoft reserved partition:msftres;
5:2505MB:202GB:200GB:ntfs:Basic data partition:msftdata;
6:202GB:202GB:1049kB:::;
7:202GB:986GB:784GB:ext4::;
11:986GB:987GB:918MB:ntfs::msftdata;
10:987GB:1000GB:13.6GB:ntfs:Basic data partition:hidden, diag;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 ntfs 00EEC74EEEC73B24 58a0b83d-2c28-4ea6-8d39-974294c558b4 WINRE_DRV Basic data partition
├─sda2 vfat A8C7-C568 0e68f65e-2692-4506-b735-f5feebd5400e SYSTEM_DRV EFI system partition
├─sda3 vfat EE76-F36C 97fe1157-c3a7-489c-b4d1-af8d6d87757b LRS_ESP Basic data partition
├─sda4 86b66b87-7806-4517-8ba7-ff8407e7298a Microsoft reserved partition
├─sda5 ntfs 9ABACB62BACB3A11 b2d6f4a7-9b28-41f7-a8e8-358185b2782e Windows8_OS Basic data partition
├─sda6 db56a066-02f2-4ff1-a2e3-6bfced3dfdb5
├─sda7 ext4 51b30457-84e2-4e46-a249-428ae3bda573 9eab16b0-73ae-4d56-8c7a-295e95f8a401
├─sda10 ntfs 78187BE1187B9CB6 2aec0cda-bd50-41db-af15-90a65e1ffd8e PBR_DRV Basic data partition
└─sda11 ntfs 01D8A32566DE6D00 c76274f8-591c-450e-b6d5-fd059af59b3e
Mount points (filtered): _______________________________________________________
Avail Use% Mounted on
/dev/sda10 2.2G 82% /mnt/boot-sav/sda10
/dev/sda11 353.5M 60% /mnt/boot-sav/sda11
/dev/sda1 713.9M 29% /mnt/boot-sav/sda1
/dev/sda3 368.1M 63% /mnt/boot-sav/sda3
/dev/sda5 102.1G 45% /mnt/boot-sav/sda5
/dev/sda7 31.7G 91% /
Mount options (filtered): ______________________________________________________
===================== sda2/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid 51b30457-84e2-4e46-a249-428ae3bda573 root hd0,gpt7
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
====================== sda7/boot/grub/grub.cfg (filtered) ======================
Ubuntu 51b30457-84e2-4e46-a249-428ae3bda573
Ubuntu, with Linux 6.2.0-36-generic 51b30457-84e2-4e46-a249-428ae3bda573
Ubuntu, with Linux 6.2.0-35-generic 51b30457-84e2-4e46-a249-428ae3bda573
Ubuntu, with Linux 5.19.0-46-generic 51b30457-84e2-4e46-a249-428ae3bda573
Ubuntu, with Linux 5.19.0-45-generic 51b30457-84e2-4e46-a249-428ae3bda573
Ubuntu, with Linux 5.19.0-21-generic 51b30457-84e2-4e46-a249-428ae3bda573
Windows Boot Manager (on sda2) osprober-efi-A8C7-C568
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###
========================== sda7/etc/fstab (filtered) ===========================
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda7 during installation
UUID=51b30457-84e2-4e46-a249-428ae3bda573 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda2 during installation
UUID=A8C7-C568 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
======================= sda7/etc/default/grub (filtered) =======================
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
==================== sda7: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
766,104553223 = 822,598500352 boot/grub/grub.cfg 1
295,428375244 = 317,213802496 boot/grub/i386-pc/core.img 1
807,886871338 = 867,461922816 boot/vmlinuz 1
227,108394623 = 243,855781888 boot/vmlinuz-5.19.0-21-generic 2
210,611965179 = 226,142875648 boot/vmlinuz-5.19.0-45-generic 2
280,795894623 = 301,502296064 boot/vmlinuz-5.19.0-46-generic 2
790,082180023 = 848,344281088 boot/vmlinuz-6.2.0-35-generic 1
807,886871338 = 867,461922816 boot/vmlinuz-6.2.0-36-generic 1
790,082180023 = 848,344281088 boot/vmlinuz.old 1
807,280269623 = 866,810589184 boot/initrd.img 2
778,740650177 = 836,166406144 boot/initrd.img-5.19.0-21-generic 1
778,709400177 = 836,132851712 boot/initrd.img-5.19.0-45-generic 1
778,685962677 = 836,107685888 boot/initrd.img-5.19.0-46-generic 1
787,655269623 = 845,738405888 boot/initrd.img-6.2.0-35-generic 2
807,280269623 = 866,810589184 boot/initrd.img-6.2.0-36-generic 2
787,655269623 = 845,738405888 boot/initrd.img.old 2
===================== sda7: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 18683 Dec 2 2022 10_linux
-rwxr-xr-x 1 root root 43031 Dec 2 2022 10_linux_zfs
-rwxr-xr-x 1 root root 14387 Dec 18 2022 20_linux_xen
-rwxr-xr-x 1 root root 13369 Dec 2 2022 30_os-prober
-rwxr-xr-x 1 root root 1372 Dec 2 2022 30_uefi-firmware
-rwxr-xr-x 1 root root 700 Sep 20 2022 35_fwupd
-rwxr-xr-x 1 root root 214 Dec 2 2022 40_custom
-rwxr-xr-x 1 root root 215 Dec 2 2022 41_custom
Suggested repair: ______________________________________________________________
The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed of
sda7,
using the following options: sda2/boot/efi
Additional repair would be performed: unhide-bootmenu-10s use-standard-efi-file
Final advice in case of suggested repair: ______________________________________
Please do not forget to make your UEFI firmware boot on the Ubuntu 22.04.3 LTS entry (sda2/efi/****/shim****.efi (**** will be updated in the final message) file) !
If your computer reboots directly into Windows, try to change the boot order in your UEFI firmware.
If your UEFI firmware does not allow to change the boot order, change the default boot entry of the Windows bootloader.
For example you can boot into Windows, then type the following command in an admin command prompt:
bcdedit /set {bootmgr} path \EFI\****\shim****.efi (**** will be updated in the final message)
Fdisk me trouve une floppé de /dev/loop et autre bizarrerie.
fdisk -l
Disque /dev/loop0 : 4 KiB, 4096 octets, 8 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/loop1 : 105,76 MiB, 110895104 octets, 216592 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/loop2 : 105,82 MiB, 110960640 octets, 216720 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/loop3 : 63,45 MiB, 66531328 octets, 129944 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/loop4 : 63,46 MiB, 66547712 octets, 129976 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/loop5 : 73,88 MiB, 77463552 octets, 151296 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/loop6 : 73,9 MiB, 77492224 octets, 151352 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/loop7 : 236,91 MiB, 248418304 octets, 485192 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/sda : 931,51 GiB, 1000204886016 octets, 1953525168 secteurs
Disk model: CT1000MX500SSD1
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 4096 octets
taille d'E/S (minimale / optimale) : 4096 octets / 4096 octets
Type d'étiquette de disque : gpt
Identifiant de disque : A7EFE3BF-9D17-48FD-BF47-CFC0CC93B7E6
Périphérique Début Fin Secteurs Taille Type
/dev/sda1 2048 2050047 2048000 1000M Environnement de récupérati
/dev/sda2 2050048 2582527 532480 260M Système EFI
/dev/sda3 2582528 4630527 2048000 1000M Partition d'amorçage Lenovo
/dev/sda4 4630528 4892671 262144 128M Réservé Microsoft
/dev/sda5 4892672 394588159 389695488 185,8G Données de base Microsoft
/dev/sda6 394588160 394590207 2048 1M Système de fichiers Linux
/dev/sda7 394590208 1925199582 1530609375 729,9G Système de fichiers Linux
/dev/sda10 1926993920 1953523711 26529792 12,7G Environnement de récupérati
/dev/sda11 1925201920 1926993919 1792000 875M Données de base Microsoft
Les entrées de la table de partitions ne sont pas dans l'ordre du disque.
Disque /dev/loop8 : 238,77 MiB, 250372096 octets, 489008 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/loop9 : 346,33 MiB, 363151360 octets, 709280 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/loop10 : 349,7 MiB, 366682112 octets, 716176 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/loop11 : 496,88 MiB, 521015296 octets, 1017608 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/loop12 : 496,98 MiB, 521121792 octets, 1017816 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/loop13 : 91,69 MiB, 96141312 octets, 187776 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/loop14 : 23,64 MiB, 24793088 octets, 48424 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/loop15 : 80,84 MiB, 84762624 octets, 165552 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/loop16 : 80,73 MiB, 84652032 octets, 165336 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/loop17 : 45,93 MiB, 48160768 octets, 94064 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/loop18 : 12,32 MiB, 12922880 octets, 25240 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/loop19 : 40,84 MiB, 42827776 octets, 83648 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/loop20 : 40,86 MiB, 42840064 octets, 83672 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/loop21 : 304 KiB, 311296 octets, 608 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/loop22 : 452 KiB, 462848 octets, 904 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Disque /dev/zram0 : 256 MiB, 268435456 octets, 65536 secteurs
Unités : secteur de 1 × 4096 = 4096 octets
Taille de secteur (logique / physique) : 4096 octets / 4096 octets
taille d'E/S (minimale / optimale) : 4096 octets / 4096 octets
os-prober
update-grub
N'a rien changé.
Mon boot/grub/grub.cfg
GNU nano 6.2 /boot/grub/grub.cfg *
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_linux_zfs ###
### END /etc/grub.d/10_linux_zfs ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-A8C7-C568' {
insmod part_gpt
insmod fat
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 A8C7-C568
else
search --no-floppy --fs-uuid --set=root A8C7-C568
fi
chainloader /efi/Microsoft/Boot/bootmgfw.efi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/35_fwupd ###
### END /etc/grub.d/35_fwupd ###
### BEGIN /etc/grub.d/40_custom ###
# 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.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
^G Aide ^O Écrire ^W Chercher ^K Couper ^T Exécuter ^C Emplacement M-U Annuler M-A Marquer M-] -> Crochet M-Q Précédent ^B En arrière
^X Quitter ^R Lire fich. ^\ Remplacer ^U Coller ^J Justifier ^/ Aller ligne M-E Refaire M-6 Copier ^Q Retrouver M-W Suivant ^F En avant
Mon etc/fstab
GNU nano 6.2 /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda7 during installation
UUID=51b30457-84e2-4e46-a249-428ae3bda573 / ext4 errors=remoun>
# /boot/efi was on /dev/sda2 during installation
UUID=A8C7-C568 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw >
et mon etc/default/grub
[code]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=""
[/code]
L'apprentissage des ligne de commandes semble m'avoir fait des bétises....
Merci à vous de m'aider à les réparer.
Dernière modification par wardidi (Le 13/11/2023, à 01:00)
UBUNTU 22.04 CINNAMON
Hors ligne
#2 Le 13/11/2023, à 15:00
- geole
Re : GRUB hard disk error
Bonjour
============================== Boot Info Summary ===============================
=> Grub Legacy is installed in the MBR of /dev/sda and looks at sector
881330176 on boot drive #2 for the stage2 file, but no stage2 files can be
found at this location..
Il faut une partition de boot LEGACY
Probablement celle-ci
sda6 394588160 394590207 2048 1M Linux filesystem
Mais elle a probablement perdu son drapeau bios-grub ca le MBR ne pointe pas sur cette adresse
Pour la garnir, booter une live-USB en ayant mis le bios en mode légacy et faire un boot-repair
Mais cela me semble ABSURDE de parler boot LEGACY: Tu as envie de supprimer windows qui ne fonctionne qu'en EFI???
Dernière modification par geole (Le 13/11/2023, à 15:04)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#3 Le 13/11/2023, à 18:20
- wardidi
Re : GRUB hard disk error
Mais cela me semble ABSURDE de parler boot LEGACY: Tu as envie de supprimer windows qui ne fonctionne qu'en EFI???
Merci geole pour ta réponse.
Débutant sur ubuntu et linux en général, je fais des 'tests et essais" sur des installations en USB sur mon PC (uefi) et un vieux pc (legacy). Je teste une debian i386 en usb
Je croyais que d'installer grub en legacy m'aurait permis de de ne pas jongler entre chaque mode . Pourquoi trouves tu que ce n'est pas une bonne idée?
Dernière modification par wardidi (Le 13/11/2023, à 18:25)
UBUNTU 22.04 CINNAMON
Hors ligne
#4 Le 13/11/2023, à 18:46
- geole
Re : GRUB hard disk error
Tu peux effectivement installer en legacy sur un support usb mais fait bien le nécessaire pour que la structure de boot s'installe bien sur la clé USB, elle a vraiment tendance à vouloir s'installer sur le disque dur. Ubuntu ne connait plus le 32 bits.
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
Pages : 1