Bonjour,
J'ai validé une méthode que tu pourrais appliquer pour réinstaller Lubuntu. J'ai fait des essais préalables que je ne vais pas détailler ici dans lesquels j'ai mis en évidence qu'il est nécessaire de supprimer la partition swap préexistante sinon on se retrouve sans aucune swap. Donc la procédure que je vais détailler commence par la suppression de la partition swap depuis une session de ton Lubuntu actuel. Comme cette partition swap n'est pas utilisée, ce n'est pas difficile de la supprimer avec le Gestionnaire de partitions.
1) suppression de la partition swap avec le Gestionnaire de partitions du Lubuntu installé :
Sélection de la partition swap et choix suppression. Après ça, il ne faudra pas oublier de cliquer sur "Appliquer" (en haut à gauche sur la 2ème photo) pour l'application effective de la modif


2) installation de Lubuntu 20.04 avec le choix "Partitionnement manuel"
- on s'occupe d'abord de la partition racine :



- Création de la partition swap :
1ère photo : sélection de l'espace libre, clic sur le bouton "Créer"


- le partitionnement est défini. Prêt à envoyer :
3) État des lieux après installation depuis une session du Lubuntu 20.04 installé :
Boot-info :
boot-info-4ppa122 [20200521_1101]
============================== Boot Info Summary ===============================
=> Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (,msdos1)/boot/grub. It also embeds following components:
modules
---------------------------------------------------------------------------
fshelp ext2 part_msdos biosdisk
---------------------------------------------------------------------------
=> libparted MBR boot code is installed in the MBR of /dev/sdb.
sda1: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 20.04 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
/boot/grub/i386-pc/core.img
sda2: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sdb1: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
================================ 1 OS detected =================================
OS#1: L'OS actuellement utilisé - Ubuntu 20.04 LTS CurrentSession on sda1
============================ Architecture/Host Info ============================
CPU architecture: 64-bit
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.4.0-26-generic root=UUID=b4158af4-9f91-4401-bef0-d2d04774e444 ro quiet splash resume=UUID=b33004be-a5c1-4380-bf68-993f1d1bc8bd
===================================== UEFI =====================================
This installed-session is not in EFI-mode.
EFI in dmesg.
[ 10.964057] systemd[1]: Condition check resulted in Store a System Token in an EFI Variable being skipped.
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sda : notGPT, no-BIOSboot, has-noESP, not-usb, not-mmc, has-os, 2048 sectors * 512 bytes
sdb : notGPT, no-BIOSboot, has-noESP, not-usb, not-mmc, no-os, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
sda1 : is-os, 64, apt-get, grub-pc , grub2, grub-install, grubenv-ok, update-grub, not-far
sdb1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
Partitions info (2/3): _________________________________________________________
sda1 : isnotESP, fstab-without-efi, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sdb1 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
sda1 : not-sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sda
sdb1 : maybesepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sdb
fdisk -l (filtered): ___________________________________________________________
Disk sda: 20.13 GiB, 21613379584 bytes, 42213632 sectors
Disk identifier: 0x6f9383ce
Boot Start End Sectors Size Id Type
sda1 * 2048 37318454 37316407 17.8G 83 Linux
sda2 37318455 42202754 4884300 2.3G 82 Linux swap / Solaris
Disk sdb: 61.25 GiB, 65763082240 bytes, 128443520 sectors
Disk identifier: 0xd8be4c12
Boot Start End Sectors Size Id Type
sdb1 2048 128442367 128440320 61.3G 83 Linux
parted -lm (filtered): _________________________________________________________
sda:21.6GB:scsi:512:512:msdos:ATA VBOX HARDDISK:;
1:1049kB:19.1GB:19.1GB:ext4::boot;
2:19.1GB:21.6GB:2501MB:linux-swap(v1)::;
sdb:65.8GB:scsi:512:512:msdos:ATA VBOX HARDDISK:;
1:1049kB:65.8GB:65.8GB:ext4::;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 ext4 b4158af4-9f91-4401-bef0-d2d04774e444 6f9383ce-01
└─sda2 swap b33004be-a5c1-4380-bf68-993f1d1bc8bd 6f9383ce-02
sdb
└─sdb1 ext4 11efb032-65f4-4ffb-83a9-19b2579e0138 d8be4c12-01 img_clonezilla
df (filtered): _________________________________________________________________
Avail Use% Mounted on
sda1 11.6G 28% /
sdb1 55.1G 3% /mnt/boot-sav/sdb1
Mount options: __________________________________________________________________
sda1 rw,relatime
sdb1 rw,relatime
====================== sda1/boot/grub/grub.cfg (filtered) ======================
Ubuntu b4158af4-9f91-4401-bef0-d2d04774e444
Ubuntu, with Linux 5.4.0-26-generic b4158af4-9f91-4401-bef0-d2d04774e444
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###
========================== sda1/etc/fstab (filtered) ===========================
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=b4158af4-9f91-4401-bef0-d2d04774e444 / ext4 defaults 0 1
UUID=b33004be-a5c1-4380-bf68-993f1d1bc8bd swap swap defaults 0 2
======================= sda1/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 resume=UUID=b33004be-a5c1-4380-bf68-993f1d1bc8bd"
GRUB_CMDLINE_LINUX=""
==================== sda1: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
12,259639740 = 13,163687936 boot/grub/grub.cfg 2
12,259632111 = 13,163679744 boot/grub/i386-pc/core.img 1
1,256500244 = 1,349156864 boot/vmlinuz 2
1,256500244 = 1,349156864 boot/vmlinuz-5.4.0-26-generic 2
1,256500244 = 1,349156864 boot/vmlinuz.old 2
1,334468842 = 1,432875008 boot/initrd.img 3
1,334468842 = 1,432875008 boot/initrd.img-5.4.0-26-generic 3
1,334468842 = 1,432875008 boot/initrd.img.old 3
===================== sda1: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 17123 avril 15 13:31 10_linux
-rwxr-xr-x 1 root root 42128 avril 15 13:31 10_linux_zfs
-rwxr-xr-x 1 root root 12894 avril 15 13:31 20_linux_xen
-rwxr-xr-x 1 root root 12059 avril 15 13:31 30_os-prober
-rwxr-xr-x 1 root root 1424 avril 15 13:31 30_uefi-firmware
-rwxr-xr-x 1 root root 214 avril 15 13:31 40_custom
-rwxr-xr-x 1 root root 216 avril 15 13:31 41_custom
Suggested repair: ______________________________________________________________
The default repair of the Boot-Repair utility would reinstall the grub2 of
sda1 into the MBRs of all disks (except live-disks and removable disks without OS).
Additional repair would be performed: unhide-bootmenu-10s
Final advice in case of suggested repair: ______________________________________
Please do not forget to make your BIOS boot on sda (ATA VBOX HARDDISK) disk!
On y voit qu'il y a bien une ligne de montage de la partition swap dans le fichier fstab :
========================== sda1/etc/fstab (filtered) ===========================
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=b4158af4-9f91-4401-bef0-d2d04774e444 / ext4 defaults 0 1
UUID=b33004be-a5c1-4380-bf68-993f1d1bc8bd swap swap defaults 0 2
Quelques commandes supplémentaires pour montrer que la swap est bien vivante :
malbo@malbo-virtualbox:~$ swapon
NAME TYPE SIZE USED PRIO
/dev/sda2 partition 2,3G 0B -2
malbo@malbo-virtualbox:~$ free
total utilisé libre partagé tamp/cache disponible
Mem: 2034856 683560 93712 55780 1257584 1124704
Partition d'échange: 2442144 0 2442144
malbo@malbo-virtualbox:~$