Date: Wed, 27 Jan 2010 17:10:46 -0500 From: Bob Johnson <fbsdlists@gmail.com> To: Martin McCormick <martin@dc.cis.okstate.edu> Cc: freebsd-questions@freebsd.org Subject: Re: Swap Partition First? Message-ID: <54db43991001271410y6e4156ddl4737d4d6f96f2b6c@mail.gmail.com> In-Reply-To: <201001272115.o0RLFa2r058113@dc.cis.okstate.edu> References: <201001272115.o0RLFa2r058113@dc.cis.okstate.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
The only thing that looks out of place is that you have defined ad0s1-2 before ad0s1-1. I've never tested it, but perhaps this is causing it to get confused when calculating the disk layout? In other words, perhaps you should use #1G swap followed by / on rest of disk. # ad0s1-1=swap 2097152 #All the rest is FreeBSD with soft updates. ad0s1-2=ufs 0 / 1 so they are defined in numerical sequence. On 1/27/10, Martin McCormick <martin@dc.cis.okstate.edu> wrote: > Our FreeBSD systems mostly have a very simple disk layout. There > is a 1 or 2-gigabyte swap partition and all the rest is FreeBSD. > When manually configuring these partitions in sysinstall, I > usually set up swap first with a 1GB size and then use the > remaining space by selecting the values as defaults. > > An attempt to script this in an install.cfg file is not > going well. The disk formatting part of the file is as follows: > > disk=ad0 > partition=all > bootManager=none > diskPartitionEditor > #Entire disk is FreeBSD. > diskPartitionWrite > ################################ > > ################################ > # All sizes are expressed in 512 byte blocks! > # > #1G swap followed by / on rest of disk. > # > ad0s1-2=swap 2097152 > #All the rest is FreeBSD with soft updates. > ad0s1-1=ufs 0 / 1 > # Let's do it! > diskLabelEditor > diskLabelCommit > > # OK, everything is set. Do it! > installCommit > > This doesn't work. sysinstall reports that it can't > write the swap space. > > fdisk reports a FreeBSD partition and all the others are > shown as free. > > Any ideas? Thank you. > > Martin McCormick WB5AGZ Stillwater, OK > Systems Engineer > OSU Information Technology Department Telecommunications Services Group > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -- -- Bob Johnson fbsdlists@gmail.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54db43991001271410y6e4156ddl4737d4d6f96f2b6c>