Interesting Stuff for June 2016


To find which version of Windows you are running, enter the following commands in the Command Prompt or Powershell:

wmic os get caption
wmic os get osarchitecture
  • Web Development:
  • svg-sprite –  a low-level Node.js module that takes a bunch of SVG files, optimizes them and bakes them into SVG sprites
  • Grumpicon – The tool processes a set of SVG files, generates PNG fallback images for legacy browsers, and exports a demo page showing how to use the final icons.
  • svgo – SVG Optimizer is a Nodejs-based tool for optimizing SVG vector graphics files.
  • Android Development
  • jsonschema2pojo – Generate Plain Old Java Objects from JSON or JSON-Schema.
  • Android Design Time Layout, display values in the designer, but not included in the build.
  • Android Studio Project Site





Upgrade Windows 7 to a Larger Hard Drive

My laptop is just running worse and worse and its apparent that it’s got a lot to do with the lack of free disk space.  I’ve been trying to prune down the data requirements, but that just never works.

If found this article, The Page Starts Here: How to move windows 7 to a new or larger hard drive using Backup and Restore, that describes how to migrate a system to a bigger driver.  It seems pretty straightforward.   Make an image backup of the system, replace the drive, restore.

Step 1: Create an Image Backup of the System (Windows 7 Backup)

Step One and already lots of problems.  I decided to use Windows 7 Backup and Restore since that’s what the walk-through used, but I immediately get the error “The backup failed.  One of the volumes specified for backup is invalid because it is either not on a fixed drive, is not formatted – NTFS, or is read-only. (0x8078011D)”.  Of course, I am using a fixed drive, formatted with NTFS, and is Not Read-Only.  In fact a regular data backup works, at least for a while until it eventually fails on a data error.

I did find one post that claimed that the problem was that the OEM partition is not an NTFS partition or mapped and this is what causes the problem.  They suggest converting the drive to NTFS and giving it a drive letter.  It seems a bit drastic to me.

I even had trouble generating the Recovery Disk, since it claimed that it couldn’t find a writable CD/DVD drive.  So more strange stuff, but re-booting cleared that up.

Step 1 (Retry): Create an Image Backup of the System (Acronis True Image Home 2010)

So I also happened to have a copy of Acronis True Image Home 2010 on the laptop so I tried doing a back up with it.  I had tried using it for backups before with mixed results and haven’t used it for a long time.  However it didn’t work either with sector errors:

Failed to read data from the disk.
Failed to read from sector '274,384,408' of hard disk '1'.
Failed to read the snapshot. (0x10C45A)
CRC error (0x100155): Retry/Ignore/Ignore All/Cancel

Operation with partition '0-0' was terminated.
Read error. (0x70003)
    Tag = 0xDF81DA2C74EC501C
Failed to read the snapshot. (0x10C45A)
    Tag = 0x14181C22EF45AD40
CRC error (0x100155)
    Tag = 0x2AACB7B2AB852A

I found the solution to this on one of the Acronis support groups.  It is to do a “chkdsk /f /r” which fixes the errors on the disk, locates bad sectors and recovers readable information.  This took a very long time (about five hours), but was able to fix the bad clusters on the hard drive.

CHKDSK is verifying file data (stage 4 of 5)...
Read failure with status 0xc0000185 at offset 0x20842bc000 for 0x10000 bytes.
Read failure with status 0xc0000185 at offset 0x20842c3000 for 0x1000 bytes.
Windows replaced bad clusters in file 246914
of name \VMWARE~1\WINXP_~2\VM-WIN~1.HID.
  1030384 files processed.
File data verification completed.

CHKDSK is verifying free space (stage 5 of 5)...
  1449004 free clusters processed.
Free space verification is complete.

Adding 1 bad clusters to the Bad Clusters File.
CHKDSK discovered free space marked as allocated in the
master file table (MFT) bitmap.
Correcting errors in the Volume Bitmap.
Windows has made corrections to the file system.

Now when I re-run the Acronis the backup works successfully, created the Rescue Disk and I’m ready to go.

Step 2: Swap out the drive

The new drive is a 640GB drive. It’s just a matter of taking out the old one and putting the new one in.  The Dellâ„¢ Latitudeâ„¢ E6510 Service Manual – Hard Drive section describes this.  Just unscrew the hard drive, pull it out, swap the face plate, and replace.

Step 3: Restore the System Image

Next reboot the laptop with the rescue disk installed and restore the images.  I just selected all of the partitions and it loaded them up.  Rebooted and everything was back where it was before.  Also had this message to enable FreeFall Data Protection, selected “OK” and restarted:

Step 4: Expand the OS Partition

Finally I needed to increase the partition size.  When the system was restored, the READER partition was immediately after the OS Partition so I deleted the READER partition, increased the OS partition in the Disk Management application, and then re-restored READER.

But Wait, There’s More… BOOTMGR is missing

So after a productive hour of using my new hard drive I put it in to standby mode and came in to work to find the dreaded:

BOOTMGR is missing
Press Ctrl + Alt + Del to restart

So off to Google to find the solution, and I found this post, New SSD and Bootmgr problem, on the Acronis Forums about using the Bootrec program to rebuild the MBR and Boot Sectors.  In short it says to run the reinstallation DVD for Windows, get to a command prompt and run:

In the System Recovery Options dialog box click Command Prompt and type the following:Bootrec.exe /FixMbr
Bootrec.exe /FixBoot

If you want to completely rebuild Windows Vista Boot Configuration Data, then you should issue the following command:

Bootrec.exe /RebuildBcd

Which I tried, but didn’t work.

However, if I just trusted in Microsoft to fix it for me with the Startup Repair Tool as described in How-To Geek’s Fixing “BOOTMGR is missing” Error While Trying to Boot Windows 7 or Vista.

Crossed my fingers as it rebooted and it all magically started working.


The results of going through this process were definitely well worth it.  The laptop is no longer running sluggishly, it’s running  now like it was when I first got it.

Update (10/2/12):

Today I rebooted the laptop and it said it needed to do a chkdsk.  I don’t know why but it found a bunch of “Deleting corrupt attribute record (128, “”) from file record segment NNNNNN and Recovering ophaned files.