• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1615
  • Last Modified:

Can't empty trash on windows 2003 server

We are losing space on our C drive constantly. I have looked at logs checked all I can think of and run disk clean up. I can get free space just over 1 gb but it only holds a day or so. The trash shows that it has something in it but when I open it I see nothing listed. When I pick empty trash I get "Are you sure you want to delete Windows" If I say yes I get Error Deleting File or Folder with the message "Cannot delete 0063006f006d002e006100700070006c0065002e00410064006400720065007300730042006f006f006b: The file name you specified is not valid or too long. Specify a different file name."

Any help would be great. We are starting to see the server lag and users  getting server not responding type messages. Sorry to not have specific messages but the users have not been logging only reporting after the fact.
0
jrsnork
Asked:
jrsnork
  • 7
  • 5
  • 3
  • +3
1 Solution
 
jgpdCommented:
we are using the utility  cleanup,you can find it here
http://www.stevengould.org/index.php?option=com_content&task=view&id=15&Itemid=69
also you can stop the windows update service ,then go to your Windows path and  find a folder called SoftwareDistribution you can delete it (there will be at least 700mb of old patches, it will be recreated again when you restart  the windows service ),restart the windows service
 Regards,
0
 
torimarCommented:
As to the recycle bin problem, a simple server restart might help.
If not, try creating an empty new file or folder, dragging thet to the bin, and emptying the bin afterwards.

As to the problem with disappearing disk space, check your system drive with either WinDirStat (www.windirstat.info) or Spacemonger (www.sixty-five.cc/sm/v1x.php); they visualize used space, so you will see at a glance what directories/files are abnormally large.
0
 
jrsnorkAuthor Commented:
Thank you both I will try both suggestions. As for the recycle bin a restart did not help nor did adding a file to the trash and emptying. I get the same result as I described above. Many thanks again. I will report back.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
torimarCommented:
If the tool recommended by jqpd does not help with the recycle bin, try CCleaner: www.ccleaner.com - it's one of the best free tools around for the purpose.
0
 
ConmaxCommented:
First-  Use caution.  
In order to see what may be stuck in your recycle bin-  Login as your local or domain admin on Server. Open My Computer or Windows Explorer--  Go to Menu-->  Tools--> Folder options.  Go to the View tab, check 'show hidden files and folders', uncheck 'Hide protected operating system files'.  

Open My Computer and C: drive.   Look for and open folder 'Recycler'.   You should see a couple recycle folders with very long folder names.   Do not try to delete these, just open them to show what is still stilling in the recycle bin.   If there is something in these folders, try to manually delete the files or folders.

When done be sure to change your folder options back to default settings.     For general server cleanup we use CCleaner.   You will need to use some caution here depending on what you are running on this server (ie.  Exchange, etc) that may rely on retaining log files.   CCleaner will give you an option of Analyzing files and folders that can be cleaned before deleting.
0
 
ren20atomCommented:
Try using the Treesize professional software from JAM.
It will show you the space utilization on the drive.
Regarding the file "0063006f006d002e006100700070006c0065002e00410064006400720065007300730042006f006f006b" incase it shows up in the Recycler, try to do a restore and then search for the file, rename and then try to delete the same.
Incase possible try to read the file using some application or find related application so that we know what is generating files using such long file names.
0
 
jrsnorkAuthor Commented:
ren20atom that is the curious thing when I look at the recycle bin there is nothing showing. I have changed all view options and still nothing shows. None of the utilities for cleaning have worked to get rid of that file. I am awaiting a restart after hours tonight to check on space. I would love to hear thoughts from all you experts as to the amount of free space I should try for. I know the minimum is 1 GB but I wonder if there is a better number I should shoot for. Thank you all for your feedback up to this point. I will report back after I restart tonight. Many thanks
0
 
jgpdCommented:
I think the restart don't clear nothing on your server,the file are you seeing is the space reserved by recycle bin.
please check on the  on the  recycle bin -properties -global tab , I have all my servers configured to reserve   10% space (fig1) that space reserved is 1.19gb of HD space(Fig2), if you want to delete the file  are you talking about then  move the space reserved to 0 (maximum size of recycle bin,percent of each drive)
Regards,
Jose
fig1.jpg
fig2.jpg
0
 
jrsnorkAuthor Commented:
jgpd: My settings match those you posted. I would agree with you however none of my other servers show the icon for something being in the recycle bin and when I right click to empty the bin it asks me if I am sure I want to delete Windows. So the server thinks something is in the bin but when I open the bin it appears empty.
0
 
ConmaxCommented:
Unless you routinely delete large files from your server, I would reduce the recycle bin reserve to 5%.  This could easily free up 500mb.  If you delete something larger that the reserve it would not go into the recycle bin but just be deleted immediately.
0
 
ConmaxCommented:
Unless you routinely delete large files from your server, I would reduce the recycle bin reserve to 5%.  This could easily free up 500mb.  If you delete something larger that the reserve it would not go into the recycle bin but just be deleted immediately.
0
 
jrsnorkAuthor Commented:
Conmax that is huge help. I wonder if I should worry about that the pesky file or whatever it is still seems to be in the recycle bin? You all have been so great and I am up to 2.3 gb of free space so I am feeling pretty happy today. Still looking for thoughts on where I should try to keep the server in terms of free space it is happier for sure and running better.
0
 
torimarCommented:
I think we are talking about two  very distinct problems here that have nothing to do with each other:

1.
The recycle bin problem is a well known oddity with Windows XP/2k3 and earlier; thousands of users report it on the internet, myself I had it, too.
The bin seems to contain something, but when you open it, it's empty; and when selecting 'Empty' from the context menu, you get asked whether you wish to delete "WINDOWS". Most users feel tempted to say "yes", but press "no" in the end. You are one of the few daring enough to try the "yes".

As I said, in the majority of cases a reboot will get rid of the phantom file in the bin; if that won't help, most other users concerned could get rid of it this way:
- make sure there is nothing in the recycle bin
- create an empty file on your desktop
- move it to the bin
- double-click to open the bin
- right-click on the empty file and select 'Delete'
- close the bin

This has got nothing to do with hidden files or such, most likely not even with existing files. None of the posters who write about this phenomenon does present a theory about it. But if there are any Macintosh or Linux computers on your network which access that server, then I might have an idea.
In any case, I don't see this as the cause of

2.
The space problem. Have you tried one of the visualization tools I suggested above? You need to find out what is eating up your hard drive. 1 GB of free space on a server is way way too little in my opinion. Try to find and remove the culprit, if impossible, add a second hard disk and outsource as many folders as possible:
- My Documents
- Temp/Tmp
- browser cache and history
- backups and log files
- pagefile
- data
- etc.
0
 
abolinhasCommented:
Open command line and write
rd /s /q C:\$Recycle.bin

or try use  ccleaner http://www.ccleaner.com/
0
 
jrsnorkAuthor Commented:
rd /s /q C:\$Recycle.bin doesn't seem to work?
0
 
abolinhasCommented:
and ccleaner ?
0
 
torimarCommented:
abolinhas:
I already suggested CCleaner in my comment ID:26064817 above.


jrsnork:
In my last comment there was a hidden question which I now would like to repeat: Are there any Macintosh computers in the LAN that have access to the server in question?
0
 
jrsnorkAuthor Commented:
Torimar thank you for your follow up I actually did use CCleaner and it helped with some "cleaning" but didn't solve my trash issue. Yes in fact we have Macs on the LAN. I am very curious as to where this question will take us. I have wondered if the Macs are doing something or the interaction is at least?

I still haven't had a concrete answer on how much space folks think is a good amount for the C drive. So let me know thoughts.

I am now at 2.59 gigs free and I am now not so sure if I have a problem or just an annoyance with the trash?
0
 
torimarCommented:
You have an annoyance with the trash.

Here's my theory:
Windows is known for lousy support of non-Microsoft operating systems and file systems (which makes it server OS of dubious value in my eyes). Especially in what file and folder names are concerned, Windows is way more restrictive than Mac or Linux. There are a lot of characters and restricted expressions which are illegal in Windows file/folder names, and which the Windows API does not allow you to use. Problem: since the Windows API disallows these names, it considers them as non-existent and simply has no routines to handle them at all, neither to copy, nor to move or delete.
But such file and folder names are perfectly legal on other operating systems, and they can be created on a Windows server when connecting to it via LAN from another operating system, or via internet using the FTP protocol. Since the Windows API cannot move or delete such files, they are a huge problem, and they can even be exploited by hackers and pirates. Just search Google for "Windows +'cannot delete'" or "Windows +'illegal filename'" and you will see.

Now, search for "0063006f006d002e006100700070006c0065002e00410064006400720065007300730042006f006f006b" on Google. That's the name of the file giving you such a problem. You will see it only is referenced in conjunction with Macintosh, especially the SyncServices. So I guess that it has been created on the server by one of your Macintoshs, maybe as a temporary file. It was deleted on disconnecting, but since for Windows it is illegal and hence must not exist anyways, Windows does not know how to deal with the information that it was deleted, and continues to display a used bin which however does not contain any physical file (because the file no longer exists) nor any information about this formerly existing file (because Windows is not able to use that illegal filename).

Sorry for the long story, but I guess this could be the trap that you have fallen into.

If the file were still there somehow, you could probably remove it by using volume mountpoints, i.e. prepending a "//?/"
Thus you would type on the console:
del //?/c:/path/0063006f006d002e006100700070006c0065002e00410064006400720065007300730042006f006f006b


As to the amount of memory:
2.6 GB sounds a lot better than 0.5, but it depends on how your server is set up; if, for instance, you make ample use of logging, or your pagefile is dynamic, you might need more than 2.6 for being comfortable. It remains to test whether the emptied space fills up rapidly again.

0
 
jrsnorkAuthor Commented:
torimar thank you so very much. Your insights have been very helpful. I think at this point I will close this question. So far our space has remained in the 2.6 range. I still have that pesky file in the trash but it seems to be causing no harm. Thank you all for the suggestions.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 7
  • 5
  • 3
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now