Monthly Archives: October 2012

upgrade ruby in rvm without losing gems

How can I upgrade the ruby interpreter without losing my gems inside my gemsets?

Use rvm upgrade

Say I want to upgrade from ruby 1.9.3 to ruby 1.9.3-p286 from within rvm and not loose my gemset environments.  I would type the following command.

rvm upgrade 1.9.3 1.9.3-p286

Then you just follow the command line prompts that come up, simple as that. =D

Fixing MBR for Windows 7

Recently I ran into a problem where Windows would not boot correctly.  A blinking cursor shows up and after a few seconds the computer reboots itself and continues the same process in an infinite loop.

The problem stem from the fact that I re-imaged  this harddrive using another drive which had dual boot Ubuntu 12.04 and Windows 7, and that drive used GRUB bootloader to boot.  I used Acronis to image that drive onto this target drive which i’m having a problem with.  (I only selected to image the windows partitions, ignoring the Linux partitions).

To fix the problem and have it boot straight into windows (without using GRUB)…

1. create and use a “Windows Repair Disk” and boot from that repair disk.

2. followed the instructions from the disk and do all the startup repairs.

3. Finally you need to get into the command prompt which is an option in the repair disk and run the following commands.

4. bootrec.exe /FixMbr

5. bootrec.exe /FixBoot 

6. bootrec.exe /RebuildBcd

Reset the computer and it should now boot straight into windows without any problems.  Since this was formerly a dual boot, what do I do with the left over space which use to be used for Ubuntu?

I used GParted to resize and append the left over space back to my windows partition.

 

source(s): 

http://www.tomshardware.com/news/win7-windows-7-mbr,10036.html

http://support.microsoft.com/kb/927392