Unsafe swap space detected

24,140

Solution 1

Try to boot via "Try Ubuntu" instead of "Install Ubuntu" and run the command:

sudo swapoff --all

From the terminal. (ctrl+alt+t)

Then run the Install Ubuntu from the desktop. The error should stop appearing.

See also this related Lubuntu/ubuntu bug report

Solution 2

Len's solution of running sudo swapoff -all is possible without booting via "Try Ubuntu".

When you get the error, use CTRL-ALT-F1 to get to a terminal and run the command there.

Use CTRL-ALT-F7 to return to the graphical environment when you're done.

It worked for me. I did so after going back to the language selection screen, but it may work from the partition manager stage. I would expect the check is only being done at the moment one attempts to change a partition.

Solution 3

I had the same problem, there's definitely something wrong with the installer (I was trying to set up 14.04 with encrypted partitions on different drives, with / on my small SSD and /home /usr /tmp /var and swap on my HDD). But I played around with it, restarted the installer/rebooted a number of times, and here's how you work around it:

Set up all your actual partitions, including your encrypted containers. I believe it necessary to include an encrypted partition for swap, so make sure to make one of suitable size for it.

Once you have them all set up, THEN, and only then pin them to actual mount points. I started with swap and then moved on to /home and so on.

Share:
24,140

Related videos on Youtube

Django Anonymous
Author by

Django Anonymous

Updated on September 18, 2022

Comments

  • Django Anonymous
    Django Anonymous almost 2 years

    So I had a Ubuntu 13.04 installation and I had encrypted my hard drive while I was doing installation. I was playing around and mistakenly deleted all the partitions, now I downloaded lUbuntu 13.10 x86 Desktop but when I am trying to install it says "Unsafe swap space detected"

    enter image description here

    I am clueless on how to fix this error.

    • jobin
      jobin over 10 years
      At what point of the installation does this error message come up? Did you try completely formatting your hard disk? What comes up if press "OK"?
    • Django Anonymous
      Django Anonymous over 10 years
      Nothing it just get aborted and then you need to try again. But it fails all the time. However how I can completely format my hard disk using lubuntu?
    • jobin
      jobin over 10 years
      I am not sure whether lubuntu gives you the option to try it, if not, you may need to use Ubuntu(any version should work) to "Try Ubuntu" and then use gparted to delete all partitions and then try again.
    • Django Anonymous
      Django Anonymous over 10 years
      I have already deleted all partitions using gparted even when i try to format disk it says "Error Formatting Disk" Error syncronizing after initial wipe. Timed out waiting for object (udisks-error-quark,0)
  • 0xC0000022L
    0xC0000022L almost 10 years
    It should be kept in mind that this requires enough RAM in the first place ;)
  • Kajetan Abt
    Kajetan Abt over 9 years
    How do I get back into the setup menu after doing this?
  • Laurent W.
    Laurent W. about 9 years
    Same question as @KajetanAbt, quite annoying.
  • Vladislav Rastrusny
    Vladislav Rastrusny about 9 years
    It works, thanks. Well, this problem is still there in 15.04. I wonder when it is going to be fixed?
  • Omar Tariq
    Omar Tariq over 8 years
    If you want login and password then try lubuntu for username and just press enter for password.
  • gojomo
    gojomo about 8 years
    Still a problem in 16.04!
  • lxknvlk
    lxknvlk about 7 years
    the command is sudo swapoff --all
  • user8437812
    user8437812 about 7 years
    Still a problem in 17.04
  • James
    James over 5 years
    Still a problem in 18.04