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 26/11/2022, à 17:25

3D2Y

Dual boot windows-ubuntu - Ubunut qui ne se lance plus

Bonjour à tous merci aux personnes qui lirons mon message

N'ayant plus assez de place sur ma partition Ubuntu j'ai décidé de lui alloué de la mémoire en en retirant de ma partition windows via gparted grâce à une usb-live
Cela à bien fonctionné, mais un soir en redémarrant mon pc je suis tombé sur le grub-rescue et depuis impossible de lancé Ubuntu (windows se lance correctement quand je quitte le grub-rescue)

J'ai alors tenté d'utilisé boot-repair > recommended repair (via ma live-usb). J'ai eu le message suivant :

Veuillez activer un dépôt contenant les paquets [grub-efi] dans les sources de logiciels de Ubuntu 18.04.6 LTS (nvme0n1p6). Puis réessayez

J'ai aussi tenté les commandes suivant :

sudo fdisk -l

Ce qui m'a renvoyé :

Disque /dev/loop0 : 2,2 GiB, 2356125696 octets, 4601808 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets


Disque /dev/loop1 : 4 KiB, 4096 octets, 8 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets


Disque /dev/loop2 : 61,98 MiB, 64966656 octets, 126888 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets


Disque /dev/loop3 : 346,3 MiB, 363118592 octets, 709216 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets


Disque /dev/loop4 : 46,98 MiB, 49242112 octets, 96176 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets


Disque /dev/loop5 : 54,24 MiB, 56872960 octets, 111080 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets


Disque /dev/loop6 : 91,7 MiB, 96141312 octets, 187776 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets


Disque /dev/nvme0n1 : 238,49 GiB, 256060514304 octets, 500118192 secteurs
Disk model: WDC PC SN520 SDAPNUW-256G-1002          
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : gpt
Identifiant de disque : 629E0F09-23EF-4A45-B83B-DACF0BBE4075

Périphérique       Début       Fin  Secteurs Taille Type
/dev/nvme0n1p1      2048    534527    532480   260M Système EFI
/dev/nvme0n1p2    534528    567295     32768    16M Réservé Microsoft
/dev/nvme0n1p3    567296 351834111 351266816 167,5G Données de base Microsoft
/dev/nvme0n1p4 498479104 500117503   1638400   800M Environnement de récupératio
/dev/nvme0n1p5 351838208 362969087  11130880   5,3G Partition d'échange Linux
/dev/nvme0n1p6 362969088 498479103 135510016  64,6G Système de fichiers Linux

Les entrées de la table de partitions ne sont pas dans l'ordre du disque.


Disque /dev/sdb : 7,22 GiB, 7751073792 octets, 15138816 secteurs
Disk model: DataTraveler 3.0
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : dos
Identifiant de disque : 0x0038200a

Périphérique Amorçage Début      Fin Secteurs Taille Id Type
/dev/sdb1    *         2048 15138815 15136768   7,2G  c W95 FAT32 (LBA)

Puis :

sudo mount /dev/nvme0n1p6 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt 

Mais au moment du

sudo chroot /mnt

j'ai eu cette erreur :

chroot: impossible d'exécuter la commande «/bin/bash»: Aucun fichier ou dossier de ce type

J'ai ensuite fait un boot-info voici le lien

Est-ce que quelqu'un aurai une idée de ce que je pourrai faire pour parvenir à relancer ubuntu ?

Merci pour vos réponses

Dernière modification par 3D2Y (Le 26/11/2022, à 17:27)

Hors ligne

#2 Le 26/11/2022, à 17:58

lucmars

Re : Dual boot windows-ubuntu - Ubunut qui ne se lance plus

Le boot-info

boot-repair-4ppa200                                              [20221126_1514]

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

 => No boot loader is installed in the MBR of /dev/nvme0n1.
 => Syslinux MBR (5.00 and higher) is installed in the MBR of /dev/sdb.

nvme0n1p1: _____________________________________________________________________

    File system:       vfat
    Boot sector type:  Windows 8/10/11/2012: FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

nvme0n1p2: _____________________________________________________________________

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

nvme0n1p3: _____________________________________________________________________

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

nvme0n1p4: _____________________________________________________________________

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

nvme0n1p5: _____________________________________________________________________

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

nvme0n1p6: _____________________________________________________________________

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

sdb1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  SYSLINUX 6.04 20191223.............................................N....2....0............A20 gate n
    Boot sector info:  Syslinux looks at sector 13392592 of /dev/sdb1 for 
                       its second stage. SYSLINUX is installed in the  
                       directory. The integrity check of the ADV area failed. 
                       No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /boot/grub/grub.cfg /syslinux.cfg 
                       /efi/BOOT/grubx64.efi /efi/BOOT/mmx64.efi /ldlinux.sys


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

OS#1:   Windows 10 or 11 on nvme0n1p3

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

CPU architecture: 64-bit
Video: UHD Graphics 620 (Whiskey Lake) from Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 20.04.5 LTS, focal, x86_64)

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

BIOS/UEFI firmware: UX333FA.309(5.13) from American Megatrends Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled - SecureBoot disabled - Veuillez indiquer ce message à boot.repair@gmail.com.
BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0000,0002,0003,0004
Boot0000* ubuntu	HD(1,GPT,c45f87cd-8c03-404e-a4a1-4b23bc3a6a4f,0x800,0x82000)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0002* Windows Boot Manager	HD(1,GPT,c45f87cd-8c03-404e-a4a1-4b23bc3a6a4f,0x800,0x82000)/File(\EFI\UBUNTU\GRUBX64.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.}....`...............
Boot0003* Windows Boot Manager	HD(1,GPT,c45f87cd-8c03-404e-a4a1-4b23bc3a6a4f,0x800,0x82000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)..BO
Boot0004* UEFI: KingstonDataTraveler 3.0PMAP, Partition 1	PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(1,MBR,0x38200a,0x800,0xe6f800)..BO

bfd3f5550a8a28a1021abe2b838e3b6a   sdb1/BOOT/grubx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84   sdb1/BOOT/mmx64.efi
78415fb8fb9b909f8029858113f1335f   sdb1/BOOT/BOOTx64.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
sdb	: notGPT,	no-BIOSboot,	has---ESP, 	liveusb,	not-mmc, no-os,	no-wind,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

nvme0n1p1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
nvme0n1p3	: is-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
nvme0n1p4	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
nvme0n1p6	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdb1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far

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,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	no-bmgr,	notwinboot
nvme0n1p6	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb1	: is---ESP,	part-has-no-fstab,	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,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	nvme0n1
nvme0n1p6	: maybesepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	nvme0n1
sdb1	: not--sepboot,	no-kernel,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sdb

fdisk -l (filtered): ___________________________________________________________

Disk nvme0n1: 238.49 GiB, 256060514304 bytes, 500118192 sectors
Disk identifier: 629E0F09-23EF-4A45-B83B-DACF0BBE4075
              Start       End   Sectors   Size Type
nvme0n1p1      2048    534527    532480   260M EFI System
nvme0n1p2    534528    567295     32768    16M Microsoft reserved
nvme0n1p3    567296 351834111 351266816 167.5G Microsoft basic data
nvme0n1p4 498479104 500117503   1638400   800M Windows recovery environment
nvme0n1p5 351838208 362969087  11130880   5.3G Linux swap
nvme0n1p6 362969088 498479103 135510016  64.6G Linux filesystem
Partition table entries are not in disk order.
Disk sdb: 7.22 GiB, 7751073792 bytes, 15138816 sectors
Disk identifier: 0x0038200a
      Boot Start      End  Sectors  Size Id Type
sdb1  *     2048 15138815 15136768  7.2G  c W95 FAT32 (LBA)

parted -lm (filtered): _________________________________________________________

sdb:7751MB:scsi:512:512:msdos:Kingston DataTraveler 3.0:;
1:1049kB:7751MB:7750MB:fat32::boot, lba;
nvme0n1:256GB:nvme:512:512:gpt:WDC PC SN520 SDAPNUW-256G-1002:;
1:1049kB:274MB:273MB:fat32:EFI system partition:boot, esp;
2:274MB:290MB:16.8MB::Microsoft reserved partition:msftres;
3:290MB:180GB:180GB:ntfs:Basic data partition:msftdata;
5:180GB:186GB:5699MB:linux-swap(v1)::swap;
6:186GB:255GB:69.4GB:ext4::;
4:255GB:256GB:839MB:ntfs::hidden, diag;

blkid (filtered): ______________________________________________________________

NAME        FSTYPE   UUID                                 PARTUUID                             LABEL    PARTLABEL
sdb                                                                                                     
└─sdb1      vfat     7297-CC4E                            0038200a-01                          CDROM    
nvme0n1                                                                                                 
├─nvme0n1p1 vfat     54A8-226E                            c45f87cd-8c03-404e-a4a1-4b23bc3a6a4f SYSTEM   EFI system partition
├─nvme0n1p2                                               c8c01131-ecf2-47a9-b415-9cbf00118fc5          Microsoft reserved partition
├─nvme0n1p3 ntfs     E6F6A9EFF6A9BFE3                     ff9cf74c-61a0-4c84-a8c0-048d3165c661 OS       Basic data partition
├─nvme0n1p4 ntfs     4C20722B20721BE0                     4bf79726-1869-4016-b867-f91570bb6382 RECOVERY Basic data partition
├─nvme0n1p5 swap     e1dcf11b-6557-41bb-8133-2aa15a704e89 52e694b4-5eae-4fe8-8cee-dc9dc0a9533c          
└─nvme0n1p6 ext4     ab0606bf-e537-4296-84d2-623507ca05eb 6270795f-d011-4338-912c-e91b176e564b          

Mount points (filtered): _______________________________________________________

                        Avail Use% Mounted on
/dev/nvme0n1p3          24.1G  86% /mnt/boot-sav/nvme0n1p3
/dev/nvme0n1p4          17.1G  68% /mnt/boot-sav/nvme0n1p4
/dev/nvme0n1p6          17.1G  68% /mnt
devpts                   3.7G   0% /dev/pts
/dev/sda1                3.5G  52% /cdrom
/dev/sdb1                3.5G  52% /media/ubuntu/CDROM
hugetlbfs                3.7G   0% /dev/hugepages
mqueue                   3.7G   0% /dev/mqueue
nsfs[mnt:[4026532774]] 774.4M   0% /run/snapd/ns/snap-store.mnt

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         ro,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/nvme0n1p4         fuseblk         ro,relatime,user_id=0,group_id=0,allow_other,blksize=4096
/dev/nvme0n1p6         ext4            rw,relatime
/dev/nvme0n1p6         ext4            rw,relatime
/dev/sda1              vfat            ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sdb1              vfat            rw,nosuid,nodev,relatime,uid=999,gid=999,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro

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

Ubuntu   ab0606bf-e537-4296-84d2-623507ca05eb
Windows Boot Manager (sur nvme0n1p1)   osprober-efi-54A8-226E
### END /etc/grub.d/30_os-prober_proxy ###
Ubuntu, avec Linux 5.4.0-121-generic   ab0606bf-e537-4296-84d2-623507ca05eb
Ubuntu, avec Linux 5.4.0-120-generic   ab0606bf-e537-4296-84d2-623507ca05eb
System setup   uefi-firmware

======================== nvme0n1p6/etc/fstab (filtered) ========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/nvme0n1p6 during installation
UUID=ab0606bf-e537-4296-84d2-623507ca05eb /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=54A8-226E  /boot/efi       vfat    umask=0077      0       1
# swap was on /dev/nvme0n1p5 during installation
UUID=e1dcf11b-6557-41bb-8133-2aa15a704e89 none            swap    sw              0       0

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

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

           GiB - GB             File                                 Fragment(s)
 215,814838409 = 231,729418240  boot/grub/grub.cfg                             3
 204,313926697 = 219,380408320  boot/vmlinuz-5.4.0-120-generic                 2
 210,095176697 = 225,587978240  boot/vmlinuz-5.4.0-121-generic                 2
 210,095176697 = 225,587978240  vmlinuz                                        2
 204,313926697 = 219,380408320  vmlinuz.old                                    2
 212,773139954 = 228,463419392  boot/initrd.img-5.4.0-120-generic             12
 205,716827393 = 220,886761472  boot/initrd.img-5.4.0-121-generic             14
 205,716827393 = 220,886761472  initrd.img                                    14
 212,773139954 = 228,463419392  initrd.img.old                                12

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

-rwxr-xr-x 1 root root 12808 Jan  7  2021 10_linux.dpkg-dist
-rwxr-xr-x 1 root root   474 Oct 17  2019 10_linux_proxy
-rwxr-xr-x 1 root root   203 Oct 17  2019 30_os-prober_proxy
-rwxr-xr-x 1 root root   474 Oct 17  2019 31_linux_proxy
-rwxr-xr-x 1 root root 11298 Mar 18  2019 32_linux_xen
-rwxr-xr-x 1 root root  1992 Jan 28  2016 33_memtest86+
-rwxr-xr-x 1 root root   203 Oct 17  2019 34_os-prober_proxy
-rwxr-xr-x 1 root root  1418 Mar 18  2019 35_uefi-firmware
-rwxr-xr-x 1 root root   214 Mar 18  2019 40_custom
-rwxr-xr-x 1 root root   216 Mar 18  2019 41_custom
drwxr-xr-x 4 root root  4096 Oct 17  2019 backup
drwxr-xr-x 2 root root  4096 Oct 17  2019 bin
drwxr-xr-x 2 root root  4096 Oct 17  2019 proxifiedScripts

===================== nvme0n1p6/etc/grub.d/31_linux_proxy ======================

#!/bin/sh
#THIS IS A GRUB PROXY SCRIPT
'/etc/grub.d/proxifiedScripts/linux' | /etc/grub.d/bin/grubcfg_proxy "-*
-#text
-'Ubuntu'~988f37acffe82f388f3ff901d9c7d5d8~
+'SUBMENU' as 'Options avancées pour Ubuntu'{+'Options avancées pour Ubuntu'/*, +'Options avancées pour Ubuntu'/'Ubuntu, avec Linux 5.0.0-23-generic'~c01e85a90eb23789dad0ee49a6617988~, +'Options avancées pour Ubuntu'/'Ubuntu, with Linux 5.0.0-23-generic (recovery mode)'~d6488ba5b3d295a0a903aca7a1846bfe~}
"

====================== nvme0n1p6/etc/grub.d/32_linux_xen =======================

#! /bin/sh
set -e
# grub-mkconfig helper script.
# Copyright (C) 2006,2007,2008,2009,2010  Free Software Foundation, Inc.
#
# GRUB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GRUB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
prefix="/usr"
exec_prefix="/usr"
datarootdir="/usr/share"
. "$pkgdatadir/grub-mkconfig_lib"
export TEXTDOMAIN=grub
export TEXTDOMAINDIR="${datarootdir}/locale"
CLASS="--class gnu-linux --class gnu --class os --class xen"
SUPPORTED_INITS="sysvinit:/lib/sysvinit/init systemd:/lib/systemd/systemd upstart:/sbin/upstart"
if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
  OS=GNU/Linux
else
  OS="${GRUB_DISTRIBUTOR} GNU/Linux"
  CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
fi
# loop-AES arranges things so that /dev/loop/X can be our root device, but
# the initrds that Linux uses don't like that.
case ${GRUB_DEVICE} in
  /dev/loop/*|/dev/loop[0-9])
    GRUB_DEVICE=`losetup ${GRUB_DEVICE} | sed -e "s/^[^(]*(\([^)]\+\)).*/\1/"`
    # We can't cope with devices loop-mounted from files here.
    case ${GRUB_DEVICE} in
      /dev/*) ;;
      *) exit 0 ;;
    esac
  ;;
esac
# btrfs may reside on multiple devices. We cannot pass them as value of root= parameter
# and mounting btrfs requires user space scanning, so force UUID in this case.
if [ "x${GRUB_DEVICE_UUID}" = "x" ] || [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ] \
    || ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" \
    || ( test -e "${GRUB_DEVICE}" && uses_abstraction "${GRUB_DEVICE}" lvm ); then
  LINUX_ROOT_DEVICE=${GRUB_DEVICE}
else
  LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}
fi
# Allow overriding GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT.
if [ "${GRUB_CMDLINE_LINUX_XEN_REPLACE}" ]; then
  GRUB_CMDLINE_LINUX="${GRUB_CMDLINE_LINUX_XEN_REPLACE}"
fi
if [ "${GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT}" ]; then
  GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT}"
fi
case x"$GRUB_FS" in
    xbtrfs)
	rootsubvol="`make_system_path_relative_to_its_root /`"
	rootsubvol="${rootsubvol#/}"
	if [ "x${rootsubvol}" != x ]; then
	    GRUB_CMDLINE_LINUX="rootflags=subvol=${rootsubvol} ${GRUB_CMDLINE_LINUX}"
	fi;;
    xzfs)
	rpool=`${grub_probe} --device ${GRUB_DEVICE} --target=fs_label 2>/dev/null || true`
	bootfs="`make_system_path_relative_to_its_root / | sed -e "s,@$,,"`"
	LINUX_ROOT_DEVICE="ZFS=${rpool}${bootfs}"
	;;
esac
title_correction_code=
linux_entry ()
{
  os="$1"
  version="$2"
  xen_version="$3"
  type="$4"
  args="$5"
  xen_args="$6"
  if [ -z "$boot_device_id" ]; then
      boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
  fi
  if [ x$type != xsimple ] ; then
      if [ x$type = xrecovery ] ; then
	  title="$(gettext_printf "%s, with Xen %s and Linux %s (%s)" "${os}" "${xen_version}" "${version}" "$(gettext "${GRUB_RECOVERY_TITLE}")")"
      elif [ "${type#init-}" != "$type" ] ; then
	  title="$(gettext_printf "%s, with Xen %s and Linux %s (%s)" "${os}" "${xen_version}" "${version}" "${type#init-}")"
      else
	  title="$(gettext_printf "%s, with Xen %s and Linux %s" "${os}" "${xen_version}" "${version}")"
      fi
      replacement_title="$(echo "Advanced options for ${OS}" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g')"
      if [ x"Xen ${xen_version}>$title" = x"$GRUB_ACTUAL_DEFAULT" ]; then
         quoted="$(echo "$GRUB_ACTUAL_DEFAULT" | grub_quote)"
         title_correction_code="${title_correction_code}if [ \"x\$default\" = '$quoted' ]; then default='$(echo "$replacement_title" | grub_quote)'; fi;"
         grub_warn "$(gettext_printf "Please don't use old title \`%s' for GRUB_DEFAULT, use \`%s' (for versions before 2.00) or \`%s' (for 2.00 or later)" "$GRUB_ACTUAL_DEFAULT" "$replacement_title" "gnulinux-advanced-$boot_device_id>gnulinux-$version-$type-$boot_device_id")"
      fi
      echo "menuentry '$(echo "$title" | grub_quote)' ${CLASS} \$menuentry_id_option 'xen-gnulinux-$version-$type-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
  else
      title="$(gettext_printf "%s, with Xen hypervisor" "${os}")"
      echo "menuentry '$(echo "$title" | grub_quote)' ${CLASS} \$menuentry_id_option 'xen-gnulinux-simple-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
  fi
  if [ x$type != xrecovery ] ; then
      save_default_entry | grub_add_tab | sed "s/^/$submenu_indentation/"
  fi
  if [ -z "${prepare_boot_cache}" ]; then
    prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | grub_add_tab)"
  fi
  printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/"
  xmessage="$(gettext_printf "Loading Xen %s ..." ${xen_version})"
  lmessage="$(gettext_printf "Loading Linux %s ..." ${version})"
  sed "s/^/$submenu_indentation/" << EOF
	echo	'$(echo "$xmessage" | grub_quote)'
        if [ "\$grub_platform" = "pc" -o "\$grub_platform" = "" ]; then
            xen_rm_opts=
        else
            xen_rm_opts="no-real-mode edd=off"
        fi
	multiboot	${rel_xen_dirname}/${xen_basename} placeholder ${xen_args} \${xen_rm_opts}
	echo	'$(echo "$lmessage" | grub_quote)'
	module	${rel_dirname}/${basename} placeholder root=${linux_root_device_thisversion} ro ${args}
EOF
  if test -n "${initrd}" ; then
    # TRANSLATORS: ramdisk isn't identifier. Should be translated.
    message="$(gettext_printf "Loading initial ramdisk ...")"
    sed "s/^/$submenu_indentation/" << EOF
	echo	'$(echo "$message" | grub_quote)'
	module	--nounzip   ${rel_dirname}/${initrd}
EOF
  fi
  sed "s/^/$submenu_indentation/" << EOF
}
EOF
}
linux_list=
for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* /boot/kernel-*; do
    if grub_file_is_not_garbage "$i"; then
    	basename=$(basename $i)
	version=$(echo $basename | sed -e "s,^[^0-9]*-,,g")
	dirname=$(dirname $i)
	config=
	for j in "${dirname}/config-${version}" "${dirname}/config-${alt_version}" "/etc/kernels/kernel-config-${version}" ; do
	    if test -e "${j}" ; then
		config="${j}"
		break
	    fi
	done
        if (grep -qx "CONFIG_XEN_DOM0=y" "${config}" 2> /dev/null || grep -qx "CONFIG_XEN_PRIVILEGED_GUEST=y" "${config}" 2> /dev/null); then linux_list="$linux_list $i" ; fi
    fi
done
if [ "x${linux_list}" = "x" ] ; then
    exit 0
fi
file_is_not_sym () {
    case "$1" in
	*/xen-syms-*)
	    return 1;;
	*)
	    return 0;;
    esac
}
xen_list=
for i in /boot/xen*; do
    if grub_file_is_not_garbage "$i" && file_is_not_sym "$i" ; then xen_list="$xen_list $i" ; fi
done
prepare_boot_cache=
boot_device_id=
title_correction_code=
machine=`uname -m`
case "$machine" in
    i?86) GENKERNEL_ARCH="x86" ;;
    mips|mips64) GENKERNEL_ARCH="mips" ;;
    mipsel|mips64el) GENKERNEL_ARCH="mipsel" ;;
    arm*) GENKERNEL_ARCH="arm" ;;
    *) GENKERNEL_ARCH="$machine" ;;
esac
# Extra indentation to add to menu entries in a submenu. We're not in a submenu
# yet, so it's empty. In a submenu it will be equal to '\t' (one tab).
submenu_indentation=""
is_top_level=true
while [ "x${xen_list}" != "x" ] ; do
    list="${linux_list}"
    current_xen=`version_find_latest $xen_list`
    xen_basename=`basename ${current_xen}`
    xen_dirname=`dirname ${current_xen}`
    rel_xen_dirname=`make_system_path_relative_to_its_root $xen_dirname`
    xen_version=`echo $xen_basename | sed -e "s,.gz$,,g;s,^xen-,,g"`
    if [ -z "$boot_device_id" ]; then
	boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
    fi
    if [ "x$is_top_level" != xtrue ]; then
	echo "	submenu '$(gettext_printf "Xen hypervisor, version %s" "${xen_version}" | grub_quote)' \$menuentry_id_option 'xen-hypervisor-$xen_version-$boot_device_id' {"
    fi
    while [ "x$list" != "x" ] ; do
	linux=`version_find_latest $list`
	gettext_printf "Found linux image: %s\n" "$linux" >&2
	basename=`basename $linux`
	dirname=`dirname $linux`
	rel_dirname=`make_system_path_relative_to_its_root $dirname`
	version=`echo $basename | sed -e "s,^[^0-9]*-,,g"`
	alt_version=`echo $version | sed -e "s,\.old$,,g"`
	linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
	initrd=
	for i in "initrd.img-${version}" "initrd-${version}.img" "initrd-${version}.gz" \
	   "initrd-${version}" "initramfs-${version}.img" \
	   "initrd.img-${alt_version}" "initrd-${alt_version}.img" \
	   "initrd-${alt_version}" "initramfs-${alt_version}.img" \
	   "initramfs-genkernel-${version}" \
	   "initramfs-genkernel-${alt_version}" \
	   "initramfs-genkernel-${GENKERNEL_ARCH}-${version}" \
	   "initramfs-genkernel-${GENKERNEL_ARCH}-${alt_version}" ; do
	    if test -e "${dirname}/${i}" ; then
		initrd="$i"
		break
	    fi
	done
	if test -n "${initrd}" ; then
	    gettext_printf "Found initrd image: %s\n" "${dirname}/${initrd}" >&2
	else
    # "UUID=" magic is parsed by initrds.  Since there's no initrd, it can't work here.
	    linux_root_device_thisversion=${GRUB_DEVICE}
	fi
	if [ "x$is_top_level" = xtrue ] && [ "x${GRUB_DISABLE_SUBMENU}" != xy ]; then
	    linux_entry "${OS}" "${version}" "${xen_version}" simple \
		"${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}"
	    submenu_indentation="$grub_tab$grub_tab"
    
	    if [ -z "$boot_device_id" ]; then
		boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
	    fi
            # TRANSLATORS: %s is replaced with an OS name
	    echo "submenu '$(gettext_printf "Advanced options for %s (with Xen hypervisor)" "${OS}" | grub_quote)' \$menuentry_id_option 'gnulinux-advanced-$boot_device_id' {"
	echo "	submenu '$(gettext_printf "Xen hypervisor, version %s" "${xen_version}" | grub_quote)' \$menuentry_id_option 'xen-hypervisor-$xen_version-$boot_device_id' {"
	   is_top_level=false
	fi
	linux_entry "${OS}" "${version}" "${xen_version}" advanced \
	    "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}"
	for supported_init in ${SUPPORTED_INITS}; do
	    init_path="${supported_init#*:}"
	    if [ -x "${init_path}" ] && [ "$(readlink -f /sbin/init)" != "$(readlink -f "${init_path}")" ]; then
		linux_entry "${OS}" "${version}" "${xen_version}" "init-${supported_init%%:*}" \
		    "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT} init=${init_path}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}"
	    fi
	done
	if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then
	    linux_entry "${OS}" "${version}" "${xen_version}" recovery \
		"single ${GRUB_CMDLINE_LINUX}" "${GRUB_CMDLINE_XEN}"
	fi
	list=`echo $list | tr ' ' '\n' | fgrep -vx "$linux" | tr '\n' ' '`
    done
    if [ x"$is_top_level" != xtrue ]; then
	echo '	}'
    fi
    xen_list=`echo $xen_list | tr ' ' '\n' | fgrep -vx "$current_xen" | tr '\n' ' '`
done
# If at least one kernel was found, then we need to
# add a closing '}' for the submenu command.
if [ x"$is_top_level" != xtrue ]; then
  echo '}'
fi
echo "$title_correction_code"

=================== nvme0n1p6/etc/grub.d/34_os-prober_proxy ====================

#!/bin/sh
#THIS IS A GRUB PROXY SCRIPT
'/etc/grub.d/proxifiedScripts/os-prober' | /etc/grub.d/bin/grubcfg_proxy "-'Windows Boot Manager (sur /dev/nvme0n1p1)'~3fda09622ad95f48c4760d48db32c9ed~
+*
+#text
"

==================== nvme0n1p6/etc/grub.d/35_uefi-firmware =====================

#! /bin/sh
set -e
# grub-mkconfig helper script.
# Copyright (C) 2012  Free Software Foundation, Inc.
#
# GRUB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GRUB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
prefix="/usr"
exec_prefix="/usr"
datarootdir="/usr/share"
export TEXTDOMAIN=grub
export TEXTDOMAINDIR="${datarootdir}/locale"
. "${datarootdir}/grub/grub-mkconfig_lib"
efi_vars_dir=/sys/firmware/efi/vars
EFI_GLOBAL_VARIABLE=8be4df61-93ca-11d2-aa0d-00e098032b8c
OsIndications="$efi_vars_dir/OsIndicationsSupported-$EFI_GLOBAL_VARIABLE/data"
if [ -e "$OsIndications" ] && \
   [ "$(( $(printf 0x%x \'"$(cat $OsIndications | cut -b1)") & 1 ))" = 1 ]; then
  LABEL="System setup"
  gettext_printf "Adding boot menu entry for EFI firmware configuration\n" >&2
  onstr="$(gettext_printf "(on %s)" "${DEVICE}")"
  cat << EOF
menuentry '$LABEL' \$menuentry_id_option 'uefi-firmware' {
	fwsetup
}
EOF
fi

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

Ubuntu
Ubuntu (safe graphics)
OEM install (for manufacturers)
Boot from next volume
UEFI Firmware Settings

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

default menu.c32
prompt 0
menu title UNetbootin
timeout 100
label unetbootindefault
menu label Default
kernel /ubnkern
append initrd=/ubninit file=/cdrom/preseed/ubuntu.seed quiet splash --- persistent
label ubnentry0
menu label ^Help
kernel /ubnkern
append initrd=/ubninit  persistent
label ubnentry1
menu label ^Try Ubuntu without installing
kernel /casper/vmlinuz
append initrd=/casper/initrd file=/cdrom/preseed/ubuntu.seed  quiet splash --- persistent
label ubnentry2
menu label ^Try Ubuntu without installing (safe graphics)
kernel /casper/vmlinuz
append initrd=/casper/initrd file=/cdrom/preseed/ubuntu.seed  quiet splash nomodeset --- persistent
label ubnentry3
menu label ^Install Ubuntu
kernel /casper/vmlinuz
append initrd=/casper/initrd file=/cdrom/preseed/ubuntu.seed only-ubiquity  quiet splash --- persistent
label ubnentry4
menu label ^Install Ubuntu (safe graphics)
kernel /casper/vmlinuz
append initrd=/casper/initrd file=/cdrom/preseed/ubuntu.seed only-ubiquity  quiet splash nomodeset --- persistent
label ubnentry5
menu label Test ^memory
kernel /install/mt86plus
append initrd=/ubninit  persistent
label ubnentry6
menu label ^Boot from first hard disk
kernel /ubnkern
append initrd=/ubninit  persistent
label ubnentry7
menu label Ubuntu
kernel /casper/vmlinuz
append initrd=/casper/initrd file=/cdrom/preseed/ubuntu.seed maybe-ubiquity quiet splash --- persistent
label ubnentry8
menu label Ubuntu (safe graphics)
kernel /casper/vmlinuz
append initrd=/casper/initrd file=/cdrom/preseed/ubuntu.seed maybe-ubiquity quiet splash nomodeset --- persistent
label ubnentry9
menu label OEM install (for manufacturers)
kernel /casper/vmlinuz
append initrd=/casper/initrd file=/cdrom/preseed/ubuntu.seed only-ubiquity quiet splash oem-config/enable=true --- persistent

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

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

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

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

=============== sdb1: Version of COM32(R) files used by Syslinux ===============

 ldlinux.c32                        :  not a COM32/COM32R module
 libcom32.c32                       :  not a COM32/COM32R module
 libutil.c32                        :  not a COM32/COM32R module
 menu.c32                           :  not a COM32/COM32R module



Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would not act on the MBR.
Additional repair would be performed:  win-legacy-basic-fix

Gaulois Matter !

Hors ligne

#3 Le 26/11/2022, à 18:10

Qid

Re : Dual boot windows-ubuntu - Ubunut qui ne se lance plus

Il semble ne plus rien n'y avoir en lien avec Ubuntu dans la partition de boot efi... Faudrait peut-être faire le bon grub-install qui va bien pour espérer remettre tout ça d'aplomb... (Seulement j'avoue ne pas avoir la teneur exact de la commande à appliquer... je ne fais que donner une piste...)


"GNU/Linux c'est que du bon mais M$ Windows ce n'est pas si mal"
Référent technique Ubuntu d'un Groupe d'Utilisateur du Libre
plus d'info sur mon profil

Hors ligne

#4 Le 26/11/2022, à 18:22

3D2Y

Re : Dual boot windows-ubuntu - Ubunut qui ne se lance plus

Merci pour vos réponses.
Effectivement, c'est ce que je comptais faire avec ces commandes :

sudo mount /dev/nvme0n1p6 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
grub-install /dev/nvme0n1
grub-install --recheck /dev/nvme0n1
update-grub
exit
sudo umount /mnt/sys
sudo unmount /mnt/proc
sudo unmount /mnt/dev/pts

Mais la commande

sudo chroot /mnt

me retourne cette erreur

chroot: impossible d'exécuter la commande «/bin/bash»: Aucun fichier ou dossier de ce type

Dernière modification par 3D2Y (Le 26/11/2022, à 18:24)

Hors ligne

#5 Le 26/11/2022, à 18:26

Qid

Re : Dual boot windows-ubuntu - Ubunut qui ne se lance plus

Essaye de forcer ton linux à démarrer grâce à supergrubdisk... Ça aidera peut-être... En tous cas si on récupère la main que ce soit en graphique ou en mode de dépannage ça permettra de ne pas avoir à passer par le chroot... Celà dit le message d'erreur ne présage rien de bon : il se pourrait que ton linux cache d'autres problèmes que celui de ne plus démarrer...


"GNU/Linux c'est que du bon mais M$ Windows ce n'est pas si mal"
Référent technique Ubuntu d'un Groupe d'Utilisateur du Libre
plus d'info sur mon profil

Hors ligne

#6 Le 26/11/2022, à 20:15

geole

Re : Dual boot windows-ubuntu - Ubunut qui ne se lance plus

Qid a écrit :

Il semble ne plus rien n'y avoir en lien avec Ubuntu dans la partition de boot efi... Faudrait peut-être faire le bon grub-install qui va bien pour espérer remettre tout ça d'aplomb...)

Bonjour.
Je ne suis pas certain que le boot soit très fiable lorsque les nvme sont présents
La partition de boot  n'a pas été montée.  On ne voit pas son taux de remplissage. On ne voit pas non plus les fichiers de boot EFI de windows, Pourtant il boote.  et grub-pc boote aussi. La surprise est plutôt que ubuntu ne soit plus détecté. Cela me semble gros pour être encore être considéré comme erreur.
il semblerait que le répertoire /bin doit absent.

Acuellement, le boot-info ne propose pas de réparation.

Suggested repair: ______________________________________________________________
The default repair of the Boot-Repair utility would not act on the MBR.
Additional repair would be performed:  win-legacy-basic-fix

Dernière modification par geole (Le 26/11/2022, à 20:36)


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 26/11/2022, à 21:42

Qid

Re : Dual boot windows-ubuntu - Ubunut qui ne se lance plus

Windows boot mais pas grâce à grub : il se croit juste tout seul sans aucun grub pour le déstabiliser... Moi c'est comme ça que j'interprète le cas...


"GNU/Linux c'est que du bon mais M$ Windows ce n'est pas si mal"
Référent technique Ubuntu d'un Groupe d'Utilisateur du Libre
plus d'info sur mon profil

Hors ligne

#8 Le 26/11/2022, à 22:04

geole

Re : Dual boot windows-ubuntu - Ubunut qui ne se lance plus

j'ai interprété autrement la description fournie.
Le grub permet de choisir
   Ubuntu qui se plante.
   Windows qui fonctionne.

On verra ce qui sera dit.


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 27/11/2022, à 15:09

3D2Y

Re : Dual boot windows-ubuntu - Ubunut qui ne se lance plus

Bonjour
J'ai essayé de lancé ubuntu via supergrub2 mais ça m'amène sur le grub rescue encore une fois...
Je crois que c'est mauvais signe. Je vais continuer de chercher de mon côté
Avez vous d'autres solutions ?
Merci pour vos réponses

Hors ligne

#10 Le 27/11/2022, à 15:27

geole

Re : Dual boot windows-ubuntu - Ubunut qui ne se lance plus

Bonjour
Sauver les données ( https://doc.ubuntu-fr.org/tutoriel/recu … un_livecd) si ce n'est pas fait en cas de fausse manipulation pendant la réinstallation de ubuntu par la méthode un https://doc.ubuntu-fr.org/reinstallation_ubuntu


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