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 29/10/2022, à 13:19

jpl-bz

[Résolu] reemploi de la partition 21.10 vidée

bonjour,

la 22.04 LTS se comportant de façon satisfaisante, j'ai libéré l'espace de la 21.10, lancé le boot-repair en vue de cette discussion et obtiens le rapport :

boot-repair-4ppa200                                              [20221029_1146]

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





grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.

Recommended repair: ____________________________________________________________

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


Mount sda1 on /mnt/boot-sav/sda4/boot/efi

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

======================== Reinstall the grub-efi of sda4 ========================

chroot /mnt/boot-sav/sda4 grub-install --version
grub-install (GRUB) 2.06-2ubuntu7
modprobe: FATAL: Module efivars not found in directory /lib/modules/5.3.0-28-generic
chroot /mnt/boot-sav/sda4 modprobe efivars

chroot /mnt/boot-sav/sda4 efibootmgr -v before grub install
BootCurrent: 000A
Timeout: 1 seconds
BootOrder: 0001,0008,0009,000A,000B
Boot0001* ubuntu	HD(1,GPT,af31aefc-d02e-4ccb-888f-071165726f0b,0x800,0x100000)/File(EFIUBUNTUSHIMX64.EFI)
Boot0008* UEFI OS	HD(1,GPT,af31aefc-d02e-4ccb-888f-071165726f0b,0x800,0x100000)/File(EFIBOOTBOOTX64.EFI)..BO
Boot0009* ubuntu	HD(1,GPT,af31aefc-d02e-4ccb-888f-071165726f0b,0x800,0x100000)/File(EFIUBUNTUGRUBX64.EFI)..BO
Boot000A* UEFI: Generic Flash Disk 8.07, Partition 1	PciRoot(0x0)/Pci(0x10,0x0)/USB(3,0)/HD(1,MBR,0x2c534026,0x3c4,0x1340)..BO
Boot000B* Hard Drive	BBS(HD,,0x0)..GO..NO........S.G.e.n.e.r.i.c. .F.l.a.s.h. .D.i.s.k. .8...0.7....................A.......................&..Gd-.;.A..MQ..L.F.F.B.1.0.A.4.1........BO

chroot /mnt/boot-sav/sda4 uname -r
5.3.0-28-generic

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

chroot /mnt/boot-sav/sda4 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/sda4 efibootmgr -v after grub install
BootCurrent: 000A
Timeout: 1 seconds
BootOrder: 0001,0008,0009,000A,000B
Boot0001* ubuntu	HD(1,GPT,af31aefc-d02e-4ccb-888f-071165726f0b,0x800,0x100000)/File(EFIUBUNTUSHIMX64.EFI)
Boot0008* UEFI OS	HD(1,GPT,af31aefc-d02e-4ccb-888f-071165726f0b,0x800,0x100000)/File(EFIBOOTBOOTX64.EFI)..BO
Boot0009* ubuntu	HD(1,GPT,af31aefc-d02e-4ccb-888f-071165726f0b,0x800,0x100000)/File(EFIUBUNTUGRUBX64.EFI)..BO
Boot000A* UEFI: Generic Flash Disk 8.07, Partition 1	PciRoot(0x0)/Pci(0x10,0x0)/USB(3,0)/HD(1,MBR,0x2c534026,0x3c4,0x1340)..BO
Boot000B* Hard Drive	BBS(HD,,0x0)..GO..NO........S.G.e.n.e.r.i.c. .F.l.a.s.h. .D.i.s.k. .8...0.7....................A.......................&..Gd-.;.A..MQ..L.F.F.B.1.0.A.4.1........BO
Warning: NVram was not modified.

chroot /mnt/boot-sav/sda4 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-50-generic
Found initrd image: /boot/initrd.img-5.15.0-50-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.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.

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

Boot successfully repaired.

You can now reboot your computer.
Please do not forget to make your UEFI firmware boot on the Ubuntu 22.04.1 LTS entry (sda1/efi/ubuntu/grubx64.efi file) !


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

 => Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 
    210960384 of the same hard drive for core.img. core.img is at this 
    location and looks for (,gpt4)/boot/grub. It also embeds following 
    components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_gpt biosdisk
    ---------------------------------------------------------------------------

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

sda3: __________________________________________________________________________

    File system:       BIOS Boot partition
    Boot sector type:  Grub2's core.img
    Boot sector info: 

sda4: __________________________________________________________________________

    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:  Unknown
    Boot sector info: 
    Operating System:  
    Boot files:        /boot/grub/grub.cfg


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

OS#1:   Ubuntu 22.04.1 LTS on sda4

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

CPU architecture: 64-bit
Video: Mullins [Radeon R4/R5 Graphics] Jet PRO [Radeon R5 M230] from Advanced Micro Devices, Inc. [AMD/ATI] Advanced Micro Devices, Inc. [AMD/ATI]
Live-session OS is Ubuntu 64-bit (Boot-Repair-Disk 64bit 20200604, bionic, x86_64)

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

BIOS/UEFI firmware: X555YI.701 from American Megatrends Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled - SecureBoot disabled
Platform is in Setup Mode - Please report this message to boot.repair@gmail.com.
BootCurrent: 000A
Timeout: 1 seconds
BootOrder: 0001,0008,0009,000A,000B
Boot0001* ubuntu	HD(1,GPT,af31aefc-d02e-4ccb-888f-071165726f0b,0x800,0x100000)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0008* UEFI OS	HD(1,GPT,af31aefc-d02e-4ccb-888f-071165726f0b,0x800,0x100000)/File(\EFI\BOOT\BOOTX64.EFI)..BO
Boot0009* ubuntu	HD(1,GPT,af31aefc-d02e-4ccb-888f-071165726f0b,0x800,0x100000)/File(\EFI\UBUNTU\GRUBX64.EFI)..BO
Boot000A* UEFI: Generic Flash Disk 8.07, Partition 1	PciRoot(0x0)/Pci(0x10,0x0)/USB(3,0)/HD(1,MBR,0x2c534026,0x3c4,0x1340)..BO
Boot000B* Hard Drive	BBS(HD,,0x0)..GO..NO........S.G.e.n.e.r.i.c. .F.l.a.s.h. .D.i.s.k. .8...0.7....................A.......................&..Gd-.;.A..MQ..L.F.F.B.1.0.A.4.1........BO

728124f6ec8e22fbdbe7034812c81b95   sda1/BOOT/bkpbootx64.efi
728124f6ec8e22fbdbe7034812c81b95   sda1/BOOT/bootx64.efi
c152ec201c37b6e97bbc2207e49d1271   sda1/BOOT/fbx64.efi
fdafb5eece6caeccb788c946a28e6872   sda1/BOOT/mmx64.efi
3795ef72a4ed0369ca44e711527904bf   sda1/ubuntu/grubx64.efi
fdafb5eece6caeccb788c946a28e6872   sda1/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95   sda1/ubuntu/shimx64.efi

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

Disks info: ____________________________________________________________________

sda	: is-GPT,	hasBIOSboot,	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
sda4	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios

Partitions info (2/3): _________________________________________________________

sda1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda4	: 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
sda4	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 119.2 GiB, 128035676160 bytes, 250069680 sectors
Disk identifier: A0ED9492-32A4-4A54-B127-609494C4E4B5
          Start       End  Sectors  Size Type
sda1       2048   1050623  1048576  512M EFI System
sda3  210960384 210962431     2048    1M BIOS boot
sda4  210962432 250068991 39106560 18.7G Linux filesystem
Disk sdb: 3.8 GiB, 4026531840 bytes, 7864320 sectors
Disk identifier: 0x2c534026
      Boot Start     End Sectors  Size Id Type
sdb1  *        0 1802239 1802240  880M  0 Empty
sdb2         964    5891    4928  2.4M ef EFI (FAT-12/16/32)
Disk zram0: 419.4 MiB, 439738368 bytes, 107358 sectors
Disk zram1: 419.4 MiB, 439738368 bytes, 107358 sectors
Disk zram2: 419.4 MiB, 439738368 bytes, 107358 sectors
Disk zram3: 419.4 MiB, 439738368 bytes, 107358 sectors

parted -lm (filtered): _________________________________________________________

sda:128GB:scsi:512:512:gpt:ATA SanDisk SD8SBAT1:;
1:1049kB:538MB:537MB:fat32:EFI System Partition:boot, esp;
3:108GB:108GB:1049kB:::bios_grub;
4:108GB:128GB:20.0GB:ext4::;
sdb:4027MB:scsi:512:512:msdos:Generic Flash Disk:;
2:494kB:3017kB:2523kB:::esp;

Free space >10MiB: ______________________________________________________________

sda: 513MiB:103008MiB:102495MiB
sdb: 2.88MiB:3840MiB:3837MiB

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL                  PARTLABEL
sda                                                                                                              
├─sda1 vfat     4A40-E2A3                            af31aefc-d02e-4ccb-888f-071165726f0b                        EFI System Partition
├─sda3                                               4f152e91-e71c-466d-a412-afe9c0a5f825                        
└─sda4 ext4     039fd4eb-7cc9-4fbb-94b3-115fb9e64907 bbb1345a-3826-4223-be27-4473f84257f8                        
sdb    iso9660  2020-06-13-00-42-55-00                                                    Boot-Repair-Disk 64bit 
├─sdb1 iso9660  2020-06-13-00-42-55-00               2c534026-01                          Boot-Repair-Disk 64bit 
└─sdb2 vfat     D055-8513                            2c534026-02                          Boot-Repair-Disk 64bit 

Mount points (filtered): _______________________________________________________

            Avail Use% Mounted on
/dev/sda1   377.7M  26% /mnt/boot-sav/sda1
/dev/sda4     1.9G  85% /mnt/boot-sav/sda4
/dev/sdb         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/sda4   ext4            rw,relatime
/dev/sdb    iso9660         ro,noatime,nojoliet,check=s,map=n,blocksize=2048

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

search.fs_uuid 039fd4eb-7cc9-4fbb-94b3-115fb9e64907 root hd0,gpt4 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

Ubuntu   039fd4eb-7cc9-4fbb-94b3-115fb9e64907
Ubuntu, with Linux 5.15.0-52-generic   039fd4eb-7cc9-4fbb-94b3-115fb9e64907
Ubuntu, with Linux 5.15.0-50-generic   039fd4eb-7cc9-4fbb-94b3-115fb9e64907
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sda4/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda4 during installation
UUID=039fd4eb-7cc9-4fbb-94b3-115fb9e64907 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=4A40-E2A3  /boot/efi       vfat    umask=0077      0       1

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

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

           GiB - GB             File                                 Fragment(s)
 100.594734192 = 108.012773376  boot/grub/grub.cfg                             1
 117.042976379 = 125.673938944  boot/vmlinuz                                   2
 103.886718750 = 111.547514880  boot/vmlinuz-5.15.0-50-generic                 1
 117.042976379 = 125.673938944  boot/vmlinuz-5.15.0-52-generic                 2
 103.886718750 = 111.547514880  boot/vmlinuz.old                               1
 118.544361115 = 127.286038528  boot/initrd.img                                1
 118.552173615 = 127.294427136  boot/initrd.img-5.15.0-50-generic              2
 118.544361115 = 127.286038528  boot/initrd.img-5.15.0-52-generic              1
 118.552173615 = 127.294427136  boot/initrd.img.old                            2

===================== sda4: 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

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

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

Boot-Repair-Disk session
Boot-Repair-Disk session (failsafe)

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

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

Dernière modification par jpl-bz (Le 04/11/2022, à 13:03)

Hors ligne

#2 Le 29/10/2022, à 13:26

jpl-bz

Re : [Résolu] reemploi de la partition 21.10 vidée

... à partir de là, j'imaginais étendre la partition Ubuntu 22.04 sda4 pour englober le vide laissé par la suppression de la 21.10 sda2, mais "disques" ne permet pas directement cette opération, les deux espaces n'étant pas voisins, séparés par sda3.
Il me parait donc plus simple de réinstaller ubuntu sur tout le disque, sauf votre avis.
cordialement
(poste12 pour moi)

Hors ligne

#3 Le 29/10/2022, à 16:14

geole

Re : [Résolu] reemploi de la partition 21.10 vidée

Bonjour.
En regardant le boot-info, il m'a semblé que SDA3 était inutile car le boot EFI était possible.
Dans un premier temps, tu devrais déplacer SDA3  au début du disque et rebooter pour le vérifier.
Si cela boote, on sait que tu peux  supprimer SDA3
Si cela ne boote pas, en live USB qui devra avoir booté en legacy et pas en EFI, tu feras la réparation recommandée qui consistera à réparer le pointeur du MBR au nouvel emplacement de SDA3.
Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector
    210960384 of the same hard drive for core.img.

Nota: L'agrandissement de sda4 ne peut se faire qu'en bootant avec le support d'installation.

Dernière modification par geole (Le 29/10/2022, à 16: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

Hors ligne

#4 Le 31/10/2022, à 10:49

jpl-bz

Re : [Résolu] reemploi de la partition 21.10 vidée

bonjour,
merci pour les suggestions mais pour gagner du temps j'ai refait une install sur la totalité du SSD. Un boot-repair fait juste après semble trouver encore une modif à faire,
pourquoi l'install n'est pas directement au top ? :

(poste12 asus)
boot-repair-4ppa200                                              [20221030_1208]

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

 => 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:  Unknown
    Boot sector info: 
    Operating System:  
    Boot files:        /boot/grub/grub.cfg


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

OS#1:   Ubuntu 22.04.1 LTS on sda2

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

CPU architecture: 64-bit
Video: Mullins [Radeon R4/R5 Graphics] Jet PRO [Radeon R5 M230] from Advanced Micro Devices, Inc. [AMD/ATI] Advanced Micro Devices, Inc. [AMD/ATI]
Live-session OS is Ubuntu 64-bit (Boot-Repair-Disk 64bit 20200604, bionic, x86_64)

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

BIOS/UEFI firmware: X555YI.701 from American Megatrends Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled - SecureBoot disabled
Platform is in Setup Mode - Please report this message to boot.repair@gmail.com.
BootCurrent: 000F
Timeout: 1 seconds
BootOrder: 000F,0000,000D,000E,0011
Boot0000* ubuntu	HD(1,GPT,412f14b9-8ad8-469c-a7be-1551cc1eb480,0x800,0x100000)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot000D* UEFI OS	HD(1,GPT,412f14b9-8ad8-469c-a7be-1551cc1eb480,0x800,0x100000)/File(\EFI\BOOT\BOOTX64.EFI)..BO
Boot000E* ubuntu	HD(1,GPT,412f14b9-8ad8-469c-a7be-1551cc1eb480,0x800,0x100000)/File(\EFI\UBUNTU\GRUBX64.EFI)..BO
Boot000F* UEFI: Generic Flash Disk 8.07, Partition 1	PciRoot(0x0)/Pci(0x10,0x0)/USB(3,0)/HD(1,MBR,0x2c534026,0x3c4,0x1340)..BO
Boot0011* Hard Drive	BBS(HD,,0x0)..GO..NO........S.G.e.n.e.r.i.c. .F.l.a.s.h. .D.i.s.k. .8...0.7....................A.......................&..Gd-.;.A..MQ..L.F.F.B.1.0.A.4.1........BO

728124f6ec8e22fbdbe7034812c81b95   sda1/BOOT/bkpbootx64.efi
728124f6ec8e22fbdbe7034812c81b95   sda1/BOOT/bootx64.efi
c152ec201c37b6e97bbc2207e49d1271   sda1/BOOT/fbx64.efi
fdafb5eece6caeccb788c946a28e6872   sda1/BOOT/mmx64.efi
3795ef72a4ed0369ca44e711527904bf   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,	farbios

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: 119.2 GiB, 128035676160 bytes, 250069680 sectors
Disk identifier: 4D1C265F-7981-4D24-8A76-AB374580E166
        Start       End   Sectors   Size Type
sda1     2048   1050623   1048576   512M EFI System
sda2  1050624 250068991 249018368 118.8G Linux filesystem
Disk sdb: 3.8 GiB, 4026531840 bytes, 7864320 sectors
Disk identifier: 0x2c534026
      Boot Start     End Sectors  Size Id Type
sdb1  *        0 1802239 1802240  880M  0 Empty
sdb2         964    5891    4928  2.4M ef EFI (FAT-12/16/32)
Disk zram0: 419.4 MiB, 439738368 bytes, 107358 sectors
Disk zram1: 419.4 MiB, 439738368 bytes, 107358 sectors
Disk zram2: 419.4 MiB, 439738368 bytes, 107358 sectors
Disk zram3: 419.4 MiB, 439738368 bytes, 107358 sectors

parted -lm (filtered): _________________________________________________________

sda:128GB:scsi:512:512:gpt:ATA SanDisk SD8SBAT1:;
1:1049kB:538MB:537MB:fat32:EFI System Partition:boot, esp;
2:538MB:128GB:127GB:ext4::;
sdb:4027MB:scsi:512:512:msdos:Generic Flash Disk:;
2:494kB:3017kB:2523kB:::esp;

Free space >10MiB: ______________________________________________________________

sdb: 2.88MiB:3840MiB:3837MiB

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL                  PARTLABEL
sda                                                                                                              
├─sda1 vfat     4A40-E2A3                            412f14b9-8ad8-469c-a7be-1551cc1eb480                        EFI System Partition
└─sda2 ext4     c86c5a77-a0b2-43ab-b0ff-1c419cca7560 009c6758-30a8-4b8d-b150-ec6ba9216704                        
sdb    iso9660  2020-06-13-00-42-55-00                                                    Boot-Repair-Disk 64bit 
├─sdb1 iso9660  2020-06-13-00-42-55-00               2c534026-01                          Boot-Repair-Disk 64bit 
└─sdb2 vfat     D055-8513                            2c534026-02                          Boot-Repair-Disk 64bit 

Mount points (filtered): _______________________________________________________

            Avail Use% Mounted on
/dev/sda1   377.7M  26% /mnt/boot-sav/sda1
/dev/sda2    94.1G  14% /mnt/boot-sav/sda2
/dev/sdb         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/sdb    iso9660         ro,noatime,nojoliet,check=s,map=n,blocksize=2048

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

search.fs_uuid c86c5a77-a0b2-43ab-b0ff-1c419cca7560 root hd0,gpt2 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

Ubuntu   c86c5a77-a0b2-43ab-b0ff-1c419cca7560
Ubuntu, with Linux 5.15.0-52-generic   c86c5a77-a0b2-43ab-b0ff-1c419cca7560
Ubuntu, with Linux 5.15.0-43-generic   c86c5a77-a0b2-43ab-b0ff-1c419cca7560
### 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=c86c5a77-a0b2-43ab-b0ff-1c419cca7560 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=4A40-E2A3  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

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

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

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

           GiB - GB             File                                 Fragment(s)
  56.712871552 = 60.894982144   boot/grub/grub.cfg                             1
   0.949226379 = 1.019224064    boot/vmlinuz                                   1
  88.753490448 = 95.298334720   boot/vmlinuz-5.15.0-43-generic                 2
   0.949226379 = 1.019224064    boot/vmlinuz-5.15.0-52-generic                 1
  88.753490448 = 95.298334720   boot/vmlinuz.old                               2
 109.415035248 = 117.483499520  boot/initrd.img                                4
  16.996589661 = 18.249949184   boot/initrd.img-5.15.0-43-generic              1
 109.415035248 = 117.483499520  boot/initrd.img-5.15.0-52-generic              4
  16.996589661 = 18.249949184   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

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

Boot-Repair-Disk session
Boot-Repair-Disk session (failsafe)

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

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



Suggested repair: ______________________________________________________________

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

Final advice in case of suggested repair: ______________________________________

Please do not forget to make your UEFI firmware boot on the Ubuntu 22.04.1 LTS entry (sda1/efi/****/grub****.efi (**** will be updated in the final message) file) !

Hors ligne

#5 Le 31/10/2022, à 11:53

geole

Re : [Résolu] reemploi de la partition 21.10 vidée

Bonjour.
Il ne faut jamais suivre la suggestion de boot-repair sans savoir si c'est justifié.
Dans ton contexte. SDA1 contient déjà le logiciel de boot.
Il n'y a donc rien à faire.

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


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#6 Le 31/10/2022, à 16:13

jpl-bz

Re : [Résolu] reemploi de la partition 21.10 vidée

merci, ça me semblait assez obscur pour ne pas tenter. Encore un niveau de connaissances à atteindre ... rassurant.
Cordialement.
--
Espéré, au passage, le pb d'absence de son n'a pas été réglé par cette nouvelle install ... sujet son à poursuivre dans https://forum.ubuntu-fr.org/viewtopic.php?id=2067164.

Dernière modification par jpl-bz (Le 31/10/2022, à 16:17)

Hors ligne