Jump to content

I want to delete two folders inside my Windows7 partition...


Recommended Posts

Posted (edited)

...as a help to my filled SSD. These are the ones I picked:

%systemdrive%\Recovery

and

%windir%\System32\DriverStore

I think I will defeat the permissions easily, but how to be sure the beast will stay bootable? I have a growing suspicion that exactly that will happen (unbootability). :)

I chose them because they are large and (with my vague understanding of what they do) they seem nonessential, but I might be wrong.

These are the assumptions:

If I need the first one, I will use the DVD. The second one should be redundant, because there are already drivers in other places. <- Am I wrong with these two sentences?

If Windows7 insists on them, can I persuade it otherwise through registry?

Also, I accept suggestions on other folders to delete, and I have already deleted some.

GL

*edit: I found Driver Store Explorer which should be able to help me. Dissapointed I can't delete it all.

Edited by GrofLuigi

Posted (edited)

The DriverStore is where all the drivers shipping with Windows reside as well as any OEM drivers you install as "staged" there. Technically you can delete DriverStore and the OS won't be "damaged" but you will be completely unable to install any drivers. Even for things like a new USB flash drive or a mouse you plug in, they won't work. If you absolutely have no new hardware to install (which would never be the case), you can delete it but not recommended. Read http://blogs.technet.com/b/joscon/archive/2010/09/15/so-what-about-the-driver-store.aspx. You can delete the OEM drivers though. Before that, I hope you have run Disk Cleanup and tried all methods it offers of freeing up disk space (especially the Service Pack 1 files) which are no longer needed if you don't plan to uninstall it as well as all but the last System Restore point and the error memory dumps. Don't touch %systemdrive%\Recovery. You might need to it access the Windows Recovery Environment (WinRE). If you don't use hibernation, disable it and if you need it, you can compress the hibernation file using the cmd: powercfg size 65 from an elevated cmd prompt where 65 is the % of the compressed hibernation file.

Edit: Oops, it's: powercfg hibernate size xx. I forgot the word "hibernate". :) My bad. And yes it cannot be lower than 50 but even at 50 or 55% it won't always successfully resume from hibernate so set it slightly higher.

Edited by xpclient
Posted
... If you don't use hibernation, disable it and if you need it, you can compress the hibernation file using the cmd: powercfg size 65 from an elevated cmd prompt where 65 is the % of the compressed hibernation file.

I could not get this to work - I got an "Invalid Parameters" error, and when I tried "powercfg /?", "size" was not listed as an option. [Win7 x64]

Cheers and Regards

Posted

It's:

powercfg -h -size <value>

where, AFAIK, <value> specifies the desired hiberfile size in percentage of the total memory size. It cannot be smaller than 50.

This command also enables automatically the hiberfile.

Posted

I have already disabled hibernation. I have already deleted some MUI files for languages I know I won't use on that computer. So far so good. I learned not to touch WinSXS. :)

I'm just looking for additional 'easy kills'. I'm not that much hard pressed for disk space, but every bit freed on SSD helps.

GL

Posted

And yes it cannot be lower than 50

It can be done, but not with the powercfg tool. Change the percent value in the registry and reboot. I set my percentage to 37% and now I have a hibernation file with 2.95 GB when using 8GB RAM.

@GrofLuigi

use legos tool to remove unneeded packages like Hyper-V drivers, TV tuner drivers.

Posted
@GrofLuigi

use legos tool to remove unneeded packages like Hyper-V drivers, TV tuner drivers.

This is a Win7Toolkit installation. :thumbup

But I'm afraid to dig deeper with i.e. dism or Wim tweak because I have ruined some Windows installations before (I just can't stop trimming :blushing: )

GL

Posted

It can be done, but not with the powercfg tool. Change the percent value in the registry and reboot. I set my percentage to 37% and now I have a hibernation file with 2.95 GB when using 8GB RAM.

I see. But can you resume from hibernate every single time reliably if you set it to 37%? I mean there must be a reason why MS doesn't allow it to be lower than 50%. When I set it to 50%, Windows 7/8 couldn't reliably resume every time.

Posted

I would guess the actual amount of RAM installed rather than the percentage could be a factor. I'm not sure why they specified it in percentages anyway.

Cheers and Regards

Posted

But can you resume from hibernate every single time reliably if you set it to 37%? I mean there must be a reason why MS doesn't allow it to be lower than 50%. When I set it to 50%, Windows 7/8 couldn't reliably resume every time.

yes, it works fine for me. I've checked what my typical workload is and this is 2GB. So I added 1GB as reserve/buffer and so I have no issues :thumbup

Imagine you have 16GB RAM and with the default 75% you waste 12GB of HDD space for the hibernation file. And even with 50% you have a 8GB file. This is bad :whistle:

Posted

But can you resume from hibernate every single time reliably if you set it to 37%? I mean there must be a reason why MS doesn't allow it to be lower than 50%. When I set it to 50%, Windows 7/8 couldn't reliably resume every time.

yes, it works fine for me. I've checked what my typical workload is and this is 2GB. So I added 1GB as reserve/buffer and so I have no issues :thumbup

Imagine you have 16GB RAM and with the default 75% you waste 12GB of HDD space for the hibernation file. And even with 50% you have a 8GB file. This is bad :whistle:

Can you share which registry key please, Andre? I am too lazy to use Process Monitor.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...