[Bug 287571] Re: create_primary_partitions sometimes attempts to create last partition larger than free space

Bug Watch Updater 287571 at bugs.launchpad.net
Wed Aug 10 23:22:03 UTC 2011


** Changed in: partman-auto (Debian)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to partman-auto in Ubuntu.
https://bugs.launchpad.net/bugs/287571

Title:
  create_primary_partitions sometimes attempts to create last partition
  larger than free space

Status in “partman-auto” package in Ubuntu:
  Fix Released
Status in “partman-auto” package in Debian:
  Fix Released

Bug description:
  Binary package hint: partman-auto

  Preseeding an expert_recipe fails on amd64 with the message "Can't
  have a partition outside the disk!".

  The vm guest has two block devices of 2Gb each.

  The partition part of the preseed file is the following:

  # The method should be set to "raid".
  d-i partman-auto/method string raid
  # Specify the disks to be partitioned. They will all get the same layout,
  # so this will only work if the disks are the same size.
  d-i partman-auto/disk string /dev/sda /dev/sdb

  # Next you need to specify the physical partitions that will be used. 
  d-i partman-auto/expert_recipe string       multiraid ::       400 500 100000000
  0 raid $primary{ } method{ raid } .       64 256 200% raid $primary{ } method{ r
  aid } .
        

  # Last you need to specify how the previously defined partitions will be
  # used in the RAID setup. Remember to use the correct partition numbers
  # for logical partitions.
  # Parameters are:
  # <raidtype> <devcount> <sparecount> <fstype> <mountpoint> #          <devices> <sparedevices>
  # RAID levels 0, 1 and 5 are supported; devices are separated using "#"
  d-i partman-auto-raid/recipe string     1 2 0 ext3 / /dev/sda1#/dev/sdb1 .    1 2 0 swap - /dev/sda2#/dev/sdb2 .

  # This makes partman automatically partition without confirmation.
  d-i partman-md/confirm boolean true
  d-i partman/confirm_write_new_label boolean true
  d-i partman/choose_partition select finish
  d-i partman/confirm boolean true

  mdadm mdadm/boot_degraded boolean true

  The exact same pressed used with the i386 installer works.

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




More information about the foundations-bugs mailing list