Partitioner displays "partition too small"-like incorrect message

Bug #219568 reported by Boris Dušek
4
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I was installing Ubuntu 8.04 RC1. In the partitioner in the installer, I chose manual setup (as opposed to guided setup). I created a scheme that's shown on the screenshot attached. The error message in the screenshot does not make sense. It read "Some of the partitions you created were too small. Please make the following partitions at least this large (in bytes). ....." (text ommited, the minimum size was approx. 2 GB). It's strange since the root partition is approx. 12.5 GB large. Swap is 550MB, but the RAM in the machine is 512MB (Actually this was a VMware Fusion virtual machine, and the size memory on host OS is 2GB). However, ignoring the message (hitting "Continue") and installing worked fine. I even tried to "Hibernate" the virtual machine (System > Log out > Hibernate), and it worked fine, so the complain probably does not make sense even for swap partition, which is 550 MB.

To sum up:
* the message is incorrect
* the message, if correct, should say which exact partition is small
* the message should include a human readable size as well (i.e. "2 GB" instead of "1999316992" - it's hard to deduce quickly if it's in scale of 10^9 or 10^10 or 10^8 ...)

Revision history for this message
Boris Dušek (dusek) wrote :
Revision history for this message
Evan (ev) wrote :

1. Yes, that is quite odd. Please stick `set -x` in the top of /lib/partman/check.d/12system_partitions_formatted and attach /var/log/syslog to this bug report after that message pops up.
2. It tells you which mount point is too small. I think that's suitable, but why do you think that the device name would be better?
3. Indeed, I had hoped to fix that in this release cycle, but I missed the string freeze cutoff so it will have to wait for 8.04.1 or 8.10.

Changed in ubiquity:
status: New → Incomplete
Revision history for this message
Boris Dušek (dusek) wrote :

1. Attached. (I clicked on the "Continue" in the message dialog and then saved the syslog.)
2. Sigh, I actually overlooked the "/" character, since it looked like a stray character to me. If it was with a partition with a longer name (i.e. "/mnt"), I am sure I would not have overlooked it.

Revision history for this message
Evan (ev) wrote :

Terribly sorry, I goofed and referred you to the wrong file. If you have the free time, I'd very much appreciate the same procedure with /lib/partman/check.d/03partition_too_small.

Revision history for this message
Boris Dušek (dusek) wrote :

Attached syslog with the correct script traced as you specified. This time I tried 10GB HDD instead of 12GB, it appeared again, the number seemed very similar to the one in screenshot (1999 ... I did not actually check all the digits, but guess it was the same). Also this time I attached the syslog right after the dialog appears, but before hitting any button on it (like "Go Back" or "Continue").

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

It is in fact (erroneously) complaining about the swap partition. I think this should be fixed by this change I committed for ubiquity 1.8.6:

  * Fix partition_too_small check only to warn about partitions that are not
    free space, are not marked as "do not use", and are marked for use with
    a filesystem.

Daily builds with this should be available soon.

Revision history for this message
kidcharles (kidcharlemagne87) wrote :

I've had a similar problem (see attached screenshot). In my case the size in bytes that it quotes is '/home' which is obviously nonsensical. In my case when I continue my installation it fails (see bug #205359), though I had that problem in beta but did not have the partition size problem in the beta, so they may be unrelated.

Revision history for this message
kidcharles (kidcharlemagne87) wrote :

I did not have this warning pop up when performing the same install using the 64-bit version of the desktop iso. Also the installation completed without errors. This indicates that the drive was indeed fine and the problem is with the installer on the 32-bit version.

Revision history for this message
Boris Dušek (dusek) wrote :

I was using 32-bit version when I encountered the bug I reported.

Revision history for this message
Jayson Rowe (jayson.rowe) wrote :

Since it's been a very long time since any additional info was added to this bug, I'm just checking to see if this is still an issue, and find out what additional work should be done on this bug.

Revision history for this message
Shirish Agarwal (shirishag75) wrote : Re: [Bug 219568] Re: Partitioner displays "partition too small"-like incorrect message

Hi all,
I encountered this issue on using ubuntu 8.10 desktop i386 32-bit
desktop version as well. The behavior is still with the version in
ubiquity. What it should be showing is the hdd requirement in MB or GB
or MiB or GiB . One has to calculate the bytes to come to an
understanding. For simplification I'm taking GiB as a base
(1024*1024*1024) = 1073741824 and then divide whatever it says by this
number to get how many GiB needs . Ubiquity says roughly 2.4 GiB for /
if /boot and /home are on different partitions.

For somebody who's completely a newbie to GNU/Linux its just numbers
and he doesn't get any info. as to what's needed.

--
          Regards,
          Shirish Agarwal
  This email is licensed under http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3 8D70 950D 53FB 729A 8B17

Changed in ubiquity:
status: Incomplete → Confirmed
tags: added: ubiquity-1.8.5
tags: added: hardy
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in ubiquity (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ubiquity (Ubuntu) because there has been no activity for 60 days.]

Changed in ubiquity (Ubuntu):
status: Incomplete → Expired
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.