This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Moving Home dir to another partition
- From: René Berber <r dot berber at computer dot org>
- To: cygwin at cygwin dot com
- Date: Wed, 08 Mar 2006 12:07:41 -0600
- Subject: Re: Moving Home dir to another partition
- Openpgp: url=ldap://keyserver.pgp.com
- References: <dun1i8$uv3$1@sea.gmane.org>
Mool wrote:
> 1) Cygwin Installed on C:\Cygwin (C: partition win winXP SP2)
> 2) First run created /home/$USER in C:\Cygwin
>
> how to MOVE my home dir in another partition D:, so I'll use
> D:\cygwin\home\$USER?
cp -rp /cygdrive/c/Cygwin/home/$USER /cygdrive/d/Cygwin/home
Edit /etc/passwd changing $USER's line with the new home (i.e. from /home/$USER
to /cygdrive/d/Cygwin/home/$USER)
_test it_, if it works then you can delete the old home directory.
All this is assuming you haven't changed the cygdrive prefix. And if you do
change it in the future the new $HOME will not work, you'll have to edit passwd
again.
--
René Berber
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/