Well I just had the most bizarre experience and I thought I would share it here. In short, I managed to completely fuck the boot sequence on my computer (making it unbootable) and then fix it in the course of an hour… here’s how!
The Setup:
I have a two-year old Dell Inspiron 9400 laptop running Vista. It has served me well with it’s factory installed software, but recently I took to using Ubuntu on my crappy desktop at home. This inevitably led to my desire to dual-boot Vista and Ubuntu on my kick-ass laptop. I managed to get the two operating systems booting on my machine just fine, no problems there (I highly recommend Ubuntu by the way). My problem arose when I was looking through the partitions available when I decided to triple-boot with Windows 7…
Dell MediaDirect:
I noticed a partition for Dell MediaDirect on my laptop, just sitting there taking up a valuable primary partition space and decided to look into this strange partition. The almighty Google informed me that simply turning off my computer and pressing the strange “MediaDirect” button on my laptop (which I had avoided up until this point) would launch a DVD/mp3 player that could be used without booting into windows… wow! I decided that I at least needed to try this strange feature before I removed it. Let me stop here and say to any other Dell users with this button: DON’T EVER PRESS THAT BUTTON!
The Incident:
Alrighty, I shut down my laptop, and tentatively press the ominous MediaDirect button. My laptop immediately springs to life, skipping the normal Dell boot screen in favour of a new “MediaDirect” boot screen… strange. My computer then advances to what looks like a loading screen and immediately gives me the blue screen of death… wonderful… o well I guess my random muddling borked my ability to use MediaDirect, no biggie, I can remove it with a clean conscience now. I hard reboot and get the familiar Dell boot screen… Then MediaDirect starts again… wtf? I immediately get the blue screen of death again and become somewhat distressed, did MediaDirect actually modify the master boot record? I attempt to find a solution within the BIOS… nothing… I am becoming rather angry at this point.
Thank God for Linux LiveCDs:
I whip out my iPhone and frantically search for a solution. I want to send out a big thanks to this article for getting me going, but I’ll add a few steps to my solution below. In the end I had to boot from an Ubuntu Live CD (which I keep on me at all times for just such an emergency) and fix the master boot record myself. It was total bunk and I would like to go ahead and say “fuck Dell MediaDirect”. I almost had a goddamn heart attack because of that broken ass piece of software. In any case the way I fixed it is below.
The Fix:
If you found this article because you pressed the “MediaDirect” button and can no longer boot your system, then this is where you wanna be cause this is how I fixed it and maintained my system without a full re-install.
NOTE: The operations performed below are fairly dangerous and I would recommend backing up data beforehand… that is if you could boot into your system… which you can’t… which means this is probably your last resort… In any case you could lose all your data if you issue the wrong command so be careful and remember I take NO responsibility if you do turn your computer into a paper-weight following my directions.
Step 1 (Get a LiveCD):
I would recommend keeping one of these little godsends around at all times because if all else fails you can boot from the CD and have full access to your entire system that way. I used Ubuntu 9.10 for this little fix, but I imagine any Linux Distro that has a LiveCD would work in a similar way. You can get Ubuntu here. Once you have Ubuntu just burn the disc image to a CD and boom, you have a LiveCD.
Step 2 (Boot the CD):
Now to boot from the CD. On my machine that involved pressing F12 during startup and selecting the CD/DVD drive, but your system may be different, you’re pretty much on your own there. Once you have the Ubuntu menu select “Try Ubuntu without any change to your system” to boot up Ubuntu proper.
Step 3 (Open a Terminal):
Next you’ll need to start a terminal, which can be done by selecting Applications>Accessories>Terminal in Ubuntu.
Step 4 (Dangerous Master Boot Record Modifications):
Now for the dangerous stuff we talked about. Once you’ve opened the terminal you need to execute the following commands:
sudo fdisk /dev/sda
This will launch fdisk, which will allow you to edit the bootable partitions. Next type:
p
Yup, just p, and then look for the tiny partition marked with a *. This is where your problem lies. Your computer is stuck booting into that piece-of-shit MediaDirect. Now you need to disable that paritions booting capabilities, here’s the commands:
a
(drive number)
Note that you should enter the drive number of the MediaDirect partition which is its position on the list you generated using p. After run this again:
p
Make sure at least one other partition is marked with a * or your computer won’t be able to boot at all, which is still pretty useless. In general pick the largest partition and give it boot privileges using:
a
(drive number)
Again replace (drive number) with the proper drive number based on your list from p. Run p once more to check the settings and then run:
w
This writes the changes you just make to disk. Now just reboot and pray for the best.
Well I hope this helps some other poor unfortunate souls, and remember, if it happens to you please post a disparaging comment about Dell somewhere on the internet (here even).
Peace!
Luke