Moving Home dir to another partition
René Berber
r.berber@computer.org
Wed Mar 8 18:08:00 GMT 2006
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/
More information about the Cygwin
mailing list