From owner-freebsd-stable Sat Jun 22 02:50:25 1996 Return-Path: owner-stable Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA21582 for stable-outgoing; Sat, 22 Jun 1996 02:50:25 -0700 (PDT) Received: from diablo.ppp.de (diablo.ppp.de [193.141.101.34]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id CAA21570 for ; Sat, 22 Jun 1996 02:50:22 -0700 (PDT) Received: from allegro.lemis.de by diablo.ppp.de with smtp (Smail3.1.28.1 #1) id m0uXPKa-000QY5C; Sat, 22 Jun 96 11:50 MET DST From: grog@lemis.de (Greg Lehey) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Received: (grog@localhost) by allegro.lemis.de (8.6.9/8.6.9) id LAA12063; Sat, 22 Jun 1996 11:03:48 +0200 Message-Id: <199606220903.LAA12063@allegro.lemis.de> Subject: Re: Defining a partition To: 100120.3121@CompuServe.COM (Berend de Boer) Date: Sat, 22 Jun 1996 11:03:47 +0200 (MET DST) Cc: freebsd-stable@freebsd.org In-Reply-To: <960621200142_100120.3121_EHQ126-1@CompuServe.COM> from "Berend de Boer" at Jun 21, 96 04:01:42 pm X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-stable@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Berend de Boer writes: > > My harddisk is configured as follows: > > 0: dos (20MB) > 1: FreeBSD (500MB) > 2: unused > 3: unused > > The harddisk is about 800MB. How can I turn partion 2 into the last 300MB? Use fdisk. > Do I really need to use the fdisk program? No, you can write your own program to manipulate the partition table if you want. But you'll find fdisk easier, since that's what it's intended to do. > It's a bit hard to use because I don't > know how to calculate the correct sector start and sectors size. I think I'd address that problem first if I were in your place. Take a look at ftp://freefall.freebsd.org/incoming/disks.ps.gz to find out how to perform the calculations. Greg