Swap Partition First? Something is still Wrong.

Martin McCormick martin at dc.cis.okstate.edu
Thu Jan 28 16:36:39 UTC 2010


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:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>

	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.


More information about the freebsd-questions mailing list