Unable to delete corrupted files off of my C:/ drive
8 replies, posted
I'm having trouble deleting a folder off of my C:/ drive.
https://i.imgur.com/5ikJdCN.png
(The folder in question is Windows.old(1))
Attempting to delete it produces this error:
https://i.imgur.com/MBT2gPZ.png
A google search suggests that this problem might be a result of a bad Windows install, but it's been such a long time that I don't remember dealing with any problems like that. My current install is completely fine, but the creation date of the folder means it was probably made back when I first upgraded from Windows 8 to Windows 10.
The folder contains a few sub-folders that lead to two files, both named Report.System.CPU.xml. Attempting to delete any of the sub-folders or those files individually produces the same error.
Some things I have already tried:
Defragmenting the drive through Windows (says 0% defragmented)
Checking the drive for errors through Windows (says no errors)
Checking the registry for errors through CCleaner
The folder takes up less than 8KB of space, so it's not that big of a deal, but it's still bothering me that I can't really do anything to it.
I'd appreciate any solution that doesn't involve formatting the drive unless that's actually my only choice.
20 coins for anyone's troubles, hopefully to someone who gives me a format-less solution.
Lazy mans way: Get a USB stick (2GB), download Ubuntu (or any Linux distro really) and create a bootable USB stick using Rufus. Boot it up, mount the drive and delete the folder.
but thats actually kind of a lot of work
You could try opening up a command prompt as admin and deleting the file directly using "del /f <file>".
If that doesn't work, the linux thing could.
Attempting to delete it through Linux (through WSL):
https://i.imgur.com/6Mq9pMF.png
No messages show on rm and rmdir but the files are still there as shown. The two files are apparently read-only, but I am unable to change the permissions. Not shown, but "sudo chmod" doesn't work either.
Attempting to delete it with "del" or "rd" (this was done in an elevated command prompt):
https://i.imgur.com/FnykdHc.png
I created flashed Ubuntu Desktop onto a USB stick and tried that, and after mounting the drive, entering
sudo rm -rvf Windows.old\(1\)/
successfully deleted the folder.
Technically the first reply was the correct answer (I just didn't follow it correctly), but I'll gem everyone else who helped me out as well. Thanks.
Late to the party but could be handy in case anyone else runs into this issue.
If you encounter a corrupted folder which can't be opened, nor deleted try to run chkdsk. I had the same deal a while ago and ran it, folder was gone without actually having to set up a temporary Ubuntu installation.
I actually had this issue to, had some cortana files lying around in windows.old
Windows Subsystem Linux removed them, no need for a liveboot or whatever, just download ubuntu, debian or whatever (Kali) from the windows store
windows drives are in /mnt/
with windows.old files being /mnt/c/windows.old
Sorry, you need to Log In to post a reply to this thread.