Re: /usr/obj partition AWOL

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Otto Moerbeek
Date: Thursday, June 7, 2007 - 12:06 am

On Wed, 6 Jun 2007, Otto Moerbeek wrote:


After having sen your dmesg, I see that your disk size is really
234441648 sectors. The disklabel says 16514064 though.  The new
consistency checks did not like that. The consistency checks have been
disabled in two steps (rev 1.44. and rev 1.66 of
sys/kern/subr_disk.c). So a current kernel should not trip on this
anymore. 

There remain two questions: how did the size end up being wrong in the
disklabel, and how to repair.

To the first question I can only guess; it could be you dd'ed an image
from another disk, you edited the size by hand or we are seeing the
results of a (old?) bug in disklabel handling that now surfaced
because of the concistency checks. 

The second question I already answered: using the 'e' command in
disklabel lets you set the size of the disk in the label. After that,
things should be back to normal.

Let us know how it goes.

	-Otto
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
/usr/obj partition AWOL, Emilio Perea, (Mon Jun 4, 4:02 pm)
Re: /usr/obj partition AWOL, Markus Lude, (Mon Jun 4, 6:33 pm)
Re: /usr/obj partition AWOL, Otto Moerbeek, (Mon Jun 4, 10:51 pm)
Re: /usr/obj partition AWOL, Emilio Perea, (Tue Jun 5, 8:41 am)
Re: /usr/obj partition AWOL, Markus Lude, (Wed Jun 6, 9:17 am)
Re: /usr/obj partition AWOL, Otto Moerbeek, (Wed Jun 6, 12:39 pm)
Re: /usr/obj partition AWOL, Otto Moerbeek, (Thu Jun 7, 12:06 am)
Re: /usr/obj partition AWOL, Otto Moerbeek, (Thu Jun 7, 3:51 am)
Re: /usr/obj partition AWOL, Otto Moerbeek, (Thu Jun 7, 10:50 am)
Re: /usr/obj partition AWOL, Emilio Perea, (Thu Jun 7, 2:58 pm)
Re: /usr/obj partition AWOL, Markus Lude, (Fri Jun 8, 9:44 am)
Invalid partition table (was /usr/obj partition AWOL), Emilio Perea, (Fri Jun 8, 7:08 pm)
Re: Invalid partition table (was /usr/obj partition AWOL), Kenneth R Westerback, (Fri Jun 8, 7:41 pm)
Re: Invalid partition table (was /usr/obj partition AWOL), Jimmy Mitchener, (Fri Jun 8, 10:04 pm)