Jaunty alternate ISO fails to partition using Guided / use entire disk

Bug #340188 reported by Charlie Kravetz
32
This bug affects 1 person
Affects Status Importance Assigned to Milestone
parted (Ubuntu)
Fix Released
Critical
Colin Watson

Bug Description

RELEASE: Jaunty Jackalope Development ISO
CD/DVD VARIANT: 32bit Ubuntu Alternate cd / 32bit Xubuntu Alternate cd
ISO BUILD: 20090309
SYMPTOMS: attempting to install, disk has three partitions on it:
sdc1, 10GB, ext3, primary partition used for /
sdc2, 10GB, extended partition
sdc5, 2GB, swap, logical partition used for /swap
sdc6, 8GB, ext3, logical partition used for /home

selected Guided partitioning -- Use entire disk, sdc

[!!] Partition disks
Error informing the kernel about modifications to partition /dev/sdc5
-- Device or resource busy. This means Linus won't know about any
changes you made to /dev/sdc5 until you reboot -- so you ;shouldn't
mount it or use it in any way before rebooting.

ERROR!!!

                    Ignore
                    Cancel
<Go Back>

hit Ignore

This repeats for each partition, then

[!!] Partition disks

The attempt to mount a file system with type swap in SCSI2 (0,1,0),
partition #5 (sdc) at none failed.

You may resume partitioning from the partitioning menu.

Do you want to resume partitioning?

<Go Back> <Yes> <No>

If you abort or continue the installation, it fails to boot into the installation. If you then install again, using the same procedure, including "Guided partitioning -- Use entire disk, sdc", the installation will continue and the resulting installed distribution will work.

STEPS TO REPRODUCE:
1. hard disk with existing partitions
2. attempt installation using alternate cd
3. select Guided partitioning -- use entire disk

I have been able to reproduce this since 20090307

This was on an actual hardware installation, PIII, 866MHz cpu, 512MB ram

Tags: iso-testing

Related branches

Revision history for this message
Charlie Kravetz (cjkgeek) wrote :
Revision history for this message
Charlie Kravetz (cjkgeek) wrote :
Revision history for this message
Charlie Kravetz (cjkgeek) wrote :
Revision history for this message
Charlie Kravetz (cjkgeek) wrote :
Revision history for this message
Charlie Kravetz (cjkgeek) wrote :
Revision history for this message
Charlie Kravetz (cjkgeek) wrote :
Revision history for this message
Charlie Kravetz (cjkgeek) wrote :

New set of logs attached from this point. cjwatson requested I try this first; it would be interesting to know if http://paste.ubuntu.com/128992/ fixes the problem when applied to /lib/partman/commit.d/30parted (you can apply it by just editing that file with nano before the partitioner starts)
FAILED TO HELP: 2009-03-09 / 02:48 AM UTC

Next, the following was used:
find the udevd process; kill it (yes, really; just make sure nothing else is happening); run 'UDEV_LOG=err udevd --debug >udev.log 2>&1'; run through partitioning as before; extract udev.log

Strangely enough, the error disappears using this process as follows:
1. boot to the Alternate cd
2. proceed through installation process to "Partition Disks"
3. switch to TTY2 using Ctrl+Alt+F2
4. ran 'ps -A | more'; found one udevd process:
    680 Root 11352 S < udevd --daemon --resolve-names=server
5. run 'killall -9 udevd'
6. verified the udevd processes were killed.
7. run 'UDEV_LOG=err udevd --debug >udev.log 2>&1'
8. continue the installation process
9. It did not fail partitioning

I was so surprised, I ran this three times to be sure I did not make a mistake. Logs are from the third run

Revision history for this message
Charlie Kravetz (cjkgeek) wrote :

hardware-summary.asc in comment #7 is wrong log file
This is after the process in comment #7

Revision history for this message
Charlie Kravetz (cjkgeek) wrote :

partman.asc after the process in comment #7

Revision history for this message
Charlie Kravetz (cjkgeek) wrote :

syslog.asc after the process in comment #7

Revision history for this message
Charlie Kravetz (cjkgeek) wrote :

udev.log after the process in comment #7

Revision history for this message
Charlie Kravetz (cjkgeek) wrote :

ps -A > processes_before_kill.txt run before I ran 'killall -9 udevd'

Revision history for this message
Charlie Kravetz (cjkgeek) wrote :

ps -A > processes_after_kill.txt run after I ran 'killall -9 udevd'

Revision history for this message
Charlie Kravetz (cjkgeek) wrote :

Referring back to comment #7, I worded that wrong. The error messages still appear, but the partitioner does not fail, it will continue through the installation process if I hit "ignore".

Revision history for this message
Charlie Kravetz (cjkgeek) wrote :

after discussion with cjwatson on irc; trying new changes:

Revision history for this message
Charlie Kravetz (cjkgeek) wrote :
Revision history for this message
Charlie Kravetz (cjkgeek) wrote :
Revision history for this message
Colin Watson (cjwatson) wrote :

Part of this was addressed by this udev upload from Scott:

udev (139-2) jaunty; urgency=low

  * Patch udevadm settle to communicate with udevd to make sure that there
    aren't any pending inotify events that haven't been turned into uevents.

 -- Scott James Remnant <email address hidden> Tue, 10 Mar 2009 13:09:46 +0000

I think that the rest can be dealt with by calling 'udevadm settle' at the appropriate points in libparted, although I haven't yet been able to test this accurately on an affected system. Much though I dislike it, I think the easiest approach is going to be to upload it and work from there. :-/

Changed in debian-installer:
assignee: nobody → cjwatson
importance: Undecided → Critical
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package parted - 1.8.8.git.2008.03.24-11.1ubuntu5

---------------
parted (1.8.8.git.2008.03.24-11.1ubuntu5) jaunty; urgency=low

  * udevadm-settle.dpatch: Run 'udevadm settle' either side of rereading the
    partition table, to avoid a variety of races (LP: #340188).

 -- Colin Watson <email address hidden> Tue, 10 Mar 2009 21:28:11 +0000

Changed in parted:
status: In Progress → Fix Released
tags: added: iso-testing
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.