Date: Sun, 9 Feb 2003 10:41:20 -0600 From: Mike Meyer <mwm-dated-1045240881.9a473b@mired.org> To: Ihsan Junaidi Ibrahim <ihsan_junaidi@yahoo.com.sg> Cc: FreeBSD Questions <freebsd-questions@FreeBSD.org> Subject: Re: Deleting /usr dedicated slice. Message-ID: <15942.33968.502944.763209@guru.mired.org> In-Reply-To: <200302091632.27327.ihsan_junaidi@yahoo.com.sg> References: <200302091632.27327.ihsan_junaidi@yahoo.com.sg>
next in thread | previous in thread | raw e-mail | index | archive | help
In <200302091632.27327.ihsan_junaidi@yahoo.com.sg>, Ihsan Junaidi Ibrahim <ihsan_junaidi@yahoo.com.sg> typed: > Hello all, > > How do delete the slice that is occupying /usr and use that free space to > extend /var? I read the man pages and growfs is the way but how do I exactly > do it? Did you really put your partitions on separate slices? If so, you've made more work for yourself. Growfs just grows the file system in a partition to use extra space. You've got to add the space to the partition yourself. So this can only work if the "spare" partition immediately follows the partition that is going to grow. Normally, what you would have to do to do that is use the "disklabel -e" to remove the spare partition and change the size of the old partition to include the new one. If you've put your partitions on separate slices, you have to use fdisk to remove the spare slice and add the space to the slice that is going to grow before you use disklabel on the partitions. After you've done that step, or those two steps, you can use growfs on the partition to make it use the extra space. Be sure and back up /var before trying this. <mike -- Mike Meyer <mwm@mired.org> http://www.mired.org/consulting.html Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. 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?15942.33968.502944.763209>