On 07/08/15 09:58, Matias Moreno Meringer wrote:
> Hello.
>
> Since I add a partition to use as altroot, I am getting the following
> when daily script runs.
>
> Running security(8):
> disklabel: warning, partition a: size % cylinder-size != 0
>
> /etc/daily contains the following:
> CHECKFILESYSTEMS=1
> VERBOSESTATUS=1
> ROOTBACKUP=1
>
> These are the related partitions:
> # size offset fstype [fsize bsize cpg]
> a: 2101464 0 4.2BSD 2048 16384 1 # /
^^^^^
you don't mention your platform, so I'm assuming i386 or amd64, so this
is not good.
> l: 2152224 141214320 4.2BSD 2048 16384 1
>
> (I know that using a partition in the same disk for altroot is not the
> best approach, but I don't have a spare disk to use).
um. yes.
> Could this message being produced because a size != l size?
> If not, what is causing that warning?
The warning means, I do believe, that your partition size divided by
your cylinder size doesn't come out to an even number of cylinders. I'm
not entirely sure why that matters, but that 0 offset is going to cause
you issues assuming you are on one of the platforms this matters on
(most, but not all). I am curious how you made this configuration, as I
thought the tools made this difficult to do these days.
Nick.