HELP: SDL ruined my HDD!

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:

CompiledLibraries/:
total 0
drwx------+ 3 Kevin ??? 0 Dec 7 14:08 SDL-1.2.7
drwx------+ 3 Kevin ??? 0 Dec 7 14:08 SDL_net-1.2.5

CompiledLibraries/SDL-1.2.7:
total 0
drwx------+ 16 Kevin ??? 0 Dec 7 14:08 src

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
drwx------+ 25 Kevin ??? 0 Dec 7 14:08 audio
drwx------+ 18 Kevin ??? 0 Dec 7 14:08 cdrom
drwx------+ 4 Kevin ??? 0 Dec 7 14:08 cpuinfo
drwx------+ 4 Kevin ??? 0 Dec 7 14:08 endian
drwx------+ 4 Kevin ??? 0 Dec 7 14:08 events
drwx------+ 4 Kevin ??? 0 Dec 7 14:08 file
drwx------+ 3 Kevin ??? 0 Dec 7 14:08 hermes
drwx------+ 15 Kevin ??? 0 Dec 7 14:08 joystick
drwx------+ 4 Kevin ??? 0 Dec 7 14:08 main
drwx------+ 4 Kevin ??? 0 Dec 7 14:08 thread
drwx------+ 4 Kevin ??? 0 Dec 7 14:08 timer
drwx------+ 34 Kevin ??? 0 Dec 7 14:08 video

CompiledLibraries/SDL-1.2.7/src/.deps:
total 13
-r–r--r-- 1 Kevin ??? 1732 Jun 5 2004 SDL.Plo
-r–r--r-- 1 Kevin ??? 4076 Jun 5 2004 SDL_error.Plo
-r–r--r-- 1 Kevin ??? 1816 Jun 5 2004 SDL_fatal.Plo
-r–r--r-- 1 Kevin ??? 91 Jun 5 2004 SDL_getenv.Plo
-r–r--r-- 1 Kevin ??? 3919 Jun 5 2004 SDL_loadso.Plo

CompiledLibraries/SDL-1.2.7/src/.libs:
total 13595
-r-xr-xr-x 1 Kevin ??? 2746619 Jun 5 2004 SDL.dll
-r–r--r-- 1 Kevin ??? 22987 Jun 5 2004 SDL.o
-r–r--r-- 1 Kevin ??? 378828 Jun 5 2004 SDL_error.o
-r–r--r-- 1 Kevin ??? 21497 Jun 5 2004 SDL_fatal.o
-r–r--r-- 1 Kevin ??? 1814 Jun 5 2004 SDL_getenv.o
-r–r--r-- 1 Kevin ??? 367140 Jun 5 2004 SDL_loadso.o
-r–r--r-- 1 Kevin ??? 10262308 Jun 5 2004 libSDL.a
-r–r--r-- 1 Kevin ??? 116176 Jun 5 2004 libSDL.dll.a
lrwxrwxrwx 1 Kevin ??? 12 Jun 5 2004 libSDL.la -> …/libSDL.la
-r–r--r-- 1 Kevin ??? 783 Jun 5 2004 libSDL.lai

Here’s a sample output from the command “rm -Rf CompiledLibraries/”

‘: Permission denied
rm: cannot remove directory
CompiledLibraries/SDL-1.2.7/src/video/XFree86/Xv/.d eps': Directory not empty rm: cannot remove directoryCompiledLibraries/SDL-1.2.7/src/video/XFree86/Xv’:
Directory not empty
rm: cannot unlink
CompiledLibraries/SDL-1.2.7/src/video/XFree86/Xxf86dga/.deps/ XF86DGA.Plo': Permission denied rm: cannot unlinkCompiledLibraries/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/Xxf86 dga/.deps': Directory not empty rm: cannot remove directoryCompiledLibraries/SDL-1.2.7/src/video/XFree86/Xxf86
dga’: Directory not empty
rm: cannot unlink
CompiledLibraries/SDL-1.2.7/src/video/XFree86/Xxf86vm/.deps/X F86VMode.Plo': Permission denied rm: cannot remove directoryCompiledLibraries/SDL-1.2.7/src/video/XFree86/Xxf86
vm/.deps’: Directory not empty
rm: cannot remove directory
CompiledLibraries/SDL-1.2.7/src/video/XFree86/Xxf86 vm': Directory not empty rm: cannot remove directoryCompiledLibraries/SDL-1.2.7/src/video/XFree86’:
Dir
ectory not empty
rm: cannot remove directory CompiledLibraries/SDL-1.2.7/src/video': Directory n ot empty rm: cannot remove directoryCompiledLibraries/SDL-1.2.7/src’: Directory not
emp
ty
rm: cannot remove directory CompiledLibraries/SDL-1.2.7': Directory not empty rm: cannot unlinkCompiledLibraries/SDL_net-1.2.5/.libs/libSDL_net.a’:
Permissi
on denied
rm: cannot unlink CompiledLibraries/SDL_net-1.2.5/.libs/libSDL_net.exp': Permis sion denied rm: cannot unlinkCompiledLibraries/SDL_net-1.2.5/.libs/libSDL_net.la’:
Permiss
ion denied
rm: cannot unlink CompiledLibraries/SDL_net-1.2.5/.libs/libSDL_net.lai': Permis sion denied rm: cannot unlinkCompiledLibraries/SDL_net-1.2.5/.libs/SDL_net.dll’:
Permissio
n denied
rm: cannot unlink CompiledLibraries/SDL_net-1.2.5/.libs/SDL_net.dll-base': Perm ission denied rm: cannot unlinkCompiledLibraries/SDL_net-1.2.5/.libs/SDL_net.dll-def’:
Permi
ssion denied
rm: cannot unlink CompiledLibraries/SDL_net-1.2.5/.libs/SDL_net.dll-exp': Permi ssion denied rm: cannot unlinkCompiledLibraries/SDL_net-1.2.5/.libs/SDL_net.dll-ltdll.c’: P
ermission denied
rm: cannot unlink
CompiledLibraries/SDL_net-1.2.5/.libs/SDL_net.dll-ltdll.o': P ermission denied rm: cannot remove directoryCompiledLibraries/SDL_net-1.2.5/.libs’:
Directory n
ot empty
rm: cannot unlink `CompiledLibraries/SDL_net-1.2.5/SDLnet.lo’: Permission
denied

rm: cannot unlink CompiledLibraries/SDL_net-1.2.5/SDLnetselect.lo': Permission denied rm: cannot unlinkCompiledLibraries/SDL_net-1.2.5/SDLnetTCP.lo’: Permission
den
ied
rm: cannot unlink CompiledLibraries/SDL_net-1.2.5/SDLnetUDP.lo': Permission den ied rm: cannot remove directoryCompiledLibraries/SDL_net-1.2.5’: Directory not
emp
ty
rm: cannot remove directory `CompiledLibraries’: Directory not empty

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.

I tried :

$ rm -d *
rm: cannot unlink audio': Operation not permitted rm: cannot unlinkcdrom’: Operation not permitted
rm: cannot unlink cpuinfo': Operation not permitted rm: cannot unlinkendian’: Operation not permitted
rm: cannot unlink events': Operation not permitted rm: cannot unlinkfile’: Operation not permitted
rm: cannot unlink hermes': Operation not permitted rm: cannot unlinkjoystick’: Operation not permitted
rm: cannot unlink main': Operation not permitted rm: cannot unlinkthread’: Operation not permitted
rm: cannot unlink timer': Operation not permitted rm: cannot unlinkvideo’: Operation not permitted

HELP!!

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:

You seem to have a number of files with “read-only” permissions…
For example:

-r–r--r-- 1 Kevin ??? 783 Jun 5 2004 libSDL.lai

So no wonder:

rm: cannot unlink `CompiledLibraries/SDL_net-1.2.5/.libs/libSDL_net.lai’:
Permission denied

:slight_smile:

-bill!
bill at newbreedsoftware.com Have I been helpful?
http://newbreedsoftware.com/ http://svcs.affero.net/rm.php?r=billkendrickOn Wed, Dec 08, 2004 at 07:11:35PM +0000, KevinGPO wrote:

If you’re not familiar with the UNIX CLI you’ll need to run chmod' to give your files writable permissions. In this casechmod -R +w SDL* &&
rm -fr SDL*’ that will remove ALL, notice the emphasis on all, the
directories+files that begin with `SDL’ in the current directory.

Hope that helps,On Wed, 2004-12-08 at 11:26 -0800, Bill Kendrick wrote:

You seem to have a number of files with “read-only” permissions…
For example:

-r–r--r-- 1 Kevin ??? 783 Jun 5 2004 libSDL.lai

JDE

jde <socomm myrealbox.com> writes:

You seem to have a number of files with “read-only” permissions…
For example:

-r–r--r-- 1 Kevin ??? 783 Jun 5 2004 libSDL.lai

If you’re not familiar with the UNIX CLI you’ll need to run chmod' to give your files writable permissions. In this casechmod -R +w SDL* &&
rm -fr SDL*’ that will remove ALL, notice the emphasis on all, the
directories+files that begin with `SDL’ in the current directory.

Hope that helps,

JDE

I tried that. Lookie below. :(((((

Kevin at mastermind /cygdrive/d/MyProgrammingWork
$ chmod -R +w CompiledLibraries/

Kevin at mastermind /cygdrive/d/MyProgrammingWork
$ rm -Rf CompiledLibraries/
rm: cannot unlink CompiledLibraries/SDL-1.2.7/src/.libs/libSDL.la': Permission denied rm: cannot remove directoryCompiledLibraries/SDL-1.2.7/src/.libs’: Directory n
ot empty
rm: cannot unlink CompiledLibraries/SDL-1.2.7/src/audio/.libs/libaudio.la': Per mission denied rm: cannot remove directoryCompiledLibraries/SDL-1.2.7/src/audio/.libs’: Direc
tory not empty
rm: cannot unlink CompiledLibraries/SDL-1.2.7/src/audio/disk/.libs/libaudio_dis k.la': Permission denied rm: cannot remove directoryCompiledLibraries/SDL-1.2.7/src/audio/disk/.libs’:
Directory not empty
rm: cannot remove directory CompiledLibraries/SDL-1.2.7/src/audio/disk': Direct ory not empty rm: cannot unlinkCompiledLibraries/SDL-1.2.7/src/audio/windib/.libs/libaudio_w
indib.la’: Permission denied
rm: cannot remove directory CompiledLibraries/SDL-1.2.7/src/audio/windib/.libs' : Directory not empty rm: cannot remove directoryCompiledLibraries/SDL-1.2.7/src/audio/windib’: Dire
ctory not empty
rm: cannot remove directory `CompiledLibraries/SDL-1.2.7/src/audio’: Directory n
ot empty> On Wed, 2004-12-08 at 11:26 -0800, Bill Kendrick wrote:

KevinGPO wrote:

jde <socomm myrealbox.com> writes:

You seem to have a number of files with “read-only” permissions…
For example:

-r–r--r-- 1 Kevin ??? 783 Jun 5 2004 libSDL.lai

If you’re not familiar with the UNIX CLI you’ll need to run chmod' to give your files writable permissions. In this casechmod -R +w SDL* &&
rm -fr SDL*’ that will remove ALL, notice the emphasis on all, the
directories+files that begin with `SDL’ in the current directory.

Hope that helps,

JDE

I tried that. Lookie below. :(((((

Kevin at mastermind /cygdrive/d/MyProgrammingWork
$ chmod -R +w CompiledLibraries/

Kevin at mastermind /cygdrive/d/MyProgrammingWork
$ rm -Rf CompiledLibraries/
rm: cannot unlink CompiledLibraries/SDL-1.2.7/src/.libs/libSDL.la': Permission denied rm: cannot remove directoryCompiledLibraries/SDL-1.2.7/src/.libs’: Directory n
ot empty
rm: cannot unlink CompiledLibraries/SDL-1.2.7/src/audio/.libs/libaudio.la': Per mission denied rm: cannot remove directoryCompiledLibraries/SDL-1.2.7/src/audio/.libs’: Direc
tory not empty
rm: cannot unlink CompiledLibraries/SDL-1.2.7/src/audio/disk/.libs/libaudio_dis k.la': Permission denied rm: cannot remove directoryCompiledLibraries/SDL-1.2.7/src/audio/disk/.libs’:
Directory not empty
rm: cannot remove directory CompiledLibraries/SDL-1.2.7/src/audio/disk': Direct ory not empty rm: cannot unlinkCompiledLibraries/SDL-1.2.7/src/audio/windib/.libs/libaudio_w
indib.la’: Permission denied
rm: cannot remove directory CompiledLibraries/SDL-1.2.7/src/audio/windib/.libs' : Directory not empty rm: cannot remove directoryCompiledLibraries/SDL-1.2.7/src/audio/windib’: Dire
ctory not empty
rm: cannot remove directory `CompiledLibraries/SDL-1.2.7/src/audio’: Directory n
ot empty


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

clearly you didn’t try that.

It says:

rm -fr SDL*

You did:

rm -Rf CompiledLibraries/>>On Wed, 2004-12-08 at 11:26 -0800, Bill Kendrick wrote:

If you’re not familiar with the UNIX CLI you’ll need to run chmod' to give your files writable permissions. In this casechmod -R +w SDL* &&
rm -fr SDL*’ that will remove ALL, notice the emphasis on all, the
directories+files that begin with `SDL’ in the current directory.

I tried that. Lookie below. :(((((

Kevin at mastermind /cygdrive/d/MyProgrammingWork
$ chmod -R +w CompiledLibraries/

Kevin at mastermind /cygdrive/d/MyProgrammingWork
$ rm -Rf CompiledLibraries/

clearly you didn’t try that.

It says:

rm -fr SDL*

You did:

rm -Rf CompiledLibraries/

Err, unless there’s something I’m missing, those should be more or less
the same (different targets, -R == -r according to my manpage…
although it could be screwy with passing multiple flags at the same
time… but it SEEMS to be working as it IS recursing).

I have no clue why those commands arn’t working… try ditching the
tailing “/”. Prehaps it’s some issue with ownership (obviously cygwin
isn’t reading window’s user data, with the ??? bits). Try another ls
-l -r to see what the properties are now.

Also, why not just browse to D:\MyProgrammingWork inside of XP and
delete it there (Since /cygdrive/d/ == D:, right?)

Window’s messages may provide more insight/just plain work, depending on
your FS (I forget, is XP NTFS only?)

And just as a small aside OT: SDL hasn’t ruined your hard drive. Calm
down and think of a more appropriate title next time, it saves us time,
and gets your question answered faster ;-). “Cannot delete SDL dir on XP
w/ cygwin”, although wordy, would get the point across.

Yes,

rm -Rf is the same as rm -rf or rm -fr or rm -fR

Under windows I get:

[Error Deleting File or Folder]

Cannot delete libSDL.la.lnk: Access is denied

Make sure the disk is not full or write-protected
and that the file is not currently in use.

Odd, I assume you’ve tried rebooting? That link would have been used by
any program using the SDL lib - the handles to which don’t get cleaned
up sometimes if a program is killed via the task manager on windows,
resulting in much badness. At least I think this is what happens -
either that or Word has a daemon ~_~.

Worst case scenario, somethings real funky with your windows setup, and
you’ll have to go into safe mode to be able to delete it.

KevinGPO wrote:> Yes,

rm -Rf is the same as rm -rf or rm -fr or rm -fR

Under windows I get:

[Error Deleting File or Folder]

Cannot delete libSDL.la.lnk: Access is denied

Make sure the disk is not full or write-protected
and that the file is not currently in use.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Did the chmod work ?
Do you now have something like
-rw-rw-rw- 1 Kevin ??? 783 Jun 5 2004 libSDL.lai ?
If yes, can you do a ‘whoami’ ?On Sat, 11 Dec 2004 23:20:22 -0800, Michael B. Edwin Rickert wrote:

Odd, I assume you’ve tried rebooting? That link would have been used by
any program using the SDL lib - the handles to which don’t get cleaned
up sometimes if a program is killed via the task manager on windows,
resulting in much badness. At least I think this is what happens -
either that or Word has a daemon ~_~.

Worst case scenario, somethings real funky with your windows setup, and
you’ll have to go into safe mode to be able to delete it.

KevinGPO wrote:

Yes,

rm -Rf is the same as rm -rf or rm -fr or rm -fR

Under windows I get:

[Error Deleting File or Folder]

Cannot delete libSDL.la.lnk: Access is denied

Make sure the disk is not full or write-protected
and that the file is not currently in use.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl