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 03/03/2024, à 00:13

Jo et jo

[Résolu] Disparition d'ubuntu

Bonjour,
J'ai un petit gros problème. Il y a une semaine les charnières de mon PC (Dell XPS15) se sont cassés, jusqu'à provoqué un dérèglement du bouton on-off, qui a entrainé un redémarrage permanent du PC (que je ne pouvais pas empêcher) et ce jusqu'à ce dernier s'essoufle. J'ai donc emmener mon PC chez un réparateur, qui a réparer les charnières, et m'a informé qu'il n'a pas touché au disque dur.
C'est là que commence mon problème : mon ordinateur démarre directement sur windows alors qu'il était originellement en dual-boot, avec grub et ubuntu en priorité de démarrage. Mais désormais, grub n'apparait plus !
De plus, quand je démarre sur une clé externe, le disque dur de mon PC est invisible.
Auriez-vous des solutions pour que je puisse retrouver ubuntu ? Ou tout du moins récupérer mes données personnelles qui étaient sur ubuntu, quitte à réinstaller le système ensuite.
Merci d'avance pour votre aide.
Josselin

Dernière modification par Jo et jo (Le 06/03/2024, à 00:54)

Hors ligne

#2 Le 03/03/2024, à 00:35

geole

Re : [Résolu] Disparition d'ubuntu

Bonsoir.
Commence par publier l'url qui sera générée par un boot-info.,


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

En ligne

#3 Le 03/03/2024, à 10:25

Jo et jo

Re : [Résolu] Disparition d'ubuntu

Bonjour,
Voici le rapport :

boot-repair-4ppa2075                                              [20240302_2143]

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

 => Syslinux MBR (5.00 and higher) is installed in the MBR of /dev/sda.

sda1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  SYSLINUX 6.04
    Boot sector info:  Syslinux looks at sector 32832 of /dev/sda1 for its 
                       second stage. The integrity check of Syslinux failed. 
                       No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /boot/grub/grub.cfg /syslinux.cfg 
                       /efi/boot/bootx64.efi /efi/boot/grubx64.efi 
                       /efi/boot/mmx64.efi /ldlinux.sys


================================ 0 OS detected =================================


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

CPU architecture: 64-bit
Video: GM107M [GeForce GTX 960M] HD Graphics 530 from NVIDIA Corporation Intel Corporation
Live-session OS is Linuxmint 64-bit (Linux Mint 21.2, victoria, x86_64)

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

BIOS/UEFI firmware: 1.23.0(1.23) from Dell Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0004,0002,0000
Boot0000* Windows Boot Manager	HD(1,GPT,4dc49547-7dfe-4122-af58-7f798225eee0,0x800,0x32000)/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.}...I................
Boot0002* UEFI: CT500P2SSD8, Partition 1	HD(1,GPT,4dc49547-7dfe-4122-af58-7f798225eee0,0x800,0x32000)/File(EFI\Microsoft\Boot\bootmgfw.efi)..BO
Boot0004* UEFI:  USB, Partition 1	PciRoot(0x0)/Pci(0x14,0x0)/USB(16,0)/HD(1,MBR,0xb7e81,0x800,0x3956800)..BO


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

Disks info: ____________________________________________________________________


Partitions info (1/3): _________________________________________________________


Partitions info (2/3): _________________________________________________________


Partitions info (3/3): _________________________________________________________


fdisk -l (filtered): ___________________________________________________________

Disk sda: 28.67 GiB, 30784094208 bytes, 60125184 sectors
Disk identifier: 0x000b7e81
     Boot Start      End  Sectors  Size Id Type
sda1  *     2048 60125183 60123136 28.7G  c W95 FAT32 (LBA)

parted -lm (filtered): _________________________________________________________

sda:30.8GB:scsi:512:512:msdos: USB  SanDisk 3.2Gen1:;
1:1049kB:30.8GB:30.8GB:fat32::boot, lba;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL       PARTLABEL
sda                                                                                                   
└─sda1 vfat     62D5-0FCC                            000b7e81-01                          BOOT-REPAIR 

Mount points (filtered): _______________________________________________________

           Avail Use% Mounted on
/dev/sda1   26.2G   9% /cdrom

Mount options (filtered): ______________________________________________________

/dev/sda1   vfat            ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro

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

Start Boot-Repair-Disk 64-bit
Start Boot-Repair-Disk 64-bit (compatibility mode)
UEFI Firmware Settings
Test memory

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

DEFAULT loadconfig

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

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

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

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

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



Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would not act on the boot.

Mais j'ai l'impression que le boot-info a été fait sur la clé sur laquelle se trouvait l'iso de boot-repair...

Hors ligne

#4 Le 03/03/2024, à 11:37

geole

Re : [Résolu] Disparition d'ubuntu

Bonjour
Tout simplement, le boot-info n'a pas détecté ton disque.
Vas donc dans le bios et regarde comment est positionné l'accès au disque.
   A mon avis, le réparateur l'a mis en mode RAIDS ou IRST en conformité windows au lieu de le mettre en mode AHCI pour être conforme à ubuntu  ou cela s'est fait automatiquement par une réinitialisation du bios.


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

En ligne

#5 Le 03/03/2024, à 13:07

Jo et jo

Re : [Résolu] Disparition d'ubuntu

Bonjour,

Effectivement il était en mode RAID, je l'ai passé en AHCI, mais là plus rien ne marchait : ni grub, ni windows qui affiche alors la page de réparation.
Mais j'ai pu fait un boot-repair sur le bon disque ! Que dois-je en faire ? Faire la réparation conseillée ?

boot-repair-4ppa2075                                              [20240303_1055]

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

 => Windows is installed in the MBR of /dev/nvme0n1.
 => Syslinux MBR (5.00 and higher) is installed in the MBR of /dev/sda.

nvme0n1p1: _____________________________________________________________________

    File system:       vfat
    Boot sector type:  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/fwupdx64.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

nvme0n1p2: _____________________________________________________________________

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

nvme0n1p3: _____________________________________________________________________

    File system:       ntfs
    Boot sector type:  NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 10 or 11
    Boot files:        /Windows/System32/winload.exe

nvme0n1p4: _____________________________________________________________________

    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

sda1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  SYSLINUX 6.04
    Boot sector info:  Syslinux looks at sector 32832 of /dev/sda1 for its 
                       second stage. The integrity check of Syslinux failed. 
                       No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /boot/grub/grub.cfg /syslinux.cfg 
                       /efi/boot/bootx64.efi /efi/boot/grubx64.efi 
                       /efi/boot/mmx64.efi /ldlinux.sys


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

OS#1:   Ubuntu 22.04.3 LTS on nvme0n1p4
OS#2:   Windows 10 or 11 on nvme0n1p3

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

CPU architecture: 64-bit
Video: GM107M [GeForce GTX 960M] HD Graphics 530 from NVIDIA Corporation Intel Corporation
Live-session OS is Linuxmint 64-bit (Linux Mint 21.2, victoria, x86_64)

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

BIOS/UEFI firmware: 1.23.0(1.23) from Dell Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0004,0002,0000
Boot0000* Windows Boot Manager	HD(1,GPT,4dc49547-7dfe-4122-af58-7f798225eee0,0x800,0x32000)/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.}...I................
Boot0002* UEFI: CT500P2SSD8, Partition 1	HD(1,GPT,4dc49547-7dfe-4122-af58-7f798225eee0,0x800,0x32000)/File(EFI\Microsoft\Boot\bootmgfw.efi)..BO
Boot0004* UEFI:  USB, Partition 1	PciRoot(0x0)/Pci(0x14,0x0)/USB(16,0)/HD(1,MBR,0xb7e81,0x800,0x3956800)..BO

64349b3622c65f495a99dbf6102496e3   nvme0n1p1/Boot/bootx64.efi
a9c517741ac31962d7feb152948ad1ee   nvme0n1p1/Boot/fbx64.efi
a660182adef313615746a665966d2ccc   nvme0n1p1/Boot/mmx64.efi
ba531a1a29f69774c1eafa2c96110e04   nvme0n1p1/ubuntu/fwupdx64.efi
a1da253696a304dce6b4668b70151c0e   nvme0n1p1/ubuntu/grubx64.efi
a660182adef313615746a665966d2ccc   nvme0n1p1/ubuntu/mmx64.efi
64349b3622c65f495a99dbf6102496e3   nvme0n1p1/ubuntu/shimx64.efi
df480f092e56b632513b4616bdeade95   nvme0n1p1/Microsoft/Boot/bootmgfw.efi
0a70ebdfe73694eb6188f70e81b47a79   nvme0n1p1/Microsoft/Boot/bootmgr.efi

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

Disks info: ____________________________________________________________________

nvme0n1	: is-GPT,	no-BIOSboot,	has---ESP, 	not-usb,	not-mmc, has-os,	has-win,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

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

Partitions info (2/3): _________________________________________________________

nvme0n1p1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
nvme0n1p3	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	no-bmgr,	notwinboot
nvme0n1p4	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

nvme0n1p1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	nvme0n1
nvme0n1p3	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	nvme0n1
nvme0n1p4	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	nvme0n1

fdisk -l (filtered): ___________________________________________________________

Disk nvme0n1: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: EEA4007D-3B35-43FF-A92D-8C4FE4DCDF4F
             Start       End   Sectors   Size Type
nvme0n1p1      2048    206847    204800   100M EFI System
nvme0n1p2    206848    239615     32768    16M Microsoft reserved
nvme0n1p3    239616 442494975 442255360 210.9G Microsoft basic data
nvme0n1p4 442497024 976773119 534276096 254.8G Linux filesystem
Disk sda: 28.67 GiB, 30784094208 bytes, 60125184 sectors
Disk identifier: 0x000b7e81
     Boot Start      End  Sectors  Size Id Type
sda1  *     2048 60125183 60123136 28.7G  c W95 FAT32 (LBA)

parted -lm (filtered): _________________________________________________________

sda:30.8GB:scsi:512:512:msdos: USB  SanDisk 3.2Gen1:;
1:1049kB:30.8GB:30.8GB:fat32::boot, lba;
nvme0n1:500GB:nvme:512:512:gpt:CT500P2SSD8:;
1:1049kB:106MB:105MB:fat32:EFI system partition:boot, esp;
2:106MB:123MB:16.8MB::Microsoft reserved partition:msftres;
3:123MB:227GB:226GB:ntfs:Basic data partition:msftdata;
4:227GB:500GB:274GB:ext4::;

blkid (filtered): ______________________________________________________________

NAME        FSTYPE   UUID                                 PARTUUID                             LABEL       PARTLABEL
sda                                                                                                        
└─sda1      vfat     62D5-0FCC                            000b7e81-01                          BOOT-REPAIR 
nvme0n1                                                                                                    
├─nvme0n1p1 vfat     963E-59D1                            4dc49547-7dfe-4122-af58-7f798225eee0             EFI system partition
├─nvme0n1p2                                               a741b2c6-395f-41e4-9fe3-a2300b6423cf             Microsoft reserved partition
├─nvme0n1p3 ntfs     B2B23F78B23F4061                     8306c077-3f48-4ab1-9a34-40d070e857f9             Basic data partition
└─nvme0n1p4 ext4     ee4a5d16-bbf9-4638-b489-f5238c5347a5 4a9290dc-c409-439f-8800-2821f023146c             

Mount points (filtered): _______________________________________________________

                Avail Use% Mounted on
/dev/nvme0n1p1  34.3M  64% /mnt/boot-sav/nvme0n1p1
/dev/nvme0n1p3 112.6G  47% /mnt/boot-sav/nvme0n1p3
/dev/nvme0n1p4 184.3G  21% /mnt/boot-sav/nvme0n1p4
/dev/sda1       26.2G   9% /cdrom

Mount options (filtered): ______________________________________________________

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

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

search.fs_uuid ee4a5d16-bbf9-4638-b489-f5238c5347a5 root 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

Ubuntu   ee4a5d16-bbf9-4638-b489-f5238c5347a5
Windows Boot Manager (on nvme0n1p1)   osprober-efi-963E-59D1
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

======================== nvme0n1p4/etc/fstab (filtered) ========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/nvme0n1p4 during installation
UUID=ee4a5d16-bbf9-4638-b489-f5238c5347a5 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=963E-59D1  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

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

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

           GiB - GB             File                                 Fragment(s)
 450.608848572 = 483.837566976  boot/grub/grub.cfg                             1
 410.777900696 = 441.069412352  boot/vmlinuz                                   1
 373.152896881 = 400.669872128  boot/vmlinuz-6.5.0-14-generic                  1
 410.777900696 = 441.069412352  boot/vmlinuz-6.5.0-15-generic                  1
 373.152896881 = 400.669872128  boot/vmlinuz.old                               1
 426.767532349 = 458.238148608  boot/initrd.img                                2
 411.423767090 = 441.762906112  boot/initrd.img-6.5.0-14-generic               2
 426.767532349 = 458.238148608  boot/initrd.img-6.5.0-15-generic               2
 411.423767090 = 441.762906112  boot/initrd.img.old                            2

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

-rwxr-xr-x 1 root root 18683 Dec 18  2022 10_linux
-rwxr-xr-x 1 root root 43031 Dec 18  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 18  2022 30_os-prober
-rwxr-xr-x 1 root root  1372 Dec 18  2022 30_uefi-firmware
-rwxr-xr-x 1 root root   700 May 17  2023 35_fwupd
-rwxr-xr-x 1 root root   214 Dec 18  2022 40_custom
-rwxr-xr-x 1 root root   215 Dec 18  2022 41_custom

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

Start Boot-Repair-Disk 64-bit
Start Boot-Repair-Disk 64-bit (compatibility mode)
UEFI Firmware Settings
Test memory

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

DEFAULT loadconfig

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

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

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

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

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



Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub-efi of
nvme0n1p4,
using the following options:  nvme0n1p1/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 (nvme0n1p1/efi/****/grub****.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\****\grub****.efi (**** will be updated in the final message)

Hors ligne

#6 Le 03/03/2024, à 13:33

geole

Re : [Résolu] Disparition d'ubuntu

=> Windows is installed in the MBR of /dev/nvme0n1.
Regarde d'abord si le bios n' est pas revenu  dans le mode  choix LEGACY prioritaire au lieu du choix EFI.
Ta structure boot EFI  me semble en très bon état.


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

En ligne

#7 Le 03/03/2024, à 14:09

Jo et jo

Re : [Résolu] Disparition d'ubuntu

J'ai regardé dans le bios, le choix prioritaire était bien EFI et non legacy

Hors ligne

#8 Le 03/03/2024, à 14:21

geole

Re : [Résolu] Disparition d'ubuntu

mais là plus rien ne marchait : ni grub, ni windows qui affiche alors la page de réparation.
Est-ce que le grub s'affiche?
Si oui, peux-tu choisir? entre ubuntu et windows
Les fichiers de boot sont bien présents.

================= nvme0n1p4: Location of files loaded by Grub ==================
           GiB - GB             File                                 Fragment(s)
 373.152896881 = 400.669872128  boot/vmlinuz-6.5.0-14-generic                  1
 410.777900696 = 441.069412352  boot/vmlinuz-6.5.0-15-generic                  1
 411.423767090 = 441.762906112  boot/initrd.img-6.5.0-14-generic               2
 426.767532349 = 458.238148608  boot/initrd.img-6.5.0-15-generic               2

Dernière modification par geole (Le 03/03/2024, à 14:27)


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

En ligne

#9 Le 03/03/2024, à 18:01

Jo et jo

Re : [Résolu] Disparition d'ubuntu

Malheureusement le menu grub ne s'affiche pas

Hors ligne

#10 Le 03/03/2024, à 18:37

erresse

Re : [Résolu] Disparition d'ubuntu

Même en appuyant sur la touche "Maj" au démarrage de la machine ? (C'est normalement la procédure pour faire apparaître le menu grub si caché)


Plus de 50 ans d'informatique, ça en fait des lignes de commandes en console, mais on n'avait pas le choix...
Excellente raison pour, aujourd'hui qu'on le peut, utiliser au maximum les INTERFACES GRAPHIQUES !
Important : Une fois résolu, pensez à clore votre sujet en ajoutant [Résolu] devant le titre du 1er message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.

Hors ligne

#11 Le 03/03/2024, à 19:17

Jo et jo

Re : [Résolu] Disparition d'ubuntu

Je viens d'essayer et cela ne fonctionne pas non plus...

Hors ligne

#12 Le 03/03/2024, à 19:45

geole

Re : [Résolu] Disparition d'ubuntu

Alors fais le boot-repair recommandé,  il devrait corriger le problème d affichage du grub


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

En ligne

#13 Le 03/03/2024, à 19:57

iznobe

Re : [Résolu] Disparition d'ubuntu

geole a écrit :

=> Windows is installed in the MBR of /dev/nvme0n1.
Regarde d'abord si le bios n' est pas revenu  dans le mode  choix LEGACY prioritaire au lieu du choix EFI.
Ta structure boot EFI  me semble en très bon état.

Jo et jo a écrit :

J'ai regardé dans le bios, le choix prioritaire était bien EFI et non legacy

Bonjour , justement , il faudrait donc , plutôt placer le mode de démarrage du BIOS en CSM ? ou en LEGACY .
ca voudrait dire que windobz demarre en LEGACY et pas en EFI . si ubuntu aussi ( ce qui devrait etre le cas puisque ca fonctionnait avant ) , alors ce sera gagné .

Fort à parier qu ' une reinitialisation du BIOS a eu lieu à un moment donné , volontaire par le réparateur , ou bien suite au défaut ??

Dernière modification par iznobe (Le 03/03/2024, à 20:00)


retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#14 Le 03/03/2024, à 21:09

Jo et jo

Re : [Résolu] Disparition d'ubuntu

J'ai donc testé avec le mode legacy, ça n'a pas marché, l'ordinateur a affiché un message d'erreur comme quoi il n'a trouvé aucun fichier pour booter.

Et j'ai essayé la réparation recommandé de boot-repair, cela n'a rien changé à la situation. Je met le boot-info après la réinstallation de grub :

boot-repair-4ppa2075                                              [20240303_1844]

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






Recommended repair: ____________________________________________________________

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


Mount /dev/nvme0n1p1 on /mnt/boot-sav/nvme0n1p4/boot/efi

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

=================== Reinstall the grub-efi of /dev/nvme0n1p4 ===================

chroot /mnt/boot-sav/nvme0n1p4 grub-install --version
grub-install (GRUB) 2.06-2ubuntu7.2
modprobe: FATAL: Module efivars not found in directory /lib/modules/5.15.0-76-generic
chroot /mnt/boot-sav/nvme0n1p4 modprobe efivars

chroot /mnt/boot-sav/nvme0n1p4 efibootmgr -v before grub install
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0004,0002,0000
Boot0000* Windows Boot Manager	HD(1,GPT,4dc49547-7dfe-4122-af58-7f798225eee0,0x800,0x32000)/File(EFIMicrosoftBootbootmgfw.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.}...I................
Boot0002* UEFI: CT500P2SSD8, Partition 1	HD(1,GPT,4dc49547-7dfe-4122-af58-7f798225eee0,0x800,0x32000)/File(EFIMicrosoftBootbootmgfw.efi)..BO
Boot0004* UEFI:  USB, Partition 1	PciRoot(0x0)/Pci(0x14,0x0)/USB(16,0)/HD(1,MBR,0xb7e81,0x800,0x3956800)..BO

chroot /mnt/boot-sav/nvme0n1p4 uname -r
5.15.0-76-generic

chroot /mnt/boot-sav/nvme0n1p4 grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: warning: EFI variables cannot be set on this system.
grub-install: warning: You will have to complete the GRUB setup manually.
Installation finished. No error reported.
df /dev/nvme0n1p1
mv /mnt/boot-sav/nvme0n1p4/boot/efi/EFI/Boot/bootx64.efi /mnt/boot-sav/nvme0n1p4/boot/efi/EFI/Boot/bkpbootx64.efi
cp /mnt/boot-sav/nvme0n1p4/boot/efi/efi/ubuntu/grubx64.efi /mnt/boot-sav/nvme0n1p4/boot/efi/EFI/Boot/bootx64.efi

chroot /mnt/boot-sav/nvme0n1p4 grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: warning: EFI variables cannot be set on this system.
grub-install: warning: You will have to complete the GRUB setup manually.
Installation finished. No error reported.

chroot /mnt/boot-sav/nvme0n1p4 efibootmgr -v after grub install
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0004,0002,0000
Boot0000* Windows Boot Manager	HD(1,GPT,4dc49547-7dfe-4122-af58-7f798225eee0,0x800,0x32000)/File(EFIMicrosoftBootbootmgfw.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.}...I................
Boot0002* UEFI: CT500P2SSD8, Partition 1	HD(1,GPT,4dc49547-7dfe-4122-af58-7f798225eee0,0x800,0x32000)/File(EFIMicrosoftBootbootmgfw.efi)..BO
Boot0004* UEFI:  USB, Partition 1	PciRoot(0x0)/Pci(0x14,0x0)/USB(16,0)/HD(1,MBR,0xb7e81,0x800,0x3956800)..BO
Warning: NVram is locked (Ubuntu not found in efibootmgr).

chroot /mnt/boot-sav/nvme0n1p4 update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Found linux image: /boot/vmlinuz-6.5.0-15-generic
Found initrd image: /boot/initrd.img-6.5.0-15-generic
Found linux image: /boot/vmlinuz-6.5.0-14-generic
Found initrd image: /boot/initrd.img-6.5.0-14-generic
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi

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

Boot successfully repaired.

Locked-NVram detected. (Ubuntu) Please report this message to boot.repair@gmail.com
Please do not forget to make your UEFI firmware boot on the Ubuntu 22.04.3 LTS entry (nvme0n1p1/efi/ubuntu/grubx64.efi file) !


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

 => Windows is installed in the MBR of /dev/nvme0n1.
 => Syslinux MBR (5.00 and higher) is installed in the MBR of /dev/sda.

nvme0n1p1: _____________________________________________________________________

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

nvme0n1p2: _____________________________________________________________________

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

nvme0n1p3: _____________________________________________________________________

    File system:       ntfs
    Boot sector type:  NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 10 or 11
    Boot files:        /Windows/System32/winload.exe

nvme0n1p4: _____________________________________________________________________

    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

sda1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  SYSLINUX 6.04
    Boot sector info:  Syslinux looks at sector 32832 of /dev/sda1 for its 
                       second stage. The integrity check of Syslinux failed. 
                       No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /boot/grub/grub.cfg /syslinux.cfg 
                       /efi/boot/bootx64.efi /efi/boot/grubx64.efi 
                       /efi/boot/mmx64.efi /ldlinux.sys


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

OS#1:   Ubuntu 22.04.3 LTS on nvme0n1p4
OS#2:   Windows 10 or 11 on nvme0n1p3

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

CPU architecture: 64-bit
Video: GM107M [GeForce GTX 960M] HD Graphics 530 from NVIDIA Corporation Intel Corporation
Live-session OS is Linuxmint 64-bit (Linux Mint 21.2, victoria, x86_64)

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

BIOS/UEFI firmware: 1.23.0(1.23) from Dell Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0004,0002,0000
Boot0000* Windows Boot Manager	HD(1,GPT,4dc49547-7dfe-4122-af58-7f798225eee0,0x800,0x32000)/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.}...I................
Boot0002* UEFI: CT500P2SSD8, Partition 1	HD(1,GPT,4dc49547-7dfe-4122-af58-7f798225eee0,0x800,0x32000)/File(EFI\Microsoft\Boot\bootmgfw.efi)..BO
Boot0004* UEFI:  USB, Partition 1	PciRoot(0x0)/Pci(0x14,0x0)/USB(16,0)/HD(1,MBR,0xb7e81,0x800,0x3956800)..BO

64349b3622c65f495a99dbf6102496e3   nvme0n1p1/Boot/bkpbootx64.efi
64349b3622c65f495a99dbf6102496e3   nvme0n1p1/Boot/bootx64.efi
a9c517741ac31962d7feb152948ad1ee   nvme0n1p1/Boot/fbx64.efi
a660182adef313615746a665966d2ccc   nvme0n1p1/Boot/mmx64.efi
ba531a1a29f69774c1eafa2c96110e04   nvme0n1p1/ubuntu/fwupdx64.efi
a1da253696a304dce6b4668b70151c0e   nvme0n1p1/ubuntu/grubx64.efi
a660182adef313615746a665966d2ccc   nvme0n1p1/ubuntu/mmx64.efi
64349b3622c65f495a99dbf6102496e3   nvme0n1p1/ubuntu/shimx64.efi
df480f092e56b632513b4616bdeade95   nvme0n1p1/Microsoft/Boot/bootmgfw.efi
0a70ebdfe73694eb6188f70e81b47a79   nvme0n1p1/Microsoft/Boot/bootmgr.efi

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

Disks info: ____________________________________________________________________

nvme0n1	: is-GPT,	no-BIOSboot,	has---ESP, 	not-usb,	not-mmc, has-os,	has-win,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

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

Partitions info (2/3): _________________________________________________________

nvme0n1p1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
nvme0n1p3	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	no-bmgr,	notwinboot
nvme0n1p4	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

nvme0n1p1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	nvme0n1
nvme0n1p3	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	nvme0n1
nvme0n1p4	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	nvme0n1

fdisk -l (filtered): ___________________________________________________________

Disk nvme0n1: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: EEA4007D-3B35-43FF-A92D-8C4FE4DCDF4F
             Start       End   Sectors   Size Type
nvme0n1p1      2048    206847    204800   100M EFI System
nvme0n1p2    206848    239615     32768    16M Microsoft reserved
nvme0n1p3    239616 442494975 442255360 210.9G Microsoft basic data
nvme0n1p4 442497024 976773119 534276096 254.8G Linux filesystem
Disk sda: 28.67 GiB, 30784094208 bytes, 60125184 sectors
Disk identifier: 0x000b7e81
     Boot Start      End  Sectors  Size Id Type
sda1  *     2048 60125183 60123136 28.7G  c W95 FAT32 (LBA)

parted -lm (filtered): _________________________________________________________

sda:30.8GB:scsi:512:512:msdos: USB  SanDisk 3.2Gen1:;
1:1049kB:30.8GB:30.8GB:fat32::boot, lba;
nvme0n1:500GB:nvme:512:512:gpt:CT500P2SSD8:;
1:1049kB:106MB:105MB:fat32:EFI system partition:boot, esp;
2:106MB:123MB:16.8MB::Microsoft reserved partition:msftres;
3:123MB:227GB:226GB:ntfs:Basic data partition:msftdata;
4:227GB:500GB:274GB:ext4::;

blkid (filtered): ______________________________________________________________

NAME        FSTYPE   UUID                                 PARTUUID                             LABEL       PARTLABEL
sda                                                                                                        
└─sda1      vfat     62D5-0FCC                            000b7e81-01                          BOOT-REPAIR 
nvme0n1                                                                                                    
├─nvme0n1p1 vfat     963E-59D1                            4dc49547-7dfe-4122-af58-7f798225eee0             EFI system partition
├─nvme0n1p2                                               a741b2c6-395f-41e4-9fe3-a2300b6423cf             Microsoft reserved partition
├─nvme0n1p3 ntfs     B2B23F78B23F4061                     8306c077-3f48-4ab1-9a34-40d070e857f9             Basic data partition
└─nvme0n1p4 ext4     ee4a5d16-bbf9-4638-b489-f5238c5347a5 4a9290dc-c409-439f-8800-2821f023146c             

Mount points (filtered): _______________________________________________________

                Avail Use% Mounted on
/dev/nvme0n1p1  33.4M  65% /mnt/boot-sav/nvme0n1p1
/dev/nvme0n1p3 108.5G  49% /mnt/boot-sav/nvme0n1p3
/dev/nvme0n1p4 184.3G  21% /mnt/boot-sav/nvme0n1p4
/dev/sda1       26.2G   9% /cdrom

Mount options (filtered): ______________________________________________________

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

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

search.fs_uuid ee4a5d16-bbf9-4638-b489-f5238c5347a5 root 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

Ubuntu   ee4a5d16-bbf9-4638-b489-f5238c5347a5
Windows Boot Manager (on nvme0n1p1)   osprober-efi-963E-59D1
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

======================== nvme0n1p4/etc/fstab (filtered) ========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/nvme0n1p4 during installation
UUID=ee4a5d16-bbf9-4638-b489-f5238c5347a5 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=963E-59D1  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

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

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

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

           GiB - GB             File                                 Fragment(s)
            ?? = ??             boot/grub/grub.cfg                             1
 410.777900696 = 441.069412352  boot/vmlinuz                                   1
 373.152896881 = 400.669872128  boot/vmlinuz-6.5.0-14-generic                  1
 410.777900696 = 441.069412352  boot/vmlinuz-6.5.0-15-generic                  1
 373.152896881 = 400.669872128  boot/vmlinuz.old                               1
 426.767532349 = 458.238148608  boot/initrd.img                                2
 411.423767090 = 441.762906112  boot/initrd.img-6.5.0-14-generic               2
 426.767532349 = 458.238148608  boot/initrd.img-6.5.0-15-generic               2
 411.423767090 = 441.762906112  boot/initrd.img.old                            2

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

-rwxr-xr-x 1 root root 18683 Dec 18  2022 10_linux
-rwxr-xr-x 1 root root 43031 Dec 18  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 18  2022 30_os-prober
-rwxr-xr-x 1 root root  1372 Dec 18  2022 30_uefi-firmware
-rwxr-xr-x 1 root root   700 May 17  2023 35_fwupd
-rwxr-xr-x 1 root root   214 Dec 18  2022 40_custom
-rwxr-xr-x 1 root root   215 Dec 18  2022 41_custom

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

Start Boot-Repair-Disk 64-bit
Start Boot-Repair-Disk 64-bit (compatibility mode)
UEFI Firmware Settings
Test memory

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

DEFAULT loadconfig

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

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

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

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

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

Hors ligne

#15 Le 03/03/2024, à 21:15

Jo et jo

Re : [Résolu] Disparition d'ubuntu

Et je ne sais pas si cette information peut aider, mais lorsque je tente le démarrage en AHCI, windows ne démarre pas (comme nous l'avons dit plutôt) et affiche comme code erreur '0xc000025'. Cela peut-il aider à comprendre ce qu'il se passe ?

Hors ligne

#16 Le 03/03/2024, à 22:30

geole

Re : [Résolu] Disparition d'ubuntu

Par moments, j'ai envie de dire que si refind était utilisé, cela serait plus simple.

Dernière modification par geole (Le 03/03/2024, à 22:33)


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

En ligne

#17 Le 03/03/2024, à 23:26

ylag

Re : [Résolu] Disparition d'ubuntu

Bonsoir,

Peut-être une piste à suivre :

Passer du mode RAID au mode AHCI sur Windows 10

A+

Dernière modification par ylag (Le 03/03/2024, à 23:29)

Hors ligne

#18 Le 04/03/2024, à 17:33

iznobe

Re : [Résolu] Disparition d'ubuntu

Jo et jo a écrit :

Et je ne sais pas si cette information peut aider, mais lorsque je tente le démarrage en AHCI, windows ne démarre pas (comme nous l'avons dit plutôt) et affiche comme code erreur '0xc000025'. Cela peut-il aider à comprendre ce qu'il se passe ?

il demarre en mode pas AHCI ?
ubuntu demarre en mode AHCI ?
il faut que tu sois bien plus precis sur ce qu ' il se passe pour chaque tentative , nous on ne voit absolument rien de ce qui se passe chez toi lors de tes tentatives ...



Dans le tout dernier boot-repair , on voit :

modprobe: FATAL: Module efivars not found in directory /lib/modules/5.15.0-76-generic

ce qui tend encore à dire que le mode de démarrage n ' est pas EFI , a moins qu il y ait plusieurs problèmes .

puis plus bas :

=================== Reinstall the grub-efi of /dev/nvme0n1p4 ===================

chroot /mnt/boot-sav/nvme0n1p4 grub-install --version
grub-install (GRUB) 2.06-2ubuntu7.2
modprobe: FATAL: Module efivars not found in directory /lib/modules/5.15.0-76-generic
chroot /mnt/boot-sav/nvme0n1p4 modprobe efivars

chroot /mnt/boot-sav/nvme0n1p4 efibootmgr -v before grub install
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0004,0002,0000
Boot0000* Windows Boot Manager    HD(1,GPT,4dc49547-7dfe-4122-af58-7f798225eee0,0x800,0x32000)/File(EFIMicrosoftBootbootmgfw.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.}...I................
Boot0002* UEFI: CT500P2SSD8, Partition 1    HD(1,GPT,4dc49547-7dfe-4122-af58-7f798225eee0,0x800,0x32000)/File(EFIMicrosoftBootbootmgfw.efi)..BO
Boot0004* UEFI:  USB, Partition 1    PciRoot(0x0)/Pci(0x14,0x0)/USB(16,0)/HD(1,MBR,0xb7e81,0x800,0x3956800)..BO

chroot /mnt/boot-sav/nvme0n1p4 uname -r
5.15.0-76-generic

chroot /mnt/boot-sav/nvme0n1p4 grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: warning: EFI variables cannot be set on this system.
grub-install: warning: You will have to complete the GRUB setup manually.
Installation finished. No error reported.
df /dev/nvme0n1p1
mv /mnt/boot-sav/nvme0n1p4/boot/efi/EFI/Boot/bootx64.efi /mnt/boot-sav/nvme0n1p4/boot/efi/EFI/Boot/bkpbootx64.efi
cp /mnt/boot-sav/nvme0n1p4/boot/efi/efi/ubuntu/grubx64.efi /mnt/boot-sav/nvme0n1p4/boot/efi/EFI/Boot/bootx64.efi

chroot /mnt/boot-sav/nvme0n1p4 grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: warning: EFI variables cannot be set on this system.
grub-install: warning: You will have to complete the GRUB setup manually.

Installation finished. No error reported.

chroot /mnt/boot-sav/nvme0n1p4 efibootmgr -v after grub install
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0004,0002,0000
Boot0000* Windows Boot Manager    HD(1,GPT,4dc49547-7dfe-4122-af58-7f798225eee0,0x800,0x32000)/File(EFIMicrosoftBootbootmgfw.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.}...I................
Boot0002* UEFI: CT500P2SSD8, Partition 1    HD(1,GPT,4dc49547-7dfe-4122-af58-7f798225eee0,0x800,0x32000)/File(EFIMicrosoftBootbootmgfw.efi)..BO
Boot0004* UEFI:  USB, Partition 1    PciRoot(0x0)/Pci(0x14,0x0)/USB(16,0)/HD(1,MBR,0xb7e81,0x800,0x3956800)..BO
Warning: NVram is locked (Ubuntu not found in efibootmgr).

chroot /mnt/boot-sav/nvme0n1p4 update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Found linux image: /boot/vmlinuz-6.5.0-15-generic
Found initrd image: /boot/initrd.img-6.5.0-15-generic
Found linux image: /boot/vmlinuz-6.5.0-14-generic
Found initrd image: /boot/initrd.img-6.5.0-14-generic
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi

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

Boot successfully repaired.

Locked-NVram detected. (Ubuntu) Please report this message to boot.repair@gmail.com
Please do not forget to make your UEFI firmware boot on the Ubuntu 22.04.3 LTS entry (nvme0n1p1/efi/ubuntu/grubx64.efi file) !

je ne suis pas certain qu ' il ait pu modifier correctement le demarrage , meme si il a effectivement recopier les données là ou il a dit .

Dernière modification par iznobe (Le 04/03/2024, à 17:47)


retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#19 Le 04/03/2024, à 17:44

geole

Re : [Résolu] Disparition d'ubuntu

Bonjour.
Je crois que boot-repair n est pas actualisé pour le problème

modprobe: FATAL: Module efivars not found in directory /lib/modules/5.15.0-76-generic

Dans certains environnements, il faut efivarfs


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

En ligne

#20 Le 05/03/2024, à 15:38

Jo et jo

Re : [Résolu] Disparition d'ubuntu

Merci beaucoup pour vos messages d'aides !
J'ai retenté une réparation avec boot-repair, même cette fois-ci avec l'opération de purge de grub avant de le réinstaller ! Et ça a fonctionné, le grub s'affiche avec comme choix ubuntu et windows (avec le disque dur en mode AHCI). Ubuntu fonctionne parfaitement, mais lorsque que je choisis de démarrer sur windows, écran noir, et je retombe sur le menu grub. C'est maintenant windows qui disparu, et malheureusement j'ai besoin de pouvoir booter sur windows à certaines occasion. Comment puis-je réparer cela ?
Faut-il que j'ouvre un nouveau sujet pour ce 'nouveau' problème ?

Hors ligne

#21 Le 05/03/2024, à 15:47

ylag

Re : [Résolu] Disparition d'ubuntu

Bonjour,

Sauf erreur de ma part, il faut que tu repasses en mode RAID dans le bios pour pouvoir lancer Windows ... ?

Sinon, faudrait voir la manip du message #17.
Par contre, aucune idée de la pertinence de la chose, n'ayant pas la possibilité de tester. Faudrait l'opinion des autres intervenants concernant la manip ...

A+

Dernière modification par ylag (Le 05/03/2024, à 15:51)

Hors ligne

#22 Le 05/03/2024, à 15:55

Jo et jo

Re : [Résolu] Disparition d'ubuntu

J'ai essayé de repasser en mode Raid, grub s'affichait mais ni plus windows, ni plus ubuntu ne fonctionnait.
Il y a t-il un moyen de savoir quel était le mode d'origine avant le problème ? (entre Raid et HCPI) ?

Hors ligne

#23 Le 05/03/2024, à 15:58

geole

Re : [Résolu] Disparition d'ubuntu

Pour résoudre le problème windows
1) Remettre le bios en RAID
2) Lancer windows.
3)  Enlever IRST si présent
4) Mettre windows en mode réparation
5) Remettre le bios en AHCI
6) Rebooter windows
7) Accepter les réparations
8 Remettre windows en mode normal
9) Rebooter windos pour vérifier que tout va bien.

Les commandes sont dans le paragraphe 7.1


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

En ligne

#24 Le 05/03/2024, à 16:48

Jo et jo

Re : [Résolu] Disparition d'ubuntu

Le problème est que en choisissant Raid je ne peux plus non plus accéder à windows, pas même sur la page de récupération/réparation. Après avoir sélectionné windows dans le grub, je tombe sur un écran noir quelques secondes, et je reviens au grub. Je ne peux donc pas suivre la procédure que vous me proposez geole... À moins qu'il y ai un détail que je n'ai pas saisi.

Hors ligne

#25 Le 05/03/2024, à 18:52

geole

Re : [Résolu] Disparition d'ubuntu

Lorsque le bios est positionné en RAID, on sait que  ubuntu ne peut pas fonctionner
Si tu dis que  windows  n est plus proposé, il est possible que le bios veuille  lancer  ubuntu    qui est probablement prioritaire
Peux-tu rebooter en live usb et  changer l ordre de boot pour mettre windows en premier, le temps de faire cette action.
D après  le boot-info on a

BootOrder: 0004,0002,0000
Boot0000* Windows Boot Manager	HD(1,GPT,4dc49547-7dfe-4122-af58-7f798225eee0,0x800,0x32000)/File(EFIMicrosoftBootbootmgfw.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.}...I................
Boot0002* UEFI: CT500P2SSD8, Partition 1	HD(1,GPT,4dc49547-7dfe-4122-af58-7f798225eee0,0x800,0x32000)/File(EFIMicrosoftBootbootmgfw.efi)..BO
Boot0004* UEFI:  USB, Partition 1	PciRoot(0x0)/Pci(0x14,0x0)/USB(16,0)/HD(1,MBR,0xb7e81,0x800,0x3956800)..BO

Donc tu frapperas cette commande
sudo efibootmgr -o 0000
et tu donneras ce retour pour la suite

sudo efibootmgr -v

Dernière modification par geole (Le 05/03/2024, à 18:53)


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

En ligne