Pages

Friday, August 21, 2009

Saving data & config dual boot System

Dear all,

Usually we face backup and OS formatting issues on dual boot systems. Here are few more tricks to make sure you have all mails safe (only for Thunderbird) & same firefox history, bookmarks, themes & plugins.

Case 1: If you have only Microsoft Xp/Vista installed on system, you can just install another linux. Grub will take care of your Xp installation.

Case 2: If Linux is installed already & want to installing Xp without loosing Linux.
Once XP has been installed, it will boot happily into Xp but there's no sign of Linux. To reinstate GRUB as the system bootloader it needs to be reinstalled into the MBR. Use any live CD to go in rescue mode and have your harddisk mounted in /mnt/sysimage/ (usually in Fedora/RHEL)

To enter the GRUB configuration mode, type in "sudo grub" and press Enter. Then type in the following commands after boot with live CD & excute below commands :

Commands to follow :
- sudo grub: This will open grub menu.
- root (hd0,0) : deciding hd0,0 is really important factor ! Be careful, wrong hd selection may format data.
========================================
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                       23G  7.7G   14G  36% /
/dev/sda3             190M   14M  167M   8% /boot
tmpfs                 501M  1.3M  500M   1% /dev/shm
/dev/sda2              30G   28G  2.0G  94% /mnt/d
/dev/sda5              20G  6.5G   14G  33% /mnt/c
========================================
It shows /boot mounted on sda3 from hard disk 1 so you need to select (hd0,2) if /boot is installed on sda1 then it'll be (hd0,0). 
- setup (hd0) 

It 'll simply install grub on selected sda partition. It gives clear confirmation saying "Successfully done".

- quit
& exit
Reboot system. You will find Linux, Xp is not available. Now open your  /boot/grub/grub.conf , add below line to see your Xp back in position.
============================
title XP
    rootnoverify (hd0,1)
    chainloader +1
============================
Now grub.conf 'll look like

========================================================
[root@localhost grub]# more grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,2)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=15
splashimage=(hd0,2)/grub/splash.xpm.gz
#hiddenmenu
title Fedora (2.6.27.5-117.fc10.i686)
    root (hd0,2)
    kernel /vmlinuz-2.6.27.5-117.fc10.i686 ro root=UUID=c7681502-97bc-4344-b8ff-7c231db6a741 rhgb quiet
    initrd /initrd-2.6.27.5-117.fc10.i686.img

title XP
    rootnoverify (hd0,1)
    chainloader +1
========================================================

Reboot the system. You'll get the GRUB bootloader but Vista won't be an option - we need to add this to the boot options.
If Xp is not booting, go back to Linux & add below text in grub.conf :

title Windows XP
root (hd0,1)
makeactive
chainloader +1

Save the file and reboot. When the GRUB loader launches hit ESC for the boot menu. Windows XP is the last option - select it and XP will load.

If you want to make the GRUB menu always available, boot back into Linux and edit the grub.conf file. Find the hiddenmenu text string and change it to #hiddenmenu.
To increase the menu timeout, change the default timeout 3 to something more appropriate.

To Save your mails :

Just backup your folder  /home//private/jzk0qj4u.default/Mail/Local Folders  from Linux to some FAT or NTFS partition which is also available in WinXp & mounted in Linux.
Now if you boot in WinXp.
Just install Thunderbird and change "Local Folders" path to Xp path to same Local folder  Eg: "C:\private\jzk0qj4u.default\Mail\Local Folders" .
Restart
Thunderbird . You'll get all your mails
Matter of fact I drafted half of this mail in Linux & remaining half in Linux !! Its really a great advantage to use :-)

Firefox Plugins & history :

Profile stored at location can be copy pasted and used for Linux. Off course only supported plugin will be seen at respective OS.
Win Xp path: C:\Documents and Settings\Mahendra\Application Data\Mozilla\Firefox\Profiles
Linux : /home/uname/.mozilla/..

You'll always have your all bookmarks. You can keep them safe on Foxmark site. Google chrome has released this bookmark sync feature now , which is easily done in Firefox from years !
Its always trouble less while doing any re installations and formating.  All above experimets tested ok on my own machine. Welcome if need any help :-)




Monday, August 3, 2009

Azim Premji's comment on reservation !!

Wipro chairman Mr. Azim Premji's comment on reservation:

I think we should have job reservations in all the fields. I completely support the PM and all the politicians for promoting this. Let's start the reservation with our cricket team. We should have 10 percent reservation for Muslims. 30 percent for OBC, SC. Cricket rules should be modified accordingly.

The boundary circle should be reduced for an SC/ST player. The four hit by an OBC player should be considered as a six and a six hit by an OBC player should be counted as 8 runs. An OBC player scoring 60 runs should be declared as a century.

We should influence ICC and make rules so that the pace bowlers like Shoaib Akhtar should not bowl fast balls to our OBC player.

Bowlers should bowl maximum speed of 80 km/ hour to an OBC player.

Any delivery above this speed should be made illegal.

Also we should have reservation in Olympics. In the 100 meters race, an OBC player should be given a gold medal if he runs 80 meters.

There can be reservation in Government jobs also. Let's recruit SC/ST and OBC pilots for aircrafts which are carrying t he ministers and politicians (that can really help the country...)

Ensure that only SC/ST and OBC doctors do the operations for the ministers and other politicians. (Another way of saving the country...)

Let's be creative and think of ways and means to guide INDIA forward...
Let's show the world that INDIA is a GREAT country.
Let's be proud of being an INDIAN...
 

May the good breed of politicians like ARJUN SINGH long live...

"Education's purpose is to replace an empty mind with an open one."