From owner-freebsd-hackers Mon Sep 16 00:12:52 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA17368 for hackers-outgoing; Mon, 16 Sep 1996 00:12:52 -0700 (PDT) Received: from relay.hp.com (relay.hp.com [15.255.152.2]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id AAA17360 for ; Mon, 16 Sep 1996 00:12:48 -0700 (PDT) Received: from srmail.sr.hp.com by relay.hp.com with ESMTP (1.37.109.16/15.5+ECS 3.3) id AA264757966; Mon, 16 Sep 1996 00:12:47 -0700 Received: from hpnmhjw.sr.hp.com by srmail.sr.hp.com with ESMTP (1.37.109.16/15.5+ECS 3.3) id AA272027965; Mon, 16 Sep 1996 00:12:46 -0700 Received: from mina.sr.hp.com by hpnmhjw.sr.hp.com with SMTP (1.37.109.16/15.5+ECS 3.3) id AA113897963; Mon, 16 Sep 1996 00:12:43 -0700 Message-Id: <199609160712.AA113897963@hpnmhjw.sr.hp.com> To: hackers@freefall.freebsd.org Subject: fdisk changes, anyone? Date: Mon, 16 Sep 1996 00:12:43 -0700 From: Darryl Okahata Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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.