[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: disklabel fails to find partitions



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.