openbsd-misc
[Top] [All Lists]

Re: disklabel fails to find partitions

To: nosaj <nosaj46@poczta.onet.pl>
Subject: Re: disklabel fails to find partitions
From: "Todd C. Miller" <Todd.Miller@courtesan.com>
Date: Fri, 01 Feb 2002 13:49:32 -0700
Cc: misc@openbsd.org
In-reply-to: Your message of "Fri, 01 Feb 2002 20:45:47 GMT." <20020201204547.A3634@62-moo-3.acn.waw.pl>
References: <20020201142716.A28951@62-moo-3.acn.waw.pl> <200202011845.g11IjUDx025807@xerxes.courtesan.com> <20020201204547.A3634@62-moo-3.acn.waw.pl>
Sender: owner-misc@openbsd.org
In message <20020201204547.A3634@62-moo-3.acn.waw.pl>
        so spake nosaj (nosaj46):

> These aren't partitions I have added - they were there before my bsd install.
> I tried editing with 'disklabel -e wd0', but after writing the label every
> partition I have added <to the label> reports that "partition extends past
> end of unit" and "offset past end of unit". 'disklabel wd0' then asks me if I
> wish to reedit my disklabel.

The real problem is the "partition extends past end of unit".
Usually this means that the "total sectors" number in the label is
wrong.  It should correspond to the number of sectors the kernel
reports for the disk on boot.  See /var/run/dmesg.boot for this
number.

 - todd

<Prev in Thread] Current Thread [Next in Thread>