#1 Le 11/05/2025, à 21:36
- Xavier35690
Ubuntu sur deux partitions ; forcer à booter sur la 2nde ? [Résolu]
Bonjour,
J'ai migré ce WE mon PC Windows vers Ubuntu et je me suis un peu emmêlé les pinceaux, débutant que je suis. Je vous explique.
Mon PC est équipé d'un disque HD 1T (sda) et d'un disque SSD 128G (sdb).
Pour migrer de Windows à Ubuntu, j'ai utilisé une clé USB de boot, mais j'ai répété l'opération deux fois, car je me suis rendu compte que dans ma première opération de migration, j'avais installé Ubuntu sur le HD alors que je voulais que ce soit sur le SSD. Donc résultat des courses, j'ai maintenant Ubuntu sur les deux partitions. Mais je reste sur mon idée de faire tourner Ubuntu sur le disque SSD, et de n'utiliser le disque HD que pour y stocker des données.
J'ai donc parcouru le forum à la recherche d'infos, et j'ai vu qu'on pouvait utiliser boot-info pour savoir sur quel Ubuntu mon PC était en train de tourner. Verdict : le disque HD :-(
fdisk -l (filtered): ___________________________________________________________
Disk sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 1F1042DC-E34D-4E9F-9464-49D633DF13F2
Start End Sectors Size Type
sda1 2048 2203647 2201600 1G EFI System
sda2 2203648 1953521663 1951318016 930.5G Linux filesystem
Disk sdb: 119.24 GiB, 128035676160 bytes, 250069680 sectors
Disk identifier: A32A5218-E1CE-41DE-AB7C-E77C015EB708
Start End Sectors Size Type
sdb1 2048 2203647 2201600 1G EFI System
sdb2 2203648 250066943 247863296 118.2G Linux filesystem
================================ 2 OS detected =================================
OS#1 (linux): L'OS actuellement utilisé - Ubuntu 24.04.2 LTS on sda2
OS#2 (linux): Ubuntu 24.04.2 LTS on sdb2
Ma question est donc la suivante : comment est-ce que je fais pour forcer mon PC à booter sur le disque SSD (sdb) ?
Merci pour votre aide :-)
Xavier
Dernière modification par Xavier35690 (Aujourd'hui à 18:14)
Hors ligne
#2 Le 11/05/2025, à 21:44
- geole
Re : Ubuntu sur deux partitions ; forcer à booter sur la 2nde ? [Résolu]
Bonsoir.
Fais un boot-info et publie l'url qui sera générée.
On y verra comment c'est installé. La rectification sera alors aisée.
Dernière modification par geole (Le 11/05/2025, à 21:45)
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
Hors ligne
#3 Le 11/05/2025, à 22:14
- Xavier35690
Re : Ubuntu sur deux partitions ; forcer à booter sur la 2nde ? [Résolu]
Voici l'info : https://paste.ubuntu.com/p/pXCB5bf4CC/
Hors ligne
#4 Le 11/05/2025, à 22:24
- xubu1957
Re : Ubuntu sur deux partitions ; forcer à booter sur la 2nde ? [Résolu]
Bonjour,
Collage du Boot-info :
boot-info-4ppa2081 [20250511_2209]
============================== Boot Info Summary ===============================
=> 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/fbx64.efi /efi/BOOT/mmx64.efi
/efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi
/efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg
sda2: __________________________________________________________________________
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
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/fbx64.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
================================ 2 OS detected =================================
OS#1 (linux): L'OS actuellement utilisé - Ubuntu 24.04.2 LTS on sda2
OS#2 (linux): Ubuntu 24.04.2 LTS on sdb2
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: HD Graphics 620 GM107M [GeForce GTX 950M] from Intel Corporation NVIDIA Corporation
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-6.11.0-25-generic root=UUID=ad0a55aa-1c96-40b2-a51f-a43ebc9979c8 ro quiet splash vt.handoff=7
df -Th / : /dev/sda2 ext4 915G 14G 856G 2% /
===================================== UEFI =====================================
BIOS/UEFI firmware: F.57(15.57) from Insyde
The firmware is EFI-compatible, and is set in EFI-mode for this installed-session.
SecureBoot enabled according to mokutil - Veuillez indiquer ce message à boot.repair@gmail.com.
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,3000,0002,2001,2002,2004
Boot0000* ubuntu HD(1,GPT,58b4fadb-ac27-49fe-9f60-bb91bfb8ba1c,0x800,0x219800)/File(\EFI\ubuntu\shimx64.efi) File(.䍒)
Boot0002* ubuntu HD(1,GPT,b0642e6f-4447-4ab3-bc60-4f3dcfea9677,0x800,0x219800)/File(\EFI\ubuntu\shimx64.efi) File(.䍒)
Boot2001* EFI USB Device RC
Boot3000* Internal Hard Disk or Solid State Disk RC
39bc76ff6662f4fbe9aa116e4c997b41 sdb1/BOOT/fbx64.efi
4ba5a5aad43c197e9fb58b76b404d287 sdb1/BOOT/mmx64.efi
94c7467f956700d44c5b4dcd3967535c sdb1/ubuntu/grubx64.efi
4ba5a5aad43c197e9fb58b76b404d287 sdb1/ubuntu/mmx64.efi
07e25dcaf57c776875f78fa36827c58e sdb1/ubuntu/shimx64.efi
07e25dcaf57c776875f78fa36827c58e sdb1/BOOT/BOOTX64.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): _________________________________________________________
sda2 : is-os, 64, apt-get, signed grub-efi , grub2, grub-install, grubenv-ok, update-grub, end-after-100GB
sdb2 : is-os, 64, apt-get, signed grub-efi , grub2, grub-install, grubenv-ok, update-grub, end-after-100GB
sdb1 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda1 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
Partitions info (2/3): _________________________________________________________
sda2 : isnotESP, fstab-has-bad-efi, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, ext4
sdb2 : isnotESP, fstab-has-bad-efi, 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
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
sdb2 : not--sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sdb
sdb1 : not--sepboot, no---boot, 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: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 1F1042DC-E34D-4E9F-9464-49D633DF13F2
Start End Sectors Size Type
sda1 2048 2203647 2201600 1G EFI System
sda2 2203648 1953521663 1951318016 930.5G Linux filesystem
Disk sdb: 119.24 GiB, 128035676160 bytes, 250069680 sectors
Disk identifier: A32A5218-E1CE-41DE-AB7C-E77C015EB708
Start End Sectors Size Type
sdb1 2048 2203647 2201600 1G EFI System
sdb2 2203648 250066943 247863296 118.2G Linux filesystem
parted -lm (filtered): _________________________________________________________
sda:1000GB:scsi:512:4096:gpt:ATA HGST HTS541010B7:;
1:1049kB:1128MB:1127MB:fat32::boot, esp;
2:1128MB:1000GB:999GB:ext4::;
sdb:128GB:scsi:512:4096:gpt:ATA SanDisk SD8SN8U-:;
1:1049kB:1128MB:1127MB:fat32::boot, esp;
2:1128MB:128GB:127GB:ext4::;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 vfat 104C-7081 58b4fadb-ac27-49fe-9f60-bb91bfb8ba1c
└─sda2 ext4 ad0a55aa-1c96-40b2-a51f-a43ebc9979c8 27abc9b7-597b-4f28-8dd2-d4decd746f12
sdb
├─sdb1 vfat 8AEC-A1E3 b0642e6f-4447-4ab3-bc60-4f3dcfea9677
└─sdb2 ext4 572eb5a9-329a-4348-a3cb-07fb99fe3485 86aa169c-9a1c-40ab-be3d-4c5c9bfe9e0b
Mount points (filtered): _______________________________________________________
Avail Use% Mounted on
/dev/sda2 855.2G 1% /
/dev/sdb1 1G 1% /mnt/boot-sav/sdb1
/dev/sdb2 98.5G 10% /mnt/boot-sav/sdb2
efivarfs 0 100% /sys/firmware/efi/efivars
Mount options (filtered): ______________________________________________________
/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
===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid ad0a55aa-1c96-40b2-a51f-a43ebc9979c8 root hd0,gpt2
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
====================== sda2/boot/grub/grub.cfg (filtered) ======================
Ubuntu ad0a55aa-1c96-40b2-a51f-a43ebc9979c8
Windows Boot Manager (on sdb1) osprober-efi-62F7-6FAD
### 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 curtin installation
/dev/disk/by-uuid/ad0a55aa-1c96-40b2-a51f-a43ebc9979c8 / ext4 defaults 0 1
# /boot/efi was on /dev/sda1 during curtin installation
/dev/disk/by-uuid/104C-7081 /boot/efi vfat defaults 0 1
/swap.img 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)
617,363185883 = 662,888673280 boot/grub/grub.cfg 1
5,471332550 = 5,874798592 boot/vmlinuz 1
5,471332550 = 5,874798592 boot/vmlinuz-6.11.0-25-generic 1
5,471332550 = 5,874798592 boot/vmlinuz.old 1
910,770706177 = 977,932599296 boot/initrd.img 1
910,284706116 = 977,410760704 boot/initrd.img-6.11.0-17-generic 1
910,770706177 = 977,932599296 boot/initrd.img-6.11.0-25-generic 1
910,770706177 = 977,932599296 boot/initrd.img.old 1
===================== 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 16:53 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 572eb5a9-329a-4348-a3cb-07fb99fe3485 root hd1,gpt2
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
====================== sdb2/boot/grub/grub.cfg (filtered) ======================
Ubuntu 572eb5a9-329a-4348-a3cb-07fb99fe3485
Ubuntu 24.04.2 LTS (24.04) (on sda2) ad0a55aa-1c96-40b2-a51f-a43ebc9979c8
### 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/sdb2 during curtin installation
/dev/disk/by-uuid/572eb5a9-329a-4348-a3cb-07fb99fe3485 / ext4 defaults 0 1
# /boot/efi was on /dev/sdb1 during curtin installation
/dev/disk/by-uuid/8AEC-A1E3 /boot/efi vfat defaults 0 1
/swap.img none swap sw 0 0
======================= sdb2/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=""
==================== sdb2: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
9,382278442 = 10,074144768 boot/grub/grub.cfg 1
14,190082550 = 15,236485120 boot/vmlinuz 1
14,190082550 = 15,236485120 boot/vmlinuz-6.11.0-25-generic 1
14,190082550 = 15,236485120 boot/vmlinuz.old 1
15,199214935 = 16,320032768 boot/initrd.img 4
7,519081116 = 8,073551872 boot/initrd.img-6.11.0-17-generic 1
15,199214935 = 16,320032768 boot/initrd.img-6.11.0-25-generic 4
15,199214935 = 16,320032768 boot/initrd.img.old 4
===================== 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 16:53 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
Suggested repair: ______________________________________________________________
The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed 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 L'OS actuellement utilisé - Ubuntu 24.04.2 LTS entry (sda1/efi/****/shim****.efi (**** will be updated in the final message) file) !
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
En ligne
#5 Le 11/05/2025, à 22:25
- geole
Re : Ubuntu sur deux partitions ; forcer à booter sur la 2nde ? [Résolu]
extraits du boot-info
parted -lm (filtered): _________________________________________________________
sda:1000GB:scsi:512:4096:gpt:ATA HGST HTS541010B7:;
1:1049kB:1128MB:1127MB:fat32::boot, esp
sdb:128GB:scsi:512:4096:gpt:ATA SanDisk SD8SN8U-:;
1:1049kB:1128MB:1127MB:fat32::boot, esp;
SDA est le disque dur et sdb le SSD
===================== sdb1/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid 572eb5a9-329a-4348-a3cb-07fb99fe3485 root hd1,gpt2
====================== sdb2/boot/grub/grub.cfg (filtered) ======================
Ubuntu 572eb5a9-329a-4348-a3cb-07fb99fe3485
Ubuntu 24.04.2 LTS (24.04) (on sda2) ad0a55aa-1c96-40b2-a51f-a43ebc9979c8
### END /etc/grub.d/30_os-prober ###
Le SSD a une bonne structure de boot
Fabrique l'entrée de boot avec cette commande.
sudo efibootmgr --create --disk /dev/sdb --part 1 --label "shimSDB" --loader "\EFI\ubuntu\shimx64.efi"
Dernière modification par geole (Le 11/05/2025, à 22:38)
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
Hors ligne
#6 Le 12/05/2025, à 22:04
- Xavier35690
Re : Ubuntu sur deux partitions ; forcer à booter sur la 2nde ? [Résolu]
Bonsoir,
Malheureusement la commande n'a pas suffi.
Voici d'abord le résultat de la commande :
xavier@xavier-HP-Pavilion-Notebook:~$ sudo efibootmgr --create --disk /dev/sdb --part 1 --label "shimSDB" --loader "\EFI\ubuntu\shimx64.efi"
[sudo] Mot de passe de xavier :
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0001,0000,3000,0002,2001,2002,2004
Boot0000* ubuntu HD(1,GPT,58b4fadb-ac27-49fe-9f60-bb91bfb8ba1c,0x800,0x219800)/File(\EFI\ubuntu\shimx64.efi) File(.䍒)
Boot0002* ubuntu HD(1,GPT,b0642e6f-4447-4ab3-bc60-4f3dcfea9677,0x800,0x219800)/File(\EFI\ubuntu\shimx64.efi) File(.䍒)
Boot2001* EFI USB Device RC
Boot3000* Internal Hard Disk or Solid State Disk RC
Boot0001* shimSDB HD(1,GPT,b0642e6f-4447-4ab3-bc60-4f3dcfea9677,0x800,0x219800)/File(\EFI\ubuntu\shimx64.efi)
xavier@xavier-HP-Pavilion-Notebook:~$
Mais une fois le PC rebooté, le résultat du boot-info est toujours le même :
================================ 2 OS detected =================================
OS#1 (linux): L'OS actuellement utilisé - Ubuntu 24.04.2 LTS on sda2
OS#2 (linux): Ubuntu 24.04.2 LTS on sdb2
Est-ce que j'ai loupé qqc ?
Merci d'avance pour votre aide.
Xavier
Hors ligne
#7 Le 12/05/2025, à 22:15
- geole
Re : Ubuntu sur deux partitions ; forcer à booter sur la 2nde ? [Résolu]
Bonsoir.
C'est plutôt moi qui a raté quelque chose.
Refais un boot-info.
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
Hors ligne
#8 Hier à 01:15
Hors ligne
#9 Hier à 06:52
- Xavier35690
Re : Ubuntu sur deux partitions ; forcer à booter sur la 2nde ? [Résolu]
Bonjour,
Voici le nouveau boot-info : https://paste.ubuntu.com/p/gcvwqBP9yd/
Bonne journée.
Xavier
Hors ligne
#10 Hier à 07:11
- xubu1957
Re : Ubuntu sur deux partitions ; forcer à booter sur la 2nde ? [Résolu]
Bonjour,
Collage du second Boot-info :
boot-info-4ppa2081 [20250513_0646]
============================== Boot Info Summary ===============================
=> 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/fbx64.efi /efi/BOOT/mmx64.efi
/efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi
/efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg
sda2: __________________________________________________________________________
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
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/fbx64.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
================================ 2 OS detected =================================
OS#1 (linux): L'OS actuellement utilisé - Ubuntu 24.04.2 LTS on sda2
OS#2 (linux): Ubuntu 24.04.2 LTS on sdb2
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: HD Graphics 620 GM107M [GeForce GTX 950M] from Intel Corporation NVIDIA Corporation
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-6.11.0-25-generic root=UUID=ad0a55aa-1c96-40b2-a51f-a43ebc9979c8 ro quiet splash vt.handoff=7
df -Th / : /dev/sda2 ext4 915G 14G 855G 2% /
===================================== UEFI =====================================
BIOS/UEFI firmware: F.57(15.57) from Insyde
The firmware is EFI-compatible, and is set in EFI-mode for this installed-session.
SecureBoot enabled according to mokutil - Veuillez indiquer ce message à boot.repair@gmail.com.
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,3000,0001,2001,2002,2004
Boot0000* ubuntu HD(1,GPT,58b4fadb-ac27-49fe-9f60-bb91bfb8ba1c,0x800,0x219800)/File(\EFI\ubuntu\shimx64.efi) File(.䍒)
Boot0001* ubuntu HD(1,GPT,b0642e6f-4447-4ab3-bc60-4f3dcfea9677,0x800,0x219800)/File(\EFI\ubuntu\shimx64.efi) File(.䍒)
Boot2001* EFI USB Device RC
Boot3000* Internal Hard Disk or Solid State Disk RC
39bc76ff6662f4fbe9aa116e4c997b41 sdb1/BOOT/fbx64.efi
4ba5a5aad43c197e9fb58b76b404d287 sdb1/BOOT/mmx64.efi
94c7467f956700d44c5b4dcd3967535c sdb1/ubuntu/grubx64.efi
4ba5a5aad43c197e9fb58b76b404d287 sdb1/ubuntu/mmx64.efi
07e25dcaf57c776875f78fa36827c58e sdb1/ubuntu/shimx64.efi
07e25dcaf57c776875f78fa36827c58e sdb1/BOOT/BOOTX64.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): _________________________________________________________
sda2 : is-os, 64, apt-get, signed grub-efi , grub2, grub-install, grubenv-ok, update-grub, end-after-100GB
sdb2 : is-os, 64, apt-get, signed grub-efi , grub2, grub-install, grubenv-ok, update-grub, end-after-100GB
sdb1 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda1 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
Partitions info (2/3): _________________________________________________________
sda2 : isnotESP, fstab-has-bad-efi, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, ext4
sdb2 : isnotESP, fstab-has-bad-efi, 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
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
sdb2 : not--sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sdb
sdb1 : not--sepboot, no---boot, 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: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 1F1042DC-E34D-4E9F-9464-49D633DF13F2
Start End Sectors Size Type
sda1 2048 2203647 2201600 1G EFI System
sda2 2203648 1953521663 1951318016 930.5G Linux filesystem
Disk sdb: 119.24 GiB, 128035676160 bytes, 250069680 sectors
Disk identifier: A32A5218-E1CE-41DE-AB7C-E77C015EB708
Start End Sectors Size Type
sdb1 2048 2203647 2201600 1G EFI System
sdb2 2203648 250066943 247863296 118.2G Linux filesystem
parted -lm (filtered): _________________________________________________________
sda:1000GB:scsi:512:4096:gpt:ATA HGST HTS541010B7:;
1:1049kB:1128MB:1127MB:fat32::boot, esp;
2:1128MB:1000GB:999GB:ext4::;
sdb:128GB:scsi:512:4096:gpt:ATA SanDisk SD8SN8U-:;
1:1049kB:1128MB:1127MB:fat32::boot, esp;
2:1128MB:128GB:127GB:ext4::;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 vfat 104C-7081 58b4fadb-ac27-49fe-9f60-bb91bfb8ba1c
└─sda2 ext4 ad0a55aa-1c96-40b2-a51f-a43ebc9979c8 27abc9b7-597b-4f28-8dd2-d4decd746f12
sdb
├─sdb1 vfat 8AEC-A1E3 b0642e6f-4447-4ab3-bc60-4f3dcfea9677
└─sdb2 ext4 572eb5a9-329a-4348-a3cb-07fb99fe3485 86aa169c-9a1c-40ab-be3d-4c5c9bfe9e0b
Mount points (filtered): _______________________________________________________
Avail Use% Mounted on
/dev/sda2 854.9G 1% /
/dev/sdb1 1G 1% /mnt/boot-sav/sdb1
/dev/sdb2 98.5G 10% /mnt/boot-sav/sdb2
efivarfs 20.7K 80% /sys/firmware/efi/efivars
Mount options (filtered): ______________________________________________________
/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
===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid ad0a55aa-1c96-40b2-a51f-a43ebc9979c8 root hd0,gpt2
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
====================== sda2/boot/grub/grub.cfg (filtered) ======================
Ubuntu ad0a55aa-1c96-40b2-a51f-a43ebc9979c8
Windows Boot Manager (on sdb1) osprober-efi-62F7-6FAD
### 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 curtin installation
/dev/disk/by-uuid/ad0a55aa-1c96-40b2-a51f-a43ebc9979c8 / ext4 defaults 0 1
# /boot/efi was on /dev/sda1 during curtin installation
/dev/disk/by-uuid/104C-7081 /boot/efi vfat defaults 0 1
/swap.img 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)
617,363185883 = 662,888673280 boot/grub/grub.cfg 1
5,471332550 = 5,874798592 boot/vmlinuz 1
5,471332550 = 5,874798592 boot/vmlinuz-6.11.0-25-generic 1
5,471332550 = 5,874798592 boot/vmlinuz.old 1
910,770706177 = 977,932599296 boot/initrd.img 1
910,284706116 = 977,410760704 boot/initrd.img-6.11.0-17-generic 1
910,770706177 = 977,932599296 boot/initrd.img-6.11.0-25-generic 1
910,770706177 = 977,932599296 boot/initrd.img.old 1
===================== 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 16:53 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 572eb5a9-329a-4348-a3cb-07fb99fe3485 root hd1,gpt2
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
====================== sdb2/boot/grub/grub.cfg (filtered) ======================
Ubuntu 572eb5a9-329a-4348-a3cb-07fb99fe3485
Ubuntu 24.04.2 LTS (24.04) (on sda2) ad0a55aa-1c96-40b2-a51f-a43ebc9979c8
### 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/sdb2 during curtin installation
/dev/disk/by-uuid/572eb5a9-329a-4348-a3cb-07fb99fe3485 / ext4 defaults 0 1
# /boot/efi was on /dev/sdb1 during curtin installation
/dev/disk/by-uuid/8AEC-A1E3 /boot/efi vfat defaults 0 1
/swap.img none swap sw 0 0
======================= sdb2/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=""
==================== sdb2: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
9,382278442 = 10,074144768 boot/grub/grub.cfg 1
14,190082550 = 15,236485120 boot/vmlinuz 1
14,190082550 = 15,236485120 boot/vmlinuz-6.11.0-25-generic 1
14,190082550 = 15,236485120 boot/vmlinuz.old 1
15,199214935 = 16,320032768 boot/initrd.img 4
7,519081116 = 8,073551872 boot/initrd.img-6.11.0-17-generic 1
15,199214935 = 16,320032768 boot/initrd.img-6.11.0-25-generic 4
15,199214935 = 16,320032768 boot/initrd.img.old 4
===================== 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 16:53 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
Suggested repair: ______________________________________________________________
The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed 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 L'OS actuellement utilisé - Ubuntu 24.04.2 LTS entry (sda1/efi/****/shim****.efi (**** will be updated in the final message) file) !
Lecture conseillée mémento des balises code.
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
En ligne
#11 Hier à 09:32
- iznobe
Re : Ubuntu sur deux partitions ; forcer à booter sur la 2nde ? [Résolu]
Bonjour , @geole ,
ne suffit il pas de faire un " sudo efibbotmgr -o " ? en choisissant la bonne entrée ?
@Xavier35690 , montre
efiboomgr
BootOrder: 0000,3000,0001,2001,2002,2004 Boot0000* ubuntu HD(1,GPT,58b4fadb-ac27-49fe-9f60-bb91bfb8ba1c,0x800,0x219800)/File(\EFI\ubuntu\shimx64.efi) File(.䍒) Boot0001* ubuntu HD(1,GPT,b0642e6f-4447-4ab3-bc60-4f3dcfea9677,0x800,0x219800)/File(\EFI\ubuntu\shimx64.efi) File(.䍒) Boot2001* EFI USB Device RC Boot3000* Internal Hard Disk or Solid State Disk RC
il suffit de de metrte l ' entrée adequate en demarrage :
sudo efibootmgr -o 1,0,2001,3000
Puis d' " installer " la structure de boot dans le ssd une fois demarré dessus si elle ne l' est pas deja .
A priori , ca me parait ok , vu :
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/fbx64.efi /efi/BOOT/mmx64.efi /efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi /efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg
Dernière modification par iznobe (Hier à 09:36)
retour COMPLET et utilisable de commande | script montage partitions
MSI Z490A-pro , i7 10700 , 32 GB RAM .
Hors ligne
#12 Hier à 10:56
- geole
Re : Ubuntu sur deux partitions ; forcer à booter sur la 2nde ? [Résolu]
il suffit de de mettre l 'entrée adéquate en démarrage :
sudo efibootmgr -o 1,0,2001,3000
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
Hors ligne
#13 Hier à 13:48
- Xavier35690
Re : Ubuntu sur deux partitions ; forcer à booter sur la 2nde ? [Résolu]
Bonjour @geole et @iznobe,
Est-ce que vous voulez bien me résumer votre nouvelle recommandation ?
Merci
Hors ligne
#14 Hier à 13:50
- geole
Re : Ubuntu sur deux partitions ; forcer à booter sur la 2nde ? [Résolu]
Bonjour
Boote avec le ubuntu installé puis fais un copier/coller de cette commande
sudo efibootmgr -o 1,0
Puis reboote
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
Hors ligne
#15 Hier à 22:49
- Xavier35690
Re : Ubuntu sur deux partitions ; forcer à booter sur la 2nde ? [Résolu]
Bonsoir à tous,
Malheureusement la commande conseillée n'y a rien changé.
Voici ce que la commande m'a affiché :
xavier@xavier-HP-Pavilion-Notebook:~$ sudo efibootmgr -o 1,0[
sudo] Mot de passe de xavier :
BootCurrent: 0000Timeout: 0 seconds
BootOrder: 0001,0000
Boot0000* ubuntu HD(1,GPT,58b4fadb-ac27-49fe-9f60-bb91bfb8ba1c,0x800,0x219800)/File(\EFI\ubuntu\shimx64.efi) File(.䍒)
Boot0001* ubuntu HD(1,GPT,b0642e6f-4447-4ab3-bc60-4f3dcfea9677,0x800,0x219800)/File(\EFI\ubuntu\shimx64.efi) File(.䍒)
Boot2001* EFI USB Device RC
Boot3000* Internal Hard Disk or Solid State Disk RC
J'ai ensuite rebooté le PC, et le boot-info m'a alors affiché l'info que l'OS utilisé était toujours sur sda2 (le hard disk).
Voici le nouveau boot-info : https://paste.ubuntu.com/p/vFgzH6CMzk/
Hors ligne
#16 Aujourd'hui à 09:50
- geole
Re : Ubuntu sur deux partitions ; forcer à booter sur la 2nde ? [Résolu]
Bonjour
Manifestement, le bios de ton ordinateur se moque de la commande boot-order.
Tu as forcé à 1, c est redevenu 0
Donc, il faut que tu ailles dans le bios et que tu y règles cet ordre de boot. Au besoin, fait des photos que tu posteras.
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
Hors ligne
#17 Aujourd'hui à 18:10
- Xavier35690
Re : Ubuntu sur deux partitions ; forcer à booter sur la 2nde ? [Résolu]
Problème résolu !
Il y avait effectivement dans mon BIOS un sous-menu qui m'avait jusqu'alors échappé, qui me permettait de choisir l'ordre de préférence entre les deux disques.
Ca marche maintenant !
Merci pour votre aide !
Hors ligne