The pre-installed Windows Vista Home in my laptop just pissing me off. It came to a point where most shortcuts in "My Documents" do not work anymore as it prompts me that I don't have the rights to those directories. My open source programs kept on crashing. Until I decided to dual boot it with PCLinuxOS 2009.
The choice of PCLinux 2009 was that, it was the only LiveCD distro (and Mandriva Live) that enabled my wireless connectivity out-of-the-box. It was unfortunate that Ubuntu, gOS, Fedora Core nor Zenwalk failed in that respect.
The installation of PCLinuxOS was a breeze with no glitch at all. The bootloader was able to detect the current Windows. I was able to dual boot Linux with Windows Vista. Now came Windows 7. I decided to upgrade my pre-installed OS with this much hyped Windows.Ãƒâ€šÃ‚Â Like the PCLinuxOS 2009 installation, I did not have any problem not until I want to boot on my PCLinuxOS. Windows 7 have overwritten GRUB boot loader and failed (or deliberately did not) to include non-Windows operating systems.
Why do I still need Windows where in fact I have my Linux? Well, I still use some Windows only programs. I only use it for these programs nothing else.
Back to my problem, how can I reactivate my Linux. I don't want to re-install it as I did so much custom configuration and I don't want to lose them. I tried searching the net about GRUB re-installation. The simplest is Doctor's Blog.
To summarize the steps in re-installing GRUB:
- Boot with the PCLinuxOS 2009 LiveCD as root
- Open terminal as a super user
- Type "grub" then enter. The grub> prompt will appear.
- Type grub>find /boot/grub/stage1 then enter. A list similar to this will appear.
- You need to know which partition your Linux OS is located. In my case it is (hd0,4) thus I typed the commands
grub> root (hd0,4)
grub> setup (hd0)
- Exit GRUB by typing "quit"
- Restart you computer. The GRUB bootloader should now appear.
In my case, the problem did not stop there. If I select Windows 7, it just fail to start. So, at this instance, my Linux works but my Windows not.
I remembered that during the installation of Windows 7, there was a menu about repair so I tried clicking it, then selected restore from a previous restore point. After this process, I restarted my laptop and was able to boot either PCLinuxOS or Windows 7 without any glitch at all.