Назад | Перейти на главную страницу

Предварительная установка сервера Ubuntu 16.04 - Разбиение на разделы: использовать весь диск

Я пытаюсь создать полуавтоматическую установку Ubuntu. Однако у меня возникают некоторые проблемы с файлом preseed в отношении разбиения на разделы.

Я бы хотел:

В настоящее время у меня есть:

    ### Partitioning


# In addition, you'll need to specify the method to use.
# The presently available methods are:
# - regular: use the usual partition types for your architecture
# - lvm:     use LVM to partition the disk
# - crypto:  use LVM within an encrypted partition
d-i partman-auto/method string regular

d-i partman-auto/init_automatically_partition select Guided - use entire disk

# If one of the disks that are going to be automatically partitioned
# contains an old LVM configuration, the user will normally receive a
# warning. This can be preseeded away...
d-i partman-lvm/device_remove_lvm boolean true
# The same applies to pre-existing software RAID array:
d-i partman-md/device_remove_md boolean true
# And the same goes for the confirmation to write the lvm partitions.
d-i partman-lvm/confirm boolean true

# You can choose one of the three predefined partitioning recipes:
# - atomic: all files in one partition
# - home:   separate /home partition
# - multi:  separate /home, /usr, /var, and /tmp partitions
d-i partman-auto/choose_recipe select atomic

d-i partman-auto/expert_recipe string             \
        1 1 1 free                                \
            $bios_boot{ }                         \
            method{ biosgrub }                    \
        .                                         \
        256 40 256 fat32                          \
            $primary{ }                           \
            $lvmignore{ }                         \
            method{ efi }                         \
            format{ }                             \
        .                                         \
        4096 4096 4096 linux-swap                 \
            method{ swap } format{ }              \
        .                                         \
        100 10000 100000000 ext4                  \
            $primary{ }                           \
            method{ format } format{ }            \
            use_filesystem{ } filesystem{ ext4 }  \
            mountpoint{ / }                       \
        .
# This makes partman automatically partition without confirmation.
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish

# Ask user if existing partitions need to be removed!
d-i partman/confirm boolean false
d-i partman-md/confirm boolean false
d-i partman-lvm/device_remove_lvm boolean false
d-i partman/confirm_nooverwrite boolean false
d-i partman-md/confirm_nooverwrite boolean false
d-i partman-lvm/confirm_nooverwrite boolean false

Проблема с этим preseed заключается в том, что, хотя я указал «выберите Guided - use all disk», он по-прежнему использует первый диск и только доступное оставшееся свободное пространство на этом диске, вместо использования всего диска.

Кто-нибудь знает, как я могу решить проблему?

Спасибо.