From owner-freebsd-questions@FreeBSD.ORG Tue Nov 25 05:03:20 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5325216A4CE for ; Tue, 25 Nov 2003 05:03:20 -0800 (PST) Received: from ctb-mesg3.saix.net (ctb-mesg3.saix.net [196.25.240.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94A8143FAF for ; Tue, 25 Nov 2003 05:03:18 -0800 (PST) (envelope-from roland@thegreentree.org) Received: from thegreentree.org (unknown [196.25.134.130]) by ctb-mesg3.saix.net (Postfix) with ESMTP id A3B606C5E for ; Tue, 25 Nov 2003 15:03:15 +0200 (SAST) Received: from Spooler by thegreentree.org (Mercury/32 v3.32) ID MO000077; 25 Nov 03 15:03:38 +0200 Received: from spooler by thegreentree.org (Mercury/32 v3.32); 25 Nov 03 15:03:13 +0200 Received: from roland (127.0.0.1) by thegreentree.org (Mercury/32 v3.32) ID MG000076; 25 Nov 03 15:03:08 +0200 From: "Roland Giesler" To: Date: Tue, 25 Nov 2003 15:03:08 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <20031125132300.J29742@gwdu60.gwdg.de> Importance: Normal Subject: RE: Resizing disk labels X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Nov 2003 13:03:20 -0000 Thanks Konrad, Yes, you're right, I mean file systems. I've only been using FreeBSD for bit more than a month, so I'm still getting used to the different terminology (being used to MS). Could I do this process "live", ie. could I FTP the content for "/usr" to another machine, delete the "/usr" filesystem, grow "/" to let's say 1GB, recreate "/usr" and copy the data back? If I understand things correctly, then "/usr" holds apps and other stuff, but not the files essential to starting and operating FreeBSD. So I should be follow this course of action? Thanks again Roland Giesler > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Konrad Heuer > Sent: 25 November 2003 14:42 > To: Roland Giesler > Cc: questions@freebsd.org > Subject: Re: Resizing disk labels > > > > On Tue, 25 Nov 2003, Roland Giesler wrote: > > > I have installed FreeBSD in a server with the default setting > in the label > > editor. I hope my terminology is correct, since I'm refering > to /etc /usr > > etc. Now I've installed a squid, KDE, DHCP, Java (not complete yet!), > > Apache and some other stuff. While installing Qmail, I ran out of disk > > space on /etc. but /usr still has 17GB free. > > > > How can I resize the "labels" so /etc grows to 1GB for example? I've > > searched all over and it appears that one can grow the size, > but not shrink > > it? > > > > What I've really looking for is a tool like partitionmagic for > FAT or NTFS. > > Does such a tool exist and if not what are my options here? > > You can use growfs to increase the size of a filesystem (I suppose this is > what you mean), but only if you have free disk space available adjacent to > the cylinders allocated for the filesystem in question. > > You cannot decrease the size of filesystem without recreating it. > > Thus you have the following possibilites to choose from: > > 1) Reinstall FreeBSD and use more suitable filesystem sizes. > > 2) Backup the data of the filesystem which is too large and adjacent to > the filesystem which is too small, enlarge that with growfs, recreate > other filesystem with smaller size and restore the data. > > 3) Try to identify subdirectories containing a lot of data within the > filesystem which is too small, move them by mv to a filesystem with > enough free space and symlink them back (ln -s) to the old location. > But do not move the whole /etc directory from the root to another > filesystem! > > Best regards > > Konrad Heuer (kheuer2@gwdg.de) ____ ___ _______ > GWDG / __/______ ___ / _ )/ __/ _ \ > Am Fassberg / _// __/ -_) -_) _ |\ \/ // / > 37077 Goettingen /_/ /_/ \__/\__/____/___/____/ > Germany > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"