John's Blog
Random thoughts on software, guitars and lighting

Move Vista's Users folder to a Different Drive

Sunday, 10 May 2009 15:04 by john

OK, so I've finally gotten around to setting up a Vista machine as my main machine.  I opted to go with an SSD drive for the system drive and planned on putting all the user data on a different drive.  After doing a little research, the best solution to accomplish this with the least amount of hastle (or so I thought) would be to copy the content of Users to the new drive and set up a junction (symbolic link) to the new location.  Well, that was certainly easier said than done.  Everything I read suggested to do all the copying and sym-linking from the command prompt from the Vista setup disk because the Users directory is in use once Vista is running.  The problem with doing that turned out that the drive letter assigned to the new home for Users wasn't the same during setup as when running Vista.  After multiple attempts to get the setup instance of Vista to use the same drive letters as the running instance, including re-installing Vista after failed attempts rendered the Users folder unusable, I decided there had to be a better way.

During my initial research, I found mention of people using MOUNTVOL instead of MKLINK.  The main difference is that MOUNTVOL makes the entire disk volume available at the mounted location rather than just a directory.  Depending on your application, that may be too restrictive.  But for my application, that was fine as that's what I wanted to do anyway.  And the huge benefit of using MOUNTVOL is that the pointer is to a physical drive, not a logical drive letter.  After installing and booting to the setup CMD shell, renaming the Users directory to something else, I created an empty directory and mounted the drive on it.  I then used ROBOCOPY to copy the Users directory content back to Users, thus restoring and preserving the settings and security attributes.

So, here's my recipe:

Install Vista (if you haven't already)
Boot to the setup CD and once the installer is running press Shift+F10 to get to the shell

Then, on the boot drive:

ren Users Users_save
mountvol

(Note: no parameters on the mountvol command to get the volume label of the disk you want to use.  Then use the shell's clipboard feature to copy the volume label to the clipboard.)

mountvol \Users <paste the volume label here>
robocopy \Users_save \Users /MIR /E /XJ

Reboot and enjoy.

 

Currently rated 5.0 by 2 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:  
Categories:   Software
Actions:   E-mail | del.icio.us | Permalink | Comments (7) | Comment RSSRSS comment feed

Silverlight Development

Thursday, 6 November 2008 10:49 by john

This post is about two of my favorite subjects:  software and guitar.  I had been playing guitar for quite a while before I learned what a scale was.  I always played by ear and just accepted that for some songs, certain notes fit and other didn't.  Later in life I discovered that there was actually some reason behind determining the right notes and scales for a given progression and vice versa.

There's lots of software tools out there for learning scales (and modes) and finding the patterns on a guitar fretboard.  There's also lots of software that can chart out thousands of guitar chords.  What I always wanted was an easy way to, given a particular key, show all the chords that could be used and overlay them both on the fretboard.  The major and minor variations are usually pretty easy to figure out but beyond that, it was always hunt and peck for me.  So... I decided to write some software that would do it for me.

I've also been watching Silverlight as it has progressed along.  Version 2 was recently released (www.silverlight.net) and I'd say it's pretty mature in it's current form.  Early releases of this version were used for streaming video for the 2008 Olympics.  The really cool thing about it (aside from the fact that you can write in C#) is that the presentation model is the same for Silverlight as it is for WPF (Microsoft's new UI model for Windows apps).  The other cool thing is that it's more vector based rather than pixel based so scaling to different resolution devices should be easier.  But it's definitely a different way to think about building UIs.  You can build a rich client app that uses web services and WCF to talk to the back end.

So... my scale/chord applet was written in Silverlight using Visual Studio 2008 and C#. You can check it out online at http://www.keenesoftware.com/Samples/SilverFrets.aspx.

Enjoy!

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:   ,
Categories:   Guitar | Software
Actions:   E-mail | del.icio.us | Permalink | Comments (3) | Comment RSSRSS comment feed