Linux

Missing Space on my USB Thumb Drive

Posted in Apple, Linux on February 9th, 2009 by Jason – Be the first to comment

The other day I was asked to help a friend of a friend to format and reinstall windows onto their desktop machine. I normally dont like doing it unless it is my computer since I dont know what files they want to keep and which ones they dont. So my rule of thumb is to always have them move any and all files they want to keep onto their desktop, that way if they loose a file during the format, then its not my fault.

While copying over some files onto my usb thumb drive, I noticed that it was getting close to its capacity (2gb) eventhough I really had just a bit more than 300 mb stored on the drive. Somewhere along the line I was loosing 1.5 gb of data storage with no rhyme or reason. I thought that it might be a mac/pc thing, since I primarily use my usb drive with my Macbook. So I plugged in the drive to my mac, lo and behold, I was still missing the 1.5 gb of space.

To make the blog post not any longer than it needs to be, I beleive the difference comes with how files are marked for deletion on a Mac. A while ago I noticed that after deleting several gigabytes of data from my MacBook, the space was not free’d up until I emptied my trash can. That makes enough sense. While “deleteing” a file really just marks it for deletion in the trash can, it still leaves the file their until it is actually deleted from the trash can. What I did not realize is that on my mac, it does the same thing with my thumb drive. Any time I delete a file from it, it only “marks” it for deletion but leaves the file on the drive.

The solution is simple, plug in your usb drive, open your trash can and empty the trash. My usb has an led light for activity so I could see that it was being accessed to delete files, and after it finished… presto, my full 2gb was available.

I am pretty sure this process is done differently on Windows computers, but I am not sure how. I believe that when you delete a file in Windows, the file itself is physically moved to a deletion area, where as on the mac it is only marked for deletion and is no longer visible. But I am not expert on this so if something is not right, please correct me.

Post to Twitter Tweet This Post

Outlook Email Errors, Server Disconnected.

Posted in Linux on October 14th, 2008 by Jason – Be the first to comment

Outlook could not connect to the server

Recently I encountered a problem with setting up emails at a large corporation with email hosted through mediatemple. The computers initially were able to connect, send and receive messages without a problem. But after a day or two we noticed some problems with the email. When the computers would try and connect, about 50% of the time they would error out with a message saying the server disconnected and you could not send or receive emails. This would last for about 5 minutes and then go away as if nothing happened.

There were a couple things I found out while troubleshooting this problem which helped to lead to the eventual solution.

  • no matter how much I tried, I could not duplicate the error on a machine at a different physical location.
  • there were no anti virus programs interrupting the connection.
  • when one machine would get the error, all the machines would get it.
  • I could get email from a different domain through mediatemple at the same time it received the error for the first.
  • There was no problem with the internet connection while the symptoms occurred.

Once I saw that all machines received the error at the same time I thought that their might be something limiting the amount of connections to the server. I called mediatemple to see if their was anything that might limit the connections to the email and sure enough there was. They gave me a link to a knowledge base article about how to increase the maxperip setting for the imap. The only problem is we werent using imap, it was pop3. They said that it didnt matter that it was for imap, it was used to control both… but it did matter and it did not fix the problem.

After some more searching around I found that there was a way to set the maximum connections per ip for pop3 email. The file was in the same folder and named pop3d. Essentially it was the same change mediatemple recommended but specific to pop3 email.

Once the change was made, and I restarted the mail services, the error went away and has only shown its head once in the last month and it immediately went away. If you are experiencing the same issue than the article in the knowledge base for resetting the imap courier connections is a great article and you can follow it almost word for word. All you need to do is make the same changes in the pop3d file instead of the imap file specified.

Post to Twitter Tweet This Post