Wednesday, September 24, 2008

Windows Vista, Ubuntu Linux, and Media Direct on DELL XPS M1330

My laptop, DELL XPS M1330, was broken two days ago! The machine refused to boot, even the bios screen was not coming up. Thanks to the quick and decent services from Dell, they quickly replace my laptop motherboard the next business day and my laptop is back to work. I think this is the good side of Dell as many suggest, their services. But I wonder why my laptop was broken, although I just purchased it less than a month ago.

Anyways, I just found out that my media direct (small "home" button) stop working. It just goes directly to the same GFXGrub boot screen that I installed for my Ubuntu + Windows dual boot. At first, I thought that this is the doing of replaced motherboard, some internal nvram or something might be changed. So I follow many guides spread in the internet to use "rmbr" command supplied with MediaDirect CD to fix the problem.

The rmbr tool is actually a tool to instruct the machine to boot from a partition when power button is pressed, and boot from another partition when mediadirect button is pressed. The command is like
rmbr DELL 2 4
Where "DELL" is my manufacturer model, 2 is the number of partition for power button, and 4 is number of partition for mediadirect button. I believe what it really does is, modify MBR to boot from partition #2, and put "something" in some place to boot from #4 when mediadirect is pressed. (I think the "something" is actually goes into MBR as well after some experiments below, and also according to many web sites in the internet.)

I expermented a bit with rmbr. It really crashed the whole partition table if the number of partition exceed 4 (aka. use it on non-primary partition). I had to use testdisk to recover my partition. Somehow testdisk recovered the wrong order of my partition, which was because the odd structure of my partition due to MediaDirect partition. But testdisk can also change the type of any partition from logical to primary as well. So now my last partition is MediaDirect although the numbering is 4 (I got 7 partitions).

Because of the lost of partitions, I have to modify my Grub menu.lst, fix Windows using restore DVD supplied with my Notebook (using "Repair" functionality, a small link on the bottom of the screen that show "Install NOW"), then manually fix boot.ini in MediaDirect partition (it was actually FAT32, with partition type set to 0xc to hide it).

After a bit of experments, I found that the culprit is actually GFXGrub. I managed to make everything back to works as it should without grub. However, once GFXGrub was installed, media direct will boot to Grub instead of MediaDirect. So I just add a new menu option to my Grub to boot to MediaDirect. It works now, although not neatly.

I believe that once my laptop can boot to Grub from power button, and boot to MediaDirect directly using mediadirect button. Don't sure if that happened when I use normal Grub, or after I replace it with GFXGrub. Anyways my everydays works are in Vista|Ubuntu, not MediaDirect, so the priority goes to that.

No comments: