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 15/02/2025, à 16:27

myfriendgoo

Partition boot effacée par erreur [résolu]

Bonjour,

J'avais créé une partition pour installer un live CD sur un disque dur externe, par précaution avant la mise à niveau.
Après la mise à niveau, j'ai voulu la supprimer pour récupérer de la place. J'ai fait ça un soir, j'étais fatigué et j'ai supprimé par erreur la partition de démarrage de mon disque dur interne...

J'ai donc démarré sur le live CD du disque dur externe, et j'ai regardé ce que me disait le programme d'installation.
L'option "partitionnement manuel" m'indique :
- Sur sda, un espace libre de 56.91 Go et une partition sda2 ext4 avec Ubuntu 24.04.1 LTS installé dessus.
- Sur sdb (mon disque externe), une partition sdb1 NTFS avec des données et la partition du live CD (sdb2, VFAT)

Comment puis-je faire pour réparer mes bêtises ?
(et promis, je ne demande plus rien à Mistral sur Ubuntu. Je vais me contenter de lui demander des coups de main en R et en SQL)

Dernière modification par myfriendgoo (Le 15/02/2025, à 19:36)

Hors ligne

#2 Le 15/02/2025, à 16:39

iznobe

Re : Partition boot effacée par erreur [résolu]

Bonjour , le mieux est de donné un tutoriel/boot-info .
car 56.91 Go de libre , il n' y a pas du y avoir que la partition de démarrage qui a du gicler .


retour COMPLET et utilisable de commande  |  script montage partitions

MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#3 Le 15/02/2025, à 17:10

myfriendgoo

Re : Partition boot effacée par erreur [résolu]

Rapport Boot-info

J'avais étendu sda2 sur tout le disque dur en pensant être sur mon disque externe, et j'ai réduit la partition quand je me suis rendu compte de mon erreur en prévision d'une réinstallation.

Hors ligne

#4 Le 15/02/2025, à 17:33

iznobe

Re : Partition boot effacée par erreur [résolu]

boot-info-4ppa2081                                              [20250215_1504]

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

 => No boot loader is installed in the MBR of /dev/sda.
 => Windows 2000/XP/2003 is installed in the MBR of /dev/sdb.

sda2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Boot file info:      Grub2 (v2.00) in the file 
                       /ubuntu-24.04.1-desktop-amd64.iso looks at sector 0 of 
                       the same hard drive for core.img, but core.img can not 
                       be found at this location.
    Operating System:  Ubuntu 24.04.1 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub

sdb1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 2000/XP: NTFS
    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:        /boot/grub/grub.cfg /efi/boot/bootx64.efi 
                       /efi/boot/grubx64.efi /efi/boot/mmx64.efi


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

OS#1 (linux):   Ubuntu 24.04.1 LTS on sda2

================================ Host/Hardware =================================

CPU architecture: 64-bit
Video: Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller from Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 24.04.1 LTS, noble, x86_64)

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

BIOS/UEFI firmware: V1.5(4.6) from American Megatrends Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0026
Timeout: 1 seconds
BootOrder: 0025,0026,0024,0022,0023,0004
Boot0004  UEFI: Built-in EFI Shell 	VenMedia(5023b95c-db26-429b-a648-bd47664c8012)AMBO
Boot0022* Hard Drive 	BBS(HD,,0x0)414d474f414d4e4faf000000010000006f00570044004300200057004400350030003000300041005a00520058002d0030003000410038004c004200300000000501090002000000007fff040002010c00d041030a0000000001010600021f03120a000000ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce62000200020002000570020002d00440043005700310043003000550033003500310030003400300000007fff0400414d424f
Boot0023* CD/DVD Drive 	BBS(CDROM,,0x0)414d474f414d4e4fb3000000010000006f00540053005300540063006f007200700020004300440044005600440057002000530048002d003200320034004200420000000501090003000000007fff040002010c00d041030a0000000001010600021f03120a000100ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce63800520053005700470036004400420030003100590030004a00360020002000200020002000200000007fff0400414d424f
Boot0024* Unknown Device 	BBS(9,,0x0)414d474f414d4e4fb100000001000000730057004400200045006c0065006d0065006e0074007300200031003000410038002000310030003400320000000501090009000000007fff040002010c00d041030a0000000001010600001d0305060001000305060006007fff040001044000ef47642dc93ba041ac194d51d01b4ce657004400200045006c0065006d0065006e0074007300200031003000410038002000310030003400320000007fff0400414d424f
Boot0025* UEFI: WD Elements 10A8 1042	PciRoot(0x0)/Pci(0x1d,0x0)/USB(1,0)/USB(6,0)/HD(1,MBR,0xb7b7b286,0x800,0x340b9800)AMBO
Boot0026* UEFI: WD Elements 10A8 1042	PciRoot(0x0)/Pci(0x1d,0x0)/USB(1,0)/USB(6,0)/HD(2,MBR,0xb7b7b286,0x340ba000,0x62bc000)AMBO


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

Disks info: ____________________________________________________________________

sda	: is-GPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, has-os,	no-wind,	2048 sectors * 512 bytes
sdb	: notGPT,	no-BIOSboot,	has-noESP, 	liveusb,	not-mmc, no-os,	no-wind,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sda2	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	end-after-100GB
sdb1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB

Partitions info (2/3): _________________________________________________________

sda2	: isnotESP,	fstab-has-bad-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot, ext4
sdb1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot, ntfs

Partitions info (3/3): _________________________________________________________

sda2	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sdb1	: not--sepboot,	no-kernel,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdb

fdisk -l (filtered): ___________________________________________________________

Disk sda: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: 5029025A-F32B-487B-87F9-8437E7188877
         Start       End   Sectors   Size Type
sda2  111149056 976773119 865624064 412.8G Linux filesystem
Disk sdb: 465.73 GiB, 500074283008 bytes, 976707584 sectors
Disk identifier: 0xb7b7b286
     Boot     Start       End   Sectors   Size Id Type
sdb1            2048 873177087 873175040 416.4G  7 HPFS/NTFS/exFAT
sdb2       873177088 976707583 103530496  49.4G  b W95 FAT32

parted -lm (filtered): _________________________________________________________

sda:500GB:scsi:512:4096:gpt:ATA WDC WD5000AZRX-0:;
2:56.9GB:500GB:443GB:ext4::;
sdb:500GB:scsi:512:512:msdos:WD Elements 10A8:;
1:1049kB:447GB:447GB:ntfs::;
2:447GB:500GB:53.0GB:fat32::;

Free space >10MiB: ______________________________________________________________

sda: 0.02MiB:54272MiB:54272MiB

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL    PARTLABEL
sda                                                                                                
└─sda2 ext4     87cf0c20-62ca-4496-bafc-21fed0e5f932 b1c24f6e-dc0b-4615-8c8f-7e5363d7a502          
sdb                                                                                                
├─sdb1 ntfs     B4D48115D480DB4E                     b7b7b286-01                          Elements 
└─sdb2 vfat     1CE7-ED58                            b7b7b286-02                                   

Mount points (filtered): _______________________________________________________

                        Avail Use% Mounted on
/dev/sda2               34.9G  86% /mnt/boot-sav/sda2
/dev/sdb1              100.7G  76% /mnt/boot-sav/sdb1
/dev/sdb2               43.6G  12% /cdrom
efivarfs                24.3K  77% /sys/firmware/efi/efivars

Mount options (filtered): ______________________________________________________

/dev/sda2              ext4            rw,relatime
/dev/sdb1              fuseblk         ro,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sdb2              vfat            ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro

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

Ubuntu   87cf0c20-62ca-4496-bafc-21fed0e5f932
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

========================== sda2/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=87cf0c20-62ca-4496-bafc-21fed0e5f932 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=0BF9-7E6A  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

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

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2>/dev/null || echo Ubuntu`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

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

           GiB - GB             File                                 Fragment(s)
 275.131774902 = 295.420493824  boot/grub/grub.cfg                             1
 409.818622589 = 440.039395328  boot/vmlinuz                                   2
 409.638938904 = 439.846461440  boot/vmlinuz-6.8.0-51-generic                  1
 409.818622589 = 440.039395328  boot/vmlinuz-6.8.0-52-generic                  2
 409.638938904 = 439.846461440  boot/vmlinuz.old                               1
 306.664058685 = 329.278025728  boot/initrd.img                                7
 277.319118500 = 297.769136128  boot/initrd.img-6.8.0-51-generic               4
 306.664058685 = 329.278025728  boot/initrd.img-6.8.0-52-generic               7
 277.319118500 = 297.769136128  boot/initrd.img.old                            4

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

-rwxr-xr-x 1 root root 18133 Sep 11 13:15 10_linux
-rwxr-xr-x 1 root root 43202 Sep 11 13:15 10_linux_zfs
-rwxr-xr-x 1 root root 14513 Sep 11 13:15 20_linux_xen
-rwxr-xr-x 1 root root   786 Sep 11 13:15 25_bli
-rwxr-xr-x 1 root root 13120 Sep 11 13:15 30_os-prober
-rwxr-xr-x 1 root root  1174 Sep 11 13:15 30_uefi-firmware
-rwxr-xr-x 1 root root   722 Dec  5 15:53 35_fwupd
-rwxr-xr-x 1 root root   214 Apr 15  2022 40_custom
-rwxr-xr-x 1 root root   215 Apr 15  2022 41_custom

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

Try or Install Ubuntu
Ubuntu (safe graphics)
Boot from next volume
UEFI Firmware Settings
Test memory

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

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

mount -t ntfs-3g -o remove_hiberfile /dev/sdb1 /mnt/boot-sav/sdb1 


Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would purge (in order to remove grub-efi) and reinstall the grub2 of
sda2 into the MBR of sda.
Grub-efi would not be selected by default because no ESP detected.
Additional repair would be performed: unhide-bootmenu-10s

Blockers in case of suggested repair: __________________________________________

 GPT detected. Please create a BIOS-Boot partition (>1MB, unformatted filesystem, bios_grub flag). This can be performed via tools such as Gparted. Then try again.

Confirmation request before suggested repair: __________________________________

The boot of your PC is in EFI mode, but no ESP partition was detected. You may want to retry after creating a ESP partition (FAT32, 100MB~250MB, start of the disk, boot flag).
Are you sure you want to continue anyway?

Final advice in case of suggested repair: ______________________________________

Please do not forget to make your BIOS boot on sda (ATA WDC WD5000AZRX-0) disk!

The boot files of [sda2 (end>100GB)] are far from the start of the disk. Your BIOS may not detect them. You may want to retry after creating a /boot partition (EXT4, >200MB, start of the disk). This can be performed via tools such as gParted. Then select this partition via the [Separate /boot partition:] option of [Boot-Repair]. (https://help.ubuntu.com/community/BootPartition)The boot of your PC is in UEFI mode. You may want to retry after changing it to BIOS-compatibility/CSM/Legacy mode.

retour COMPLET et utilisable de commande  |  script montage partitions

MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#5 Le 15/02/2025, à 17:55

iznobe

Re : Partition boot effacée par erreur [résolu]

il faudrait recréer une partition VFAT ( FAT32 ) sur ton disque SDA d' une taille de 100 Mo minimum , lui mettre les drapeaux " boot " et " ESP " , en lancant gparted sur ta session live .
en suite tu relances boot-info et tu verifies qu ' a la fin il dit que pour corriger il va reinstaller le boot-efi dans la partition que tu auras créée .
si c' est le cas , tu lances alors boot-repair .
si tout se passe bien , tu pourras alors redemarrer normalement .


retour COMPLET et utilisable de commande  |  script montage partitions

MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#6 Le 15/02/2025, à 18:32

myfriendgoo

Re : Partition boot effacée par erreur [résolu]

boot-info-4ppa2081                                              [20250215_1628]

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

 => No boot loader is installed in the MBR of /dev/sda.
 => Windows 2000/XP/2003 is installed in the MBR of /dev/sdb.

sda1: __________________________________________________________________________

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

sda2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Boot file info:      Grub2 (v2.00) in the file 
                       /ubuntu-24.04.1-desktop-amd64.iso looks at sector 0 of 
                       the same hard drive for core.img, but core.img can not 
                       be found at this location.
    Operating System:  Ubuntu 24.04.1 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub

sdb1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 2000/XP: NTFS
    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:        /boot/grub/grub.cfg /efi/boot/bootx64.efi 
                       /efi/boot/grubx64.efi /efi/boot/mmx64.efi


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

OS#1 (linux):   Ubuntu 24.04.1 LTS on sda2

================================ Host/Hardware =================================

CPU architecture: 64-bit
Video: Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller from Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 24.04.1 LTS, noble, x86_64)

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

BIOS/UEFI firmware: V1.5(4.6) from American Megatrends Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0026
Timeout: 1 seconds
BootOrder: 0025,0026,0024,0022,0023,0004
Boot0004  UEFI: Built-in EFI Shell 	VenMedia(5023b95c-db26-429b-a648-bd47664c8012)AMBO
Boot0022* Hard Drive 	BBS(HD,,0x0)414d474f414d4e4faf000000010000006f00570044004300200057004400350030003000300041005a00520058002d0030003000410038004c004200300000000501090002000000007fff040002010c00d041030a0000000001010600021f03120a000000ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce62000200020002000570020002d00440043005700310043003000550033003500310030003400300000007fff0400414d424f
Boot0023* CD/DVD Drive 	BBS(CDROM,,0x0)414d474f414d4e4fb3000000010000006f00540053005300540063006f007200700020004300440044005600440057002000530048002d003200320034004200420000000501090003000000007fff040002010c00d041030a0000000001010600021f03120a000100ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce63800520053005700470036004400420030003100590030004a00360020002000200020002000200000007fff0400414d424f
Boot0024* Unknown Device 	BBS(9,,0x0)414d474f414d4e4fb100000001000000730057004400200045006c0065006d0065006e0074007300200031003000410038002000310030003400320000000501090009000000007fff040002010c00d041030a0000000001010600001d0305060001000305060006007fff040001044000ef47642dc93ba041ac194d51d01b4ce657004400200045006c0065006d0065006e0074007300200031003000410038002000310030003400320000007fff0400414d424f
Boot0025* UEFI: WD Elements 10A8 1042	PciRoot(0x0)/Pci(0x1d,0x0)/USB(1,0)/USB(6,0)/HD(1,MBR,0xb7b7b286,0x800,0x340b9800)AMBO
Boot0026* UEFI: WD Elements 10A8 1042	PciRoot(0x0)/Pci(0x1d,0x0)/USB(1,0)/USB(6,0)/HD(2,MBR,0xb7b7b286,0x340ba000,0x62bc000)AMBO


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

Disks info: ____________________________________________________________________

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

Partitions info (1/3): _________________________________________________________

sda2	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	end-after-100GB
sdb1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	end-after-100GB
sda1	: no-os,	64, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far

Partitions info (2/3): _________________________________________________________

sda2	: isnotESP,	fstab-has-bad-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot, ext4
sdb1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot, ntfs
sda1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot, vfat

Partitions info (3/3): _________________________________________________________

sda2	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sdb1	: not--sepboot,	no-kernel,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdb
sda1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: 5029025A-F32B-487B-87F9-8437E7188877
         Start       End   Sectors   Size Type
sda1       2048    206847    204800   100M EFI System
sda2  111149056 976773119 865624064 412.8G Linux filesystem
Disk sdb: 465.73 GiB, 500074283008 bytes, 976707584 sectors
Disk identifier: 0xb7b7b286
     Boot     Start       End   Sectors   Size Id Type
sdb1            2048 873177087 873175040 416.4G  7 HPFS/NTFS/exFAT
sdb2       873177088 976707583 103530496  49.4G  b W95 FAT32

parted -lm (filtered): _________________________________________________________

sda:500GB:scsi:512:4096:gpt:ATA WDC WD5000AZRX-0:;
1:1049kB:106MB:105MB:fat32::boot, esp;
2:56.9GB:500GB:443GB:ext4::;
sdb:500GB:scsi:512:512:msdos:WD Elements 10A8:;
1:1049kB:447GB:447GB:ntfs::;
2:447GB:500GB:53.0GB:fat32::;

Free space >10MiB: ______________________________________________________________

sda: 101MiB:54272MiB:54171MiB

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL    PARTLABEL
sda                                                                                                
├─sda1 vfat     0275-1514                            66922aaf-4aa9-4f53-92b5-5ee8f5094aec VFAT     
└─sda2 ext4     87cf0c20-62ca-4496-bafc-21fed0e5f932 b1c24f6e-dc0b-4615-8c8f-7e5363d7a502          
sdb                                                                                                
├─sdb1 ntfs     B4D48115D480DB4E                     b7b7b286-01                          Elements 
└─sdb2 vfat     1CE7-ED58                            b7b7b286-02                                   

Mount points (filtered): _______________________________________________________

                        Avail Use% Mounted on
/dev/sda1               98.4M   0% /mnt/boot-sav/sda1
/dev/sda2               34.9G  86% /mnt/boot-sav/sda2
/dev/sdb1              100.7G  76% /mnt/boot-sav/sdb1
/dev/sdb2               43.6G  12% /cdrom
efivarfs                24.3K  77% /sys/firmware/efi/efivars

Mount options (filtered): ______________________________________________________

/dev/sda1              vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sda2              ext4            rw,relatime
/dev/sdb1              fuseblk         ro,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/sdb2              vfat            ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro

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

Ubuntu   87cf0c20-62ca-4496-bafc-21fed0e5f932
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

========================== sda2/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=87cf0c20-62ca-4496-bafc-21fed0e5f932 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=0BF9-7E6A  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

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

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2>/dev/null || echo Ubuntu`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

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

           GiB - GB             File                                 Fragment(s)
 275.131774902 = 295.420493824  boot/grub/grub.cfg                             1
 409.818622589 = 440.039395328  boot/vmlinuz                                   2
 409.638938904 = 439.846461440  boot/vmlinuz-6.8.0-51-generic                  1
 409.818622589 = 440.039395328  boot/vmlinuz-6.8.0-52-generic                  2
 409.638938904 = 439.846461440  boot/vmlinuz.old                               1
 306.664058685 = 329.278025728  boot/initrd.img                                7
 277.319118500 = 297.769136128  boot/initrd.img-6.8.0-51-generic               4
 306.664058685 = 329.278025728  boot/initrd.img-6.8.0-52-generic               7
 277.319118500 = 297.769136128  boot/initrd.img.old                            4

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

-rwxr-xr-x 1 root root 18133 Sep 11 13:15 10_linux
-rwxr-xr-x 1 root root 43202 Sep 11 13:15 10_linux_zfs
-rwxr-xr-x 1 root root 14513 Sep 11 13:15 20_linux_xen
-rwxr-xr-x 1 root root   786 Sep 11 13:15 25_bli
-rwxr-xr-x 1 root root 13120 Sep 11 13:15 30_os-prober
-rwxr-xr-x 1 root root  1174 Sep 11 13:15 30_uefi-firmware
-rwxr-xr-x 1 root root   722 Dec  5 15:53 35_fwupd
-rwxr-xr-x 1 root root   214 Apr 15  2022 40_custom
-rwxr-xr-x 1 root root   215 Apr 15  2022 41_custom

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

Try or Install Ubuntu
Ubuntu (safe graphics)
Boot from next volume
UEFI Firmware Settings
Test memory

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

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

mount -t ntfs-3g -o remove_hiberfile /dev/sdb1 /mnt/boot-sav/sdb1 


Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub-efi of
sda2,
using the following options:  sda1/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 24.04.1 LTS entry (sda1/efi/****/grub****.efi (**** will be updated in the final message) file) !

Hors ligne

#7 Le 15/02/2025, à 18:46

iznobe

Re : Partition boot effacée par erreur [résolu]

ca semble correct .  " y a pu ka " lancer le boot-repair .


retour COMPLET et utilisable de commande  |  script montage partitions

MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#8 Le 15/02/2025, à 18:49

myfriendgoo

Re : Partition boot effacée par erreur [résolu]

Le rapport du boot repair :

Boot successfully repaired.

Please write on a paper the following URL:
https://paste.ubuntu.com/p/QxwMf28C6d/


In case you still experience boot problem, indicate this URL to:
boot.repair@gmail.com or to your favorite support forum.

Locked-NVram detected. Please do not forget to make your UEFI firmware boot on the Ubuntu 24.04.1 LTS entry (sda1/efi/ubuntu/grubx64.efi file) !

Que signifie la dernière phrase ?

Hors ligne

#9 Le 15/02/2025, à 18:51

iznobe

Re : Partition boot effacée par erreur [résolu]

qu ' il n' a pas pu ecrire dans la NVRAM ...


retour COMPLET et utilisable de commande  |  script montage partitions

MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#10 Le 15/02/2025, à 19:26

geole

Re : Partition boot effacée par erreur [résolu]

Bonjour.
Cela sera donc à toi de faire l'étape finale depuis le bios.

Locked-NVram detected. Please do not forget to make your UEFI firmware boot on the Ubuntu 24.04.1 LTS entry (sda1/efi/ubuntu/grubx64.efi file) !

Tu l'as déjà certainement fait une fois.


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
Je défie QUICONQUE de trouver une discussion où j'aurais suggéré de remplacer un SSD par un disque dur.
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

En ligne

#11 Le 15/02/2025, à 19:36

myfriendgoo

Re : Partition boot effacée par erreur [résolu]

Tout refonctionne. Merci pour votre aide !

Hors ligne