From owner-freebsd-questions Wed Jun 13 23:19:12 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cqos1.cqos.com (ppp-64-160-241-125.cqos.com [64.160.241.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BBA937B40A for ; Wed, 13 Jun 2001 23:18:58 -0700 (PDT) (envelope-from Sknox@CQOS.COM) Received: by CQOS1 with Internet Mail Service (5.5.2448.0) id ; Wed, 13 Jun 2001 23:18:58 -0700 Message-ID: <550B4D6FA776D3118D1D00902799170C6086B0@CQOS1> From: Sean Knox To: 'Erik Trulsson' , Sean Knox Cc: "FreeBSD Questions (E-mail)" Subject: RE: modifying partition sizes? Date: Wed, 13 Jun 2001 23:18:57 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="windows-1252" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG as much as I tempted to simply create a symlink as both Jason and you suggest, I think this will be a good exercise for me. :-) So if I were to follow your first solution: (the partitions are adjacent) 1. in /dir: tar cvfR usr.tar * tar cvfR var.tar * 2. (backed up to another machine) 3. /stand/sysinstall to resize partitions. ** see below 4. untar var.tar in /var and usr.tar into /usr look good? In sysinstall, am I able to directly resize partitions, or do I need to delete the partition(s) and recreate them with the proper size? * on a side note, how do I exclude directories when creating a tar? I tried "tar cvfRX ./baddir file.tar *" and "tar cvfR -X ./baddir file.tar *" but those didn't work. Sean -----Original Message----- From: Erik Trulsson [mailto:ertr1013@student.uu.se] Sent: Wednesday, June 13, 2001 11:04 PM To: Sean Knox Cc: FreeBSD Questions (E-mail) Subject: Re: modifying partition sizes? On Wed, Jun 13, 2001 at 10:35:58PM -0700, Sean Knox wrote: > I should have been a little clearer: I have unused space on /usr that I want > to allocate to /var. any advice? Backup the full contents of /var and /usr. Change the sizes of the partitions with disklabel or sysinstall. ( Only works if they are adjacent on the disk.) Do a newfs on the partitions. Restore the backups. The backup/restore step is absolutely necessary since changing the size of a partition will lose all information on that partition. If the above does not sound fun (which it shouldn't :-) ) the you might move a directory or two from /var to /usr and put symlinks in its place in /var. > > Sean > -----Original Message----- > From: Sean Knox [mailto:Sknox@CQOS.COM] > Sent: Wednesday, June 13, 2001 10:17 PM > To: FreeBSD Questions (E-mail) > Subject: modifying partition sizes? > > > I checked the Handbook for info on this but didn't find what I was looking > for. would someone point me in the right direction on how to do this? tools > and/or howto's? > -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message