|
Windows7 has been the talk of the town for quite a few months and it will be the favorites due to lower system usage than Vista.. Recently I gave the new Redmond OS a ride and found it reminiscent of Vista, in-addition to few cosmetic changes that it brings with it. Well we are not here today to talk about what WIn7 is and what it does .This thread is for those people who intend to dual boot Windows 7 with any of the Linux Operating system. Prerequisites : -
In this tutorial we will make Linux and Windows7 multi-boot in which Linux has been installed first. Once you install Windows7 over any Linux installation, the Windows boot-loader will overwrite the existing grub boot loader and you will not get the Linux entry while booting you system.. In order to get a multi boot we have to restore the grub.. After installing Windows 7 over any linux distro. Insert the Linux Live Cd and boot through it. Once the desktop appears open the Terminal in Gnome or Konsole in kde . to open the respective command client you can either gain access from menu’s or simply press ALT + F2 and type the following Code:
Gnome - gnome-terminal KDE - konsole This will open the command client in the respective desktop environment. Once it is open, we have to gain root privileges Code:
Debian based disto - sudo su root Rpm based distro - su - After you have gain the desired privileges we will focus on restoring the grub and adding windows entries to it.. Type the following command as super user/root one by one Code:
grub find /boot/grub/stage1 This will show your Linux boot file location as following Code:
(hd0,1) # consider 0,1 as X,Y Note the 1′st word 0 say X indicates the hdd entry number (hard disk number -1 ) in which you have installed Linux. For Example, if you have installed the Linux in hard-disk 1 the it will show the number as 0 and if you have installed in second hard-disk as set in BIOS then it will list the number as 1. The second number output 1 say Y list the partition ( partition number -1) in which you have installed the distro.. Now once you get the numbers you have just to re-install the grub inorder to restore the default Linux boot manager Code:
root(hd0,1) setup (hd0) Note : Do not forget to replace the number with the output that you get.. Once we are done type quit and reboot the system in Linux.. Open the command client again [not in Live disc mode] and type the following commands after gaining root privileges.. Code:
For Gnome user - gedit /boot/grub/menu.lst KDE user - kwrite /boot/grub/menu.lst Add these lines at the end where other Linux entries are listed as well.. Code:
title Windows 7 (Loader) root (hd0,0) savedefault makeactive chainloader +1 Note : here first 0 indicate hard disk number -1 and second 0 indicate partition number -1.. I have installed Windows 7 in the first partition of my primary hard drive therefore the entries are shown as 0,0. It will vary with the partition and hard disk in which you have installed… That is it . You have successfully dual boot Windows 7 and Linux in your machine.. This tutorial is also applicable in case where Windows is installed first. If some distro fails to add grub and windows entries you can use the above stated method to make a multi-boot solution… I hope this tutorial helps you in multi-booting OS. You can multiboot any linux, windows or mac using the same procedure. |
| Tweet |
|
|




