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 30/10/2022, à 11:40

Azz01

[Résolu] No Bootable device

Bonjour,

J'ai réalisée une installation complète par défaut depuis une clé USB bootable Ubuntu 22.04.1.
Malheureusement lorsque je redémare mon ordinateur j'obtient l'erreur "No bootable device".
Néanmoin je boot correctement lorsque que j'utilise le gestionnaire d'amorçage qui lui me detecte correctement mon ubuntu.

J'ai tenté t'utiliser boot repair.
Il détecte bien mes deux partitions (créé par default pendant l'installation)
    * dev/sda1, partition EFI, FAT32
    * dev/sda2, partition ubuntu

durant l'execution de boot-repair j'obtient une erreur :

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "/usr/bin/glade2script-python3", line 4450, in run
    sortie = str(sb.stdout.readline(), encoding='utf-8', errors='strict').rstrip()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 39: invalid start byte

L'execution de boot-repair n'as pas résolue mon problème.

Voici le rapport fait par boot-repair:

boot-repair-4ppa200                                              [20221030_0858]

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






Recommended repair: ____________________________________________________________

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


rm /mnt/boot-sav/sda1/efi/Boot/bootx64.efi
mv /mnt/boot-sav/sda1/efi/Boot/bkpbootx64.efi /mnt/boot-sav/sda1/efi/Boot/bootx64.efi
Mount sda1 on /mnt/boot-sav/sda2/boot/efi

======================== Reinstall the grub-efi of sda2 ========================

chroot /mnt/boot-sav/sda2 grub-install --version
grub-install (GRUB) 2.06-2ubuntu7
chroot /mnt/boot-sav/sda2 modprobe efivars

chroot /mnt/boot-sav/sda2 efibootmgr -v before grub install
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 3001,3002,2001,2002,2003
Boot0001* ubuntu    HD(1,GPT,d344e50e-4761-4c24-9248-b41c357cf84e,0x800,0x100000)/File(EFIubuntushimx64.efi)
Boot0002* Ubuntu    HD(1,GPT,d344e50e-4761-4c24-9248-b41c357cf84e,0x800,0x100000)/File(EFIubuntugrubx64.efi)RC
Boot0003* Disque dur USB -         USB DISK Pro    BBS(7,
Boot0004* Disque dur USB (UEFI) - USB DISK Pro    PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(1,0)/HD(2,GPT,9240a165-d190-4ab6-8a12-46dc207b42ee,0x71e8a0,0x2130)RC
Boot2001* USB Drive (UEFI)    RC
Boot2002* Internal CD/DVD ROM Drive (UEFI)    RC
Boot3001* Internal Hard Disk    RC
Boot3002* Internal Hard Disk    RC

chroot /mnt/boot-sav/sda2 uname -r
5.15.0-43-generic

chroot /mnt/boot-sav/sda2 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/sda1
mv /mnt/boot-sav/sda2/boot/efi/EFI/Boot/bootx64.efi /mnt/boot-sav/sda2/boot/efi/EFI/Boot/bkpbootx64.efi
cp /mnt/boot-sav/sda2/boot/efi/efi/ubuntu/grubx64.efi /mnt/boot-sav/sda2/boot/efi/EFI/Boot/bootx64.efi

chroot /mnt/boot-sav/sda2 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/sda2 efibootmgr -v after grub install
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 3001,3002,2001,2002,2003
Boot0001* ubuntu    HD(1,GPT,d344e50e-4761-4c24-9248-b41c357cf84e,0x800,0x100000)/File(EFIubuntushimx64.efi)
Boot0002* Ubuntu    HD(1,GPT,d344e50e-4761-4c24-9248-b41c357cf84e,0x800,0x100000)/File(EFIubuntugrubx64.efi)RC
Boot0003* Disque dur USB -         USB DISK Pro    BBS(7,
Boot0004* Disque dur USB (UEFI) - USB DISK Pro    PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(1,0)/HD(2,GPT,9240a165-d190-4ab6-8a12-46dc207b42ee,0x71e8a0,0x2130)RC
Boot2001* USB Drive (UEFI)    RC
Boot2002* Internal CD/DVD ROM Drive (UEFI)    RC
Boot3001* Internal Hard Disk    RC
Boot3002* Internal Hard Disk    RC
Warning: NVram was not modified.

chroot /mnt/boot-sav/sda2 update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-52-generic
Found initrd image: /boot/initrd.img-5.15.0-52-generic
Found linux image: /boot/vmlinuz-5.15.0-43-generic
Found initrd image: /boot/initrd.img-5.15.0-43-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
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.

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

Le démarrage de l'ordinateur a été correctement réparé.

Vous pouvez maintenant redémarrer votre ordinateur.
N'oubliez pas de faire démarrer votre firmware UEFI sur l'entrée Ubuntu 22.04.1 LTS (fichier sda1/efi/ubuntu/grubx64.efi) !


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

 => No boot loader is installed in the MBR of /dev/sda.

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/bkpbootx64.efi /efi/BOOT/bootx64.efi
                       /efi/BOOT/fbx64.efi /efi/BOOT/mmx64.efi
                       /efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi
                       /efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg

sda2: __________________________________________________________________________

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

sdb: ___________________________________________________________________________

    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
                       sdb 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/sdb: /dev/sdb déjà monté ou point de montage actif.


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

OS#1:   Ubuntu 22.04.1 LTS on sda2

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

CPU architecture: 64-bit
Video: Thames [Radeon HD 7500M/7600M Series] 3rd Gen Core processor Graphics Controller from Advanced Micro Devices, Inc. [AMD/ATI] Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 22.04.1 LTS, jammy, x86_64)

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

BIOS/UEFI firmware: F.25(15.37) from Insyde
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled - SecureBoot disabled
Platform is in Setup Mode - Veuillez indiquer ce message à boot.repair@gmail.com.
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 3001,3002,2001,2002,2003
Boot0000* Disque dur portable    BBS(HD,ÿ,0x500)................-.].......].A.]........................................
Boot0001* ubuntu    HD(1,GPT,d344e50e-4761-4c24-9248-b41c357cf84e,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
Boot0002* Ubuntu    HD(1,GPT,d344e50e-4761-4c24-9248-b41c357cf84e,0x800,0x100000)/File(\EFI\ubuntu\grubx64.efi)RC
Boot0003* Disque dur USB -         USB DISK Pro    BBS(7,
ÿ,0x500).......................................................................
Boot0004* Disque dur USB (UEFI) - USB DISK Pro    PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(1,0)/HD(2,GPT,9240a165-d190-4ab6-8a12-46dc207b42ee,0x71e8a0,0x2130)RC
Boot2001* USB Drive (UEFI)    RC
Boot2002* Internal CD/DVD ROM Drive (UEFI)    RC
Boot3001* Internal Hard Disk    RC
Boot3002* Internal Hard Disk    RC

728124f6ec8e22fbdbe7034812c81b95   sda1/BOOT/bkpbootx64.efi
728124f6ec8e22fbdbe7034812c81b95   sda1/BOOT/bootx64.efi
c152ec201c37b6e97bbc2207e49d1271   sda1/BOOT/fbx64.efi
fdafb5eece6caeccb788c946a28e6872   sda1/BOOT/mmx64.efi
f62c28d9b477b6a1a7b1c991b2b6637d   sda1/ubuntu/grubx64.efi
fdafb5eece6caeccb788c946a28e6872   sda1/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95   sda1/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

Partitions info (1/3): _________________________________________________________

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

Partitions info (2/3): _________________________________________________________

sda1    : is---ESP,    part-has-no-fstab,    no-nt,    no-winload,    no-recov-nor-hid,    no-bmgr,    notwinboot
sda2    : isnotESP,    fstab-has-goodEFI,    no-nt,    no-winload,    no-recov-nor-hid,    no-bmgr,    notwinboot

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,    with-boot,    fstab-without-boot,    not-sep-usr,    with--usr,    fstab-without-usr,    std-grub.d,    sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 64E016A8-C9F7-4E0B-8C72-C9A9E3331B21
        Start       End   Sectors  Size Type
sda1     2048   1050623   1048576  512M EFI System
sda2  1050624 178268159 177217536 84.5G Linux filesystem
Disk sdb: 3.6 GiB, 3869245440 bytes, 7557120 sectors
Disk identifier: 9240A165-D190-4AB6-8A10-46DC207B42EE
        Start     End Sectors  Size Type
sdb1       64 7465119 7465056  3.6G Microsoft basic data
sdb2  7465120 7473615    8496  4.1M EFI System
sdb3  7473616 7474215     600  300K Microsoft basic data

parted -lm (filtered): _________________________________________________________

sda:1000GB:scsi:512:512:gpt:ATA Samsung SSD 870:;
1:1049kB:538MB:537MB:fat32:EFI System Partition:boot, esp;
2:538MB:91.3GB:90.7GB:ext4::;
sdb:3869MB:scsi:512:512:gpt: USB DISK Pro:;
1:32.8kB:3822MB:3822MB::ISO9660:hidden, msftdata;
2:3822MB:3826MB:4350kB::Appended2:boot, esp;
3:3826MB:3827MB:307kB::Gap1:hidden, msftdata;

Free space >10MiB: ______________________________________________________________

sda: 87045MiB:953870MiB:866825MiB
sdb: 3650MiB:3690MiB:40.4MiB

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL                    PARTLABEL
sda                                                                                                                
├─sda1 vfat     9E11-89BE                            d344e50e-4761-4c24-9248-b41c357cf84e                          EFI System Partition
└─sda2 ext4     3bfcdf07-4766-48d0-893b-70de6e149702 265c2133-8460-44d1-819a-94a154cb15d8                          
sdb    iso9660  2022-08-10-16-21-45-00                                                    Ubuntu 22.04.1 LTS amd64
├─sdb1 iso9660  2022-08-10-16-21-45-00               9240a165-d190-4ab6-8a11-46dc207b42ee Ubuntu 22.04.1 LTS amd64 ISO9660
├─sdb2 vfat     8D6C-A9F8                            9240a165-d190-4ab6-8a12-46dc207b42ee ESP                      Appended2
└─sdb3                                               9240a165-d190-4ab6-8a13-46dc207b42ee                          Gap1

Mount points (filtered): _______________________________________________________

                        Avail Use% Mounted on
/dev/sda1              504.8M   1% /mnt/boot-sav/sda1
/dev/sda2               65.2G  15% /mnt/boot-sav/sda2
/dev/sdb1                   0 100% /cdrom

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              iso9660         ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8

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

search.fs_uuid 3bfcdf07-4766-48d0-893b-70de6e149702 root hd0,gpt2
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

Ubuntu   3bfcdf07-4766-48d0-893b-70de6e149702
Ubuntu, with Linux 5.15.0-52-generic   3bfcdf07-4766-48d0-893b-70de6e149702
Ubuntu, with Linux 5.15.0-43-generic   3bfcdf07-4766-48d0-893b-70de6e149702
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

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

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=3bfcdf07-4766-48d0-893b-70de6e149702 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=9E11-89BE  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

======================= sda2/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

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

           GiB - GB             File                                 Fragment(s)
            ?? = ??             boot/grub/grub.cfg                             1
   9,618160248 = 10,327420928   boot/vmlinuz                                   2
   9,320674896 = 10,007998464   boot/vmlinuz-5.15.0-43-generic                 2
   9,618160248 = 10,327420928   boot/vmlinuz-5.15.0-52-generic                 2
   9,320674896 = 10,007998464   boot/vmlinuz.old                               2
  16,661525726 = 17,890177024   boot/initrd.img                                3
  14,348129272 = 15,406186496   boot/initrd.img-5.15.0-43-generic              1
  16,661525726 = 17,890177024   boot/initrd.img-5.15.0-52-generic              3
  14,348129272 = 15,406186496   boot/initrd.img.old                            1

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

-rwxr-xr-x 1 root root 18683 Apr 15  2022 10_linux
-rwxr-xr-x 1 root root 43031 Apr 15  2022 10_linux_zfs
-rwxr-xr-x 1 root root 14180 Apr 15  2022 20_linux_xen
-rwxr-xr-x 1 root root 13369 Apr 15  2022 30_os-prober
-rwxr-xr-x 1 root root  1372 Apr 15  2022 30_uefi-firmware
-rwxr-xr-x 1 root root   700 Feb 19  2022 35_fwupd
-rwxr-xr-x 1 root root   214 Apr 15  2022 40_custom
-rwxr-xr-x 1 root root   215 Apr 15  2022 41_custom

=========================== sda2/etc/grub.d/35_fwupd ===========================

#! /bin/sh
# SPDX-License-Identifier: LGPL-2.1+
set -e
[ -d ${pkgdatadir:?} ]
# shellcheck source=/dev/null
. "$pkgdatadir/grub-mkconfig_lib"
if [ -f /var/lib/fwupd/uefi_capsule.conf ] &&
   ls /sys/firmware/efi/efivars/fwupd-*-0abba7dc-e516-4167-bbf5-4d9d1c739416 1>/dev/null 2>&1; then
      . /var/lib/fwupd/uefi_capsule.conf
      if [ "${EFI_PATH}" != "" ] && [ "${ESP}" != "" ]; then
      echo "Adding Linux Firmware Updater entry" >&2
cat << EOF
menuentry 'Linux Firmware Updater' \$menuentry_id_option 'fwupd' {
EOF
      ${grub_probe:?}
      prepare_grub_to_access_device '`${grub_probe} --target=device \${ESP}` | sed -e "s/^/\t/"'
cat << EOF
    chainloader ${EFI_PATH}
}
EOF
      fi
fi

Merci d'avance.

Dernière modification par Azz01 (Le 31/10/2022, à 21:56)

Hors ligne

#2 Le 30/10/2022, à 12:10

geole

Re : [Résolu] No Bootable device

Bonjour.
Il semble que ubuntu soit bien installé,
Le message voudrait donc dire que le fichier de boot de windows n'a pas été trouvé.
il  suffirait de le créer et d'y tranférer le fichier de boot de ubuntu.
Comme tu as trouvé le moyen de faire booter ubuntu, cela peut se faire depuis le ubuntu installé,
Commandes données depuis un ipad donc risque d'erreur

sudo -i
mkdir  -pv /boot/efi/EFI/Microsoft/Boot
cp -v /boot/efi/EFI/ubuntu/grubx64.efi   /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi 
exit

Nota.
Boot-repair répare pour les ordinateurs réglés pour  booter par défaut sur le boot standard

cp /mnt/boot-sav/sda2/boot/efi/efi/ubuntu/grubx64.efi /mnt/boot-sav/sda2/boot/efi/EFI/Boot/bootx64.efi

mais pas sur windows. En effet, si windows n'est pas présent, Boot-refair ne le fabrique pas.

Dernière modification par geole (Le 30/10/2022, à 12:19)


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 31/10/2022, à 12:52

Azz01

Re : [Résolu] No Bootable device

merci pour votre réponse,
J'ai effectuée les commandes, cela n'as rien changée.

Par contre je n'ai pas bien compris votre solution: Je n'ai pas de dual boot, et de windows installé sur mon ordinateur, pourquoi celui-ci essayerai de booter sur windows ?

Hors ligne

#4 Le 31/10/2022, à 13:06

geole

Re : [Résolu] No Bootable device

Bonjour.
Après la réparation, la structue de boot EFI contient la description de ubuntu sauf qu'il n'a pas été installé de  pointeur dedans.

BootOrder: 3001,3002,2001,2002,2003
Boot0001* ubuntu    HD(1,GPT,d344e50e-4761-4c24-9248-b41c357cf84e,0x800,0x100000)/File(EFIubuntushimx64.efi)
Boot0002* Ubuntu    HD(1,GPT,d344e50e-4761-4c24-9248-b41c357cf84e,0x800,0x100000)/File(EFIubuntugrubx64.efi)RC

Donc le bios ne s'en sert pas.
Comme boot-repair a créé le fichier  de boot standard, j'ai pensé au fichier de boot de windows car, il peut arriver que même si windows est absent, ce fichier soit nécessaire.

A tout hasard, regarde dans le bios s'il n'est pas prévu un boot légacy mis prioritaire.

Dernière modification par geole (Le 31/10/2022, à 13:07)


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 31/10/2022, à 21:54

Azz01

Re : [Résolu] No Bootable device

Merci, c'était bien une option dans le BIOS à changer !

J'ai dut désactiver une option "Mainteance du système existant" qui, d'après sa déscription, servait à booter des vieux OS (>= Windows 7)
Mon boot fonctionne correctement smile cool

Hors ligne