From owner-freebsd-questions Tue May 5 17:49:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA20014 for freebsd-questions-outgoing; Tue, 5 May 1998 17:49:52 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from freebie.lemis.com (freebie.lemis.com [139.130.136.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA19734 for ; Tue, 5 May 1998 17:48:32 -0700 (PDT) (envelope-from grog@lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id KAA14987; Wed, 6 May 1998 10:17:54 +0930 (CST) (envelope-from grog) Message-ID: <19980506101754.F14746@freebie.lemis.com> Date: Wed, 6 May 1998 10:17:54 +0930 From: Greg Lehey To: Doug White , Jesse Manning Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Partition resizing under FreeBSD References: <341C9B64.A309C34E@cyberdude.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from Doug White on Tue, May 05, 1998 at 01:39:20PM -0700 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 5 May 1998 at 13:39:20 -0700, Doug White wrote: > On Sun, 14 Sep 1997, Jesse Manning wrote: > >> I want to resize a FreeBSD partition. /stand/sysinstall won't let me get >> rid of some free space I have. I want to make it available to my Win95 >> partition. And Partition Magic won't recongize the free space in the >> FreeBSD partition. Is there a program/port I can use for this? > > You can't resize partitions without doing it the hard way -- backup, > newfs, restore. Just yesterday Julian Elischer pointed out that there is a utility to resize ufs file system. Here's a copy of the relevant parts of the original message: >>> * FFS can support increased size through the addition of cylinder groups. >>> >>> Patch? >> >> I'll consider doing one; it's a tunefs tweak, really. If I do, though, >> it will probably conflict with the soft updates changes to tunefs, at >> least until they are committed (I thought that was going to happen soon?). > > der mouse made an "fsresize" program for NetBSD. It can both grow and shrink > file systems. The source is about 50 kB, I can post it here if anybody is > interested (or you can get it from http://www.nethelp.no/scsi/fsresize.c). > > Steinar Haug, Nethelp consulting, sthaug@nethelp.no This is pure source. "Some assembly required". If you try this program without first backing up all data, you'd have to be stark screaming mad. > For efficiency the UFS filesystem makes full use of the space you > give it. It's not like FAT that fills the disk incrementally. I'm not sure what you're saying here, but I suspect you mean that ufs lays out data across the total partition, whereas FAT starts at the beginning and allocates data sequentially. Certainly both use the entire partition until told to do differently. Greg -- See complete headers for address and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message