Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jul 2002 16:32:21 +0930
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: rejecting partition in BSD label
Message-ID:  <20020722070221.GE47889@wantadilla.lemis.com>
In-Reply-To: <20020721164125.GA279@jrpenn.demon.co.uk>
References:  <20020719220644.GA1682@jrpenn.demon.co.uk> <20020721014949.GA61344@wantadilla.lemis.com> <20020721164125.GA279@jrpenn.demon.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday, 21 July 2002 at 17:41:25 +0100, Jeff Penn wrote:
> On Sun, Jul 21, 2002 at 11:19:49AM +0930, Greg 'groggy' Lehey wrote:
>>> I originally installed freebsd on slice 1, but have now moved it using
>>> dump/restore to slice 4.  This process caused the following problem
>>>
>>> Mounting root from ufs:/dev/ad0s4a
>>> ad0s1: raw partition size != slice size
>>> ad0s1: start 63, end 62495, size 62433
>>> ad0s1c: start 63, end 14335775, size 14335713
>>> ad0s1: truncating raw partition
>>> ad0s1: rejecting partition in BSD label: it isn't entirely within the slice
>>> ....
>>> ad0s1h: start 7217215, end 10944574, size 3727360
>
>> Use disklabel -e on the raw partitions in question (ad0s1, etc.).
>
> I should have mentioned in my original email that slice 1 has been
> resized and wiped using newfs_msdos.  Running 'disklabel -e -r ad0s1'
> only shows partition ad0s1c, I can't work out where the system is
> finding information for all 8 partitions (a-h).  The above output is
> showing the original partitions, the output from disklabel below shows
> the current config.
>
> # /dev/ad0s1c:
> type: ESDI
> disk: ad0s1
> ....
>
> 8 partitions:
> #        size   offset    fstype   [fsize bsize bps/cpg]
>   c:    62433        0    unused        0     0         # (Cyl.    0 - 30*)

Sorry, maybe I should have been more explicit.  On most i386
platforms, the disk labels are a second-order thing.  First you have
the BIOS partition table, which defines up to four slices ad0s1 to
ad0s4.  Your dubious slice could be any of these.  Take a look at each
of them and see if that tells you something.  It's also worth looking
at the BIOS partition table.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020722070221.GE47889>