From owner-freebsd-questions@FreeBSD.ORG Thu Jul 31 19:14:07 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4328106564A for ; Thu, 31 Jul 2008 19:14:07 +0000 (UTC) (envelope-from fbsdlists@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.236]) by mx1.freebsd.org (Postfix) with ESMTP id 737208FC17 for ; Thu, 31 Jul 2008 19:14:07 +0000 (UTC) (envelope-from fbsdlists@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so918504rvf.43 for ; Thu, 31 Jul 2008 12:14:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=lIgrabwFax4Iim5VK7KWOvHfio5TkfAwIqcwXXESv7Y=; b=Il/Q8ESibYZNMzTz8HsxHj6Iw/gkNr8tOnncXpAxzd7PSL3syXADWKUkcMGGoXLBnn nF4KfJoU8Dm2oHq+ZpQw46ZUSxyF2TXDx/O3vLUy43Wx+gWRYIGdxepFiGY/rranStpT j38gK/5LTFtRVFzG1iyf2+CcCclWNc8oqkJNs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=sqCnVnJ4u6+AwgYNGmBGFDaPIdnEzrAfEwRuI+GN2gpO5Lu7IXn9AJ6uk7WxI/vGcy /lcPEjItO2xJuvYTICeucHp/UedykvlJNipqvwAu23xH8T8Cde7qFJLrnOWVIDrq2Sej EqLx+0E1ElxySIv3++QyFPzf0Jy5YiDdogwuE= Received: by 10.141.162.16 with SMTP id p16mr5479954rvo.243.1217531647043; Thu, 31 Jul 2008 12:14:07 -0700 (PDT) Received: by 10.140.135.3 with HTTP; Thu, 31 Jul 2008 12:14:06 -0700 (PDT) Message-ID: <54db43990807311214g6d6bc1bbm92bf660b10bfbb18@mail.gmail.com> Date: Thu, 31 Jul 2008 15:14:06 -0400 From: "Bob Johnson" To: "Jan Henrik Sylvester" In-Reply-To: <29825939.312031217523061419.JavaMail.servlet@kundenserver> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <29825939.312031217523061419.JavaMail.servlet@kundenserver> Cc: freebsd-questions@freebsd.org Subject: Re: 250GB hd: Can FreeBSD use >137GB (bios) as Linux or Windows do? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2008 19:14:07 -0000 On 7/31/08, Jan Henrik Sylvester wrote: >>On 7/31/08, me@janh.de wrote: >>> Yesterday, I wrote about "CANNOT READ BLK" from my new hd that I >>> filled via firewire: >>> http://lists.freebsd.org/pipermail/freebsd-questions/2008-July/179646.html >>> The response suggested to check for faulty hardware, which I am still >>> trying to do. >>> >>> I found FreeBSD reporting the drive to have 128GB instead of 232GB as >>> FreeBSD did when the drive was connected via firewire. Searching the >>> web, I found one reference of someone else having problems with >>>>128/137GB using the same (latest) bios on this five year old >>> (Centrino) laptop (Acer TM800). >> I don't know how long ago the ATA-6 specification was adopted, but prior to that ATA-5 had a 128 GB limit on disk size. I suspect your BIOS is old enough to have adopted that limit. Perhaps if a BIOS update for your system is available, it will solve your problem. BUT, my understanding is that after the initial boot, FreeBSD reads the size directly from the drive, so it seems strange that you are encountering this problem if the drive itself is correctly reporting its size. Anyway, the fundamental answer to your question is "this should not be happening." The challenge is to figure out where the problem is and what to do about it. >>FreeBSD has no such limit, at least not in recent versions (I'm using >>a 200 GB drive at this moment, and at home I have a system with a 500 >>GB and a 750 GB drive). Your problem is caused either by the BIOS > > I never said FreeBSD had a limit. With ddo, it works. (I am on 7.0.) > >>lying to it (which is unlikely, because FreeBSD uses the BIOS value > > Yes, it is the bios. With ddo, the full disk is available; ddo supposingly > does nothing but change the bios interrupt handlers. > >>only for initial booting), or the hard drive itself lying. Does your > > Are you sure about "only for initial booting"? If that was the case, I would > not understand why it shows "ad0: 238475MB" with ddo and "ad0: 131072MB" > without. Moreover, I tried writing to a sector beyond 128GB unsuccessfully > without ddo and successfully with ddo (using dd). > I am quite certain, although I don't know the details. Like any modern operating system (and since before some of them), FreeBSD asks the drive for its size. >>drive have a jumper that causes it to report its capacity as 128GB for >>compatibility with older BIOSes? If so, remove the jumper and try >>again. > > These is no such jumper. With Linux and Windows seeing the correct size > (without ddo), the drive must report it somehow correctly. > > Either your claim that FreeBSD is not relying on the bios is wrong, or I > understand even less about the interaction of bios, drive, ddo handler, and > os than I thought I would. (Please, enlighten me, if you know more.) > I think it would be informative to do as someone suggested after your first post, and re-install FreeBSD on the partition from scratch, to see if it that solves the behavior problems. It could be an artifact of your transfer method, although I don't have a specific theory to explain it. By the way, what version of FreeBSD is on the system? Any chance it is old enough that it didn't support drives larger than 128 GB (I don't know how old that would have to be)? That might include a bug in an IDE driver that has since been fixed, or an obscure default configuration option that changes FreeBSD's idea of how to address a drive. Another thought is that if you aren't using the FreeBSD loader (MBR), then your problems may be caused by the loader. You could test this by installing the FreeBSD disk loader (I think that would be "boot0cfg -B ad0", but I might not have that right). Is there any chance the MS-DOS partition table got changed at some point to tell FreeBSD the partition is smaller than the BSD label says it is? > Thanks for your input! Good luck. - Bob