To defragment a particular drive, say C:, type:
defrag c: -v -rIf it wont work from an elevated command prompt in Windows then see if it might work from a command prompt in the Startup Repair options where Windows isn't loaded.How to Perform a Full Manual Defragmentation of Your Hard Disk Under Windows Vistahttp://www.howtohaven.com/system/vistadefragmentation.shtmlHow To Access Advanced Startup Options in Windows 8 or 8.1http://pcsupport.about.com/od/windows-8/a/open-advanced-startup-options-windows-8.htmUnderstanding and accessing Windows 8's advanced boot options http://www.geek.com/articles/chips/windows-8-advanced-boot-20121218/