Best way to delete a dir thats not able to be deleted? (ntfs)

Status
Not open for further replies.

SNGX1275

Posts: 10,615   +467
I used this dvd2svcd program to rip a movie and well I had it not delete anything so it would be easy to go back or something if there was an error somewhere. Well basically I have a 22 gig partition and 9.97 gigs of it are this rip. I can't delete it through windows somethign about "Access Denied" and make sure its not in use. Well the thing is NTFS so I can't easily do it from a dos prompt, I was told about NTFS4DOS but I hear it has issues with Windows XP's NTFS. So I guess what I'm asking is how do I delete it? and yes I am administrator.

I really hate this file system and see absolutely no reason to use it if you aren't supremely concerned about security.
 
I'm not sure about XP's dos prompt, but I remember in DOS I would get a message about "access denied" when I tried to delete a file and you could do something to fix that but I can't remember what the command was.

I think it was something like "del [filename] -r", or some parameter of the ATTRIB command that fixed the problem.

That might give you some ideas of what you can do.
 
Try disabling system restore before deleting it. If that doesn't work, then you can try booting to your windows CD and deleting the file from the recovery console.

NTFS volumes are a right pain in the but, and I've had the same problem as you're experiencing now. Luckily I have a bootable Windows XP CD that allows me to do anything I want to my other XP file system when I am running XP from my CD. Hope the above works for you, though I have to say that I haven't tried it myself, but it should work.
 
That sucks SNGX, one thing I can tell you from experience you can allow it to delete files. Anything you would need to use after it is done for anything it leaves behind. I think it just doesn't delete a few system files that it needs or sth like that. Try deleting a few files at a time as well. THen you can narrow it down to which one is giving you the problems and maybe boot into safe mode, or restart and then delete it. I know that restarting then deleteing first thing might help.
 
I had a problem like you describe trying to delete some files on my wifes machine that she had downloaded. I found I could boot into safe mode and delete the files I couldnt delete under a normal windows boot.
 
Originally posted by poertner_1274
I think it just doesn't delete a few system files that it needs or sth like that. Try deleting a few files at a time as well. THen you can narrow it down to which one is giving you the problems and maybe boot into safe mode, or restart and then delete it.
It actually wont' let me touch anything in that dir. (well I can see files and stuff like that, but can't delete.) I will reboot into safe mode and try that like you and others have suggested.

Edit: ok I tried the safe mode thing with the identical error, which basically amounts to its either in use or write protected.

Edit 2: Actually this is relavent I think, but may not help solve the problem: I was playing around with file sharing when I had my roommate connected to me, and I did share that directory, so if anyone knows the complexeties of NTFS and windows XP maybe you could walk me through undoing whatever I did.
 
Format the partition?
I haven't used Partition magic to a great extent, so i don't know if you'd be able to do this, but try and partition the partition... or something...
Maybe if you change the structure, it might unlock the file or something...

*shrugs shoulders*
 
ok you are on to somethign there Jackie, I was actually just discussing this in the IRC channel - I can delete it right now under at least 2 options:
1. Move the other data on that partition to another partition/drive. then Format the partition.
2. Use Partition Magic to convert to Fat32 and then delete it that way.

I will do one of those options if it comes to it, but honestly NTFS can't be as terrible as I think it is, there has to be a real way to delete these, I mean I"m Administrator on this system, I should be able to do what I want.
 
Open up dvd2svcd program (and any media players you used), and make sure that none of these has any reference to the files or directory you are trying to delete.
 
Nic - I know what you are saying, but I don't think thats the problem. I may try it, but I'm almost certain its a result of the NTFS file sharing.
 
File sharing is filesystem transparent. At least, what windows does, utilizing netbios, in XP, is completely transparent to partition filesystem. Security permissions don't come until later after sharing authentication.

I have had this problem before, but it was a problem related to XP, not NTFS. I was able to delete it in linux, but you have to have write supported enabled for NTFS partitions, which is potentially unstable.

Note this is often caused by a program not releasing file handles, but it doesn't sound like that in this case. It could be that a program wrote bad stream data to the file which is preventing its removal. Stream data is additional tag data that can be put onto any file inside NTFS, it is one of the big differences that few people know about.


And why use NTFS? Journaling. Logging. Write verification / WRite Rollback. Large partitions. Faster index searching of large filecounts. Better scalability. Faster access on large disks. Cluster size flexibility.

et cetera.
 
SNGX, have you tried using something like Norton's Wipe Info. I don't recall trying it on a directory but it will usually delete files that don't want to be deleted. I have had problems in the past where a file would decide that it is being used by another app or user, but nothing and no one is using it. Wipe info doesn't tend to care whether anything is using it. It has been know not to work, but I've been around 95% successful at ridding myself of stubborn files by using it.

*Note: if it doesn't work, try it again, if it still doesn't work, it probably won't. That has been my experience anyway.
 
Do you have linux installed, or are able to get the knoppix CD? I can't recall if knoppix comes with a kernel that has NTFS write support but it's worth a try.
 
Take ownership of that directory and delete other users.

Right-click the directory, select Security tab, then Advanced, Owner, change owner to whoever you are (you need to have administrative rights), then go back to permissions tab and disallow / delete other users.
 
I doubt it's an ownership issue but if it is then Mict's suggestion SHOULD work. I am willing to be that there is a rogue process running that is holding those files. Check your taskman process tab for any oddities.

LNCPapa
 
Originally posted by Mictlantecuhtli
Take ownership of that directory and delete other users.

Right-click the directory, select Security tab, then Advanced, Owner, change owner to whoever you are (you need to have administrative rights), then go back to permissions tab and disallow / delete other users.

That was it! for some reason there was Deny for SNGX1275. I'm not even logged in under that name, I'm logged in as "Dave" and have administrative rights.
 
yeh man it was virtually 10 gigs just gone, really makes shifting things from a larger partition for various reasons, defragging, moving from the incorrect partition, ect. a lot easier.

I was pretty sure it had somethign to do with the stuff I "tweaked" when I was trying to use advanced file sharing with a Windows98 machine.
 
Status
Not open for further replies.
Back