From owner-freebsd-questions@FreeBSD.ORG Tue Jun 15 19:30:46 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C40B516A4CE for ; Tue, 15 Jun 2004 19:30:46 +0000 (GMT) Received: from scorpion.eng.ufl.edu (scorpion.eng.ufl.edu [128.227.116.10]) by mx1.FreeBSD.org (Postfix) with SMTP id 5284443D41 for ; Tue, 15 Jun 2004 19:30:46 +0000 (GMT) (envelope-from bob88@eng.ufl.edu) Received: (qmail 26490 invoked from network); 15 Jun 2004 19:29:42 -0000 Received: from scanner.engnet.ufl.edu (HELO eng.ufl.edu) (128.227.152.221) by scorpion.eng.ufl.edu with SMTP; 15 Jun 2004 19:29:42 -0000 Message-ID: <40CF4E25.60006@eng.ufl.edu> Date: Tue, 15 Jun 2004 15:29:41 -0400 From: Bob Johnson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en, eo MIME-Version: 1.0 To: Rob Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: questions@freebsd.org Subject: Re: 160 Gb Harddisk: needs extra tweeking? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jun 2004 19:30:47 -0000 > Message: 10 > Date: Tue, 15 Jun 2004 22:26:05 +0900 > From: Rob > Subject: 160 Gb Harddisk: needs extra tweeking? > To: freebsd-questions@freebsd.org > Message-ID: <40CEF8ED.6070207@users.sourceforge.net> > > Hi, > > I never had such a monster of a big harddisk; hence my question. > > I've got a 160 Gb Western Digital Harddisk (WD 1600 JB). > > It comes with a tiny CD-rom, about 8cm in diameter, entitled > "Data Lifeguard Tools". I don't know what to do with this CDrom. You should probably ignore the disk. I do. > > I am planning to use this harddisk as the only harddisk in > my PC and install FreeBSD (preferably version 5-Current) on it. > Will I encounter problems? Does it need extra tweeking? I use two in my old Cyrix 133 MHz mailserver and they work fine. I don't recall doing any tweaking, except perhaps adjusting the number of inodes when I formatted it. More about that below. > > The Western Digital homepage says somewhere: "Hard drives larger than > 137 GB require a controller card to utilize full drive capacity." > What does that mean? > Good question. I didn't need to find out, because one of my drives came with an Ultra-ATA controller card. Usually if your BIOS can figure out how to boot from it and get the FreeBSD kernel loaded, you will be ok. > > Another question. The Western Digital homepage lists this about the harddisk: > Data Transfer Rate (Buffer to Host) > 100 MB/s (Mode 5 Ultra ATA) > 66.6 MB/s (Mode 4 Ultra ATA) > 33.3 MB/s (Mode 2 Ultra ATA) > 16.6 MB/s (Mode 4 PIO) > 16.6 MB/s (Mode 2 multi-word DMA) > > Do I have to tell this to the kernel somehow, or is this a BIOS thing? > Are there good reasons not to choose the fastest option "Mode 5" here? The kernel ATA driver will figure it out. It will use the highest data rate your controller and hard drive can both manage, IF you use the correct cable. If you use a standard ATA cable, then your speed will be limited (to 33.3 MB/s, I think). Be sure you use a high speed cable if you have a high speed controller. The default is probably to use PIO, so if you want the possibly faster DMA mode, you will need to figure out how to do that. "man ad" will probably provide more useful information. When you get to the point where you are formatting the device, think about what you are going to be storing on it. If it will be a bunch of very large files, you can format it with fewer inodes, which will make more capacity available for data and less for overhead. On the other hand, if you are going to be storing a bunch of small files, you will need more inodes. You use at least one inode per file, and when you run out of inodes, you can't have any more files, even if there is still space on the disk. The default installation assumes something like an average of 8K bytes/file, so if your files will be much smaller than that, you should adjust the format accordingly. If you are manually adjusting things, you would use something like newfs -i 32768 [remaining args] to reformat your drive assuming 32K bytes per file. I think you can also do this when you are configuring the BSD partitions in sysinstall. > > > Thanks for help and advice. > > Rob. > Hope it helps. - Bob