Subject: Re: sd disk partition problem
To: Jochen Kunz <email@example.com>
From: David Laight <firstname.lastname@example.org>
Date: 05/03/2006 22:45:50
On Thu, Apr 27, 2006 at 09:29:18PM +0200, Jochen Kunz wrote:
> On Thu, 27 Apr 2006 12:37:23 -0600
> "John R. Shannon" <email@example.com> wrote:
> > > Try to read the disklabel with -r?
> > > Try to rewrite the label?
> > > # disklabel sd1 > dl.sd1 && disklabel -rR sd1 dl.sd1
> > I'm not really sure how to interpret this
> The kernel keeps an in core copy of the disklabel. Sometimes this in
> core copy and the on disk data get out of sync. "disklabel -r sd1" reads
> the disklabel from the disk while "disklabel sd1" displays only the in
> core copy. If you wane make sure that there is the correct label on the
> disk you can rewrite it using the cammands in the third line.
disklabel(8) in current has a '-v' option will which give some verbose
output as to where it got the information from (-vv - more verbose etc).
The algorithm used is somewhat baroque...
David Laight: firstname.lastname@example.org