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 Date: Fri, 10 Dec 2004 12:22:16 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: KevinGPO cc: cygwin AT cygwin DOT com Subject: Re: HELP: Cygwin ruined my WinXP files/HDD"!!!! In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 9 Dec 2004, KevinGPO wrote: > I got a problem in WindowsXP. I installed some sourcecode to compile using > Cygwin. Now I cannot seem to be able to remove/delete folders/files using the > "rm -Rf" force command in Cygwin. Here is a detailed listing of the > folder/files: > [snip] > CompiledLibraries/SDL-1.2.7/src: > total 0 > dr-xr-xr-x+ 2 Kevin ???????? 0 Jun 5 2004 .deps > dr-xr-xr-x+ 2 Kevin ???????? 0 Jun 5 2004 .libs > > Here's a sample output from the command "rm -Rf CompiledLibraries/" > [snip] > rm: cannot unlink `CompiledLibraries/SDL-1.2.7/src/video/XFree86/Xxf86dga/.deps/XF86DGA.Plo': Permission denied > rm: cannot unlink `CompiledLibraries/SDL-1.2.7/src/video/XFree86/Xxf86dga/.deps/XF86DGA2.Plo': Permission denied > rm: cannot remove directory `CompiledLibraries/SDL-1.2.7/src/video/XFree86/Xxf86dga/.deps': Directory not empty > [snip] > > But the errors says something about cannot unlink file? Something to do > with why the type is ????????? and why there's a + symbol beside every > single file in the attributes (eg. drwxrwxrwx+ filename...) > > There's no root mode in Cygwin, and the files were created under > Cygwin/WindowsXP. > [snip] > > HELP!! First of all, calm down. Relax. Sacrifice a chicken. The '????????' group name on the files is a red herring -- see . This probably has to do with your directories not having the write permission -- in POSIX systems, you need to have permission to write to a directory to be able to delete files in it. Try find . -type d | xargs chmod +w and then your 'rm -rf' command again. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- 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/