Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


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

file systems



> > I have a user who has filled up their home directory.
> > How can I change the location of this to another disk?
> 
> Move the directory to another partition with more space.  The create a
> link from /home to where they ended up.
> 
> mv /home/username /otherplace
> cd /home
> ln -s /otherplace/username username
> 
> Looks good I hope?

Pretty close.  If /otherplace is on another filesystem, 'mv' won't
work.

cd home
tar cf - username | (cd /otherplace && tar xvf -)
mv username ,username && rm -rf ,username &
ln -s /otherplace/username .


ccb


---
Charles C. Bennett, Jr.				VA Linux Systems
Systems Engineer,				1382 Bordeaux Dr.
US Northeast Region				Sunnyvale, CA 94089
+1 617 543-6513					+1 888-LINUX-4U
ccb at acm.org					www.valinux.com
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org