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 22/07/2025, à 16:59

picardmigne

Boot sur sda2 (HDD), et non sda1(SDD) après grub rescue et boot-repair

Bonjour,
J'ai un ensemble installé d'un SDD Crucial de 120 Go et un HDD de 1To.

Jusqu'à il y a peu, le système (Xubuntu 24.04) était correctement installé sur le SDD, qui s'identifiait comme sda1 et sda2.
Le HDD contenait mes Documents

Il y a un mois environ, j'ai obtenu, au démarrage l'invite grub rescue>

J'ai pas mal panouillé...

J'ai pu démarrer un USB live, avec Xubuntu 24.04, qui m'a permis de constater que mon SDD semblait intact et contenait toujours mon système.

L'ordre du Boot était bouleversé. Et surtout, le SDD ne portait plus d'étiquette UEFI...

J'ai continué à panouiller, et fini par demander une réinstallation de Xubuntu depuis le USD live.

Et cette réinstallation s'est faite sur le HDD (sdb....)

Toujours pas moyen de relancer depuis sda !

J'ai relancé boot-repair depuis le USB live.
Voici le résumé :

boot-repair-4ppa2081                                              [20250722_1336]

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





modprobe: FATAL: Module efivars not found in directory /lib/modules/6.11.0-17-generic

Recommended repair: ____________________________________________________________

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


/boot/efi added in sdb2/fstab
Mount /dev/sdb1 on /mnt/boot-sav/sdb2/boot/efi

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

=============== Reinstall the grub-efi-amd64-signed of /dev/sdb2 ===============

chroot /mnt/boot-sav/sdb2 grub-install --version
grub-install (GRUB) 2.12-1ubuntu7.3
modprobe: FATAL: Module efivars not found in directory /lib/modules/6.11.0-17-generic
chroot /mnt/boot-sav/sdb2 modprobe efivars

chroot /mnt/boot-sav/sdb2 efibootmgr -v (filtered) before grub install
EFI variables are not supported on this system.
error trace:


chroot /mnt/boot-sav/sdb2 uname -r
6.11.0-17-generic

chroot /mnt/boot-sav/sdb2 grub-install --efi-directory=/boot/efi --target=x86_64-efi --uefi-secure-boot
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.
cp /mnt/boot-sav/sdb2/boot/efi/efi/ubuntu/shimx64.efi /mnt/boot-sav/sda1/EFI/ubuntu/shimx64.efi
cp /mnt/boot-sav/sdb2/boot/efi/efi/ubuntu/grubx64.efi /mnt/boot-sav/sda1/EFI/ubuntu/
df /dev/sdb1
mv /mnt/boot-sav/sdb2/boot/efi/EFI/Boot/bootx64.efi /mnt/boot-sav/sdb2/boot/efi/EFI/Boot/bkpbootx64.efi
cp /mnt/boot-sav/sdb2/boot/efi/efi/ubuntu/shimx64.efi /mnt/boot-sav/sdb2/boot/efi/EFI/Boot/bootx64.efi
cp /mnt/boot-sav/sdb2/boot/efi/efi/ubuntu/grubx64.efi /mnt/boot-sav/sdb2/boot/efi/EFI/Boot/
df /dev/sda1
touch /mnt/boot-sav/sda1/EFI/Boot/bootx64.efi.grb
cp /mnt/boot-sav/sdb2/boot/efi/efi/ubuntu/shimx64.efi /mnt/boot-sav/sda1/EFI/Boot/bootx64.efi
cp /mnt/boot-sav/sdb2/boot/efi/efi/ubuntu/grubx64.efi /mnt/boot-sav/sda1/EFI/Boot/

chroot /mnt/boot-sav/sdb2 grub-install --efi-directory=/boot/efi --target=x86_64-efi --uefi-secure-boot
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/sdb2 efibootmgr -v (filtered) after grub install
EFI variables are not supported on this system.
error trace:

Warning: NVram is locked (Ubuntu not found in efibootmgr).

chroot /mnt/boot-sav/sdb2 update-grub
Sourcing file `/etc/default/grub'
Found linux image: /boot/vmlinuz-6.11.0-29-generic
Found initrd image: /boot/initrd.img-6.11.0-29-generic
Found memtest86+ 64bit EFI image: /boot/memtest86+x64.efi
Found Ubuntu 24.04.2 LTS (24.04) on /dev/sda2
Adding boot menu entry for UEFI Firmware Settings ...

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

Boot successfully repaired.

Locked-NVram detected. Please do not forget to make your UEFI firmware boot on the Ubuntu 24.04.2 LTS entry (sdb1/efi/ubuntu/shimx64.efi file) !
Please disable SecureBoot in the BIOS. Then try again.


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

 => No boot loader is installed in the MBR of /dev/sda.
 => No boot loader 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:        /efi/Boot/bootx64.efi /efi/Boot/grubx64.efi 
                       /efi/ubuntu/grubx64.efi /efi/ubuntu/shimx64.efi

sda2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 24.04.2 LTS
    Boot files:        /etc/default/grub

sdb1: __________________________________________________________________________

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

sdb2: __________________________________________________________________________

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

sdc: ___________________________________________________________________________

    File system:       iso9660
    Boot sector type:  Grub2 (v1.99-2.00)
    Boot sector info:  Grub2 (v1.99-2.00) is installed in the boot sector of 
                       sdc and looks at sector 0 of the same hard drive for 
                       core.img, but core.img can not be found at this 
                       location.
    Mounting failed:   mount: /mnt/BootInfo/FD/sdc: /dev/sdc already mounted or mount point busy.
       dmesg(1) may have more information after failed mount system call.


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

OS#1 (linux):   Ubuntu 24.04.2 LTS on sda2
OS#2 (linux):   Ubuntu 24.04.2 LTS on sdb2

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

CPU architecture: 64-bit
Video: Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller from Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 24.04.2 LTS, noble, x86_64)

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

BIOS/UEFI firmware: 0704(4.6) from American Megatrends Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
No EFI in dmseg.
SecureBoot enabled according to mokutil - Please report this message to boot.repair@gmail.com.
BootCurrent: 0007
Timeout: 1 seconds
BootOrder: 0007,0002,0000,0004,0005,0006,0001
Boot0000* Ubuntu	HD(1,GPT,8a8eefcc-7e2b-40f0-9f6c-4b435d3b3d2f,0x800,0x219800)/File(\EFI\ubuntu\shimx64.efi)
Boot0001* Hard Drive 	BBS(HD,,0x0)0000474f00004e4fa7000000010000006f0053005400310030003000300044004d003000300033002d0031004300480031003600320000000501090002000000007fff040002010c00d041030a0000000001010600021f03120a000500ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce62000200020002000200020002000200020002000200020003100530047004400310043004500430000007fff04000000424f00004e4f91000000010000006300200055005300420020004400490053004b00200033002e00300000000501090002000000007fff040002010c00d041030a0000000001010600001d0305060001000305060006007fff040001043000ef47642dc93ba041ac194d51d01b4ce6200055005300420020004400490053004b00200033002e00300000007fff04000000424f
Boot0002* CD/DVD Drive 	BBS(CDROM,,0x0)0000474f00004e4fb3000000010000006f00540053005300540063006f007200700020004300440044005600440057002000530048002d003200320034004400420000000501090003000000007fff040002010c00d041030a0000000001010600021f03120a000000ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce639005200450033003800360044004100300043004700310043005a0020002000200020002000200000007fff04000000424f
Boot0004* UEFI OS	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0005* ubuntu	HD(1,GPT,8a8eefcc-7e2b-40f0-9f6c-4b435d3b3d2f,0x800,0x219800)/File(\EFI\Ubuntu\grubx64.efi)
Boot0006* UEFI OS	HD(1,GPT,8a8eefcc-7e2b-40f0-9f6c-4b435d3b3d2f,0x800,0x219800)/File(\EFI\BOOT\BOOTX64.EFI)
Boot0007* UEFI:  USB DISK 3.0	PciRoot(0x0)/Pci(0x1d,0x0)/USB(1,0)/USB(6,0)/HD(2,GPT,3371e5be-a283-4ead-91a8-20cdb37172af,0x7e4750,0x27a0)0000424f

07e25dcaf57c776875f78fa36827c58e   sda1/Boot/bootx64.efi (is grub)
94c7467f956700d44c5b4dcd3967535c   sda1/Boot/grubx64.efi
94c7467f956700d44c5b4dcd3967535c   sda1/ubuntu/grubx64.efi
07e25dcaf57c776875f78fa36827c58e   sda1/ubuntu/shimx64.efi
07e25dcaf57c776875f78fa36827c58e   sdb1/BOOT/bkpbootx64.efi
07e25dcaf57c776875f78fa36827c58e   sdb1/BOOT/bootx64.efi
39bc76ff6662f4fbe9aa116e4c997b41   sdb1/BOOT/fbx64.efi
94c7467f956700d44c5b4dcd3967535c   sdb1/BOOT/grubx64.efi
4ba5a5aad43c197e9fb58b76b404d287   sdb1/BOOT/mmx64.efi
94c7467f956700d44c5b4dcd3967535c   sdb1/ubuntu/grubx64.efi
4ba5a5aad43c197e9fb58b76b404d287   sdb1/ubuntu/mmx64.efi
07e25dcaf57c776875f78fa36827c58e   sdb1/ubuntu/shimx64.efi

============================= 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	: is-GPT,	no-BIOSboot,	has---ESP, 	not-usb,	not-mmc, has-os,	no-wind,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

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

Partitions info (2/3): _________________________________________________________

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

Partitions info (3/3): _________________________________________________________

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

fdisk -l (filtered): ___________________________________________________________

Disk sda: 111.79 GiB, 120034123776 bytes, 234441648 sectors
Disk identifier: 22A7A68E-4179-43CF-A5A4-635CD1DEF5B9
       Start       End   Sectors   Size Type
sda1     2048   2203647   2201600     1G EFI System
sda2  2203648 234438655 232235008 110.7G Linux filesystem
Disk sdb: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 968BA7DB-E887-4EE8-91E4-9AA921F77490
       Start        End    Sectors   Size Type
sdb1     2048    2203647    2201600     1G EFI System
sdb2  2203648 1953521663 1951318016 930.5G Linux filesystem
Disk sdc: 29.48 GiB, 31658606592 bytes, 61833216 sectors
Disk identifier: 3371E5BE-A283-4EAD-91AA-20CDB37172AF
       Start      End  Sectors  Size Type
sdc1       64  8275791  8275728  3.9G Microsoft basic data
sdc2  8275792  8285935    10144    5M EFI System
sdc3  8285936  8286535      600  300K Microsoft basic data
sdc4  8290304 61831167 53540864 25.5G Linux filesystem

parted -lm (filtered): _________________________________________________________

sda:120GB:scsi:512:4096:gpt:ATA Crucial_CT120M50:;
1:1049kB:1128MB:1127MB:fat32::boot, esp;
2:1128MB:120GB:119GB:ext4::;
sdb:1000GB:scsi:512:4096:gpt:ATA ST1000DM003-1CH1:;
1:1049kB:1128MB:1127MB:fat32::boot, esp;
2:1128MB:1000GB:999GB:ext4::;
sdc:31.7GB:scsi:512:512:gpt: USB DISK 3.0:;
1:32.8kB:4237MB:4237MB::ISO9660:hidden, msftdata;
2:4237MB:4242MB:5194kB::Appended2:boot, esp;
3:4242MB:4243MB:307kB::Gap1:hidden, msftdata;
4:4245MB:31.7GB:27.4GB:ext4::;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL                     PARTLABEL
sda                                                                                                                 
├─sda1 vfat     E14A-A38A                            e3cfbe3b-b1a7-4819-b8b5-e3de8011dea4                           
└─sda2 ext4     b78270f1-5596-436d-b5a4-af9f48beb083 b1986442-a208-4bcd-9361-3797dcd7fc3a                           
sdb                                                                                                                 
├─sdb1 vfat     E102-ACDA                            8a8eefcc-7e2b-40f0-9f6c-4b435d3b3d2f                           
└─sdb2 ext4     524fe61c-b2af-4c3f-a93f-4214cc2d2722 a4e455df-aea2-4240-8efc-a22ffcdab365                           
sdc    iso9660  2025-02-15-11-22-20-00                                                    Xubuntu 24.04.2 LTS amd64 
├─sdc1 iso9660  2025-02-15-11-22-20-00               3371e5be-a283-4ead-91ab-20cdb37172af Xubuntu 24.04.2 LTS amd64 ISO9660
├─sdc2 vfat     B5A5-8010                            3371e5be-a283-4ead-91a8-20cdb37172af ESP                       Appended2
├─sdc3                                               3371e5be-a283-4ead-91a9-20cdb37172af                           Gap1
└─sdc4 ext4     707a88eb-147c-4ae5-b8af-10487aeb5538 0d3c8449-5404-480c-8b64-e7cc9ea479c3 writable                  

Mount points (filtered): _______________________________________________________

                                                               Avail Use% Mounted on
/dev/sda1                                                         1G   1% /mnt/boot-sav/sda1
/dev/sda2                                                        98G   4% /mnt/boot-sav/sda2
/dev/sdb1                                                         1G   1% /mnt/boot-sav/sdb1
/dev/sdb2                                                     857.7G   1% /mnt/boot-sav/sdb2
/dev/sdc1                                                          0 100% /cdrom
efivarfs                                                       59.2K  50% /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                                                     vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sdb2                                                     ext4            rw,relatime
/dev/sdc1                                                     iso9660         ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8

======================= 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: ls -l /etc/grub.d/ (filtered) ======================

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

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

search.fs_uuid 524fe61c-b2af-4c3f-a93f-4214cc2d2722 root hd1,gpt2 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

Ubuntu   524fe61c-b2af-4c3f-a93f-4214cc2d2722
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

========================== sdb2/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdc2 during curtin installation
/dev/disk/by-uuid/524fe61c-b2af-4c3f-a93f-4214cc2d2722 / ext4 defaults 0 1
# /boot/efi was on /dev/sdc1 during curtin installation
/swap.img	none	swap	sw	0	0
UUID=E102-ACDA  /boot/efi       vfat    defaults      0       1

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

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

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

           GiB - GB             File                                 Fragment(s)
  69.184597015 = 74.286395392   boot/grub/grub.cfg                             1
 729.979137421 = 783.809130496  boot/vmlinuz                                   1
 729.979137421 = 783.809130496  boot/vmlinuz-6.11.0-29-generic                 1
 729.979137421 = 783.809130496  boot/vmlinuz.old                               1
 736.024017334 = 790.299770880  boot/initrd.img                                1
 736.024017334 = 790.299770880  boot/initrd.img-6.11.0-29-generic              1
 736.024017334 = 790.299770880  boot/initrd.img.old                            1

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

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

Quelqu'un a-t'il une aide à me proposer ?
Merci d'avance

Hors ligne

#2 Le 22/07/2025, à 19:13

geole

Re : Boot sur sda2 (HDD), et non sda1(SDD) après grub rescue et boot-repair

Bonjour

================================ 2 OS detected =================================
OS#1 (linux):   Ubuntu 24.04.2 LTS on sda2
OS#2 (linux):   Ubuntu 24.04.2 LTS on sdb2

parted -lm (filtered): _________________________________________________________
sda:120GB:scsi:512:4096:gpt:ATA Crucial_CT120M50:;
sdb:1000GB:scsi:512:4096:gpt:ATA ST1000DM003-1CH1:;

BootOrder: 0007,0002,0000,0004,0005,0006,0001
Boot0000* Ubuntu	HD(1,GPT,8a8eefcc-7e2b-40f0-9f6c-4b435d3b3d2f,0x800,0x219800)/File(\EFI\ubuntu\shimx64.efi)

sdb1 vfat     E102-ACDA                            8a8eefcc-7e2b-40f0-9f6c-4b435d3b3d2f   

Cela ne ne semble pas grave que le ubuntu du disque dur se lance depuis la partition ESP du disque dur. Bien au contraire.

Mais cela serait mieux que tu utilises le ubuntu du SSD.
Pour cela lance boot-repair et dis-lui de réparer le ubuntu du SSD en lui demandant d'utiliser la partition ESP du SSD.


Nota. Je ne comprends pas pourquoi le grub du disque dur ne te propose pas de booter le UBUNTU du SSD. Donne ce retour

sudo update-grub

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 22/07/2025, à 21:54

picardmigne

Re : Boot sur sda2 (HDD), et non sda1(SDD) après grub rescue et boot-repair

Voilà :

sudo update-grub
[sudo] Mot de passe de denis : 
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.11.0-29-generic
Found initrd image: /boot/initrd.img-6.11.0-29-generic
Found memtest86+ 64bit EFI image: /boot/memtest86+x64.efi
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
done

Hors ligne

#4 Le 23/07/2025, à 10:45

geole

Re : Boot sur sda2 (HDD), et non sda1(SDD) après grub rescue et boot-repair

Bonjour

cela serait mieux que tu utilises le ubuntu du SSD.
Pour cela, lance boot-repair et dis-lui d’installer le grub  dans le ubuntu du SSD car il n’y en a plus et tu demandes d’utiliser la partition ESP du SSD.


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

#5 Le 23/07/2025, à 14:05

picardmigne

Re : Boot sur sda2 (HDD), et non sda1(SDD) après grub rescue et boot-repair

J'ai donc lancé le boot-repair, en changeant pour sda et en cochant la case reinstall kernel, puisqu'elle semble permettre la refonte du boot.
Il y a trois heures, et ça tourne toujours...

Dernière modification par picardmigne (Le 23/07/2025, à 14:06)

Hors ligne

#6 Le 23/07/2025, à 15:39

picardmigne

Re : Boot sur sda2 (HDD), et non sda1(SDD) après grub rescue et boot-repair

Au bout de 5 h, il a fini. Mais pour réinstaller le boot, il a besoin d'un repository co,tenant le package grub-efi-amd-signed à mettre dans les sources de mon Ubuntu... sur sda2, alors que je fonctionne en live USB ?

Dernière modification par picardmigne (Le 23/07/2025, à 15:58)

Hors ligne

#7 Le 23/07/2025, à 16:48

geole

Re : Boot sur sda2 (HDD), et non sda1(SDD) après grub rescue et boot-repair

Pas compris.....


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

#8 Le 23/07/2025, à 17:19

picardmigne

Re : Boot sur sda2 (HDD), et non sda1(SDD) après grub rescue et boot-repair

J'ai lancé boot-repair depuis une session en live USB.
Il a fonctionné, jusqu'à me demander : Please enable a repository containing [grub-efi-amd64-signed] packages in the software sourcesof Ubuntu 24.04.2 LTS (/dev/sda2). Then try again
Et il ouvre Software & Updates...
Je ne sais pas indiquer un ppa, et surtout je ne vois pas comment le placer dans les sources de logiciels sur sda2. Je sais où trouver une piste...: grub-efi-amd64-signed

Hors ligne

#9 Le 23/07/2025, à 17:23

geole

Re : Boot sur sda2 (HDD), et non sda1(SDD) après grub rescue et boot-repair

Cela me dépasse un peu.
A quel niveau est ton support d'installation?

lsb_release -a 

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

#10 Le 23/07/2025, à 19:42

picardmigne

Re : Boot sur sda2 (HDD), et non sda1(SDD) après grub rescue et boot-repair

lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.2 LTS
Release:	24.04
Codename:	noble

Hors ligne

#11 Le 24/07/2025, à 10:56

geole

Re : Boot sur sda2 (HDD), et non sda1(SDD) après grub rescue et boot-repair

Bonjour.
En regardant mieux le boot-info, je constate que, en plus du répertoire /boot, il manque aussi le fichier fstab dans le ubuntu du SSD. Il se pourrait qu’il manque aussi autre vu le message de bootRepair.

Dans ces conditions, je pense qu’une réinstallation avec formatage serait préférable. Choisir l’option installation manuelle afin de pouvoir imposer ton choix.

Dernière modification par geole (Le 24/07/2025, à 10:57)


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