From owner-freebsd-questions Fri Feb 25 15:46:16 2000 Delivered-To: freebsd-questions@freebsd.org Received: from boris.netgate.net (boris.netgate.net [204.145.147.154]) by hub.freebsd.org (Postfix) with ESMTP id 8623C37BB70 for ; Fri, 25 Feb 2000 15:46:13 -0800 (PST) (envelope-from wellsian@caffeine.com) Received: from localhost (wellsian@localhost) by boris.netgate.net (8.9.3/8.9.3) with ESMTP id PAA25108; Fri, 25 Feb 2000 15:45:33 -0800 (PST) (envelope-from wellsian@caffeine.com) Date: Fri, 25 Feb 2000 15:45:33 -0800 (PST) From: wellsian X-Sender: wellsian@boris.netgate.net To: Bhishan Hemrajani Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Re-size swap and /var In-Reply-To: <200002252240.OAA07394@cytosine.dhs.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG If var and swap are next to each other on the disk then your job is simple. That assumes you have enough free space to store what's on /var while you re-size things. Maybe you have room on / or /usr? Maybe you don't need a separate /var at all? Output from the df command would help. Roughly: -------- Stop things from screwing with /var shutdown now (to single user) Store /var contents somewhere, maybe with: cd /var;tar -cvf //var.tar * Redo your disk partitions, maybe via /stand/sysinstall. cd /;umount /var /stand/sysinstall->Index->Partition... etc. (be sure /var gets a newfs) Modify /etc/fstab as needed. (Does /var need a different device?) Re-mount stuff. mount -a Restore stuff cd /var;tar -xpvf //var.tar Reboot reboot If /var and swap aren't next to each other or you don't have a then things could quickly get more complex. Can't be more specific without knowing your disk layout and usage. That's where the df output comes in. Say, I'll bet there's great stuff on this in The Complete FreeBSD. ISBN 1-57176-246-9 :) Dave On Fri, 25 Feb 2000, Bhishan Hemrajani wrote: > I currently have /var set to 404mb.. but that > seems to much. > > I only have 96m on swap. I was wondering if there > was anyway to change swap to 256m and have the > rest put back to /var. > > I'm not sure how to do this at all. I am also > not that good at Unix yet, so if you could go > step by step I would really appreciate it. > > --bhishan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message