25 May 15:02
how to get predictible partition sizes with partman ?
bibop554 - <bibop554 <at> gmail.com>
2012-05-25 13:02:29 GMT
2012-05-25 13:02:29 GMT
Hi,
I try to automatically format the disk during Debian installation with
a "recipe" for partman in preseed.cfg.
I have some difficulties to get partitions the size i want. First of
all, partitions must have a size multiple of 1MiB (1MiB = 2^20 Bytes)
but partman reads sizes in preseed.cfg as expressed in MB (1MB = 10^6
Bytes). As it is not possible to express exactly a multiple of 1 MiB
in MB, partman will have to find the nearest multiple of 1MiB.
I specified the following dummy recipe in preseed.cfg:
d-i partman-auto/expert_recipe string \
20973 100000 20973 ext3 $primary{ } method{ format } format{ }
use_filesystem{ } filesystem{ ext3 } mountpoint{ / } . \
106 100000 106 ext3 $primary{ } $bootable{ } method{ format }
format{ } use_filesystem{ } filesystem{ ext3 } mountpoint{ /boot } . \
20973 100000 20973 ext3 $primary{ } method{ format } format{ }
use_filesystem{ } filesystem{ ext3 } mountpoint{ /home } . \
20973 10000 20973 ext3 method{ format } format{ } use_filesystem{ }
filesystem{ ext3 } mountpoint{ /var } . \
2099 10000 2099 linux-swap method{ swap } format{ } . \
2099 10000 2099 ext3 method{ format } format{ } use_filesystem{ }
filesystem{ ext3 } mountpoint{ /tmp } . \
20973 10000 20973 ext3 method{ format } format{ } use_filesystem{ }
filesystem{ ext3 } mountpoint{ /opt } . \
106 10000 106 ext3 method{ format } format{ } use_filesystem{ }
filesystem{ ext3 } mountpoint{ /foo } . \
0 100 -1 ext3 $primary{ } method{ format } format{ }
use_filesystem{ } filesystem{ ext3 } mountpoint{ /usr } . \
(Continue reading)
RSS Feed