TechRepublic : A ZDNet Tech Community

Microsoft Windows

Host: Mark Kaelin
Contact

I recently noticed that the hard disk on one of the Microsoft Windows Vista test systems that I use quite regularly began to fill up. This seemed odd to me because while I have a lot of data on the disk, the majority of it just test data (i.e. data that I copy over from my real system just so I have something to work with). I don’t really generate much, if any, data on that system. As such, I was a bit confused as to where all the disk space was going.

Using My Computer and a couple of third-party disk space analyzers just for good measure, I discovered that I could not reconcile the disk space usage. The system has a 120GB hard disk in it, and I could account for only about 80GB of data and installed applications. So why was the system displaying a low disk space warning message?

I immediately ran the Disk Cleanup tool and set about emptying and removing just about anything that could be using up disk space: the Recycle Bin, temporary Internet files, dump files, thumbnails, log files, temp files, error report files, and downloaded program files.

That seemed to help for a while, but the problem cropped up again.

After a bit more investigation, I discovered that the problem was being caused by a configuration problem with Vista’s System Restore feature.

In this edition of the Microsoft Windows Vista & Windows 7 Report, I’ll show you what I discovered and  how you can fix it. As I do, I’ll also explain how to use the Volume Shadow Copy Service Administration command-line tool, VSSAdmin.

This blog post is also available in PDF format in a free TechRepublic download.

How System Restore works

Before we get started on the technique, let’s begin with a brief overview of how System Restore works.

System Restore is designed to take snapshots, called restore points, of your system state before certain types of operations, such as installing new drivers or installing Windows updates, are initiated. That way if a problem results from those types of operations, you can revert back to the restore point and essentially recover, or restore, your system to the state that it was in before the problem occurred.

These snapshots are taken by the Volume Shadow Copy Service. In addition to taking care of creating the restore points, the Volume Shadow Copy Service also monitors data files for the Previous Versions feature.

Using VSSAdmin

In order to manage the Volume Shadow Copy Service and ultimately System Restore, you’ll use the VSSAdmin command-line tool — there is no GUI tool in Vista for configuring System Restore. In order to run VSSAdmin, you must launch an elevated Command Prompt window.

To begin, right-click on the Command Prompt shortcut and select the Run as Administrator command. When you encounter the UAC, you will need to respond appropriately.

You can now use the VSSAdmin command-line tool to investigate and configure System Restore and the Shadow Copy Service. For example, you can obtain a list of all the restore points currently saved on the system by using the command:

vssadmin list shadows

You can see how much disk space is allocated to and used by System Restore and the Shadow Copy Service system by using the command:

vssadmin list shadowstorage

The investigation

On the Vista system that was running out of disk space, the result of the vssadmin list shadowstorage command is shown in Figure A. As you can see the Maximum Shadow Copy Storage space settings was set to Unbounded, which means that there is no limit to the size it can grow and it was already at 40GB.

Figure A

The Maximum Shadow Copy Storage space setting on the problem system was set to Unbounded.

On another Vista test system, running on an 80GB hard disk, the Maximum Shadow Copy Storage space setting was set to 11GB, as shown in Figure B. This was a much more reasonable value. Why the value on one of my test systems was set to unbounded while the others had specific maximum values, I’m not sure.

Figure B

The Maximum Shadow Copy Storage space setting on another system was set to 11GB.

The solution

You can reset the value of the Maximum Shadow Copy Storage space setting using the command:

vssadmin resize shadowstorage /for=<ForVolumeSpec> /on=<OnVolumeSpec> [/maxsize=<MaxSizeSpec>

On my problem system, I reset the Maximum Shadow Copy Storage space setting to 15GB using the command:

vssadmin resize shadowstorage /for=c: /on=c: /maxsize=15GB

Once the operation was complete, I restarted the system, and everything has been running normally since.

What’s your take?

If you have a Vista system that is mysteriously running low on disk space, you might want to use the VSSAdmin command-line tool to investigate and change the Maximum Shadow Copy Storage space setting. Have you experienced this problem with Vista? As always, if you have comments or information to share about this topic, please take a moment to drop by the TechRepublic Community Forums and let us hear from you.

TechRepublic’s Windows Vista and Windows 7 Report newsletter, delivered every Friday, offers tips, news, and scuttlebutt on Vista and Windows 7, including a look at new features in the latest version of the Windows OS. Automatically sign up today!

Greg ShultzGreg Shultz is a freelance Technical Writer. Previously, he has worked as Documentation Specialist in the software industry, a Technical Support Specialist in educational industry, and a Technical Journalist in the computer publishing industry. Read his full bio and profile.

Print/View all Posts Comments on this blog

System Restore configuration Mark W. KaelinTechrepublic Moderator | 04/15/09
Not just Vista The Scummy One | 04/16/09
System Restore Config Researcher75 | 04/17/09
Fifteen Percent Greg Shultz | 04/20/09
A couple of questions Rhodent | 09/22/09
Sounds like the older versions of Internet Explorer techr@... | 11/20/09
Multiple hard drives jerryew@... | 04/17/09
System restore manieverster | 04/17/09
System Restore dadshideout@... | 04/18/09
It's for system recovery mudpuppy1 | 09/22/09
How about the flip side ... Ron_007 | 05/30/09
Great article, a MUST KNOW! vucliriel@... | 09/22/09
Fastest weight loss program ever :) vucliriel@... | 09/22/09
RE: Reign in the unbound storage appetite of Vista System Restore jedwards@... | 04/16/09
I've done it. brettwilliams101@... | 04/17/09
It should be 80GB Greg Shultz | 04/20/09
Done Mark W. KaelinTechrepublic Moderator | 04/21/09
RE: Reign in the unbound storage appetite of Vista System Restore eddie.karsten@... | 04/16/09
Visa System Restore advice cancan2@... | 04/16/09
RE: Reign in the unbound storage appetite of Vista System Restore networknanny | 04/16/09
RE: Reign in the unbound storage appetite of Vista System Restore short2 | 04/16/09
RE: Reign in the unbound storage appetite of Vista System Restore jumbojim@... | 04/16/09
That should be it... Greg Shultz | 04/20/09
That should be it jumbojim@... | 04/21/09
Thank you for this. boxfiddler | 04/16/09
RE: Reign in the unbound storage appetite of Vista System Restore mjmuk | 04/16/09
RE: Reign in the unbound storage appetite of Vista System Restore evtmg@... | 04/16/09
RE: Reign in the unbound storage appetite of Vista System Restore sandrail43@... | 04/16/09
RE: Reign in the unbound storage appetite of Vista System Restore sandeepdasy@... | 04/17/09
RE: Reign in the unbound storage appetite of Vista System Restore m@... | 04/17/09
Use it in the command-line Photogenic Memory | 04/17/09
Is it just on the Server versions - 2003 onwards The 'G-Man.' | 04/17/09
Similar functions of the same service ultimitloozer@... | 04/20/09
RE: Reign in the unbound storage appetite of Vista System Restore jshewsbury@... | 04/17/09
...and you never thought about googling for it? The 'G-Man.' | 04/17/09
I plan on installing Vista this weekend. Photogenic Memory | 04/17/09
One word of advice: DON'T!!! vucliriel@... | 09/22/09
Install Windows 7 instead rshaw@... | 09/24/09
Better way contact@... | 04/17/09
Shadow copy pdr5407@... | 04/21/09
Shadow copy pdr5407@... | 04/21/09
Re: Shadow copy ultimitloozer@... | 04/22/09
RE: Reign in the unbound storage appetite of Vista System Restore cwmson@... | 04/17/09
RE: Reign in the unbound storage appetite of Vista System Restore scallahan58@... | 04/17/09
RE: Reign in the unbound storage appetite of Vista System Restore giblyninin@... | 04/17/09
Vista has it and MacOS X Leoport also has a similar Recovery system mrbobyu@... | 04/17/09
Nope restoration for a normal user in Vista is easy also Another Canadian | 04/20/09
RE: Reign in the unbound storage appetite of Vista System Restore zagood@... | 04/17/09
RE: Reign in the unbound storage appetite of Vista System Restore norm713@... | 04/19/09
I think you've got it backwards awgiedawgie | 04/21/09
On Windows 7 seems better... eatredmeatfeelgood@... | 04/20/09
15% greater than 32GB? GreyTech | 04/20/09
Default size ultimitloozer@... | 04/20/09
server 2008 pgit | 04/20/09
RE: Reign in the unbound storage appetite of Vista System Restore jabrwky@... | 04/20/09
RE: Reign in the unbound storage appetite of Vista System Restore goldenboy_17@... | 09/22/09
Vista System Restore Got me promotions1@... | 09/22/09
RE: Reign in the unbound storage appetite of Vista System Restore Gis Bun | 09/22/09
RE: Reign in the unbound storage appetite of Vista System Restore ocforu@... | 09/24/09

What do you think?

White Papers, Webcasts, and Downloads

Recent Entries

TR on Twitter

Archives

TechRepublic Blogs



500 Things Every Technology Professional Needs to Know
Did you know Microsoft's RegClean does not work with XP but you can use shareware to clean your registry? Did you know most wireless access points don't have encryption enabled by default? Did you know there are 500 tidbits of information contained in TechRepublic's 500 Things Every Technology Professional Needs to Know that will help you become a successful IT professional.
Buy Now
IT Professional's Guide to Policies and Procedures, Third Ed
Whether you're creating policies for management, training, personnel, support, privacy, Internet/e-mail usage, security, or inventory, you'll meet the needs of your entire enterprise with this one download!
Buy Now

SmartPlanet

Click Here