Windows tip of the day: viewing your chkdsk report

So, within days of using Windows 7 Ultimate, I suffered a bluescreen event (BSOD) and had Windows prompt a chkdsk run by itself. I was curious to see the results of the disk check, but if you have seen one of those occur, you’ll know that the results scroll by too fast for you to read. I went to good old Google and within short order, I discovered that instructions on the internet are often incomplete (with mine being the exception, of course. :D)

The first site I found online told me to check the built-in Windows Event Viewer tool (right after the chkdsk was done) which is accessible on Vista or Windows 7 by “event viewer” in the search panel. I was told to search for an event prompted by Winlogon (as the source) and to go with the most recent entry. Clearly, I was doing my search a couple of days after the event and I didn’t want to wade through score of entries in the event viewer.

The next hit online was more forthcoming and told me that I was looking for an entry from Winlogon as the source and the Event ID of 1001. Well, that was correct, but oddly enough, there was another entry called Wininit that contained the results I was searching for! So, to make this long story short, if you are looking for your chkdsk results, do the following:

  1. Start up Event Viewer by going to “Start” and going to search panel to type in “Event Viewer”.Event Viewer
  2. Then, sort by clicking the “Event ID” tab or “Source” tab. What you are looking for it an entry that coincides with a winlogon or wininit entry AND the event ID of 1001.Wininit

And that’s that! You’re welcome. 🙂

Update

On Windows Vista, a commenter (Alejandra) made the following edit:

[…] on Windows Vista, once you open the Event Viewer, you need to select Windows Logs on the menu on the right side, and then select Application.

Update #2

Another commenter, (Denny) left this great tip for pulling up your most recent Windows 7 chkdsk results. It involves Windows PowerShell which is available on most Windows Vista/7 computers. Here is his PowerShell command which I used and it’s vastly faster than digging through the Event Log.

get-winevent -FilterHashTable @{logname="Application"; id="1001"}| ?{$_.providername –match "wininit"} | fl timecreated, message

Simple copy and paste that into the Windows PowerShell command window and you’ll have your answer!

Update #3

Commenter, doncherry, helpfully wrote out how to pull up PowerShell which is available on Windows 7 and as a separate download on Windows XP:

To run it, click Start, click Programs, click Accessories, click the Windows PowerShell folder, and then click the Windows PowerShell item.

PowerShell command to pull up chkdsk results on Windows 7

Installing Windows 7 Ultimate on my HP dv9700t laptop

So, if you haven’t heard, Windows 7 is being released to the general public on the 22nd of October. I was one of the lucky people selected by House Party to host a Windows 7 Launch Party. Yesterday, my party pack arrived and I got to work installing Windows 7 Ultimate on my HP dv9700t laptop. This laptop is over a year old and had a Vista windows experience index score of 5.0. It took ~ 1.5 hours to do a clean install of Windows 7 over my existing Vista Ultimate installation. I took some photographs and shot some video which I will upload when I have the spare time.

For those new to the upgrading experience, I highly recommend backing up important data you may need like your browser bookmarks, work and personal files, et cetera. I completely forgot to back up my firefox bookmarks and as a result, I’ve lost over a months’ worth of painstakingly collected bookmark-data. Thankfully, my Roboform installation ensured that my passwords and login identities weren’t lost. My other backup plan was that I would be able to reinstall Carbonite (an online backup service) and possibly scrounge for my bookmarks there. However, according to a customer service agent I chatted with, Carbonite currently does not officially support Windows 7. Bummer.

Anyway, after I set up my user account and logged into Windows 7 for the first time, my screen resolution was a crummy 800 by 600, there was no Aero eye-candy and my hard disk was bursting at the seams because of the Windows.old folder. I was NOT happy at this turn of events because I had wrongly assumed that Windows 7 would perform a complete wipe and install. I was also NOT happy because I spent a pretty penny on tricking out my laptop and for me to not have the much vaunted eye candy was a slap to my face. To solve the first problem of my screen resolution, I simply right-clicked on my desktop and selected “screen resolution”. The option was available to take the resolution up to 1400 by 900 so I did and voila! Next, my Nvidia graphics card wasn’t automatically installed or recognized so Windows put up a generic VGA adapter. After trial and error, I discovered that the Windows 7 Action Center really knows its job and that given time, it WILL find the right solution to your problem! It led me to the right Nvidia driver for my graphics card (the GEFORCE 8600M card), but after installing, I still didn’t have Aero activated. Without wasting any more time, I fired up the Action Center and it alerted me that the desktop windows manager had been turned off and it ever so kindly offered to turn it back on for me. Once I did that, I was back in business with my beautiful transparent windows and such! 🙂

I have to confess that working on Windows 7 feels like doing things thrice as fast as I would on Windows Vista. I was not too upset about the Vista operating system because I prepared myself for its shortcomings. Most of those shortcomings have been resolved by Windows 7. For instance, my computer feels much snappier because Windows 7 has been streamlined & thus can run on hardware that Vista would choke on! Also, my windows experience index score dropped to 4.6 because of my graphic card. I don’t know if that’s a function of the drivers available for it or what, but I’m not complaining because I only care about what I can feel and that is: my computer is a speed demon now. 😛

The last issue of the hard disk space was solved by going to the start menu and searching for “disk cleanup”. Now, all sites I looked at on getting rid of Windows.old did NOT help me. They swore up and down that the Disk Cleanup tool was the way to go. The “take ownership” of the Windows.old folder trick did not help me because it took too darn long! I started my installation at 8pm and I needed to get to bed at a godly hour! What they did not tell me was exactly what to do. Let me help you there:
1) Go to Disk Cleanup. It should pop up a box asking what drive you want to clean. If you’re like me, all you saw available was the C: drive (the one Windows is installed on) and the D: drive (where your recovery partition is)
2) Click on the C: drive and let it work. When the next box comes up, there should be a button for “clean system files”.
3) Click on “clean system files” and it should show a dialog box that’s scanning and detecting “previous windows installations”
4) When this box is done, it reverts back to the box in step (2) and you should see the huge Windows.old folder there like in this picture:
previousinstall.png
windows_old.png
Oddly enough, according the properties of the Windows.old folder, the size displayed was 10GBs more. I need to call for help to find out where my hard disk space went!

Trying to learn C++

So, I couldn’t think of a witty title. My Christmas break is dwelling heavily on my mind. 🙂 I’m looking forward to the break more than I realized. Well, I finally decided that I was going to quit kidding around and learn (or try to) a programming language. Back in my undergraduate years, I took 2 computer science classes (C++ and Java). I excelled at them, but at the time, I was preoccupied with graduating in time & I decided to drop that line of study for my eventual major, Biology. Well, I’ve always been interested in programming and I finally got a copy of Microsoft Visual Studio 2008 Professional through the Microsoft Dreamspark program. I’ve also being doing a lot of ‘research’ online about key tools (books) to have in one’s arsenal. Obviously, I’ve gone without actual program for over 5 yrs. 🙂 I’m definitely a beginner in this field so I’m looking for b00ks geared towards beginners, but filled with sound programming principles & advice. Without further ado, here is a short list of books that are highly regarded for either beginners to programming or furthering one’s previous knowledge of programming.

Title
Author(s)
ISBN Number
Last Released
Accelerated C++ Andrew Koenig and Barbara Moo 020170353X (ISBN-10)
978-0201703535 (ISBN-13)
August 2000
You Can Program in C++ Francis Glassborow 0470014687 (ISBN-10)
978-0470014684 (ISBN-13)
July 2006
The C++ Programming Language Bjarne Stroustrup 0-201-88954-4 (ISBN-10) 978-0201700732 (ISBN 13) February 2000
Effective C++ Scott Meyer 0321334876 (ISBN-10)
978-0321334879 (ISBN-13)
May 2005
Modern C++ Design Andrei Alexandrescu 0201704315 (ISBN-10) 978-0201704310 (ISBN-13) February 2001
C++ Without Fear Brian Overland 0321246950 (ISBN-10)
978-0321246950 (ISBN-13)
September 2004
C++ Primer Plus Stephen Prata 0672326973 (ISBN-10)
978-0672326974 (ISBN-13)
November 2004

I will make an effort to check out the local libraries to use their copies. If not, I’ll have to pony up the high price tag unless some loving soul on the intarwebs feels like lending me their copy. 🙂

Update (October 2009):
I purchased Ivor Horton’s “Beginning Visual C++ 2008” because it was geared specifically towards learning C++ through Visual Studio 2008. That way, there’ll be no issues of the book showing one picture and the program I’m using displaying another picture. Thanks to the little knowledge I’ve picked up from that book, I was able to help my husband, Matt, out with his Introduction to Visual Basic class. 😛