Jump to content

C: Recycle bin corrupted. Having trouble repairing it.

gggirlgeek
Go to solution Solved by FI Fheonix,
5 minutes ago, gggirlgeek said:

Embarrassed but I cry Uncle! So I'm asking for help. The C: drive on my Laptop is complaining that the Recycle bin is corrupted every few minutes. I can't seem to repair it.

 

How I got here: I was having trouble clearing space in my P: partition so I checked in the recycle bin and saw that it wasn't empty. I am in a dual-boot Win11/Win10 system so sometimes the recycle.bin doesn't empty properly. Normally, simply deleting the folder and letting Windows recreate it solves this. I tried it and rebooted but C:\$recycle.bin is still not empty, and giving errors.

 

What I've tried:

*Deleting all recycle bins in all partitions manually through explorer in Safe Mode.

*Running Check Disk on all partitions and drives after reboot.

*Using Tweaking.com's AIO repair tool to "repair recycle bins."

*Booting into a live Linux Mint USB and deleting the $Recycle.bin folder. It gives me an error that the folder is not empty on C:, but it deletes all other partitions' Recycle.bin successfully.

*Using a batch script in Safe Mode, run as admin. I also ran it booted into Hiren's Boot CD rescue USB environment.

@Echo On

Echo.
Echo.
Echo.
Echo.
Echo.
Echo                         Now deleting all EXTRA RECYCLE BINS


REM This section deletes all recycle bins (their folders too.)
REM This is only necessary if you regularly end up with multiple
REM recycle bins in your partitions.  As MyDefrag will show you in the log,
REM they are not empty so they clog up your drives.
REM This is caused by logging in as a different user, or booting other OS's on the same computer, 
REM or connecting drives in multiple locations.  Windows won't empty a bin
REM that's not "yours" -- i.e. doesn't have your user ID on it.
takeown /f P:\$Recycle.bin /a /r /d y
icacls P:\$Recycle.bin /grant Administrators:F /t
takeown /f B:\$Recycle.bin /a /r /d y
icacls B:\$Recycle.bin /grant Administrators:F /t
takeown /f C:\$Recycle.bin /a /r /d y
icacls C:\$Recycle.bin /grant Administrators:F /t
takeown /f J:\$Recycle.bin /a /r /d y
icacls J:\$Recycle.bin /grant Administrators:F /t
takeown /f M:\$Recycle.bin /a /r /d y
icacls M:\$Recycle.bin /grant Administrators:F /t
takeown /f O:\$Recycle.bin /a /r /d y
icacls O:\$Recycle.bin /grant Administrators:F /t


REM @echo off
rd /s /q --ignore-fail-on-non-empty P:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty B:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty C:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty D:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty E:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty F:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty G:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty H:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty I:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty J:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty K:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty L:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty M:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty N:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty O:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty P:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty Q:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty R:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty S:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty T:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty U:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty V:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty W:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty X:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty Y:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty Z:\$Recycle.bin




Pause
Exit

 

 Open admin CMD and type "d /s /q C:$Recycle.bin" See if that works. 

Embarrassed but I cry Uncle! So I'm asking for help. The C: drive on my Laptop is complaining that the Recycle bin is corrupted every few minutes. I can't seem to repair it.

 

How I got here: I was having trouble clearing space in my P: partition so I checked in the recycle bin and saw that it wasn't empty. I am in a dual-boot Win11/Win10 system so sometimes the recycle.bin doesn't empty properly. Normally, simply deleting the folder and letting Windows recreate it solves this. I tried it and rebooted but C:\$recycle.bin is still not empty, and giving errors.

 

What I've tried:

*Deleting all recycle bins in all partitions manually through explorer in Safe Mode.

*Running Check Disk on all partitions and drives after reboot.

*Using Tweaking.com's AIO repair tool to "repair recycle bins."

*Booting into a live Linux Mint USB and deleting the $Recycle.bin folder. It gives me an error that the folder is not empty on C:, but it deletes all other partitions' Recycle.bin successfully.

*Using a batch script in Safe Mode, run as admin. I also ran it booted into Hiren's Boot CD rescue USB environment.

@Echo On

Echo.
Echo.
Echo.
Echo.
Echo.
Echo                         Now deleting all EXTRA RECYCLE BINS


REM This section deletes all recycle bins (their folders too.)
REM This is only necessary if you regularly end up with multiple
REM recycle bins in your partitions.  As MyDefrag will show you in the log,
REM they are not empty so they clog up your drives.
REM This is caused by logging in as a different user, or booting other OS's on the same computer, 
REM or connecting drives in multiple locations.  Windows won't empty a bin
REM that's not "yours" -- i.e. doesn't have your user ID on it.
takeown /f P:\$Recycle.bin /a /r /d y
icacls P:\$Recycle.bin /grant Administrators:F /t
takeown /f B:\$Recycle.bin /a /r /d y
icacls B:\$Recycle.bin /grant Administrators:F /t
takeown /f C:\$Recycle.bin /a /r /d y
icacls C:\$Recycle.bin /grant Administrators:F /t
takeown /f J:\$Recycle.bin /a /r /d y
icacls J:\$Recycle.bin /grant Administrators:F /t
takeown /f M:\$Recycle.bin /a /r /d y
icacls M:\$Recycle.bin /grant Administrators:F /t
takeown /f O:\$Recycle.bin /a /r /d y
icacls O:\$Recycle.bin /grant Administrators:F /t


REM @echo off
rd /s /q --ignore-fail-on-non-empty P:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty B:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty C:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty D:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty E:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty F:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty G:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty H:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty I:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty J:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty K:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty L:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty M:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty N:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty O:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty P:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty Q:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty R:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty S:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty T:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty U:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty V:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty W:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty X:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty Y:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty Z:\$Recycle.bin




Pause
Exit

 

Link to comment
Share on other sites

Link to post
Share on other sites

this seems fake

I have dyslexia plz be kind to me. dont like my post dont read it or respond thx

also i edit post alot because you no why...

Thrasher_565 hub links build logs

Corsair Lian Li Bykski Barrow thermaltake nzxt aquacomputer 5v argb pin out guide + argb info

5v device to 12v mb header

Odds and Sods Argb Rgb Links

 

Link to comment
Share on other sites

Link to post
Share on other sites

5 minutes ago, gggirlgeek said:

Embarrassed but I cry Uncle! So I'm asking for help. The C: drive on my Laptop is complaining that the Recycle bin is corrupted every few minutes. I can't seem to repair it.

 

How I got here: I was having trouble clearing space in my P: partition so I checked in the recycle bin and saw that it wasn't empty. I am in a dual-boot Win11/Win10 system so sometimes the recycle.bin doesn't empty properly. Normally, simply deleting the folder and letting Windows recreate it solves this. I tried it and rebooted but C:\$recycle.bin is still not empty, and giving errors.

 

What I've tried:

*Deleting all recycle bins in all partitions manually through explorer in Safe Mode.

*Running Check Disk on all partitions and drives after reboot.

*Using Tweaking.com's AIO repair tool to "repair recycle bins."

*Booting into a live Linux Mint USB and deleting the $Recycle.bin folder. It gives me an error that the folder is not empty on C:, but it deletes all other partitions' Recycle.bin successfully.

*Using a batch script in Safe Mode, run as admin. I also ran it booted into Hiren's Boot CD rescue USB environment.

@Echo On

Echo.
Echo.
Echo.
Echo.
Echo.
Echo                         Now deleting all EXTRA RECYCLE BINS


REM This section deletes all recycle bins (their folders too.)
REM This is only necessary if you regularly end up with multiple
REM recycle bins in your partitions.  As MyDefrag will show you in the log,
REM they are not empty so they clog up your drives.
REM This is caused by logging in as a different user, or booting other OS's on the same computer, 
REM or connecting drives in multiple locations.  Windows won't empty a bin
REM that's not "yours" -- i.e. doesn't have your user ID on it.
takeown /f P:\$Recycle.bin /a /r /d y
icacls P:\$Recycle.bin /grant Administrators:F /t
takeown /f B:\$Recycle.bin /a /r /d y
icacls B:\$Recycle.bin /grant Administrators:F /t
takeown /f C:\$Recycle.bin /a /r /d y
icacls C:\$Recycle.bin /grant Administrators:F /t
takeown /f J:\$Recycle.bin /a /r /d y
icacls J:\$Recycle.bin /grant Administrators:F /t
takeown /f M:\$Recycle.bin /a /r /d y
icacls M:\$Recycle.bin /grant Administrators:F /t
takeown /f O:\$Recycle.bin /a /r /d y
icacls O:\$Recycle.bin /grant Administrators:F /t


REM @echo off
rd /s /q --ignore-fail-on-non-empty P:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty B:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty C:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty D:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty E:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty F:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty G:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty H:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty I:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty J:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty K:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty L:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty M:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty N:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty O:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty P:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty Q:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty R:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty S:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty T:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty U:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty V:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty W:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty X:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty Y:\$Recycle.bin
rd /s /q --ignore-fail-on-non-empty Z:\$Recycle.bin




Pause
Exit

 

 Open admin CMD and type "d /s /q C:$Recycle.bin" See if that works. 

Have you tried turning it off and on again? Maybe Restart it? 

Please make sure to Mark the Solution as a Solution.

Take everything I say with a grain of salt. I could be just about wrong as I am right.

 

Main RIG

13600K (Undervolted) +MSI Z690 Edge Wi-Fi+ Team Elite 32gb RAM (3200) +Noctua Nhd-15 Chromax Black+ Intel 670p 1TB SSD+ Intel Arc A770+ Corsair Crystal 465x case+ EVGA SuperNOVA 650W PSU.+ ASUS VP222 Gaming Monitor

 

Laptop for School: Surface go 2 (sucks ass)

 

Laptop for tinkering: Dell Inspirion 3358

 

Audio: Apple Airpods Pro (1st Gen)

 

(Apple_reigns_ supreme_ forever_ and_ ever)

 

(I am 15 years old and don't know shit about fucking shit.) 

 

Everyone must suffer one of two Pains: The pain of Discipline or the pain of regret and disappointment.

 

-Jim Rohn

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, thrasher_565 said:

this seems fake

How is that going to help.

Have you tried turning it off and on again? Maybe Restart it? 

Please make sure to Mark the Solution as a Solution.

Take everything I say with a grain of salt. I could be just about wrong as I am right.

 

Main RIG

13600K (Undervolted) +MSI Z690 Edge Wi-Fi+ Team Elite 32gb RAM (3200) +Noctua Nhd-15 Chromax Black+ Intel 670p 1TB SSD+ Intel Arc A770+ Corsair Crystal 465x case+ EVGA SuperNOVA 650W PSU.+ ASUS VP222 Gaming Monitor

 

Laptop for School: Surface go 2 (sucks ass)

 

Laptop for tinkering: Dell Inspirion 3358

 

Audio: Apple Airpods Pro (1st Gen)

 

(Apple_reigns_ supreme_ forever_ and_ ever)

 

(I am 15 years old and don't know shit about fucking shit.) 

 

Everyone must suffer one of two Pains: The pain of Discipline or the pain of regret and disappointment.

 

-Jim Rohn

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, FI Fheonix said:

How is that going to help.

i doubt the Recycle.bin makes its own story...

 

all i no is when its full a pop up keeps saying its full... but could be wrong..

I have dyslexia plz be kind to me. dont like my post dont read it or respond thx

also i edit post alot because you no why...

Thrasher_565 hub links build logs

Corsair Lian Li Bykski Barrow thermaltake nzxt aquacomputer 5v argb pin out guide + argb info

5v device to 12v mb header

Odds and Sods Argb Rgb Links

 

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, thrasher_565 said:

i doubt the Recycle.bin makes its own story...

 

all i no is when its full a pop up keeps saying its full... but could be wrong..

LOL. Exactly.

Link to comment
Share on other sites

Link to post
Share on other sites

19 minutes ago, FI Fheonix said:

 Open admin CMD and type "d /s /q C:$Recycle.bin" See if that works. 

Voila! It worked. That's the command I was looking for. I am indeed embarrassed now. 😳 I didn't try that because I assumed my script was more powerful and if it couldn't delete it than how could the DOS "delete" command work? Grrrrrr.

Thank you!

 

For reference you have a typo: It's:

del /s /q C:$Recycle.bin

I also, needed to "CD.." twice into C:\ instead of C:\System32 where I'm dumped when I open command prompt as Admin. I also booted into Safe Mode first. Just FYI for others who come across this later.

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, gggirlgeek said:

Voila! It worked. That's the command I was looking for. I am indeed embarrassed now. 😳 I didn't try that because I assumed my script was more powerful and if it couldn't delete it than how could the DOS "delete" command work? Grrrrrr.

Thank you!

 

For reference you have a typo: It's:

del /s /q C:$Recycle.bin

I also, needed to "CD.." twice into C:\ instead of C:\System32 where I'm dumped when I open command prompt as Admin. I also booted into Safe Mode first. Just FYI for others who come across this later.

my bad sorry.

Have you tried turning it off and on again? Maybe Restart it? 

Please make sure to Mark the Solution as a Solution.

Take everything I say with a grain of salt. I could be just about wrong as I am right.

 

Main RIG

13600K (Undervolted) +MSI Z690 Edge Wi-Fi+ Team Elite 32gb RAM (3200) +Noctua Nhd-15 Chromax Black+ Intel 670p 1TB SSD+ Intel Arc A770+ Corsair Crystal 465x case+ EVGA SuperNOVA 650W PSU.+ ASUS VP222 Gaming Monitor

 

Laptop for School: Surface go 2 (sucks ass)

 

Laptop for tinkering: Dell Inspirion 3358

 

Audio: Apple Airpods Pro (1st Gen)

 

(Apple_reigns_ supreme_ forever_ and_ ever)

 

(I am 15 years old and don't know shit about fucking shit.) 

 

Everyone must suffer one of two Pains: The pain of Discipline or the pain of regret and disappointment.

 

-Jim Rohn

Link to comment
Share on other sites

Link to post
Share on other sites

No worries. It worked. 🤓

 

I wonder why this didn't work in the script above. It's basically the same thing: rd and del.

rd /s /q --ignore-fail-on-non-empty C:\$Recycle.bin

I could try del instead but one thought is that I was running the script from My Documents folder instead of C:. I wonder if I need to add a line:

CD C:\

...to make sure the command is applied from the right location. Logically it shouldn't be needed because the full path C:\$Recycle.bin is specified. But when I ran the del command yesterday CMD wasn't happy because I was in C:\Windows\System32. That could have been because I didn't use a "\" after "C:" though?

 

If I do need to change directories into C:, it would be annoying because I'd have to change directories for each partition.

 

This script was cut from my old Task I used with MyDefrag on XP and Win7 with hard drives (2009-ish.) I wonder if CMD is different now in Windows 10. I still use the script on HDD''s occasionally. I'm going to test a little and report back.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×