免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1000 | 回复: 0
打印 上一主题 下一主题

cygwin moved to other disk [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-19 00:38 |只看该作者 |倒序浏览

                                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!
               
               
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/94861/showart_1932539.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP