Preseed setting wrong partition size
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
add a comment |
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
add a comment |
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
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
debian preseed
edited Jan 19 '15 at 13:32
DisplayName
4,53094580
4,53094580
asked Jan 19 '15 at 13:23
RawkinsRawkins
52849
52849
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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
add a comment |
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
answered Jan 25 '15 at 21:20
umeboshiumeboshi
268111
268111
add a comment |
add a comment |
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
add a comment |
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
add a comment |
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
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
edited Jan 31 at 16:43
Stephen Kitt
171k24386462
171k24386462
answered May 12 '16 at 17:11
dragon788dragon788
21029
21029
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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