From owner-freebsd-hackers Mon Jul 13 16:34:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA04882 for freebsd-hackers-outgoing; Mon, 13 Jul 1998 16:34:02 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp03.primenet.com (daemon@smtp03.primenet.com [206.165.6.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA04845 for ; Mon, 13 Jul 1998 16:33:58 -0700 (PDT) (envelope-from tlambert@usr08.primenet.com) Received: (from daemon@localhost) by smtp03.primenet.com (8.8.8/8.8.8) id QAA29390; Mon, 13 Jul 1998 16:33:53 -0700 (MST) Received: from usr08.primenet.com(206.165.6.208) via SMTP by smtp03.primenet.com, id smtpd029371; Mon Jul 13 16:33:51 1998 Received: (from tlambert@localhost) by usr08.primenet.com (8.8.5/8.8.5) id QAA15497; Mon, 13 Jul 1998 16:33:49 -0700 (MST) From: Terry Lambert Message-Id: <199807132333.QAA15497@usr08.primenet.com> Subject: Re: Compacting FFS filesystem To: ravi@freegate.com Date: Mon, 13 Jul 1998 23:33:49 +0000 (GMT) Cc: freebsd-hackers@FreeBSD.ORG In-Reply-To: <000501bdae9f$93eda4e0$8356e2d0@ravi.hq.freegate.com> from "Ravi Duvvuri" at Jul 13, 98 01:48:20 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Is there any way to reduce the size of an existing FFS filesystem partition > without losing data. I want to reparation the existing drive so that > the new partition size is equal (or close) to the actual number of used > blocks in the partition. I need to do this without dumping the filesystem > to tape or some other backup media. Yes. Theo DeRaddt wrote some code to do this. Check the -current list archives on ww.freebsd.org, where it was discussed at length in a thread on logical volume management. I posted the URL, but I don't have it in the bookmarks of my current desktop. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message