# If the system has free space you can choose to only partition that space.
![](/@@/translation-newline)
#d-i partman-auto/init_automatically_partition select biggest_free
![](/@@/translation-newline)
# Alternatively, you can specify a disk to partition. The device name must
![](/@@/translation-newline)
# be given in traditional non-devfs format.
![](/@@/translation-newline)
# Note: A disk must be specified, unless the system has only one disk.
![](/@@/translation-newline)
# For example, to use the first SCSI/SATA hard disk:
![](/@@/translation-newline)
#d-i partman-auto/disk string /dev/sda
![](/@@/translation-newline)
# In addition, you'll need to specify the method to use.
![](/@@/translation-newline)
# The presently available methods are: "regular", "lvm" and "crypto"
![](/@@/translation-newline)
d-i partman-auto/method string lvm
![](/@@/translation-newline)
# If one of the disks that are going to be automatically partitioned
![](/@@/translation-newline)
# contains an old LVM configuration, the user will normally receive a
![](/@@/translation-newline)
# warning. This can be preseeded away...
![](/@@/translation-newline)
d-i partman-lvm/device_remove_lvm boolean true
![](/@@/translation-newline)
# The same applies to pre-existing software RAID array:
![](/@@/translation-newline)
d-i partman-md/device_remove_md boolean true
![](/@@/translation-newline)
# And the same goes for the confirmation to write the lvm partitions.
![](/@@/translation-newline)
d-i partman-lvm/confirm boolean true
![](/@@/translation-newline)
# You can choose one of the three predefined partitioning recipes:
![](/@@/translation-newline)
# - atomic: all files in one partition
![](/@@/translation-newline)
# - home: separate /home partition
![](/@@/translation-newline)
# - multi: separate /home, /usr, /var, and /tmp partitions
![](/@@/translation-newline)
d-i partman-auto/choose_recipe select atomic
![](/@@/translation-newline)
# Or provide a recipe of your own...
![](/@@/translation-newline)
# The recipe format is documented in the file devel/partman-auto-recipe.txt.
![](/@@/translation-newline)
# If you have a way to get a recipe file into the d-i environment, you can
![](/@@/translation-newline)
# just point at it.
![](/@@/translation-newline)
#d-i partman-auto/expert_recipe_file string /hd-media/recipe
![](/@@/translation-newline)
# If not, you can put an entire recipe into the preconfiguration file in one
![](/@@/translation-newline)
# (logical) line. This example creates a small /boot partition, suitable
![](/@@/translation-newline)
# swap, and uses the rest of the space for the root partition:
![](/@@/translation-newline)
#d-i partman-auto/expert_recipe string \
![](/@@/translation-newline)
# boot-root :: \
![](/@@/translation-newline)
# 40 50 100 ext3 \
![](/@@/translation-newline)
# $primary{ } $bootable{ } \
![](/@@/translation-newline)
# method{ format } format{ } \
![](/@@/translation-newline)
# use_filesystem{ } filesystem{ ext3 } \
![](/@@/translation-newline)
# mountpoint{ /boot } \
![](/@@/translation-newline)
# . \
![](/@@/translation-newline)
# 500 10000 1000000000 ext3 \
![](/@@/translation-newline)
# method{ format } format{ } \
![](/@@/translation-newline)
# use_filesystem{ } filesystem{ ext3 } \
![](/@@/translation-newline)
# mountpoint{ / } \
![](/@@/translation-newline)
# . \
![](/@@/translation-newline)
# 64 512 300% linux-swap \
![](/@@/translation-newline)
# method{ swap } format{ } \
![](/@@/translation-newline)
# .
![](/@@/translation-newline)
# This makes partman automatically partition without confirmation, provided
![](/@@/translation-newline)
# that you told it what to do using one of the methods above.
![](/@@/translation-newline)
d-i partman/confirm_write_new_label boolean true
![](/@@/translation-newline)
d-i partman/choose_partition select finish
![](/@@/translation-newline)
d-i partman/confirm boolean true