Ubuntu 22.04.1 installation "forgets" to remove swap partition (of 16.04)
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.
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu82.2
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 22.04
InstallCmdLine: BOOT_IMAGE=
InstallationDate: Installed on 2022-03-26 (262 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20220325)
Package: ubiquity (not installed)
ProcVersionSign
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
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/ReportingBu gs.