A
A
Alexey R2021-04-16 15:00:01
linux
Alexey R, 2021-04-16 15:00:01

How to properly partition a disk in precced?

Good afternoon. Colleagues, I turn to you again with a question. Please tell me how to properly partition the disk.
I use file preceed code

# Разбиение диска. 
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-auto/choose_recipe select unencrypted-install
d-i partman-auto/expert_recipe string \
        unencrypted-install :: \
            1024 1024 1024 fat32                \
                $primary{ }                     \
                $bootable{ }                    \
                method{ efi }                   \
                $lvmignore{ }                   \
                format{ /boot/efi }             \
            .                                   \
            10024 10024 10024 ext4              \
                $primary{ }                     \
                method{ format }                \
                format{ }                       \
                use_filesystem{ }               \
                filesystem{ ext4 }              \
                mountpoint{ / }                 \
            .                                   \
            
d-i partman-md/confirm boolean true
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true


Everything works, but why is the root created not 10024 megabytes, but the entire disk is filled? I need that after 10024 MB there is still free space!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sand, 2021-04-16
@sand3001

Because: https://www.debian.org/releases/stable/amd64/apbs0...

The use of hard disk layout settings in an unattended installation is very limited; only options for partman-auto are supported. You can choose to partition only free disk space or the entire disk. You can select a disk layout from one of the presets provided in the installer, a custom preset from a file, or a preset from a response file.

You probably need to create another disk partition for the remaining space. And please change all your precced / preceed - it hurts the eye

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question