V
V
Valeriu1472018-01-22 14:12:56
Automation
Valeriu147, 2018-01-22 14:12:56

How to partition a disk in Linux Debian/Ubuntu in preseed?

According to the official manual
https://www.debian.org/releases/stable/amd64/apbs0...
we have in preseed:

#d-i partman-auto/expert_recipe string                         \
#      boot-root ::                                            \
#              40 50 100 ext3                                  \
#                      $primary{ } $bootable{ }                \
#                      method{ format } format{ }              \
#                      use_filesystem{ } filesystem{ ext3 }    \
#                      mountpoint{ /boot }                     \
#              .                                               \
#              500 10000 1000000000 ext3                       \
#                      method{ format } format{ }              \
#                      use_filesystem{ } filesystem{ ext3 }    \
#                      mountpoint{ / }                         \
#              .                                               \
#              64 512 300% linux-swap                          \
#                      method{ swap } format{ }                \
#              .

Ok, but if I need everything, create a primary partition with a size of 30 GB and then after it, create a SWAP with a size of 2 GB. How should I proceed in this case? After reading the documentation, I didn’t understand a bit, there seems to be a maximum and minimum value. Maybe you have come across this? Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Moris Haos, 2018-01-22
@morihaos

Hello,
Do the breakdown manually. There you can mark up anything, swap places, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question