Ubuntu 22.04.1 installation "forgets" to remove swap partition (of 16.04)

Bug #1999489 reported by Hermann Freudenmann
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
New
Undecided
Unassigned

Bug Description

I installed Ubuntu 22.04.1 on a disk that contained 16.04.
During the installation I selected "Overwrite 16.04" (it was named similarly).
The installation worked fine except for one thing:

The swap partition of 16.04 was not deleted, even though Ubuntu 22.04 uses a swap file and not a swap partition. So the swap partition wastes disk space.

The problem description probably applies to all Ubuntu versions (or Linux distributions?) that include a swap partition (hint: does an LTS upgrade from 16.04 to 18.04 keep the swap partition from 16.04?).

Translated with www.DeepL.com/Translator (free version)
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu82.2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 22.04
InstallCmdLine: BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/ubuntu.seed maybe-ubiquity quiet splash ---
InstallationDate: Installed on 2022-03-26 (262 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20220325)
Package: ubiquity (not installed)
ProcVersionSignature: Ubuntu 5.15.0-56.62-generic 5.15.64
Tags: wayland-session jammy ubiquity-22.04.8
Uname: Linux 5.15.0-56-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: vboxsf
_MarkForUpload: True

Revision history for this message
Chris Guiver (guiverc) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Ubuntu 22.04 LTS will use swap partitions, or swap files (or both). Each has advantages & disadvantages, and some users will prefer to use one over the other. Some may prefer the swap partition to be auto-deleted, yet if it was deleted others would see that as a bug.

If you upgrade, you'll continue using the same method as you used before (ie. if using swap-partition, your system would still use that swap-partition).

As I understand it, you used a 'Replace partition' type of install, which won't make changes to other partitions. As a swap partition could be used by other OSes (non-Ubuntu's or other Ubuntu installs) your request for removal could break those other OSes, which I'd see as a bad move. I use swap partition myself so my swap partition can be utilized by my other installed OSes (as I dual boot).

Please execute the following command only once, as it will automatically gather debugging information, in a terminal:

apport-collect 1999489

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Revision history for this message
Hermann Freudenmann (hfreude111) wrote : ProcCpuinfoMinimal.txt

apport information

tags: added: apport-collected jammy ubiquity-22.04.8 wayland-session
description: updated
Revision history for this message
Hermann Freudenmann (hfreude111) wrote : ProcEnviron.txt

apport information

Revision history for this message
Hermann Freudenmann (hfreude111) wrote : UbiquityPartman.txt

apport information

Revision history for this message
Hermann Freudenmann (hfreude111) wrote : UbiquitySyslog.txt

apport information

Revision history for this message
Hermann Freudenmann (hfreude111) wrote :

"As I understand it, you used a 'Replace partition' type of install, which won't make changes to other partitions. As a swap partition could be used by other OSes (non-Ubuntu's or other Ubuntu installs) your request for removal could break those other OSes, which I'd see as a bad move."

In my case, there was only 1 operating system (16.04) and 1 hard drive (with one root and one swap partition).
Most users would expect the Ubuntu installer to replace the entire hard drive. So the behaviour is surprising to say the least.

After installing 22.04, there was an EFI, the root and swap partitions - so the partitions were definitely changed.

If there are other Linux operating systems, you're right (to keep the swap partition).

The real problem in this case is: the installer says "I'll do it for you", but you don't know exactly what it will do.

It would be very helpful if the installer would show in detail which partitions it will change or create (with all details: type of partition table, size of partitions, file system, mount point, ...).
The display of the partitions "before" and "after" the installation (one above the other) would be very helpful - especially if it was also graphical (as it is already excellently solved for manual partitioning).
Currently, only a text message is displayed that lists partitions to be changed or created - without the necessary details.

Translated with www.DeepL.com/Translator (free version)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.