SyntaxHighlighter

Friday, 19 October 2012

Creating more space on C drive (installing a small SSD)

Quite often people run out of space on their hard-disk, or more specifically on their system disk or c-drive.  This can make the computer run very slowly or crash.  Or it could be that like me you want to install the latest SSD technology but couldn't afford a bigger drive.

Actually my drive is a couple of years old now and I've installed it into a new computer and transferred that computers operating system over to the SSD, which is only 30Gb.  So how did I get over 200Gb down to 20Gb?  That's a 90% reduction.

It might be a good idea to perform a full backup before attempting these steps.  We use Acronis but Windows 7 backup will be better than nothing and make a recovery disk also, and make sure you store the image file somewhere safe, i.e. not a volume which you're going to delete later.
  1. Empty the recycle bin
  2. Delete all temporary files
  3. Uninstall unnecessary programs
  4. You need additional storage on which to store the files we're about to move so either an internal HDD, or else a USB HDD or NAS (this procedure will assume an internal HDD as use of external drive may introduce additional problems)
  5. My additional storage was the existing HDD I was moving from, so I created a new partition as the temporary storage.  Using Windows Disk Management, and Shrink Volume option.  Once a temporary volume has been created, ideally give it the letter D (use of another letter will not be documented)
  6. Figure out what is actually using the space - using www.windirstat.info
  7. Using Windirstat I could see that most space was taken up by a hidden folder ~LD.  This is actually the local cache for a cloud storage service known as Livedrive.  So I then deleted some items from Livedrive which didn't really need to be there, such as OS isos, all my music collection etc.  Once that is done you can move the Livedrive cache as follows:
    1. Select all files in Livedrive folder in explorer (Ctrl-A).
    2. Right-click and select Livedrive > "Do not keep a copy on my computer"
    3. Right-click the Livedrive icon in the bottom right-hand corner and select "Settings".  Then choose the "Online Files" tab
    4. Now select a new cache location, such as D:
    5. Wait until the synchronization has completed.
    6. Select all the file again and choose to store a local copy
  8. For Dropbox the moving procedure is much more simple, but again, move the files to D: (Dropbox > Preferences > Advanced > Move dropbox location)
  9. Another source of large files is the pagefile.  I suggest moving it from C: to D:.
    1. From the start menu launch "Advanced System Settings".  Under Performance, choose "Settings", select the Advanced Tab, and then select the Change button.
    2. Unselect "Automatically manage paging file size for all drives", select D:, and set a custom size.  Standard figures are 1.5x RAM.  I chose to use an initial size of 8Gb and maximum size of 15Gb.
    3. Select C: and set to "No paging file".
    4. Press OK to all those windows and then reboot the computer (NB: Livedrive may still by synching and so best to not reboot until it is finished).
    5. After the reboot check that the page files are actually what you set them to be.
  10. The next biggest consumer was the Users directory but because moving it was so involved I wanted it to be the last step I did. At this point do the sums and make sure that you can fit everything onto the C-drive, you should only need Windows, Program Files, Program Files (x86) and ProgramData.  There may be ways to move these too but I didn't need to.
  11. I did need to move the Windows Installer directory from within Windows to D:.  The steps are similar to moving the Users folder but without the recovery console.  From the Command prompt within windows enter the following commands:
    • robocopy /copyall /mir /xj /MT C:\Windows\Installer D:\Installer
    • rmdir /S /Q C:\Windows\Installer
    • mklink /J C:\Windows\Installer D:\Installer
  12. Finally I needed to move the Users directory so I managed to get that moved using the instructions here:  http://lifehacker.com/5467758/move-the-users-directory-in-windows-7
    • NB: If there are files you don't need to keep, before is a good time to delete them (think ISO images, DVD images etc, also unwanted folders etc.)
    • NB: When in recovery mode ensure that your additional storage volume has the letter D.  You can do this using the command tool diskpart and the command assign letter=D.  You may need to move some volumes around to made that volume D.
    • NB: With robocopy I use the /MT switch all the time as it speeds up the transfers by 8 times by default.
    • NB: When I rebooted I couldn't log in anymore after following these steps!! That's why I include step 13.
  13. When I rebooted having moved the Users directory I could log in "The User Profile Service failed the logon".  If you received this error also then the fix below will hopefully work for you:
    • Reboot into safemode, you should find that you can log on here but you won't have the usual desktop.  Now you need to enable the Administrator account, type the following into an administrative command window:
      • net user administrator /active:yes
      • net user administrator Password1    (where "Password1" is a temporary password)
    • Reboot the computer normally and log in as Administrator
    • Next follow Method 1 here:  http://support.microsoft.com/kb/947215
    • Reboot and log in as normal.
  14. So hopefully everything is up and running and you've got C-drive down to about 20Gb of space.  Now shrink the volume again to 30Gb, or the size of your SSD and copy the volume over to the SSD.  I used Acronis and took a full disk backup and then recovered the MBR and C drive to the SSD.
  15. Change the BIOS boot options so that the primary boot disk is the SSD and now you should be set to go.
If you need help with this or any other PC related problems then please speak to The PC Support Group on +44 (0) 845 2233116

Wednesday, 17 October 2012

Installing a New SSD

So you've got a new computer and along with it you bought an SSD, and why not, because the transfer rates are much faster, the power consumption is much lower and there is no noise associated with it.  However, SSDs are more expensive and so while your new computer came with a 1Tb HDD, your SSD is only 120Gb, for example.  How do you get everything from that HDD to the new SSD?  The way we do it here is to use Acronis.  We have the Advanced Workstation 11 version, although True Image Home 2013 will work more or less the same.

The method is simple:
1. Boot windows and resize the partitions to the size you require
2. Reboot into Acronis Recovery CD and perform a Disk Backup.
3. Install SSD into the computer
4. Boot into Acronis Recovery CD and perform a Volume Restore (select all Volumes)
5. Reboot the computer into Windows

I will assume that most of these steps you can figure out for yourselves but I will comment on a few of the steps.

Step 1. Use Windows Disk Management, you will likely find 3 volumes on Disk 0.  SYSTEM, OS and RECOVERY.  OS is the volume with Windows installed and takes up all but 10Gb of the drive.  Right-click on this partition and select "Shrink Volume".  You probably want this volume to take up all the space you can on the SSD.  Which in this case is 120Gb - 100Mb (system) - 10Gb (recovery) = 109Gb, it is better to underestimate at this stage.  If your SSD is smaller than 60Gb  then see my next article on shrinking the boot partition.

Step 2. On the Sony Vaio that we recently upgraded, Acronis would not boot.  The answer was to change the Boot option to legacy.

Step 4. You have to perform a volume restore because your disk is smaller, however, we've seen tutorials saying you need to do one volume at a time and create the partitions in advance.  No you don't!  At least not with the later versions of Acronis.  Simply select all the partitions and restore them to the SSD.

NOTE: My latest post specifically about creating space on the system drive may offer further steps to help with installing an SSD http://pcsupportgroup.blogspot.com/2012/10/creating-more-space-on-c-drive.html

NOTE: UEFI boot records are becoming more common.  The later versions of Acronis are EFI aware but prefer to create a new EFI partition rather than work with the existing one.  In our tests this has resulted in an operational OS but the boot-time recovery options did not work.  We felt this was acceptable as a separate image backup was being used anyway so it was unlikely that this recovery option would be required.  We also kept the original HDD.  There may be ways to correct this but we did no further investigation.

Please contact The PC Support Group on +44 (0) 845 2233116 if you require further help with this.

Tuesday, 18 September 2012

Troubleshooting a Slow Server - SBS 2008

Speed issues are always difficult to troubleshoot because modern computers do so much, this is especially true of a server and doubly so of an SBS server.  So when a customer recently said that their software was running slowly where did I start?

Task Manager
Open up task manager and have a look at those readings under the performance tab.  Is memory usage high, is CPU usage high, is disk utilization high or is network utilization high?  These would give a good indication of where to start.  CPU usage was very low <10% but all other figures were 20% or higher.

Performance Monitor
Type perfmon /report in the "run" box and it will run a quick 1 minute diagnosis of the computer.  It will give green, amber and red lights depending on what it considers to be of concern.  This may not lead you to the cause of the problem in hand but it seemed like as good a place as any to get some more info.  The problem with this approach is that it may indicate something as ok when it is performing much worse than usual so it is important to have a baseline performance benchmark.  I did not, but I had a feeling an SBS server with 5 users should not have so much disk IO caused by 1 or 2 standard server processes.

Memory Usage
8Gb seemed like a perfectly reasonable amount of memory for an SBS 2008 server, but given the greater than 90% usage, I thought I'd try to bring it down a bit.  Open up Task Manager and under processes select View and choose columns, then select PID.  Sort the processes by Memory usage and I found sqlserver right at the top.  Then open a command prompt (type cmd in the run box) and type at the prompt tasklist /svc |find "sql"
When the command returns it will display several processes each with their PID, now compare the PID to the one at the top of the list in Task Manager and see if you can find the exact database name from the other list.

SBS Monitoring seems to be one of the chief culprits of memory usage so I restricted this to under 1Gb
http://social.technet.microsoft.com/Forums/en-US/smallbusinessserver/thread/d195baac-da8b-4387-9079-c55d5e1879b4
http://blogs.technet.com/b/sbs/archive/2009/07/14/sbs-2008-console-may-take-too-long-to-display-alerts-and-security-statuses-display-not-available-or-crash.aspx

I have kind of run out of time to get this blog finished properly and I'd rather publish it than leave it here languishing, so perhaps I'll update it when I get chance but for now, I hope this helps.  If you'd like to discuss it with me then please contact The PC Support Group on +44 (0) 845 2233116.

Forward Emails for a User who has Left

Suppose a user has left a small business (or even a large one) and their manager would like to ensure that no emails are accidentally sent to this user and thereby missed.  To do this in SBS 2011 (Exchange Server 2010) do the following:
Open: Exchange Management Console from the Start Menu.
Expand: Recipient Configuration
Select: Mailbox
Double-click: The user who's left
Select: The "Mail Flow Settings" tab
Double-click: Delivery Options
Check: "Forward to:" and then enter the email address of the intended recipient.

To have emails forward to an non-company email address, this will need to be entered as a contact in:
Recipient Configuration > Mail Contact.

Tuesday, 4 September 2012

SBS 2011 ran out of disk space

So the other day a customer phoned to say that they hadn't received any emails all morning.  Upon closer inspection the Exchange Information Store service had been creating log files like there's no tomorrow.

A tool I use all the time is Windirstat - it should come as standard with Windows - this led me straight to the culprit.

To disable logging, go into the IIS Manager -> Right-click on Websites and select Properties-> Uncheck “Enable Logging”

For help with this or any other issue, please contact The PC Support Group on 0845 2233116, or visit our website at http://www.pcsupportgroup.com

Android Mail deletes email from Exchange server

So having recently migrated our mail over to Office-365, I was looking forward to using Exchange Active-Sync on my Android phone.  The setup was fairly painless albeit a bit involved.  There is a video guide here which I used to set mine up: http://www.gsu.edu/ist/email/configure-android.html

However, having set up active-sync I found that my phone was running out of storage space, even though I'd set it up to download only the last day's messages.  So I deleted some messages to free up some space.  I was surprised to find that they'd been deleted from my desktop computer also and were in Deleted items.  This is perhaps useful behaviour for some people, as you have all email accounts with the same emails in them showing which one's you've read etc.  However, phone's do have the issue of storage space which other devices generally do not.  So what's the solution:

- Some people said K-9 mail app - but this doesn't support Office-365 - I tried.
- Some people said Touchdown app - but this costs £12.99 - apparently it does work - I've not tried it though.

For the time being I'm going to procrastinate over this one, delete an App or two and either hold off until my phone gets upgraded in about two months, or just pay the £12.99.  I have to say, as good as the HTC Wildfire is, I am constantly getting low storage space warnings on it which drive me crazy!

Tuesday, 14 August 2012

Chronosync Permission Problems

Recently I helped a customer to overcome their chronosync permission problems.  Going into the usual Disk Utility and repairing permissions did not solve the problem - apparently because in OSX Lion this utility does not repair permissions for anything in your home folder.  So the trick to solving permissions problems with Chronosync when using Lion is done like so:

In Lion, there is an additional Repair Permissions application utility hidden away. This tool is located inside boot Repair Utilities. Here’s how to access it.
  1. Restart Lion and hold down the Command and R keys.
  2. You will boot into the Repair Utilities screen. On top, in the Menu Bar click the Utilities item then select Terminal.
  3. In the Terminal window, type resetpassword and hit Return.
  4. The Password reset utility launches, but you’re not going to reset the password. Instead, click on the icon for your Mac’s hard drive at the top. From the drop-down below it, select the user account where you are having issues.
  5. At the bottom of the window, you’ll see an area labeled ‘Reset Home Directory Permissions and ACLs’. Click the Reset button there.
The reset process takes a couple of minutes. When it’s done, quit the programs you’ve opened and restart your Mac. Notice that ‘Spotlight’ starts re-indexing immediately.

This should be done for all user accounts and on all Macs that are involved in the synchronisation.  If there is still an issue following the permission repair then have a look at the file(s) concerned.  In my case there was still a corrupt file on one of the computers that I could delete.  I knew it was corrupt as one computer said its size was 40kb and the other computer said 0kb, so I deleted the 0kb one.

Instructions courtesy of http://osxdaily.com/2011/11/15/repair-user-permissions-in-mac-os-x-lion/

If you would like help with this or any other fix for your Mac, then please contact The PC Support Group on +44 (0) 845 2233116.