Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com From: Andrew DeFaria Subject: Re: Problem uninstalling/deleting cygwin Date: Tue, 25 Jan 2005 15:03:58 -0800 Lines: 39 Message-ID: References: <1106670496 DOT 10021 DOT 18 DOT camel AT linuxpc DOT lune> <1106676434 DOT 10021 DOT 29 DOT camel AT linuxpc DOT lune> <1106683970 DOT 10021 DOT 54 DOT camel AT linuxpc DOT lune> <1106689937 DOT 10021 DOT 69 DOT camel AT linuxpc DOT lune> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org X-Gmane-NNTP-Posting-Host: farscape.lynx.com User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) In-Reply-To: <1106689937.10021.69.camel@linuxpc.lune> X-IsSubscribed: yes Neven Luetic wrote: >>> It says: "x cannot be deleted. Access denied. Maybe the source file >>> is opened" (maybe this translation from german is bad, but I saw it >>> before, so you'll recognize it). >> >> Does any process have this file opened? Try using Process Explorer >> from SysInternals.com. > > Process Explorer doesn't show anything (I looked for the handle > "cygwin.old", i.e. the top level dir). There are two different types of find in Process Explorer. Are you sure you tried both? > I killed any process that I could > (including explorer) and stopped AntiVir, Apache and mysql. No change. > > Anyway, those stale links cannot be accessed as files at all. I can > only see them using "ls" or apply chmod/chown on them. Nothing else. > If I try "cat file", it says "No such file or directory". File zombies. Symbolic links, in Cygwin for Windows, are not very much different than regular Windows Shortcuts (OK there are some differences and perhaps this is one of them). As such if you created a Windows shortcut to say a folder and later removed the folder you would expect, and Windows would handle, deleting the shortcut. As such I don't understand what the problem is here. You could: * Make the file that the link it pointing to valid then try removing the link * Try removing the link with Cygwin's rm (you probably did this already, included for completeness) * Try removing the link with Windows Explorer * Try removing the link with DOS' DEL. * Try examining the shortcut's properties and security -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/