head	1.2;
access;
symbols
	RELENG_4_11_0_RELEASE:1.1.4.1
	RELENG_4_11:1.1.4.1.0.12
	RELENG_4_11_BP:1.1.4.1
	RELENG_4_10_0_RELEASE:1.1.4.1
	RELENG_4_10:1.1.4.1.0.10
	RELENG_4_10_BP:1.1.4.1
	RELENG_4_9_0_RELEASE:1.1.4.1
	RELENG_4_9:1.1.4.1.0.8
	RELENG_4_9_BP:1.1.4.1
	RELENG_4_8_0_RELEASE:1.1.4.1
	RELENG_4_8:1.1.4.1.0.6
	RELENG_4_8_BP:1.1.4.1
	RELENG_4_7_0_RELEASE:1.1.4.1
	RELENG_4_7:1.1.4.1.0.4
	RELENG_4_7_BP:1.1.4.1
	RELENG_4_6_2_RELEASE:1.1.4.1
	RELENG_4_6_1_RELEASE:1.1.4.1
	RELENG_4_6_0_RELEASE:1.1.4.1
	RELENG_4_6:1.1.4.1.0.2
	RELENG_4_6_BP:1.1.4.1
	RELENG_4_5_0_RELEASE:1.1
	RELENG_4_5:1.1.0.10
	RELENG_4_5_BP:1.1
	RELENG_4_4_0_RELEASE:1.1
	RELENG_4_4:1.1.0.8
	RELENG_4_4_BP:1.1
	RELENG_4_3_0_RELEASE:1.1
	RELENG_4_3:1.1.0.6
	RELENG_4_3_BP:1.1
	RELENG_4_2_0_RELEASE:1.1
	RELENG_4_1_1_RELEASE:1.1
	PRE_SMPNG:1.1
	RELENG_4_1_0_RELEASE:1.1
	RELENG_3_5_0_RELEASE:1.1.2.1
	RELENG_4_0_0_RELEASE:1.1
	RELENG_4:1.1.0.4
	RELENG_4_BP:1.1
	RELENG_3_4_0_RELEASE:1.1.2.1
	RELENG_3:1.1.0.2;
locks; strict;
comment	@# @;


1.2
date	2002.03.09.08.28.10;	author luigi;	state dead;
branches;
next	1.1;

1.1
date	99.10.08.04.00.12;	author dwhite;	state Exp;
branches
	1.1.2.1
	1.1.4.1;
next	;

1.1.2.1
date	99.10.17.23.11.13;	author dwhite;	state Exp;
branches;
next	;

1.1.4.1
date	2002.03.08.13.18.07;	author luigi;	state dead;
branches;
next	;


desc
@@


1.2
log
@Nuke abandoned configuration.
@
text
@#!/bin/sh
#
# Prepares disk based on kernel disk information.  Assumes fdisk -e was
# run beforehand.
#
# 'swap' is the size of the swap partition in 512 byte blocks (def: 256MB)

# dev=target_disk

target_disk=$1

dmesg | grep "${target_disk}.*sectors" | tr -d '(:)' | awk '
	{
	v = $3
	c = $5
	h = $7
	s = $9
	ss = c * h * s - s
	sw = 522240
	ap = ss - sw

	print "#",$0 > "_"
	print "g c"c" h"h" s"s > "_"
	print "p 1 165",s,ss > "_"
	print "a 1" > "_"

	print "#",$0  > "__"
	print "type: ESDI" > "__"
	print "disk:", $1 > "__"
	print "label:" > "__"
	print "flags:" > "__"
	print "bytes/sector: 512" > "__"
	print "sectors/track:", s > "__"
	print "tracks/cylinder:", h > "__"
	print "sectors/cylinder:", s * h > "__"
	print "cylinders:", c > "__"
	print "sectors/unit:", ss > "__"
	print "rpm: 3600" > "__"
	print "interleave: 1" > "__"
	print "trackskew: 0" > "__"
	print "cylinderskew: 0" > "__"
	print "headswitch: 0           # milliseconds" > "__"
	print "track-to-track seek: 0  # milliseconds" > "__"
	print "drivedata: 0 " > "__"
	print "8 partitions:" > "__"
	print "#        size   offset    fstype   [fsize bsize bps/cpg]" > "__"
	print "a:",ap,"0 4.2BSD 512 4096 " > "__"
	print "b:",sw,ap,"swap " > "__"
	print "c:",ss,"0 unused 0 0" > "__"
	}
' 
disklabel -BrR ${target_disk} __
@


1.1
log
@Add a new floppy type, install.  This type builds a disk that can
slice, partition, newfs, and install FreeBSD from a tarball on a remote server.
Handy for doing mass-installs for server farms.

Documentation following shortly.
@
text
@@


1.1.4.1
log
@Nuke this abandoned configuration which has been broken for ages.
@
text
@@


1.1.2.1
log
@MFC: Add install floppy.
@
text
@@

