Date: Wed, 6 May 1998 10:17:54 +0930 From: Greg Lehey <grog@lemis.com> To: Doug White <dwhite@resnet.uoregon.edu>, Jesse Manning <knightmare@cyberdude.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Partition resizing under FreeBSD Message-ID: <19980506101754.F14746@freebie.lemis.com> In-Reply-To: <Pine.BSF.3.96.980505133758.25528H-100000@gdi.uoregon.edu>; from Doug White on Tue, May 05, 1998 at 01:39:20PM -0700 References: <341C9B64.A309C34E@cyberdude.com> <Pine.BSF.3.96.980505133758.25528H-100000@gdi.uoregon.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980506101754.F14746>