Date: Fri, 25 Feb 2000 15:45:33 -0800 (PST) From: wellsian <wellsian@caffeine.com> To: Bhishan Hemrajani <bhishan@cytosine.dhs.org> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Re-size swap and /var Message-ID: <Pine.BSF.4.21.0002251447330.24753-100000@boris.netgate.net> In-Reply-To: <200002252240.OAA07394@cytosine.dhs.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 /<placewithspace>/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 /<placeyouused>/var.tar Reboot reboot If /var and swap aren't next to each other or you don't have a <placewithspace> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0002251447330.24753-100000>