From owner-freebsd-questions@FreeBSD.ORG Tue Mar 13 19:25:29 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3EF1516A401 for ; Tue, 13 Mar 2007 19:25:29 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id 1220213C4C3 for ; Tue, 13 Mar 2007 19:25:28 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from localhost (jn@ns1 [69.55.238.237]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id l2DJPOXl071161; Tue, 13 Mar 2007 15:25:25 -0400 (EDT) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-questions@freebsd.org Date: Tue, 13 Mar 2007 15:25:11 -0400 User-Agent: KMail/1.9.5 References: <1C03BB1950F15F48B9E9654E0EFA42CA049EE7@bb04.bolsabilbao.local> In-Reply-To: <1C03BB1950F15F48B9E9654E0EFA42CA049EE7@bb04.bolsabilbao.local> X-Face: #X5#Y*q>F:]zT!DegL3z5Xo'^MN[$8k\[4^3rN~wm=s=Uw(sW}R?3b^*f1Wu*.<=?utf-8?q?of=5F4NrS=0A=09P*M/9CpxDo!D6?=)IY1w<9B1jB; tBQf[RU-R<,I)e"$q7N7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703131525.11631.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: Aitor San Juan Subject: Re: Installing a second hard disk 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: Tue, 13 Mar 2007 19:25:29 -0000 On Tuesday 13 March 2007 13:05, Aitor San Juan wrote: > Hi List, > > I am trying to install a secondary hard disk in a Intel-based PC > with FreeBSD 5.4 > > This secondary disk's capacity is 250 Gb. When I enter sysintall > to try to format it and create a slice, FreeBSD says that the > geometry of disk is not correct. I, then, type in the values detected > by the BIOS as suggested, but FreeBSD still complains that those > are not valid. FreeBSD sees the new disk as a disk of approx. 131 GB. > > So my question is: where is the problem? Is it that FreeBSD is not > able to recognise such a big disk capacity? > > Any hint, suggestion, or web link would be highly appreciated. Assuming the new disk is ad4, and you want a single FreeBSD slice/partition/FS covering the whole disk: fdisk -BI /dev/ad4 bsdlabel -wB /dev/ad4s1 newfs -U /dev/ad4s1a See the manpages for each command for more details. The -B flags aren't necessary if you never plan to boot from the new disk, but they don't hurt anything either. If you want multiple FreeBSD partitions you could run a "bsdlabel -e" after the first bsdlabel command above, and additional newfs commands as appropriate. Continuing the example above, you could do: mkdir /newdisk mount /dev/ad4s1a /newdisk echo "/dev/ad4s1a /newdisk ufs rw 2 2" >> /etc/fstab To both mount the new filesystem and have it mounted automatically at boot. See the fstab manpage for details about that. (You could of course use a text editor to modify fstab instead of the echo command above.) JN