[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to mount /var/ on another partition



> Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
> /dev/wd0d  96655    31644    60179 34%  /var
> /dev/wd0i  14020797 1 13319757   0%     /other

SnowDog's suggestion will work just fine.  The symlink will work.

Since /other is empty, do you need to keep it as /other?  If you don't
need to preserve the /other partition you could do this for a  more
premanent look:

cp -pr /var /other	#This will move current /var information.
umount /other		#Preparing for the swapping.
umount /var		#Old /var is not used.
mount /dev/wd0i /var	#/other becomes /var
mount /dev/wd0d /other	#old /var becomes new /other
#There, you've copied the old /var to /other and swapped it with /other.
#/var now has much free space.

#The new /other can be erased/kept at your liesure.


edit your /etc/fstab by changing the /other entry to be /var and the /var
to /other.  This way the changes will be permanent after a reboot
(assuming you ever do).

The only real advantage this has over SnowDog's setup is that /var is not
a symlink.   For future configuration and other admins the symlink may
trip something/someone up.  it's mostly a style thing, and aren't BSD/UNIX
admins master of style?


-- 
	-Aaron
	  Crandall

find / -name '*your_base*' | xargs chown us.us;