Getting Linux back after Windows reinstallation

Many of us have dual-boot system which have Linux and Windows( or any other, say, Mac OSX etc… ) both installed. We have a operating-system-choice screen just after BIOS gets checked, by which we can choose, which OS to load in a session.
This is the Boot Loader (usually GRUB or LiLo). It has some commands (editable) by which it just gets the control from Master Boot Record (MBR) and chainloads the volume boot record (VBR) of the active (primary) partition where the bootable system image resides.

During Linux installation, we have GRUB installed in our system, so it can directly detects the other already installed operating systems in the HDD. Thus it produces the OS-Choice screen at the startup and we can choose which OS to load.

But the problem arises, if we have to reinstall/repair the previous OS in the same partition it was before.
i.e : s’ppose, windows was in C:\ and we’re trying to reinstall windows again on same partition C:\

During installation, every OS overwrites the MBR and keeps it’s fresh copy. So, if you have previously installed the Bootloader (e.g : GRUB ), then it’ll dessapear and you’ll not be able to boot into Linux. After startup, system will directly boot into Windows.

Now, get one point clear that the Linux OS is still intact. you just have lost the pointer how and from where to load it. Because, it was the job of your bootloader installed in MBR and you’ve overwritten the MBR, your bootloader is now history! 😛

Clearly, the solution is to install the bootloader once again so that it can detect both ( even more than 2 ) the OS and give you the sweet OS-Choice screen once again! 😀

Here’s how to do it :
step 1) put your Linux CD/DVD and boot from it in restore mode. After that, if all goes right, it’ll give you a command console.
step 2) type
chroot /mnt/sysimage
it loads the system image and present the root console.

step 3) reinstall GRUB into your MBR by typing
/sbin/grub-install /dev/hda (for ATA hard drive )
or
/sbin/grub-install /dev/sda (for SATA harddrives )

After this reboot the system and you’re done! 😀

NOTE :
I have a complication regarding the correct partition of the system images of Linux. I solved it by correcting the GRUB command. Here’s how I did it. 🙂

I went into edit command. there I saw 3 commands. The first command was for selecting the proper partition, the second was for lading the system image, and the third was initrd command.

The first command looked like,
root (hd0,1)
I just edited it to
root (hd0,2)
and everything fell perfectly into place. 🙂

One more thing… The above mentioned procedure will not work if you install windows in any other partitions other than the previous partition in which it originally was. in that case, GRUB will not be able to detect that. 😛

Hope you’ll find this tutorial useful. Wishing you people a smooth sail.

Be wise, Use Linux

Writing in Bengali in Fedora 9…! ফেডোরা ৯ লিনাক্সে বাংলা লেখা।

Yes buddies, I know that this is a pretty cliche topic and there are maybe many sites explaining the same. I also took help from specilaly অঙ্কুর বাংলা Website and some more sites which I forgot to bookmark 😦 . Specially, Project has many activities which ranges from Localisation to creating a fantastic বাংলা বানান নিরিক্ষক অভিধান for Firefox.

Well, I’m telling you *My* Procedure! It’s simple like hell.

I went into ” System > Preferences > Hardware > Keyboard ”

Then, I selected, Layouts in there. After that, I clicked “Add” and found out বাংলাদেশ প্রভাত and  ইন্ডিয়া বাংলা keyboard layouts. I added them and set the USA Layout to the defaults. There are other layouts for other Indic languages also. You can Try out that if you know them!

Now I right clicked into my gnome panel and selected, “Keyboard Layout Indicator” such that I can switch to any desired keyboard Layout when I want to.

Whoa, I’m done. Now Selecting the indic layouts, I can write in bengali in anywhere… 🙂

But now, one problem arised. I wasn’t being able to write composite letters in bengali. that is যুক্তাক্ষর . Fortunately, Kushal da was online ( who is also in অঙ্কুর বাংলা Project among his many activities and busy schedulle ) and I mailed him my problem. The response was instant, to-the-point and a complete breeze. He just said, ” use ‘/’  ” … That is, k / t = ক্ট ! 😀

More support about the layout and writing যুক্তাক্ষর can be found in here.

Whoa. I’m done fianly and chatted for almost 4 hours with her in bengali… 😀

Hope, This will be a little help to all those, who still stumbles writing in Indic font. This’s also a reason among a thousand, why one should switch into Linux… and trash Windoze 😛

Everything is sooo cool in this OS. I just Love it… 😀

Fedora Ambassador

I’d subscribed to fedoraproject.org earlier and also to Fedora Ambassador project. Recently, on 19th July, Mr. Joerg Simon sent me a mail stating that He has approoved me as a Fedora Ambassador and he’s sponsoring me! It’s a great news to me as I’m still a newbie..

Well, We exchanged about 5 emails, and he told me that Kushal da also worked with him, face to face. Later Kushalda showed me his snaps with Joerg! Always smiling, a nice and helpful person he is.

Hope, I’d be able to contribute in this project.