openbsd-misc
[Top] [All Lists]

Re: disklabel fails to find partitions

To: "Todd C. Miller" <Todd.Miller@courtesan.com>
Subject: Re: disklabel fails to find partitions
From: nosaj <nosaj46@poczta.onet.pl>
Date: Fri, 1 Feb 2002 21:30:40 +0000
Cc: misc@openbsd.org
In-reply-to: <200202012049.g11KnWDx020996@xerxes.courtesan.com>; from Todd.Miller@courtesan.com on Fri, Feb 01, 2002 at 01:49:32PM -0700
References: <20020201142716.A28951@62-moo-3.acn.waw.pl> <200202011845.g11IjUDx025807@xerxes.courtesan.com> <20020201204547.A3634@62-moo-3.acn.waw.pl> <200202012049.g11KnWDx020996@xerxes.courtesan.com>
Sender: owner-misc@openbsd.org
User-agent: Mutt/1.2.5.1i
On Fri, Feb 01, 2002 at 01:49:32PM -0700, Todd C. Miller wrote:
> 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
> 
> 
Sorry, I didn't realise the stats at the start of the label could be edited, I
thought only the partitions could be edited. I changed the number of sectors,
reedited, and successfully mounted the partitions!

Many thanks for your advice and time,
Nosaj.

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