Precise ubiquity fails with existing swap, must manually "swapoff"

Bug #905628 reported by Erick Brunzell
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
partman-basicfilesystems (Ubuntu)
Fix Released
High
Colin Watson

Bug Description

I'm still just following up on testing related to bug 766265. I'd performed a couple of tests on my old VIA Win XP box, with only XP installed prior to testing "install alongside" both with and without free space, and I'd encountered no problems, but I decided to do some retesting on my Intel box with two hard drives:

ubuntu@ubuntu:~$ sudo parted -l
Model: ATA WDC WD5000AAKS-0 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
 1 32.3kB 43.3GB 43.3GB primary ext4 boot
 2 43.3GB 86.2GB 42.8GB primary ext3
 3 86.2GB 129GB 43.0GB primary ext3
 4 129GB 500GB 371GB extended
18 129GB 151GB 21.8GB logical ext4
14 151GB 172GB 21.1GB logical ext3
15 172GB 193GB 21.1GB logical ext4
16 193GB 215GB 21.4GB logical ext4
17 215GB 236GB 21.4GB logical ext4
13 236GB 258GB 22.0GB logical ext4
12 258GB 280GB 21.6GB logical ext4
11 280GB 301GB 21.7GB logical ext4
10 301GB 323GB 21.8GB logical ext4
 5 323GB 374GB 50.8GB logical ext3
19 374GB 377GB 3208MB logical fat32
 6 378GB 432GB 53.6GB logical ext3
 7 432GB 487GB 54.9GB logical ext3
 8 487GB 498GB 10.7GB logical ext3
 9 498GB 500GB 2517MB logical linux-swap(v1)

Model: ATA WDC WD800JB-00JJ (scsi)
Disk /dev/sdb: 80.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
 1 1049kB 77.9GB 77.9GB primary ext4
 2 77.9GB 80.0GB 2136MB extended
 5 77.9GB 80.0GB 2136MB logical linux-swap(v1)

And the installation fails saying "the creation of swap space in partition #9 of SCSI1 (0,0,0) (sda) failed". Then clicking on OK opens a new window saying "an error occurred while writing the changes to the storage devices. The resize operation has been aborted."

But then clicking on OK does nothing and the installer can't be quit or anything without rebooting.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: ubiquity 2.9.8 [modified: lib/partman/automatically_partition/question]
ProcVersionSignature: Ubuntu 3.2.0-4.10-generic-pae 3.2.0-rc5
Uname: Linux 3.2.0-4-generic-pae i686
ApportVersion: 1.90-0ubuntu1
Architecture: i386
CasperVersion: 1.296
Date: Sat Dec 17 06:45:21 2011
LiveMediaBuild: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha i386 (20111216.1)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ubiquity
UpgradeStatus: No upgrade log present (probably fresh install)

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

I can duplicate this by choosing "Install alongside" on that Intel box with two drives, and an existing swap on each drive, either with or without free space. I'll try it with only one drive, and therefore only one swap, to see what happens.

When I was testing on that old VIA Win XP box earlier my "alongside" testing was done with only XP installed. One test where XP was using the whole disc, and another with XP and only adequate free space. So no existing swap was present.

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

Even with only the 80GB drive connected I get the same failure. That would be with:

Model: ATA WDC WD800JB-00JJ (scsi)
Disk /dev/sda: 80.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
 1 1049kB 77.9GB 77.9GB primary ext4
 2 77.9GB 80.0GB 2136MB extended
 5 77.9GB 80.0GB 2136MB logical linux-swap(v1)

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

OK, I'll bet Colin Watson will know exactly how to handle this ;^)

It works fine if you first use Gparted and select "swap-off".

So, if you're installing with existing swap, you must manually "unmount" the swap before beginning an automated install.

summary: - Precise ubiquity failed to create swap and froze
+ Precise ubiquity fails with existing swap, must manually "swapoff"
Revision history for this message
Erick Brunzell (lbsolost) wrote :

I checked this with two drives connected, each having it's own swap, and as long as you manually "swapoff" before beginning an automated install things are OK.

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

The installation does now also fail if using "entire disc" or "something else/manual" unless you manually "swapoff" so I'm comfortable in marking this confirmed.

Changed in ubiquity (Ubuntu):
status: New → Confirmed
Revision history for this message
Brian Murray (brian-murray) wrote :

This may be related to the fix for bug 709363.

Changed in ubiquity (Ubuntu):
importance: Undecided → High
assignee: nobody → Canonical Foundations Team (canonical-foundations)
Revision history for this message
sojourner (itsmealso2) wrote :

this also occurred on my amd64 sys when trying to install selecting manual and installing to a preformatted partition . note ! the box has 3 drives 2 of which already have swap partitions one of which was on the same drive as the partition I was installing to .

Colin Watson (cjwatson)
Changed in ubiquity (Ubuntu):
assignee: Canonical Foundations Team (canonical-foundations) → Colin Watson (cjwatson)
Colin Watson (cjwatson)
Changed in ubiquity (Ubuntu):
status: Confirmed → In Progress
Colin Watson (cjwatson)
affects: ubiquity (Ubuntu) → partman-basicfilesystems (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package partman-basicfilesystems - 71ubuntu3

---------------
partman-basicfilesystems (71ubuntu3) precise; urgency=low

  * Disable existing swap partitions before formatting them (LP: #905628).
 -- Colin Watson <email address hidden> Tue, 20 Dec 2011 14:18:01 +0000

Changed in partman-basicfilesystems (Ubuntu):
status: In Progress → Fix Released
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.