Fixing infinite boot loop between Windows 8 boot loader and GRUB
Going in addition to my previous blog post of installing and running Android 4.0 (Ice cream sandwich) on your x86 based system. I encountered an interesting infinite boot loader loop problem evident only if you install your Linux distribution (and GRUB) on top of a Windows 8 system using the new Windows 8 radical boot loader. This problem could be a nagging issue for users due to the annoyances caused by the Windows8 UEFI-ready new double-boot bootmenu, and could be more prevalent when Windows 8 become mainstream, especially if you are setup to tri-boot Windows 8, Windows 7 and Linux on the same machine.
The cool but rather annoying thing about Windows 8 the Microsoft new bootmenu which appears to act like a new boot loader interface, but is actually in-fact a mini operating system itself sitting in the MBR (root) partition which functions like a gatekeeper to boot into Windows 8, it even has it’s own optimized video and touch-friendly mouse drivers pre-loaded. I previously had Windows 8 and 7 installed on my machine. If multiple instances of Windows are detected on your partitions, it will invoke the bootmenu and list all the available compatible Windows OS and reboots the PC again after your selection.
This has major issues with pre-existent bootloaders, especially if you are looking to boot into an Linux environment or similar ext3 partition using GRUB for instance. The problem here is that you will get infinite restart loops. GRUB will catch the reboot again, terminating the Windows boot cycle, bringing you back to square one into the irritating Windows 8 bootmenu. It simply just makes you wonder what Microsoft is intending to get out of this, by implementing this together with their notorious Unified Extensible Firmware Interface (UEFI). Though bootloader signing and certification for UEFI is not evident here, we could see this being a major problem given the controversy Microsoft new UEFI BIOS will have against Linux platforms (or other platforms not signed by the manufacturers to work with the UEFI BIOS), especially in securing the BIOS and making the boot procedure largely closed-source.
Anyway back, fixing the bootloader loop is relatively simple, my weapon of choice means getting rid of the Windows 8 bootloader completely and reinstalling the Windows 7 bootloader. I choose the Windows 7 bootloader over GRUB on this laptop as I primarily run Windows on this machine anyway. This can be done by invoking the power of the new Window 8 “mini boot loader OS” which surprisingly has not only a in-built recovery tool system but a full working command prompt which you can repair your boot records with.
Start off by first selecting Windows 7 as your primary operating system. Then go into Windows 8 command prompt (under advanced) and type the following code to fix your MBR using boot recovery.
bootrec /RebuildBcd
Or to make it simple, simply just completely rebuild the BCD using /rebuildBCD as shown in the code field below. If you feel that you’ve corrupted any of the MBR, just pop in your Windows 8 or 7 installation DVD or bootable flash drive, boot into the “repair my computer” option and access the command prompt from there.
This will be good enough to get you out of the infinite boot loop and into your production Windows environment again. Thereafter you can use a MBR modifier such as EasyBCD (freeware) or bcdedit (if you are a purist) on the command prompt, to clean up your boot records and add the additional Linux/Android ext3 partition as a additional Linux boot record.
Here you can choose to invoke your own instance of GRUB or use EasyBCD with it’s own in-built GRUB to boot into Linux/Android. Upon restart, you will be greeted with the clean default Windows 7 boot loader with the 3 simple selections in place. Pretty, simple and no ugly Windows 8 double-restarting boot loader.
Of course you can argue that GRUB does the exact same thing as well by adding Windows 7 and 8 to menu.lst, but it’s just a matter of choosing your sides I guess. Remember the old intel vs AMD flamewars? Yea you should get it.
Android 4.0 Ice Cream Sandwich (ICS) on PC (x86).
The idea of Windows 8 running on ARM based tablets is unreal, but the idea of running Android on x86 based PCs is even cooler. Knowing the crazed Android platform developer and supporter I am, what’s the least I can do than to get it running on my x86-based tablet PC?
You can start off by grabbing the Android x86 sourcecode and building the image yourself. You have a choice of Honeycomb or Ice cream sandwich (ICS) flavors. This is courtesy of the guys on the Android x86 project who made everyone’s job easier by porting much of the needed original source code for runtime in the unconventional PC-based architecture. So do check out the Android x86 project, go ahead and give the guys a visit and drop them a tip or two if you appreciate the work the team had been putting in developing Android for PC. If you are new to this, the main development site has specific .iso files for Asus netbooks (Eee PCs), Viewsonic viewpads and few MSI netbooks which is convenient if you have those devices. Otherwise, you are quite out of luck if you are intending to get ICS running properly on your own system, let be on any system like my ultra-old-and-dated 8 year old Intel 915GM-based Fujitsu tablet which nobody supports at all.
So that pretty much kept me busy over the last few days, working on the x86 instance of Android 4.0 for my laptop and streamlining various old drivers and re-building the installer with many trail and errors. It gets really rewarding eventually when you finally manage to get the build to work, bringing a whole new life to my stoneage tablet PC.
In a matter of no time, I was zipping through the app tray and testing out various functionalities of ICS. I have the default market installed which was promptly updated to Google Play through my intel a/b/g card via my compatible wireless drivers. I’ve got touch support using my wacom-penabled touchscreen and the hardware keyboard working. Strangely, the laptop trackpad was automatically recognized as an optical trackpad (similarly found on the Desire range of HTC phones), which allows swipe based navigations and scrolling, but no hardware mouse pointer like those you get by plugging in a human interface device via USB Host. Hardware limitations on my digitizer and synaptics trackpad prevents any form of multi-touch interactions, so I am pretty much out of luck for pinch-to-zoom on the browser/maps or any form of on-screen gamepad interactions where 2 or more multi-touch points are required.
My clunky tablet PC, though in the heavy weight league of 2kg is not exactly what you will find in a standard Android tablet these days and is not exactly what I call “one-handed” portable without breaking your wrists in the process. But it’s a form factor I never knew could be realized at all, let be on a nearly decade old tablet PC. Is it how the eventual tablet PC is supposed to be idealized as? Maybe.
Come to think about it, my tablet PC may be one of the few ICS machines on the planet which doesn’t go with Google specs for Android, especially with the lack of an on-board camera- the camera app crashes on runtime due to the lack of a webcam. The absence of an accelerometer means that automatic screen rotation is non-existent and have to be toggled via a manual screen rotation app on the notification bar. Currently, the mounting of any SD cards via the Tablet’s SD reader or any external USB mass storage devices have to be done manually through terminal (yea for root!). I was not able to get the integrated DVD-burner drive working too.
Games such as Pocket God runs well on the system only that the market seems to recognize my device as a tablet, but I believe is not exactly sure of my device type or fingerprint. So it seems to be blocking several mainstream games I’ve bought and free ones such as Angry Birds or Fruit Ninja. This could be rectified by updating my product.device and build.fingerprint to a known similar tablet device type or simply just physically transferring the game .apk files over.
I was curious to find out the Quadrant scores on my unconventional system, but I wasn’t able to get Quadrant standard to run a full benchmark as presumably with the program freaking out and crashing after encountering my laptop’s GMA900 “GPU” (lawl) on the graphic testing portion of the benchmarking process.
I still yet have to test for extended battery life running ICS, but I reckon the increase in battery life will not be significant as processor don’t seem to throttle well between cycles, as felt with the system fan always abruptly speeding up and down presumably at 100% commit. I was not able to tweak the on-screen brightness too. Furthermore, my DVD drive goes into a random read-write cycle each time the screen goes off standby mode, it’s like as if you are booting the partition again each time to wake it, but then that’s how Android goes into standby anyway, so doing it on PC kinda counter-productive. Still, everything is still largely in the testing phase, so bugs are always evident, it’s always a work in progress!
In all, running ICS on my tablet will keep me busy with the ICS experience without the need of any emulation or SDKs for now, until I get a stable ICS build into my handphone at least. A poor student developer like me will have to suffice using an 8 year old 2kg laptop as an Android tablet until I can afford a proper Android tablet myself. Till then, happy Android x86-ing!
*noms on a Jellybean filled Ice cream Sandwich*
Windows 8 test drive on consumer preview build
When the Metro interface was first announced for Windows 8, I had the humorous impression of it being Windows Phone for PC. We’ve seen the Metro interface already being implemented on the Xbox and the Windows Phone platform, knowing Microsoft’s enthusiasm on this rather unique interface, it will be only a matter of time before it finds it’s way into their flagship product.
Metro for Windows acts as in intermediary gateway for users to launch apps. In Windows, it serves as the new start menu between the desktop and “Apps”, positioning itself as a launching UI, allowing an out-of-the-box style of navigation via window boxes. Gone is the familiar start button on the task bar, invoking “Start” now means hovering your mouse on various “hotspots” on your screen or using the Windows button (which you will intuitively find yourself using more often now). With Metro comes with it’s own set of special shortcut keys allowing you to transition to various App listing via an Aero-like interface of sidebars, charms (window-C) and the start menu (windows button) itself.
Windows 8 still has the speed and capabilities to run on older machines. I had Windows 8 dual booting on a 7-year old single core Centrino-based Tablet PC, which was previously running Windows 7 Ultimate. Windows 8 is still largely based off Windows 7, so they should behave similarly performance-wise. Going with Metro has alway been thought to doubled edged decision for Microsoft, one which will usually make or break an OS, the change here is in-fact more drastic than the one we saw with Windows XP and the transition then to the more stable and “secure” NT file system.
The radical new interface runs like a charm. It’s both fresh, zippy and pleasant to the eye, and will definitely catch the attention of anyone. Microsoft has a strange obsession with buzzwords on their new OS, particularly the over used of the word “Apps” and “Charms” which I find hard to stick as names not representative in any of the elements on the UI. Microsoft claims that Metro is as intuitive to use on a tablet as well as trackpad based laptops, but I beg to differ even with tablet capabilities on my machine. I found the touch and swipe movements not as intuitive as that on Android or even iOS, the OS still retains much of the fixed, segmented tablet input structure we see in the previous version of windows, with weird scrollbars popping out of nowhere and Windows swipe gestures conflicting with the current touch interfaces. But I can attribute that now for the lack of refinement in the alpha release, as well as the lack of touch support drivers for my machine, which will be rectified on future releases.
Moreover, the speeds are excellent. Performance of Windows 8 will be best supplemented by a solid state harddisk (SSD), which has not only allowed me to breathe new life into this old system but prove that Windows 8 isn’t as slow as it was perceived to be. Movement swipes and transitions are fast and smooth and I hardly ever need to invoke high CPU usage in Metro too. Also, having an SSD also allows you to capitalize the extremely rapid boot and shutdown times the new OS is known for. I managed to get a 5s OS boot up after POST and 10 seconds shutdown, with the closing of running Apps on the shutdown phase the only reason for slowdowns. Quantifiable average boot times are roughly 3 times faster than Windows 7 on a similar setup on this early alpha release.
Metro has found a very nice spot between it’s bigger Android and iOS platform brothers, without invoking any design cues of any rivaling operating systems (which we can only see ending under a barrage of infringement claims in court). But I personally find the new interface frustrating to use, especially for power users who know their stuff around Windows well. Metro is simply eye candy which pokes into all your doings, I at times find it more of the hassle having to hover-wait over hotspots to invoke a start menu, or reaching out to the keyboard for the Windows button to get an App list up- tasks previously which can be done with a single click from a mouse in one hand. Also, what’s peculiar is that Windows 8 is trying be both a tablet and full-fledged operating systems in a single package, with many features we won’t need or use on either side. However, it is still good to know that deep down inside of Windows 8 lies pretty much a nearly identical version of Windows 7, if Metro is not to your liking, you can in-fact completely customize the OS to look just like the predecessor, but then there comes the question of even the need to upgrade from Windows 7.
There are still several evident quirks and nagging bugs on the Metro UI at this point of release, as well as the return of the glaring driver issues which we saw with Windows 7. For me, driver issues, especially for my old hardware usually means lots of wasted time writing and re-writing compatible drivers with an occasional forced BSOD. But these problems will be rectified in the next release as well as a more larger and complete driver library in the RTM. Metro is still an on-going development so changes are still planned in the pipeline until at least the beta stage.
But don’t get me wrong, Metro is an ingenious piece of kit. Windows 8 had received a mixed bag of contrasting opinions so far, but what is really most promising is the move from x64 and x86-based platforms to ARM or even Ti-opmap based platforms, where the true ability of Windows 8 can be realized by bringing desktop computing to tablets. The tablet PC of yesterday was clunky, heavy and simply just functions as a PC strapped onto a heavy photo frame. It does not have the instant-on capabilities and suave of today’s modern tablets.
Windows 8 could be Microsoft’s chance at redeeming their failed vision of the tablet PC, despite arguably, Microsoft could had taken the tablet PC further if they were to expand more on the now-defunct Windows Mobile for slate tablets 10 years ago- way before iOS was launched. Who would have thought of that? Maybe the consumer market just wasn’t ready for a tablet device then. Then again, who would even conceive the notion of Nokia and Microsoft teaming up to make phones a decade ago? It was something too-far fetched then.
So will we be seeing Windows 8 on your ARM-based Android phones or even iPhones in the future? That may not be too far fetched now.
Snowy greetings from Cambridge!
2011 turned out to be pretty much a snow-less year, with the Christmas period surprisingly devoid of any snow, considering how it usually comes in early December for the last 2 years. And before you can call it spring, it’s snowing in Cambridge today! Strangely, nearly 2 months later than usual. The weather here in the midlands UK had been rather eccentric with rather summer-like warm periods contrasted by sudden cold spells, much to the dismay of many students here who caught the cold chills and flus at the last minute.
Then before you know it, came the unsuspecting white flop over this weekend. It snowed overnight, but the snow is not that deep as last years- sitting just under 5 inches- the kind which won’t humorously put the UK workforce in to a grinding halt, well at least the airports are still functioning, to some extent… By the looks of the weather reports, this may be the only snowfall we might probably get till next winter too.
With fresh snow, comes snow responsibilities as well. Ahoy! May all the snow mans, snow totems and snow fights begin!
(New record! Made a snowman myself in under 10 minutes flat. :3)
Happy 2012 Lunar New Year of the Dragon!
It’s the Chinese new year and of course no new year celebration to welcome to Lunar new year is complete without the inclusion of food! And lots of them. This year’s celebrations was held at the Queens college junior combination room. I’ve never been to Queen’s JCR before, only their halls for formals and apartments of friends in the area. Apparently it’s situated right on top of a loft proving rather good views of the River Cam via Sliver street and the adjacent University center (where the gyms are). Despite it’s rather small size, the JCR was decked out with plenty of sofas and furniture, not to mention being able to accommodate an odd 30 over people who turned up for the gathering.
It was organized by mainly the second and third years of the CuMaS association, the Cambridge Malaysian society (why can’t the Singaporean cookouts be just as awesome?), with many new faces, namely several year ones where we spent most of the evening meeting and integrating into the group.
Huge servings of variety of local Malaysian and Singaporean delicacies such as noodles, (Mee goreng style), Curry chicken, omelettes and Bak kut teh just to name afew. The huge group turnout calls for at least 6 rice-cooker pots of home cooked chicken rice and a double tossing Yusheng at the end of the dinner session. It was quite a big feat to prepare all the food for so many people as well.
The Lunar new year is just like any other day here in the UK, a typical work day buzzing with people on the streets, with school still on and lectures to attend, with the exception of Chinese restaurants and takeaways all closed. Chinese new year for me this year was a rather simple and fat-free one too, considering I was more selective on the ones I am able to go this year given my leg injury. Also with most of the awesome seniors who graduated last year not around in Cambridge to organize their trademarked annual steamboat dinner, I am happy to say that the food standards had not dropped either. This new year mass pot luck is one which still lives up to the legacy set by the seniors of last year.
Having said that, in the light of the Chinese new year, wishing you good health and a prosperous Lunar new year of the dragon ahead!
World of Warcraft chilling in the new January
All work and no play makes jack a dull boy. It was the December holidays, stretching all the way to January at least before the start of the upcoming Lent university term. With Portal, Skyrim, and TF2 boring me out these days, why not get back onto some RPGs like World of Warcraft? Well as you should know, World of Warcraft (WoW), despite it’s launch since 2004 is still the most widely played massively multi-player RPG in the world (though some SWtoR fans would argue otherwise).
So it’s $15 a month to head back into Azeroth at least for the holidays, for a month. Paying to play a game, could be a turn off for many. I was initially skeptical of paying too. But later do I know paying does has it perks as it not only provides a much better mature gaming experience not only in support and game uptime, but sieves out casual trolls and kids you usually see on free-to-play games, not to mention flame-bait and trolls.
So what did I do within the period of a month? Leveled up 3 toons with a cumulative total of 200 levels, now that is quite alot of (anti-social) time. That also means exploring the worlds and various (and revamped) expansion zones I missed out over the years. I never quite got to the current level cap of 85, not seeing the need to level up so quickly, so technically I actually had not touched the Cataclysm zones as of yet, despite starting on it already on my ass-kickin’ Worgen Death Knight.
With the start of Lent around the corner in a few weeks time, it’s time to put all my toons into deep freeze till the upcoming summer holidays at least. Not to mention considering gearing up my characters for the new level-90 cap when blizzard releases the Kungfu- touting pandas on the new Azeroth southern continent in the upcoming “Mist of Pandaria”. But not of course till we get “Heart of the Swarm” or the long delayed Diablo III on the next Starcraft/Diablo franchise.
Surprising, with the exception of a number of local British students I know here in the university, no Singaporeans studying here plays WoW at at. Not only that, some do not even know about the game, let be any PC or Xbox game titles I know at the back of my head released within the last 5 years. So for WoW I usually end up playing with my friends in the States anyway, with almost all of my toons on US servers.
I know you must be screaming “NERD ALERT” right now, yea but it’s a “problem” either the poor Singaporean kids here, I hope this is not what you get with ultra nerdy students coming from top schools and Junior Colleges who “take pleasure by studying”. That is really sad, but the fact is this is the stereotypical image of various top Singaporean JCs, just study study study- Not even any extra-curricular activities or nothing about heading to a pub to chill for the night or a game of pool after a long day of work. Of course that is another huge area to debate about what I define as a “balanced and healthy” college life. I mean hey! college life is literally one of the best times of your entire life. I definitely wouldn’t like to look back at my college days and see myself remembering just only all the studying as a socially-inert study-bot.
That would be really, really sad.
That’s all for 2011 Hello 2012!
Happy New 2012! A whole new year, a whole new area of possibilities! The fireworks at London was fantastic even when viewed on the TV as broadcasted by the BBC. The sparkles lasted just over 12 minutes right after the midnight chimes of the Big Ben. It was a grand display of over 12,000 fireworks, producing 50,000 projectiles, also welcoming the year where the Olympics will be held in the city itself.
I did the London Thames countdown to welcome 2010 in my first year of college. But personally I think the crowds and effort to crawl all the way there is not really worth the hassle, unless if you intend to make the countdown an whole day affair and literally camp the best firework spots since midday by the embankment. For most of us that year, it’s just a matter of “being in town”. And of course unless if you are planning to check out the awesome new year’s day parade running through the heart of London and the still ongoing boxing day sales (or in this case now, new year day sales) attending the countdown is a no-brainer.
Anyway regardless of how you welcome the new year, 2012 will come anyway, well… eventually. So what are you new year resolutions for the brand new year?
- Maintain my fitness regime (doing good!)
- Make it well through my third year in college
- Take up a new interesting hobby (Like life-saving)
- Get a good (preferably awesome!) summer internship
- Really get about learning Japanese
- Complete my university formal hall grand slam (4/31 colleges left)
- Don’t get (badly) injured in sports again
I don’t think that is too much to ask for. 2012 is also the year of the Dragon on the Chinese lunar calendar too, which in the case for my sister is a big year for her turning 24. I remembered the time when I was 24, made me realise how old I am, haha.
Nonetheless, hello 2012!
Fireworks photo credit: REUTERS/Andrew Winning
Merry Christmasy from (not too cold) Cambridge!
And so it’s December and time for a much needed blog post on the happenings so far here. Guess I was just too busy with stuff and the end of the that I had not found much time to share the happenings here as of date. The sad fact is that there is actually quite a lack of things happening here, with the exception of homework and loads of end of term pile ups and deadline reports to submit (and finally done with whew).
Having said that, Christmas here in the UK is also the time where almost everybody head back home and out of college for Christmas. Everywhere here in college seems pretty much like a dead town now in comparison to the term time buzz. The kitchens and halls get progressively quieter over the days as the holidays finally hit. The streets are all quiet, bare and empty with most stores all closed until next year. This is of course in stark contrast to the situation back home, particularly most shopping districts in Asian countries, like those in Japan, Seoul and Singapore, with the streets buzzing even with extended store opening hours till midnight.
Christmas here in the UK on the contrary is one for the family- Christmas tradition holds as a get together period for all family member and relatives alike. This means getting together back at home on Christmas day enjoying a scrumptious Christmas dinner (which also means the most expensive time of the year to travel too). This is my first year where I get to spend Christmas grounded in Cambridge due to a leg injury. Which kept me pretty much grounded here in college and made me very acquainted with Taxi drivers in getting around town as well as the hospital outpatient’s department. Due to the inconvenience of travel, I didn’t get to spent at my aunt Jenny’s place, though she never fails to always delight with her wonderful roast and Christmas cheesecake. Just a pity I can’t join her family this year.
Anyway, I won’t just stop there and call it quits. Christmas is a time of feasting and celebrations. So the least to do is to have few get people together, particularly those who remained in college during the period. There was a pre-Christmas day dinner at an upmarket restaurant in town as well as a wonderful Christmas lunch and dinner with university mates at a large rented out-of-college accommodation flat courtesy of an old friend of mine. The flat was big enough to house our Christmas day party of 25 and we had Turkey! Loads of it. Well too much turkey, 2 large birds in fact to the extent where leftovers the next few days were literally Turkey days as well.
Weather-wise this is my first winter here in Cambridge without snow. It seems this year the snow decided to head home too, it’s pretty much snow-less Christmas in Cambridge. Not to mention rather warm for winter now too. Surprisingly, there are still many trees out there with their leaves on and lush green patches of autumn grass dotted everywhere around town. Temperates here range from 5 to 11 degrees here at night which is nearly autumn weather in comparison to the sub freezing temperatures of last year and the year before.
In comparison, lets take alook at the snow that was in Cambridge the years before. Surprisingly this exact panorama taken 2 years ago by yours truly was used by my college as the official college Christmas card this year. I am honored!
Snow here in Cambridge is known to come in one big flop in December just before Christmas (well at least for the last 2 years I was here) and very much sits around slushy like a sore thumb throughout January at least. Commendably, the weather here in Cambridge is as good as it can get in the UK. Cambridge is pretty much sheltered from harsh storms and snow, given it’s location in land just north of London. So if the weather is bad here, chances it might even be worst else where.
So that’s for Christmas this year now, there was lots to eat and not as bad as I thought to be, despite being grounded. And oh thanks for the Christmas cards to those who sent yours, I had to find more wall space to pin all of them up this year.
In the meantime, Cheers and have a great Happy new year ahead!










































