This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Moving Home dir to another partition


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]