0

Is it possible to merge Windows Recycle bin and the Linux trash folder? I have Windows 7 and Deepin, a Ubuntu based distribution, installed as a dual-boot on my machine. I am wondering if it possible to merge the recycle bin and the trash folders together so that in either operating system when i open the recycle bin and can see and erase files deleted from both operating systems? I assume that is possible to change the configuration of Ubuntu's Trash so that it is sent to windows %recyclebin% folder, and it would then be recognized as trash by windows.

1 Answers1

1

As another used mentioned on this post, the folder of the recycle bin of each user in a different directory. The structure goes like this:

\$Recycle.Bin\%SID%

where SID is the ID of the user. So, to access this folder you have first to learn what is your SID. The proper command to do this in windows is the following:

wmic useraccount get name,sid

(credits goes to this article)

The ID would have a structure similar to the following:

X-X-X-XX-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXX-XXXX

So, once you find youd ID, you can open that dir to check if it's the right one, simply by typing the location in windows explorer, like this:

 \$Recycle.Bin\X-X-X-XX-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXX-XXXX

After that on Ubuntu the last 2 steps you have to follow are the following. Go to your Ubuntu trash directory, which is:

.local/share/Trash

Copy everything and paste it on the Windows recycle bin directory. Then you can delete the content of the original folder. After that, you'll have to create a "sym link" with the following command:

ln -s /media/name of your second location/Trash /home/bob/.local/share/Trash

(credits goes to this article)

Haven't test it before, but I see no reason for not to work. I hope I helped you.

Chris K
  • 109