Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Sep 1996 00:12:43 -0700
From:      Darryl Okahata <darrylo@hpnmhjw.sr.hp.com>
To:        hackers@freefall.freebsd.org
Subject:   fdisk changes, anyone?
Message-ID:  <199609160712.AA113897963@hpnmhjw.sr.hp.com>

next in thread | raw e-mail | index | archive | help
     I've just mangled fdisk such that partitioning information can now
be specified via an optional config file.  I've been needing a way to
partition a disk from a script (without using expect), and so I mangled
fdisk to do just that.  I want to write a perl script for adding SCSI
disks, and a programmatic fdisk was the only piece missing.  An example
config file is:

	# Set geometry to 1019 cylinders, 39 heads, 63 sectors:
        g       c1019   h39     s63
	# Set partition 0 to FreeBSD, starting at 1 for 2503871 sectors
	# (these numbers will get rounded up or down to fall on
	# head/cylinder boundaries):
	p       0       165     1       2503871

Another example:

	# Dedicate entire disk to FreeBSD (this is for a Quantum
	# Fireball 1280S):
	f       2503872

Would anyone be interested in the changes (including man page updates)?
Should I submit an enhancement request (w/patches), or should I consign
these changes to the mists of time?  ;-)

[ One area of concern is that I'm a bit unclear on the start/end address
  requirements.  Right now, start offsets are being rounded up to an
  head boundary, but end addresses are being rounded down to major
  cylinder boundaries (every head*sector chunk).  Is this right? ]

     -- Darryl Okahata
	Internet: darrylo@sr.hp.com

DISCLAIMER: this message is the author's personal opinion and does not
constitute the support, opinion, or policy of Hewlett-Packard, or of the
little green men that have been following him all day.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609160712.AA113897963>