Re: partman auto partitioning recipes
Hi Anton
Many thanks for your reply.
On Fri, 2005-08-05 at 18:19 +0300, Anton Zinoviev wrote:
> On Fri, Jul 08, 2005 at 02:45:29PM +0100, William Oakley wrote:
> >
> > Number 1.
> >
> > It does not seem possible to set all partitions to be primary. One of
> > the partitions has to be extended. Why? Am I doing something wrong
> > here?
>
> It should be possible provided you don't create more than 3 partitions.
> It is not possible to create 4 primary partitions due to limitation in
> the algorithm of partman-auto.
>
> If you think that it is not possible to create 3 primary partitions,
> then this is probably an unknown bug.
I really am only attempting to create 3 partitions as per the scheme
shown in the original mail. Yet still it will want to make the final
partition logical:
/dev/sda1 * 1 1009 8104761 83 Linux
/dev/sda2 1010 4297 26410860 83 Linux
/dev/sda3 4298 4425 1028160 5 Extended
/dev/sda5 4298 4425 1028128+ 82 Linux swap
>
> > Number 2.
> >
> > To ensure that the root partition is created as 8192Mb, I have to set it
> > to 8500Mb or so.
>
> This is because 8192*1024*1024 = 8589934592 =~ 8500 * 1000 * 1000.
> Partman computes the partition sizes the same way as the hard disk
> vendors - 1Mb means 10000000 bytes.
>
> Anton Zinoviev
>
>
re. number 3 - I ended up writing a perl script which duplicates the
calculation quite happily.
thanks
- William
Reply to: