Chinaunix首页 | 论坛 | 博客
  • 博客访问: 897562
  • 博文数量: 116
  • 博客积分: 3923
  • 博客等级: 中校
  • 技术积分: 1337
  • 用 户 组: 普通用户
  • 注册时间: 2009-04-23 01:22
文章分类

全部博文(116)

文章存档

2013年(1)

2012年(17)

2011年(69)

2009年(29)

分类: LINUX

2009-05-19 00:38:43

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!
阅读(910) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~