Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
Deleting A Corrupt File Cannot delete a corrupt file on Windows XP...
Posted 19 October 2006 - 12:06 PM
I've heard something about using the chkdsk utility to fix the problem. However, I am not sure on how to use this tool. Microsoft's documentation didn't make it clear...
Posted 19 October 2006 - 01:36 PM
It's an explorer extension.
It calls itself automatically whenever the deleting process failed.
It frees all the calls to the file, so you can delete it, but it does not work always (atleast for me)
You can also choose if you want to delete the file after a reboot.
But other than that its a pretty handy program
Posted 19 October 2006 - 02:46 PM
You are under windows then, having less problems. You click on your Windows partition, choose mount, choose switch to write-enabled mode, go to your folder, choose your file and choose "delete". Probably the Linux file manager will have no problem deleting this corrupted file.
The only reason I see for being really definitively unable to delete the file would be a physical corrupted sector on the disk, then, only a disk format would be able to recover the error.
Posted 19 October 2006 - 02:51 PM
Posted 19 October 2006 - 03:06 PM
By the way, yes, there is a way you can use it harmless.
've heard something about using the chkdsk utility to fix the problem. However, I am not sure on how to use this tool. Microsoft's documentation didn't make it clear...
Open a dos prompt window, and type "chkdsk c:" (or chkdsk d: depending if your file is on C: or D: or E:)
It will tell you "you did not provide the /f flag, I will only look without reparing".
No problem, let it look, and if it says "no errors", then chkdsk is not the solution.
If it finds a problem, run it again with the /f option, like this :
chkdsk d: /F
sometimes it's useful, sometimes not.
Posted 19 October 2006 - 09:17 PM
GiPo@Utilities has a number of small programes within it.
* GiPo@MoveOnBoot - copying/moving/renaming/deleting files and folders on the next system boot.
* GiPo@DirMonitor - monitoring changes in the file system.
* GiPo@Mount - local folders substitution and local/remote drives mounting.
* GiPo@Hardlink - UNIX-like (POSIX) hardlinks for NTFS creation.
* GiPo@ReadTest - checking files and folders for read errors.
Posted 23 October 2006 - 05:09 PM
Posted 23 October 2006 - 11:09 PM
It's always best to just go into safe mode. Then nothing will try to open the file for reading. That's what I like about Linux... it doesn't leech on to a file like that.
Yeah I would probably just delete it from command prompt, but depending on what the file is you might have to go into safemode.
Posted 18 December 2007 - 11:59 PM
Any other suggestions?
Thank you in advance.
Posted 16 January 2008 - 03:01 AM
Deleting A Corrupt File
I am certainly not the most computer savvy person, and I just deleted a corrupt file with the DOS command prompt as specified above. Using the chkdsk feature was so easy. Thanks a lot guys, saved me a lot of frustration. One google search and a little common sense, problem solved.
Posted 07 February 2008 - 07:41 AM
Deleting A Corrupt File
Replying to yordan
Thanks. Chkdsk in command prompt with the F/ option worked like a dream for me.
You're welcome, Harry, Nice to have been helpful.
Posted 19 March 2008 - 02:37 AM
First, the GUI Checkdisk will not touch it. It will tell you the disk is fine. (I knew it was not, because my backup program quit with a "read error" message.) The defrag program will treat it as untouchable, and defrag everything else around it.
As others have said, there are many warnings against using Linux to alter NTFS filesystems. The folks who are trying to change this are at Linux-NTFS, and think they have fixed it. Specifically, they say: We just have released ntfsprogs 2.0.0 with full read/write support! So if you have this version, it may be able to do the cleanup.
However, back to doing it in Windows. It turns out that Microsoft has a Knowledge Base Article that relates to this issue. One learns there that the DOS version of chkdsk can do things the GUI version cannot. However, the story is not yet over. If you try to run the DOS chkdsk in the Windows partition you are trying to repair, it will tell you Cannot lock current drive .. the volume is in use by another and refuse to run. You must have a multi-boot system with 2 (or more) Windows partitions, and run chkdsk D: /f /r with "D:" replaced by the drive assigned to the partition with the bad file. Actually, it turns out that chkdsk D: /r will repair it, even though it is not supposed to make any changes without the /f switch. I tried omitting the /f switch because I wanted to test some other options, but the bad sector was removed by that operation.
It's amazing to me that the GUI checkdisk gives a disk with read errors a clean bill of health, but don't forget that this software is from Microsoft.
Reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users