Subject: Re: mbrlabel problem
To: None <tech-kern@netbsd.org>
From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
List: tech-kern
Date: 09/16/2005 23:31:49
On Fri, Sep 16, 2005 at 11:16:39PM +0200, Pavel Cahyna wrote:
> On Fri, Sep 16, 2005 at 09:13:31PM +0100, David Laight wrote:
> > You might find you can copy the label to where the alpha system will
> > find it, eg:
> > # dd if=/dev/sd2c skip=64 seek=1 count=1 of=/dev/sd2c
> > (I suspect the kernel scans the first 8k of the disk looking for a label)
>
> BTW thanks for your suggestion, but it doesn't work. Kernel still prints:
> "sd2: no disk label" and there is only the "c" partition... I tried even
> detaching and re-attaching the disk.
Actually this is not surprising... readdisklabel() in disksubr.c doesn't
have any loop to find a disklabel, it just tries the sector 0. Also, it
looks at offset 64 in the sector, while the i386 disklabel starts at
offset 0.
Pavel