Monthly Archive for November, 2009
- I wonder if I will stop getting spam about getting a masters degree once I have one. Or maybe I will start receiving PhD degree offers. #
- Starting last week, every bogus person that has followed me in Twitter has been blocked by Twitter before I had checked up on them. Thanks. #
- @francip Yay local Philly news. I have often wondered the same myself – lets see how the story unfolds. in reply to francip #
- @the0 Have you tried Ubuntu Netbook Remix? From the ChromeOS demos I'm not convinced it offers much more than UNR offers. in reply to the0 #
- @kylerow Declaring email bankruptcy is an important step to recovery! Yay! in reply to kylerow #
- @dylang Congrats Dylan! Finally done with that house. We need to catch up at some point soon, I can hardly keep up with all your travels. in reply to dylang #
- @sunilgarg To me FF 3.5 is comparable to Chrome speed. But yes, Chrome is nice in many ways, just don't try to print. in reply to sunilgarg #
- RT @whodapunk: Dang, both Fake Steve *and* Real Dan going after Mr. Ballmer: "The Lost Decade" http://www.newsweek.com/id/220145 #MSFT #

- Cover of My Revolutions
Read from September 2009 to November 2009
My Revolutions by Hari Kunzru is a fictional story of one man coming to terms with his rebellious coming-of-age in London in the 1960s. The book is truly historical fiction, with historical accuracy for the events described. However, since I have not studied that part of European history I wasn’t familiar with it.
Overall the writing is easy to follow and the story unfolds reasonably quickly. The narrative is told through a series of flashbacks which work reasonably well. I found the story enjoyable and learned a bit about the undercurrents of revolution in the 1960s in London. A valuable read for Kunzru fans.
Read more about it here.
Related articles by Zemanta
- Looking back on New Labour: Hari Kunzru (guardian.co.uk)
- A Year in Reading: Hari Kunzru (themillions.com)

- Image via Wikipedia
(This is even more technical than my other technical posts. Consider yourself warned.)
I wanted a dual-boot system between Windows 7 and Ubuntu 9.10 64-bit. I wanted both systems to be fully functional as 64-bit operating systems and have full access to the computer’s hardware. Accomplishing this has been well documented and I won’t bother discussing it. I simply repartitioned the hard drive into two partitions, and then let Windows 7 install on one of them and then installed Ubuntu 9.10 on the other. Grub gives me a choice when the machine boots and defaults to Linux, which is what I wanted. Then I decided I want to run Windows 7 in a VM on the Linux machine, and that I really wanted the VM to run from the Windows 7 partition already created. I had heard this was possible with earlier versions of Windows, so I figured Windows 7 should be no exception (at least if Vista can support such a scenario then Windows 7 should be the same).
I started by reading this, which gave me good guidance, but was the other configuration – Windows as the host and Ubuntu as the guest – I wanted the opposite – Ubuntu as the host and Windows as the guest. That led me to the VirtualBox User’s Guide, which does a great job of describing the process of using Raw Disk access. And finally, I did some perusing of the VirtualBox forums to find a couple specific answers to getting the setup working.
In an effort to help document this scenario, here are the things I did to get it working:
- Read the VirtualBox User’s Guide on Raw Disk Access (here)
-
user@computer:$ VBoxManage internalcommands listpartitions -rawdisk /dev/sda
VirtualBox Command Line Management Interface Version 3.0.8
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
Number Type StartCHS EndCHS Size (MiB) Start (Sect)
1 0x07 0 /32 /33 12 /223/19 100 2048
2 0x07 12 /223/20 1023/254/63 99900 206848
3 0x07 1023/254/63 1023/254/63 70000 204802048
5 0x83 1023/254/63 1023/254/63 65624 348176808
6 0x82 1023/254/63 1023/254/63 2839 482576598 - Notice how there is a 100MB partition (partition 1) – that is the boot partition for Windows 7. This, along with partition 2 are the Windows 7 partitions. Partition 3 is my ‘data’ partition, which is shared between both OSes. All of these partitions need to be enabled for read/write access by me in order for VirtualBox to load them up. I did this by:
user@computer:$ chmod 666 /dev/sda1user@computer:$ chmod 666 /dev/sda2user@computer:$ chmod 666 /dev/sda3
I know this is not the most secure way of doing things, but it works for me.
- Now it is also important that there is a place for Master-Boot Record (MBR) to get loaded from VirtualBox. This is necessary so that when the VM starts up it has an MBR to use – otherwise it will try to use Grub and will fail miserably. To get a ‘dummy’ MBR created I read a couple forum posts (here), and then did the following:
user@computer:$ sudo apt-get install mbruser@computer:$ install-mbr -e12 --force ~/vm.mbr
The -e12 argument means I want the first and second partition enabled in the MBR. This is critical to getting it all to work – otherwise the VM won’t know which partition to enable.
- Now we are ready to actually create the raw disk for VirtualBox to handle, I typed in the following:
user@computer:$ VBoxManage internalcommands createrawvmdk -filename /home/rajat/win7.vmdk -rawdisk /dev/sda -partitions 1,2 -mbr /home/rajat/vm.mbr -relative -register
- Go through VirtualBox, create a new VM, mark it Windows 7 (in my case 64-bit) and save. The VM is ready to be started, but it won’t work entirely yet.
- Set the VM to mount the DVD drive and put in your Vista DVD. Start the VM. Press F12 and select the DVD drive to start (c). Let Win7 setup start, pick a language, and then click the ‘Repair installation’ option. Go through automatic repair, and then let the VM restart. This time it should go into Win7 running off the raw disk.
Let me know if you have any trouble with these instructions, or would like to add to them. Drop me a line to know if these worked for you as well. I can’t wait to use these steps on my other boxes and put Windows in a box while I’m using it.
Update: There is a regression in VirtualBox 3.10 regarding raw disk access. Any machine that boots with raw disk access stops booting using VirtualBox 3.10. Read more about it in the documented bug report. As a workaround simply downgrade to VirtuablBox 3.08 or install the OSE edition. I got hit with this the day after this post went live, downgrading solved the problem for me.
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_c.png?x-id=832d7782-979b-4f88-a929-d2a5cbd6d488)
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_c.png?x-id=7a413998-4608-4a12-af5e-46067ec84e3b)