Skip to main content

Ive Messed Up My Master Boot Record

I got too overly excited in refreshing my OS installation in my old Inspiron 640m that I just cleaned off the Linux partition through the Drive Management Snap-in of Microsoft while I was still booted in XP. I completely forgot that the GRUB was the bootloader managing my OS selection in the Master Boot Record of my drive.

In plain English, I wanted to clear out my old Linux installation and merge the partition with the old XP partition when I run the Windows 7 install. It was a mistake to use the Drive Management Snap-in rather than having the Windows 7 installation take care of the partition clearing. This caused problems because the bootloader (GRUB) or the one which asks which OS are you going to boot is in the partition I wiped out. Therefore, I cannot go into the Linux partition (obviously, since it has already been wiped out) nor the Windows XP partition.

There is a quick fix with this by using the XP install CD and fixing the MBR by going to the command prompt and typing fixmbr more on this is discussed on this website: http://askbobrankin.com/fix_mbr.html

But unfortunately, I dont have my XP install CD with me. This would also be a problem for those people who are using a netbook and accidentally cleared their Master Boot Record.

There is a tool called SuperGRUB which could fix your GRUB boot loader (incase it just got corrupted) or if you want to just use the Windows bootloader, you could also choose to activate it instead.

You could easily create a SuperGRUB bootable USB drive by using the UNetbootin application for Windows and Linux found on this website: http://unetbootin.sourceforge.net/

When running UNetbootin, just select SuperGRUB from the dropdown


All you need to do is select your USB drive from the drop down at the bottom and it will automatically download and install SuperGRUB from the internet and create a bootable flash drive. 

UNetbootin is also a handy tool in creating bootable flash drives so you could install your favorite Linux distribution on a computer without a CD drive. Same process goes, just select the distribution from the drop down and the version, but instead of having UNetbootin download it, you would select an .ISO image of your distribution of choice. Proceed to select your desired flash drive location and press ok. 

Going back, upon booting SuperGRUB, just follow the instructions. Again, for someone who doesnt like reading manuals, I had to reboot several times until I forced myself to read the instructions before using it. Again, the instructions would tell you how it works and what to select. So save yourself some time and go through it before selecting anything on the menu. 

Comments

Post a Comment

Popular posts from this blog

Self Signed SSL Certificates

Ever wondered how to enable SSL or HTTPS on your site? If you dont want to pay for commercial SSL certificates, you could create self signed certificates for your site by following the instructions here: https://www.digitalocean.com/community/articles/how-to-create-a-ssl-certificate-on-apache-for-ubuntu-12-04 The instructions in the site above will make your default site HTTPS enabled. If you prefer having a commercial SSL, save your certificate files and key files in your server and edit the location on the /etc/apache2/sites-enabled/default to point to the directory where you stored those files.

Moving to a New Linux Web Based Torrent Client

For years, I have been using TorrentFlux (url here) as my primary torrent client situated in my Ubuntu download server. But as time went on, the developers completely abandoned the development of TorrentFlux which led to several forks which I think is still insufficient for my needs. Main GUI of TorrentFlux Ive checked several options which runs on a GUI-less environment. Since my Ubuntu server is just running on command line to save precious memory, I needed something bare, simple and is packed with features. Installing uTorrent Server is pretty straight forward. Download. Uncompress. Run. This is better than the approach of TorrentFlux which you need to setup LAMP server and create a database. More often than not, it happens to me that some of the data in the DB gets corrupted. I normally just reinstall the whole thing again. Main GUI of uTorrent Server To further elaborate on the setup process, I've gotten an excerpt from this thread which, quite simply discusses ho...

Modernizing Qwtlys Database Part 1

Its been years since I have last updated Qwtly and I was given the opportunity to play around and modernize the database for my application. I wanted to try the cloud offering of MongoDB called Atlas being that its free for a small database.  With this in mind and considering that Qwtly doesn't get traffic after I have disabled the add, edit and delete quote function along with the login, I don't see the application getting to that limit of 5GB anyway. Well, that is considering if I can even get this to work.  The first order of business was to see if we can import the MySQL export painlessly to MongoDB Atlas. I have searched for MongoDB tools, external tools, scripts, only to find old abandoned projects which would not be ideal given my situation. I have considered writing a PHP script to do it but that too would cost time. I was looking for something that consists of using existing tools or features I am familiar with along with some manual eyballing and checking. Luckily, ...