file systems
Charles C. Bennett, Jr.
ccb at kukla.tiac.net
Wed Jul 21 11:54:59 EDT 1999
> > 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).
More information about the Discuss
mailing list