[Bug 1490824] Re: "unsafe swap space detected" error prevents encrypted install when swap partition exists
Simon Quigley
1490824 at bugs.launchpad.net
Sat Feb 22 07:49:37 UTC 2025
** Changed in: ubiquity (Ubuntu)
Status: Confirmed => Won't Fix
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubiquity in Ubuntu.
https://bugs.launchpad.net/bugs/1490824
Title:
"unsafe swap space detected" error prevents encrypted install when
swap partition exists
Status in ubiquity package in Ubuntu:
Won't Fix
Bug description:
I am trying to install wily-desktop-i386.iso, downloaded on August 31.
I am trying to install onto a USB drive, sdc, with sdc1 being /boot
and sdc2 being a physical volume for encryption.
Also on this system is a hard drive, sda, with a previous Ubuntu
install, including a swap partition.
When I try to create a physical volume for encryption on sdc2, I am
prompted for a password. After entering the password, the following
message is displayed:
"Unsafe swap space detected. An unsafe swap space has been detected.
[snip] Please disable the swap space (e.g. by running swapoff) ..."
The problem is, no matter how many times I run swapoff, ubiquity
reactivates the swap automatically and repeatedly.
For example, even if I run swapoff immediately prior to entering the
encryption password, ubiquity will reactivate the swap prior to
creating the physical volume for encryption, and the creation will
again fail.
So...
1) It appears that swapoff is insufficient. In reality, there must be
no visible swap partitions on the system.
2) The error message "Unsafe swap space detected" could certainly be
displayed prior to asking me to enter my password.
Either or both of these could be fixed. Or the error message could be
updated to say: "Sorry, you cannot create encrypted partitions as long
as swap partitions are visible on this system."
Thanks!
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1490824/+subscriptions
More information about the foundations-bugs
mailing list