Preseed setting wrong partition size












5















I'm trying to do an install of Debian with the preseed tool. Everything's working great so far, except for the partitions of my disk.
Basically what I want is:



/ of 30GB - ext4
/var/lib about 2TB - xfs
swap 2GB


But the system at the end comes like this:



/ 2TB - ext4
swap, about 20GB


Here's the part for the disks of the preseed file:



d-i partman-lvm/device_remove_lvm boolean true
d-i partman-auto/purge_lvm_from_device boolean true
d-i partman-lvm/confirm boolean true
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
# GPT
d-i partman-basicfilesystems/choose_label string gpt
d-i partman-basicfilesystems/default_label string gpt
d-i partman-partitioning/choose_label string gpt
d-i partman-partitioning/default_label string gpt
d-i partman/choose_label string gpt
d-i partman/default_label string gpt

d-i partman-auto/expert-recipe string sql::
32 32 32 free
$gptonly{ }
$primary{ }
$bios_boot{ }
method{ biosgrub }
.
30000 32000 30720 ext4
$gptonly
$primary{ } $bootable{ }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
mountpoint{ / }
.
2048 4000 2048 linux-swap
$gptonly
method{ swap } format{ }
.
2000000 1000 -1 xfs
$gptonly
method{ format } format{ }
use_filesystem{ } filesystem{ xfs }
mountpoint{ /var/lib/ }
options/noatime{ noatime }
options/nodiratime{ nodiratime }
options/nobarrier{ nobarrier }
.

d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman-partitioning/confirm_copy boolean true
d-i partman/confirm_nooverwrite boolean true

## Controlling how partitions are mounted
d-i partman/mount_style select traditionnal


Is there something I'm doing wrong?










share|improve this question





























    5















    I'm trying to do an install of Debian with the preseed tool. Everything's working great so far, except for the partitions of my disk.
    Basically what I want is:



    / of 30GB - ext4
    /var/lib about 2TB - xfs
    swap 2GB


    But the system at the end comes like this:



    / 2TB - ext4
    swap, about 20GB


    Here's the part for the disks of the preseed file:



    d-i partman-lvm/device_remove_lvm boolean true
    d-i partman-auto/purge_lvm_from_device boolean true
    d-i partman-lvm/confirm boolean true
    d-i partman-auto/disk string /dev/sda
    d-i partman-auto/method string regular
    # GPT
    d-i partman-basicfilesystems/choose_label string gpt
    d-i partman-basicfilesystems/default_label string gpt
    d-i partman-partitioning/choose_label string gpt
    d-i partman-partitioning/default_label string gpt
    d-i partman/choose_label string gpt
    d-i partman/default_label string gpt

    d-i partman-auto/expert-recipe string sql::
    32 32 32 free
    $gptonly{ }
    $primary{ }
    $bios_boot{ }
    method{ biosgrub }
    .
    30000 32000 30720 ext4
    $gptonly
    $primary{ } $bootable{ }
    method{ format } format{ }
    use_filesystem{ } filesystem{ ext4 }
    mountpoint{ / }
    .
    2048 4000 2048 linux-swap
    $gptonly
    method{ swap } format{ }
    .
    2000000 1000 -1 xfs
    $gptonly
    method{ format } format{ }
    use_filesystem{ } filesystem{ xfs }
    mountpoint{ /var/lib/ }
    options/noatime{ noatime }
    options/nodiratime{ nodiratime }
    options/nobarrier{ nobarrier }
    .

    d-i partman/confirm_write_new_label boolean true
    d-i partman/choose_partition select finish
    d-i partman/confirm boolean true
    d-i partman-partitioning/confirm_copy boolean true
    d-i partman/confirm_nooverwrite boolean true

    ## Controlling how partitions are mounted
    d-i partman/mount_style select traditionnal


    Is there something I'm doing wrong?










    share|improve this question



























      5












      5








      5


      2






      I'm trying to do an install of Debian with the preseed tool. Everything's working great so far, except for the partitions of my disk.
      Basically what I want is:



      / of 30GB - ext4
      /var/lib about 2TB - xfs
      swap 2GB


      But the system at the end comes like this:



      / 2TB - ext4
      swap, about 20GB


      Here's the part for the disks of the preseed file:



      d-i partman-lvm/device_remove_lvm boolean true
      d-i partman-auto/purge_lvm_from_device boolean true
      d-i partman-lvm/confirm boolean true
      d-i partman-auto/disk string /dev/sda
      d-i partman-auto/method string regular
      # GPT
      d-i partman-basicfilesystems/choose_label string gpt
      d-i partman-basicfilesystems/default_label string gpt
      d-i partman-partitioning/choose_label string gpt
      d-i partman-partitioning/default_label string gpt
      d-i partman/choose_label string gpt
      d-i partman/default_label string gpt

      d-i partman-auto/expert-recipe string sql::
      32 32 32 free
      $gptonly{ }
      $primary{ }
      $bios_boot{ }
      method{ biosgrub }
      .
      30000 32000 30720 ext4
      $gptonly
      $primary{ } $bootable{ }
      method{ format } format{ }
      use_filesystem{ } filesystem{ ext4 }
      mountpoint{ / }
      .
      2048 4000 2048 linux-swap
      $gptonly
      method{ swap } format{ }
      .
      2000000 1000 -1 xfs
      $gptonly
      method{ format } format{ }
      use_filesystem{ } filesystem{ xfs }
      mountpoint{ /var/lib/ }
      options/noatime{ noatime }
      options/nodiratime{ nodiratime }
      options/nobarrier{ nobarrier }
      .

      d-i partman/confirm_write_new_label boolean true
      d-i partman/choose_partition select finish
      d-i partman/confirm boolean true
      d-i partman-partitioning/confirm_copy boolean true
      d-i partman/confirm_nooverwrite boolean true

      ## Controlling how partitions are mounted
      d-i partman/mount_style select traditionnal


      Is there something I'm doing wrong?










      share|improve this question
















      I'm trying to do an install of Debian with the preseed tool. Everything's working great so far, except for the partitions of my disk.
      Basically what I want is:



      / of 30GB - ext4
      /var/lib about 2TB - xfs
      swap 2GB


      But the system at the end comes like this:



      / 2TB - ext4
      swap, about 20GB


      Here's the part for the disks of the preseed file:



      d-i partman-lvm/device_remove_lvm boolean true
      d-i partman-auto/purge_lvm_from_device boolean true
      d-i partman-lvm/confirm boolean true
      d-i partman-auto/disk string /dev/sda
      d-i partman-auto/method string regular
      # GPT
      d-i partman-basicfilesystems/choose_label string gpt
      d-i partman-basicfilesystems/default_label string gpt
      d-i partman-partitioning/choose_label string gpt
      d-i partman-partitioning/default_label string gpt
      d-i partman/choose_label string gpt
      d-i partman/default_label string gpt

      d-i partman-auto/expert-recipe string sql::
      32 32 32 free
      $gptonly{ }
      $primary{ }
      $bios_boot{ }
      method{ biosgrub }
      .
      30000 32000 30720 ext4
      $gptonly
      $primary{ } $bootable{ }
      method{ format } format{ }
      use_filesystem{ } filesystem{ ext4 }
      mountpoint{ / }
      .
      2048 4000 2048 linux-swap
      $gptonly
      method{ swap } format{ }
      .
      2000000 1000 -1 xfs
      $gptonly
      method{ format } format{ }
      use_filesystem{ } filesystem{ xfs }
      mountpoint{ /var/lib/ }
      options/noatime{ noatime }
      options/nodiratime{ nodiratime }
      options/nobarrier{ nobarrier }
      .

      d-i partman/confirm_write_new_label boolean true
      d-i partman/choose_partition select finish
      d-i partman/confirm boolean true
      d-i partman-partitioning/confirm_copy boolean true
      d-i partman/confirm_nooverwrite boolean true

      ## Controlling how partitions are mounted
      d-i partman/mount_style select traditionnal


      Is there something I'm doing wrong?







      debian preseed






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 19 '15 at 13:32









      DisplayName

      4,53094580




      4,53094580










      asked Jan 19 '15 at 13:23









      RawkinsRawkins

      52849




      52849






















          2 Answers
          2






          active

          oldest

          votes


















          3














          The -1 for maximum size of xfs partition is the problem, although it really should not be.



          There is a bug (termed as a limitation of the algorithm) in partman-auto that requires a very large number for the maximum size of one of your partitions.



          `



          5. LIMITATIONS



          Due to limitation of the algorithms in partman-auto, there must be at
          least one partition with high maximal size so that the whole free
          space can be used. Usually you can give the partition containing
          /home a maximal size 1000000000 which is high enough for the present
          storage devices. If the large /home is not an option for you, you can
          also define in the recipe one additional partition with size
          1000000000, method "keep" and leave it unmounted. When the
          installation completes you can remove it.



          Do not use higher than 1000000000 numbers because the shell arithmetic
          is limited to 31 bits (on i386).
          `



          http://ftp.dc.volia.com/pub/debian/preseed/partman-auto-recipe.txt






          share|improve this answer































            1














            Whether the bug mentioned by umeboshi is present depends on the version of Debian Installer and Partman that your distribution is using. On Ubuntu 14.04 and newer Debian versions the -1 is supported, but on older versions or needing backwards compatibility the above limitation is accurate.



            Supporting evidence from Debian source:
            https://salsa.debian.org/installer-team/debian-installer/blob/master/doc/devel/partman-auto-recipe.txt






            share|improve this answer

























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "106"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f179880%2fpreseed-setting-wrong-partition-size%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              3














              The -1 for maximum size of xfs partition is the problem, although it really should not be.



              There is a bug (termed as a limitation of the algorithm) in partman-auto that requires a very large number for the maximum size of one of your partitions.



              `



              5. LIMITATIONS



              Due to limitation of the algorithms in partman-auto, there must be at
              least one partition with high maximal size so that the whole free
              space can be used. Usually you can give the partition containing
              /home a maximal size 1000000000 which is high enough for the present
              storage devices. If the large /home is not an option for you, you can
              also define in the recipe one additional partition with size
              1000000000, method "keep" and leave it unmounted. When the
              installation completes you can remove it.



              Do not use higher than 1000000000 numbers because the shell arithmetic
              is limited to 31 bits (on i386).
              `



              http://ftp.dc.volia.com/pub/debian/preseed/partman-auto-recipe.txt






              share|improve this answer




























                3














                The -1 for maximum size of xfs partition is the problem, although it really should not be.



                There is a bug (termed as a limitation of the algorithm) in partman-auto that requires a very large number for the maximum size of one of your partitions.



                `



                5. LIMITATIONS



                Due to limitation of the algorithms in partman-auto, there must be at
                least one partition with high maximal size so that the whole free
                space can be used. Usually you can give the partition containing
                /home a maximal size 1000000000 which is high enough for the present
                storage devices. If the large /home is not an option for you, you can
                also define in the recipe one additional partition with size
                1000000000, method "keep" and leave it unmounted. When the
                installation completes you can remove it.



                Do not use higher than 1000000000 numbers because the shell arithmetic
                is limited to 31 bits (on i386).
                `



                http://ftp.dc.volia.com/pub/debian/preseed/partman-auto-recipe.txt






                share|improve this answer


























                  3












                  3








                  3







                  The -1 for maximum size of xfs partition is the problem, although it really should not be.



                  There is a bug (termed as a limitation of the algorithm) in partman-auto that requires a very large number for the maximum size of one of your partitions.



                  `



                  5. LIMITATIONS



                  Due to limitation of the algorithms in partman-auto, there must be at
                  least one partition with high maximal size so that the whole free
                  space can be used. Usually you can give the partition containing
                  /home a maximal size 1000000000 which is high enough for the present
                  storage devices. If the large /home is not an option for you, you can
                  also define in the recipe one additional partition with size
                  1000000000, method "keep" and leave it unmounted. When the
                  installation completes you can remove it.



                  Do not use higher than 1000000000 numbers because the shell arithmetic
                  is limited to 31 bits (on i386).
                  `



                  http://ftp.dc.volia.com/pub/debian/preseed/partman-auto-recipe.txt






                  share|improve this answer













                  The -1 for maximum size of xfs partition is the problem, although it really should not be.



                  There is a bug (termed as a limitation of the algorithm) in partman-auto that requires a very large number for the maximum size of one of your partitions.



                  `



                  5. LIMITATIONS



                  Due to limitation of the algorithms in partman-auto, there must be at
                  least one partition with high maximal size so that the whole free
                  space can be used. Usually you can give the partition containing
                  /home a maximal size 1000000000 which is high enough for the present
                  storage devices. If the large /home is not an option for you, you can
                  also define in the recipe one additional partition with size
                  1000000000, method "keep" and leave it unmounted. When the
                  installation completes you can remove it.



                  Do not use higher than 1000000000 numbers because the shell arithmetic
                  is limited to 31 bits (on i386).
                  `



                  http://ftp.dc.volia.com/pub/debian/preseed/partman-auto-recipe.txt







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 25 '15 at 21:20









                  umeboshiumeboshi

                  268111




                  268111

























                      1














                      Whether the bug mentioned by umeboshi is present depends on the version of Debian Installer and Partman that your distribution is using. On Ubuntu 14.04 and newer Debian versions the -1 is supported, but on older versions or needing backwards compatibility the above limitation is accurate.



                      Supporting evidence from Debian source:
                      https://salsa.debian.org/installer-team/debian-installer/blob/master/doc/devel/partman-auto-recipe.txt






                      share|improve this answer






























                        1














                        Whether the bug mentioned by umeboshi is present depends on the version of Debian Installer and Partman that your distribution is using. On Ubuntu 14.04 and newer Debian versions the -1 is supported, but on older versions or needing backwards compatibility the above limitation is accurate.



                        Supporting evidence from Debian source:
                        https://salsa.debian.org/installer-team/debian-installer/blob/master/doc/devel/partman-auto-recipe.txt






                        share|improve this answer




























                          1












                          1








                          1







                          Whether the bug mentioned by umeboshi is present depends on the version of Debian Installer and Partman that your distribution is using. On Ubuntu 14.04 and newer Debian versions the -1 is supported, but on older versions or needing backwards compatibility the above limitation is accurate.



                          Supporting evidence from Debian source:
                          https://salsa.debian.org/installer-team/debian-installer/blob/master/doc/devel/partman-auto-recipe.txt






                          share|improve this answer















                          Whether the bug mentioned by umeboshi is present depends on the version of Debian Installer and Partman that your distribution is using. On Ubuntu 14.04 and newer Debian versions the -1 is supported, but on older versions or needing backwards compatibility the above limitation is accurate.



                          Supporting evidence from Debian source:
                          https://salsa.debian.org/installer-team/debian-installer/blob/master/doc/devel/partman-auto-recipe.txt







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Jan 31 at 16:43









                          Stephen Kitt

                          171k24386462




                          171k24386462










                          answered May 12 '16 at 17:11









                          dragon788dragon788

                          21029




                          21029






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Unix & Linux Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f179880%2fpreseed-setting-wrong-partition-size%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

                              is 'sed' thread safe

                              How to make a Squid Proxy server?