From owner-freebsd-stable Sat Jul 27 8:30:52 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B689C37B400 for ; Sat, 27 Jul 2002 08:30:47 -0700 (PDT) Received: from web21507.mail.yahoo.com (web21507.mail.yahoo.com [66.163.169.18]) by mx1.FreeBSD.org (Postfix) with SMTP id 7E4F843E4A for ; Sat, 27 Jul 2002 08:30:47 -0700 (PDT) (envelope-from magic_mac_96@yahoo.com) Message-ID: <20020727153047.58464.qmail@web21507.mail.yahoo.com> Received: from [62.211.141.141] by web21507.mail.yahoo.com via HTTP; Sat, 27 Jul 2002 08:30:47 PDT Date: Sat, 27 Jul 2002 08:30:47 -0700 (PDT) From: Andrea Monaldi Subject: Re: Cannot initialize disklabel To: Cyrille Lefevre Cc: stable@FreeBSD.ORG In-Reply-To: <20020727064255.GB7996@gits.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG My MB is modern (PIII 450MHz - GigaByte Intel 440BX of one and a half year ago). The disk works fine on many linuxes (Mandrake 8.1, Red Hat 7.3 and Debian 2.2r5) and on Windows 2000 on the same system. Another 10GB Maxtor disk with 19841 cylinders has the core FreeBSD system on it and it works well. The problem relies into the BSD label for the main disk (i.e. /dev/ad2) 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) 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. 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. Bye Gino --- Cyrille Lefevre wrote: > On Fri, Jul 26, 2002 at 03:07:06PM -0700, Andrea > Monaldi wrote: > > I have a 4.6 box and I added a new HD (Maxtor > 20GB). > > > > It is always listed as 2G instead of 20 and I am > not > > able to initialize the partition or the disk label > to > > something different to 2 GB. The number of > cylinder is > > always 4092 although the disk has more than 30000. > > how old is your machine ? personally, since my BIOS > is > somewhat old, I have to use `MaxBlast' to deal w/ > disks > bigger than 2 GB (or 8 GB, don't remember). does > your > first driver `MaxBlast'ed ? if so, your second drive > have to be `MaxBlast'ed too. see the following URL > for details and read carefully the installation > procedure, etc. > > http://www.maxtor.com/en/support/downloads/maxblast_plus_ii.htm > > > The disk in the BIOS is not set to LBA, but it is > set > > as NORMAL. I have another Maxtor disk that is > running > > fine. > > why don't want to use LBA mode ? > what are the caracteristics of the other drive ? > > # grep ata /var/run/dmesg.boot > > > How can I create a disklabel ? > > before to create a disklabel, what say fdisk ? > > # fdisk ad0 > # fdisk ad1 > > Cyrille. > -- > Cyrille Lefevre mailto:cyrille.lefevre@laposte.net __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message