← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1351267] Re: partman-auto prefers to give disk to swap, leaving root too small

 

This bug was fixed in the package partman-auto - 134ubuntu8

---------------
partman-auto (134ubuntu8) bionic; urgency=medium

  * Introduce partman-auto/cap-ram, to allow capping RAM size as used for
    swap partition calculations. This allows us to effectively cap the
    swap partitions size to maximum of 2*CAP. Default is set to 1024, thus
    capping swap partitions to 2GB maximum. LP: #1351267

 -- Dimitri John Ledkov <xnox@xxxxxxxxxx>  Fri, 23 Feb 2018 13:53:15
+0000

** Changed in: partman-auto (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1351267

Title:
  partman-auto prefers to give disk to swap, leaving root too small

Status in partman-auto package in Ubuntu:
  Fix Released
Status in partman-auto source package in Xenial:
  Fix Committed

Bug description:
  [Impact]

   * Impossible to perform guided LVM installation, with an all-in-one
  configuration out of the box, on high-memory systems. High-memory
  systems are systems that have RAM on par, or more than, disk space.
  E.g. 8GB RAM with 8GB disk space, or 1TB RAM with 256GB hard drive.

  [Test Case]

   * Start d-i installer
   * Select Use entire disk & setup LVM
   * Select drive to use, which is on par, or less then total RAM on the system
   * Select all in one / atomic partition recipe
   * Install should succeed, with no more than 2GB of swap partition / volume

  [Regression Potential]

   * SWAP partition or LVM volume is typically calculated as a
  percentage of RAM - between 100% and 200% of RAM. Yet, this assumes
  that RAM is significantly less than total disk space, and thus on
  high-memory systems results in badly setup systems with too small
  rootfs, and too much swap.

  [Other Info]
   
   * Original bug report

  
  I was trying to install Ubuntu 14.04.1 LTS on an Oracle VirtualBox VM with 6.5GB of RAM and 8GB (default for a new Virtual HDD on VirtualBox) of disk space.

  I selected the option "Erase disk and install Ubuntu" (and post crash
  "Erase Ubuntu 14.04.1 LTS and reinstall") and let it use the defaults.

  The installer gives the error:

   "Some of the partitions you created are too small. Please make the
  following partitions at least this large:

   / 3.4 GB

   If you do not go back to the partitioner and increase the size of
  these partitions, the installation may fail."

  The message is very confusing to a new user who did not specify any
  partition sizes themselves.

  The installer created a 6GB Swap partition on the 8GB drive. The
  installer then could not install to the root partition and failed
  midway:

  "The installer encountered an error copying files to the hard disk:

  [Errno 28] No space left on device

  This is due to there being insufficient disk space for the install to
  complete on the target partition. Please run the installer again and
  select a larger partition to install into."

  ..then a box appears stating that the installer has crashed:

  "Installer crashed

  We're sorry; the installer crashed. After you close this window, we'll
  allow you to file a bug report using the integrated bug reporting
  tool. This will gather information about your system and your
  installation process. The details will be sent to our bug tracker and
  a developer will attend to the problem as soon as possible."

  The box cannot be closed. No bug reporting tool launches. The computer
  requires restarting to become usable again.

  Please let me know if you need any more information as this is my
  first bug report.

  Thanks for your time,
  Matthew

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/partman-auto/+bug/1351267/+subscriptions