Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Jul 2002 19:08:48 -0400 (EDT)
From:      Chris BeHanna <behanna@zbzoom.net>
To:        FreeBSD-Stable <stable@freebsd.org>
Subject:   Re: Cannot initialize disklabel
Message-ID:  <20020727190641.S12561-100000@topperwein.dyndns.org>
In-Reply-To: <20020727153047.58464.qmail@web21507.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 27 Jul 2002, Andrea Monaldi wrote:

> [...snip...]
>
> I've edited this label from linux fdisk and set it up
> correctly.
>
> Then I reboot FreeBSD and the command disklabel
> /dev/ad2 shows 4092 cylinders instead if 39693.
>
> If I execute disklabel -r /dev/ad2 the cylinder count
> is ok, meaning the disk copy of the label is correct.
>
> The kernel in-core BSD label is always incorrect and,
> as FreeBSD fdisk relies on it I can't create a
> partition greather tha 2 GB  (4092 cylinders)

    This sounds like LBA is not enabled.

> Worse, if I set up the partition from linux fdisk and
> the correct BSD label, when I boot FreeBSD the in-core
> BSD label is still 4092 cylinders and the ata driver
> complaints about having a partition too big.

    I wouldn't ever have thought that Linux fdisk would produce
something compatible with FreeBSD.

> If try to edit the BSD label the ata driver block the
> writes.
>
> I don't understand why from BSD there's no way to
> force a new BSD label.

    Try using /stand/sysinstall to repartition and relabel the disk.

    Failing that, try disklabel -e so that you can edit the label.

    If this still doesn't work, it'd be mighty helpful if you'd
provide the output of

    fdsik
    disklabel
    disklabel -r

for the disk in question.

-- 
Chris BeHanna                      http://www.pennasoft.com
Principal Consultant
PennaSoft Corporation
chris@pennasoft.com


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




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