Ubuntu installer says: The creation of swap space in partition failed

Bug #990744 reported by Lucas F.O.S.
64
This bug affects 12 people
Affects Status Importance Assigned to Milestone
partman-basicfilesystems (Ubuntu)
Triaged
High
Unassigned

Bug Description

Hi.
I have a Asus motherboard with ICH10R with the below configuration:
sudo dmraid -s
*** Group superset isw_bajfdgcbgf
--> Active Subset
name : isw_bajfdgcbgf_Dados
size : 209731840
stride : 128
type : mirror
status : ok
subsets: 0
devs : 2
spares : 0
--> Active Subset
name : isw_bajfdgcbgf_Sistema
size : 1534063104
stride : 128
type : stripe
status : ok
subsets: 0
devs : 2
spares : 0

Sistema is where I'm trying install Precise but the installer give me the error: "The creation of swap space in partition #1 of Serial ATA RAID isw_bajfdgcbgf_Sistema4 (partition #4) failed". I click OK but nothing happens and the installation process just don't go anywhere.

Also, when editing partitions the installer shows me each partition and each RAID subset at least twice and this leaves me pretty confused don't knowing the right one to select. Same in the combo box to install grub.
I have been trying several combinations but every single one ends in this same error.

There is another problem too. The partition created to using the installer to install 12.04 is named isw_bajfdgcbgf_Sistema6 and when I open Gparted it has a red exclamation with the following warning:
Unable to detect file system! Possible reasons are:
- The file system is damaged
- The file system in unknown to GParted
- The is no file system available (unformatted)
- The device entry /dev/mapper/isw_bajfdgcbgf_Sistema6 is missing

If I delete it and recreate it with Gpated, reboot (the installation is frozen) and try again the both errors occur again :(

I'm using 10.10 and was a pain to install it. I was expecting that 3 releases after and a LTS would stop my nightmares but it was just the opposite. It's impossible now :((

So developers please, if you need any more information let me know ;)

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: ubiquity 2.10.16
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
Uname: Linux 3.2.0-23-generic x86_64
ApportVersion: 2.0.1-0ubuntu5
Architecture: amd64
CasperVersion: 1.315
Date: Sat Apr 28 20:11:13 2012
ExecutablePath: /usr/lib/ubiquity/bin/ubiquity
InstallCmdLine: noprompt cdrom-detect/try-usb=true file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz quiet splash -- maybe-ubiquity
InterpreterPath: /usr/bin/python2.7
LiveMediaBuild: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
 TERM=unknown
SourcePackage: ubiquity
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Lucas F.O.S. (dissimulos-ubuntu) wrote :
Revision history for this message
Lucas F.O.S. (dissimulos-ubuntu) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubiquity (Ubuntu):
status: New → Confirmed
Revision history for this message
eraserix (eraserix) wrote :

Same problem, all partitions are shown at least twice (precise release), and if swap space is there, the mentioned error is displayed.

In my case, the system was already partitioned, I just needed to reformat some of them. Choosing "do not use" for all swap partitions helped me to get through the installation successfully. Guess I'll have to add the swap space later by hand.

Revision history for this message
Lucas F.O.S. (dissimulos-ubuntu) wrote :

So, the bug is confirmed but is anyone fixing it?
I'm not a coder, but I will reiterate that any information needed I'll gladly post it, if I can. I really want to use this LTS.

Bryce Harrington (bryce)
Changed in ubiquity (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → High
Revision history for this message
Charles Jie (chjie) wrote :

Make sure you have run the last item in the long list of executable items (<down> many times, or you won't see).

This item will commit your disk using plan - write to disk, then you may advance to next step.

Revision history for this message
Lucas F.O.S. (dissimulos-ubuntu) wrote :

What list? The one showed in a block box during setup?

Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/990744

tags: added: iso-testing
Revision history for this message
Lucas F.O.S. (dissimulos-ubuntu) wrote :

Just to say I tried this in 12.10 aplha 3 ang get the same result.

Revision history for this message
David F.O.F. (whoerj221g-20-jackietm) wrote :

I tried this with 13.10 and had the same problem.
The work-around is to manually set every swap partition entry to 'do not use', save one.
It installed fine for me afterwards.

Revision history for this message
Jane Atkinson (irihapeti) wrote :

Present in the latest Wily Xubuntu ISO.

Revision history for this message
Erick Brunzell (lbsolost) wrote :

Just happened to me while performing an auto-resize test with Ubuntu GNOME 20151020 Wily, see screenshot.

tags: added: wily
Revision history for this message
Eric R. Meyers (ermeyers) wrote :

20151023 wily install: I cleared up, or bypassed, the problem by unlocking the swap partition using "Swapoff" option found in GParted.

Revision history for this message
M R (captivate) wrote :

^^^^^
Xenial install: This has something to do with how extended partitions are treated as locked.

After reformatting the drive through GParted live:
1. Delete main ext4 partition
2. Delete swap partition inside the extended container.
3. Delete extended container partition.

The container partition will not permit itself to be formatted until the swap partition inside is cleared.
After using these steps, the installation successfully completed.

Very user-unfriendly when installing and selecting "ERASE ENTIRE DISK", knowing the implications.
Anyway to instruct the installer to bypass the lock and force format?

Revision history for this message
Phillip Susi (psusi) wrote :

mkswap fails because you appear to have something that looks like an MBR ( like a previous fat filesystem ) in that partition and mkswap has a foolish check where it refuses to wipe out an MBR that is triggered by this and the fact that you are using fakeraid. You can work around this by using dd to copy /dev/zero to the first sector of the partition. The proper fix for this is for mkswap to be invoked with a -f switch to force it to erase the MBR.

affects: ubiquity (Ubuntu) → partman-basicfilesystems (Ubuntu)
Revision history for this message
sudodus (nio-wiklund) wrote :

ISO-testing Lubuntu Xenial desktop amd64:

There is a window with the title ' Could not create a swap partition' and the text 'Failed to create swap in partition no 5 on SCSI7 (0,0,0) (sda) [In Swedish]

There was already swap created by the i386 version and accepted by it at 'Something else' (by the same Xenial beta 1). But this amd64 version does not like it for some reason.

I have been able to share a swap partition before between i386 and amd64 versions of linux.

It did not help to swapoff manually before running the installer.

Revision history for this message
sudodus (nio-wiklund) wrote :

Yes Phillip Susi,

I was not even able to create a new swap partition (using the whole drive).

A clean drive worked (I wiped the SSD) - It seems the amd64 version is more picky than the i386 version (of the same Xenial beta 1).

Revision history for this message
Nairwolf (nairwolf) wrote :

Xubuntu Xenial Beta 1 - desktop amd64

I have this bug too. During the ubiquity installation, if I chose the option "Erase disk and Install Ubuntu", just after clicked "continue", a window appear (during the timezone window) and says :

"Failed to create a swap space:
The creation of swap space in partition #5 of SCSI3 (0,0,0) (sdb) failed"

I click on "ok", and I'm back on the window "installation type". I can't install in these state.

Which is weird is I don't have /dev/sdb but it's detected, and it supposed to be the usb key which I use to install Xubuntu Xenial.

Revision history for this message
M R (captivate) wrote :

"The proper fix for this is for mkswap to be invoked with a -f switch to force it to erase the MBR."

- the ever-knowledgeable Phil Susi

Revision history for this message
Nairwolf (nairwolf) wrote :

Yes, I trust Phillip Susi, but during an installation with Ubiquity is supposed to work without this fix. The installation is suppose to work automatically.

I'm talking for myself, I don't know how to use this fix.

Revision history for this message
M R (captivate) wrote :

"I'm talking for myself, I don't know how to use this fix."

He gave two options. One was a workaround. The other, a fix was intended to be patched into the Ubiquity installer. But then he moved the bug to partman-basicfilesystems.

Unless ubiquity is calling on partman to do the format, I'm left scratching my head as to why it was moved...

Revision history for this message
Phillip Susi (psusi) wrote :

Yes, partman-basicfilesystems is what actually does the format.

Revision history for this message
Erick Brunzell (lbsolost) wrote :

Still affects 20160323.1 Ubuntu GNOME.

Revision history for this message
Erick Brunzell (lbsolost) wrote :

Also clicking OK does nothing so you have no choice but to reboot the live image.

Revision history for this message
Erick Brunzell (lbsolost) wrote :

This is turning out to be a real show-stopper for Xenial!

Revision history for this message
Erick Brunzell (lbsolost) wrote :

Of course we could just recommend users use dd as suggested, and then listen to the users weep when they find that they've invoked it against the wrong device and learned why it earned the moniker data destroyer.

Revision history for this message
Erick Brunzell (lbsolost) wrote :

I see a new bug has been filed, bug #1552539. So are the two duplicates?

zzr (zzryan)
Changed in partman-basicfilesystems (Ubuntu):
status: Triaged → Confirmed
Steve Langasek (vorlon)
Changed in partman-basicfilesystems (Ubuntu):
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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