
파티션 크기를 포함하여 디스크 레이아웃에 대한 특정 요구 사항이 있는 미리 설정 구성이 있습니다. partman-auto는 디스크의 마지막 파티션에 대한 최대 파티션 크기를 고려하지 않습니다.https://wikitech.wikimedia.org/wiki/PartMan/Auto예상되는 해결 방법과 함께 이를 설명합니다.
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).
불행하게도 문서 어디에도 "레시피에서 크기가 1000000000인 추가 파티션 하나를 정의하고 "유지"하고 마운트 해제된 상태로 두는 방법"이 실제로 의미하는 바를 설명하지 않습니다.
나는 추가를 시도했다
1 1000000000 1000000000 ext4 \
method { keep } \
.
내 파티션 레시피 끝까지 갔지만 이것은 전혀 아무 효과가 없으며("ext4" 대신 "none"과 "linux"도 시도했지만 효과가 없었습니다) 계속하는 방법에 대해 고민하고 있습니다.
답변1
다음 partman
레시피가 저에게 효과적이었습니다. Ubuntu 20.04를 설치하여 사용해 보았습니다.
d-i partman-auto/expert_recipe string \
efi-boot-root :: \
256 256 256 fat32 \
method{ efi } \
format{ } \
. \
1024 1024 1024 ext4 \
$bootable{ } \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext4 } \
mountpoint{ /boot } \
. \
8192 1024 8192 ext4 \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext4 } \
mountpoint{ / } \
. \
8192 1024 1000000000 ext2 \
method{ keep } \
.
나는 또한파티션에 파일 시스템이 지정되지 않았습니다.최종 파티션에 대한 메시지를 표시합니다.
d-i partman-basicmethods/method_only boolean false
설치 후 디스크 파티셔닝 입니다. "유지" 파티션이 디스크의 남은 공간을 채웠습니다.
Number Start End Size File system Name Flags
1 1049kB 256MB 255MB fat32 EFI System Partition boot, esp
2 256MB 1280MB 1024MB ext4
3 1280MB 9473MB 8193MB ext4
4 9473MB 21.5GB 12.0GB