title: cygwin move to "D:\" disk from the "C:\"
today i have install the latest cygwin and found that the capacity of C:\ is not enought for other software, just only left 100M, so i decide to move it to other
disk D:\. the method as following step:
step 1: just move C:/cygwin to D:/cygwin
step 2: moidify the register table of the window, and fix it show as below:
[HKEY_LOCAL_MACHINE]->[SOFTWARE]->[Cygnus Solutions]->[Cygwin]->[mounts v2]
-->[/usr/bin]-->(native REG_SZ d:\cygwin/bin)
-->[/usr/lib]-->(native REG_SZ d:\cygwin/lib)
this two item is loaded by the cygwin when start up. you can use (mount) to show the
mount-table.
step 3: modify the Cygwin.bat as below:
==========================
@echo off
D:
chdir d:\cygwin\bin
bash --login -i
===========================
this file used by cygwin initial the bash shell.
step 4: maybe you should fix the ENV variable:
HOME = d:\cygwin\home\Administrator
CYGWIN = tty ntsec
(note: tty is used to resolve emacs can not exit under cygwin when stroke C+X,C+C.
step 5: replace the icon attribute of the targe path from "c:\cygwin\Cygwin.bat" to
"D:\cygwin\Cygwin.bat".
done!
阅读(1031) | 评论(0) | 转发(0) |