文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>cygwin moved to other disk

cygwin moved to other disk

时间:2009-05-19  来源:vincent-cws

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!
相关阅读 更多 +
排行榜 更多 +
挖掘机卡车

挖掘机卡车

模拟经营 下载
我的汤姆猫小米版

我的汤姆猫小米版

模拟经营 下载
我的小小邮轮

我的小小邮轮

模拟经营 下载