Where are files in the Recycle Bin stored, in respect of partitions?

36,241

Solution 1

Actually, there is a separate \Recycler directory per partition (C:, D:, etc.). So it stays on the same partition/drive.

Here is a screenshot from two drives on the same computer.

enter image description here

I can now confirm that the behavior is the same when there is only one drive, and multiple partitions.

enter image description here

However, when you open the Recycle Bin icon on your desktop, you see a compilation of all the Recycler folders that are associated with your accounts for convenience.

Based on your question below, what seems to happen is that when you delete something, the file does stay on the actual drive, as previously mentioned. What also happens is that the file is given a random name (my original file was test.txt, but renamed De4.txt on the drive when I searched at a command prompt), and that file is what is entered into that INFO2 file and is passed on to Explorer as you saw it. This is so you only need one Recycle bin can find deleted files, regardless of what drive you are on. What you REALLY see when you do a search a command line, shows that it is not really on both drives. Check out this screenshot:

enter image description here

Solution 2

If I delete a file on drive D, does the file stay on drive D in the Recycle Bin, or is it moved to a centralised Recycle Bin area on drive C?

Each file you delete stays on the drive the file came from. This is why you can set the maximum recycle bin size on a per-size basis (just right-click on the Recycle Bin and go to Properties, and you can change it on a per-drive basis).

Logically, the files themselves are not modified, but rather the master file table is updated and the file is "moved" into the Recycle Bin first. Once you empty the bin, the file is marked as deleted (and just overwritten the next time the drive tries to write a file and needs that space).

When viewing the RECYCLER folder on a partition it shows the contents of the Recycle Bin from all partitions.

Yes, this is the default behaviour on Windows. On each drive, there is a RECYCLER folder (marked as both hidden and system). The Windows Recycle Bin seeks through all local drives and obtains all Recycler entries when you open the bin.

Finally, every time you delete a file, they are placed into a random folder. While that folder exists on all RECYCLER folders on all mounted hard drives (to prevent name collisions), the deleted file only exists on the drive it came from.

Share:
36,241

Related videos on Youtube

Goto10
Author by

Goto10

Updated on September 18, 2022

Comments

  • Goto10
    Goto10 over 1 year

    I understand that the Recycle Bin is shared amongst local drives (partitions). When a file is "deleted" and sent to the Recycle Bin, does the file itself stay on the partition it was in prior to deletion, or is it moved to a centralised area (say on the drive Windows is installed)?

    Example:

    A PC has one hard drive:

    C - Main partition with Windows OS
    D - Extra partition on same physical drive
    E - A further partition on same physical drive

    If I delete a file on drive D, does the file stay on drive D in the Recycle Bin, or is it moved to a centralised Recycle Bin area on drive C? When viewing the RECYCLER folder on a partition it shows the contents of the Recycle Bin from all partitions.

    Using XP Home SP 3, NTFS.

  • hicklypups
    hicklypups almost 13 years
    I updated the answer and confirmed that the behavior is the same when there is only one drive, and multiple partitions.
  • Goto10
    Goto10 almost 13 years
    Thanks for your reply. I tried creating a text file on drive C, then "deleting" it. It then appears in the RECYCLER folder on C as expected, but it also shows in the RECYCLER folder on other partitions as well (even though the file has not previously been present on those partitions). Any explanation as to why this is?
  • hicklypups
    hicklypups almost 13 years
    I just recreated your findings, and I am going to add to the answer.