Move cygwin to different disk, including services
Stop all services, log out other users, in process explorer, add command line column, stop all in old pathIn cygwin, go to /cygdrive, cp -vR c/cygwin* d/mount -m > /usr/bin/mountCommands.bat
# not sure if we really need thisin explorer, rename c:/cygwin to OLD , log off all users if it fails, use lsof alternative if neededchange shortcut on desktop (C:\Users\Public\Desktop
)change start menu items [ "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Cygwin\Cygwin64 Terminal.lnk"
]change NEWLOC/cygwin.batRegedit to HLM\system\CurrentControlSet\services\sshd and \cron and \syslog-ng
change paths (for all services, do cygrunsrv -L
)cygrunsrv --stop sshd; cygrunsrv --remove sshd; cygrunsrv --install sshd --path /usr/sbin/sshd
Some more magic..?reboot