From owner-freebsd-questions@FreeBSD.ORG Thu Jan 28 16:36:39 2010 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 F38E0106568B for ; Thu, 28 Jan 2010 16:36:38 +0000 (UTC) (envelope-from martin@dc.cis.okstate.edu) Received: from dc.cis.okstate.edu (dc.cis.okstate.edu [139.78.103.93]) by mx1.freebsd.org (Postfix) with ESMTP id C8CC38FC28 for ; Thu, 28 Jan 2010 16:36:38 +0000 (UTC) Received: from dc.cis.okstate.edu (localhost.cis.okstate.edu [127.0.0.1]) by dc.cis.okstate.edu (8.14.2/8.13.8) with ESMTP id o0SGaMkh062534 for ; Thu, 28 Jan 2010 10:36:27 -0600 (CST) (envelope-from martin@dc.cis.okstate.edu) Message-Id: <201001281636.o0SGaMkh062534@dc.cis.okstate.edu> To: freebsd-questions@freebsd.org Date: Thu, 28 Jan 2010 10:36:22 -0600 From: Martin McCormick Subject: Swap Partition First? Something is still Wrong. 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, 28 Jan 2010 16:36:39 -0000 Here is the output of fdisk from the drive to be formatted. ******* Working on device /dev/ad0 ******* parameters extracted from in-core disklabel are: cylinders=77504 heads=16 sectors/track=63 (1008 blks/cyl) Let's try a million or so blocks left as swap. ad0s1-1=ufs 77116032 / 1 #That should the FreeBSD active partition. ad0s1-2=swap 0 #That should give us what's left as swap. This is the opposite of what I want to do, but it is in the order that one would likely do it so if it is going to work, it should. This gives a benchmark to start from. The complaint is that it can't write ad0s1-2 swap as always. I changed the syntax. ad0s1a=ufs 77116032 / 1 ad0s1b=swap 0 I ran sysinstall and loaded the install.cfg file with those changes and was overjoyed to see that it had successfully written all file system to the disk. Not true! It writes in to MFS until that fills up and then it overwrites some of mfs so that one must reboot. The fdisk output never changes from the following: ******* Working on device /dev/ad0 ******* parameters extracted from in-core disklabel are: cylinders=77504 heads=16 sectors/track=63 (1008 blks/cyl) snip cylinders=77504 heads=16 sectors/track=63 (1008 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 78123969 (38146 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 15/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: I have yet to see anything on the other 3 partitions. It does format just fine if I manually set it up via sysinstall. I know I am doing something wrong but not sure what.