Installing Linux, a dual boot system with Windows and Linux

Hi all
This is a OpenSUSE only variant of a thread I started here

Installing linux alongside windows can be quite daunting for new users. The fear of losing data is always
there, besides other problems like corrupting your boot record, getting a completely unusable system at the end, etc.
The purpose of this tutorial is to simplify the process by the use of screenshots of an actual installation (a picture is equal to a thousand words someone said).
I have covered two flavours of linux, Ubuntu and OpenSUSE. The process is very similar in other
flavours.

Assesing your hard disk, partitions
To install linux on your PC you should first make some free space available on your hard disk for the install. Click
on Start->Control Panel->Performance and Maintainance->Administrative Tools->Computer Management

http://img180.imageshack.us/img180/116/xp1su6.th.png](http://img180.imageshack.us/my.php?image=xp1su6.png) http://img359.imageshack.us/img359/7670/xp2fw4.th.png](http://img359.imageshack.us/my.php?image=xp2fw4.png) http://img519.imageshack.us/img519/4714/xp3ru7.th.png](http://img519.imageshack.us/my.php?image=xp3ru7.png) http://img128.imageshack.us/img128/2121/xp4ux7.th.png](http://img128.imageshack.us/my.php?image=xp4ux7.png)

Click on Disk Management System

I have covered a few possible scenarios you might face.

[list]
[li]You have a 40 GB hard disk made into four more or less equal partitions. You can see your partitions and their corresponding drive letters (C,D,etc.) in the figure below.
[/li]

The idea is to free at least 20 GB for our linux install. This might seem like a lot and other’s might disagree, but if you are looking for a full experience I’d recommend it. We will need this space later to make three partitons

Swap - Space=1.5 to 2 times your RAM
Root (designated as /) - stores your OS and system files, programs, etc. - Space approx 8GB
Home (designated as /home) - like the Documents and Settings folder of Windows XP. Stores your preferences, bookmarks, wallpaper, My Documents and Desktop. - Space - remaining space

The / is like the base directory in linux, into which all other directories (folders) are incorporated or “mounted”. I took a very long time to understand the concept of “mounting”. Don’t worry about it for now, you will understand when the time is right.

So here you will have to backup the data in the last two partitions by writing it to a CD or DVD or copying to another hard disk, and delete them as shown below

[li]You have a 40 GB hard disk with only one partition “C”. This is the scenario in many laptops. The other partition may be a back up or EISA partition. Now you’re in for a rough ride. If you have made the back up CDs and DVDs from the EISA partition using the tool the vendor has provided you, you can delete the EISA partiton but you will have to first backup your data, delete all partition using a partition manager like GParted, make a small C partiton, say 20 GB, with the ntfs filesystem using GParted, and then boot from your recovery cd/dvd and restore the system.
[/li]
[/list]

Resizing Partitions is something I do not recommend with any tool unless you have uninterrupted power supply in your part of the country/world or a power back up solution that lasts for a few hours.

Hardware check
With the advances in Linux and the new kernels this step may not be necessary, but will help you in troubleshooting later if required.
Click on Start->Control Panel->Performance and Maintainance->System
Click on the Hardware tab->Device Manager button
Make a note of the model numbers of your monitor, graphics card (display adapter), and any other devices.

Installing Linux
You are now going to install linux to the empty space on your hard disk that you prepared in the earlier step. Linux by itself is not a single monolithic entity unlike some popular operating systems. It is very much a collaborative effort. It consists of a core (also called a kernel) on which the entire system is built on an runs. Linux is modular. As you become more experienced, you will realise that you can add and remove modules depending on your requirement and create a highly customised system, to make a long story short - NO **** is forced down your throat. No hidden agandas, no long cryptic EULAs (the thingy which you blindly scroll down and click “I agree” without batting an eyelid), and no leash up your arse (pardon the bad language but that’s exactly how I feel).

So let’s get started !!

The first step in installing any linux distro involves booting from a live media, usually a CD or DVD.
SUSE CDs and DVDs can be downloaded from openSUSE.org

To boot from the cd or dvd your bios should have it as the first boot device. Alternatively some bios allow you to select the boot device. The key used for this varies with different manufacturers. To see if your bios has a boot device select menu please refer the manual of your motherboard or take help from a more experienced friend.

I suggest you try the following - insert the cd or dvd and start your pc. If your pc boots too fast simply restart windows with the cd or dvd in the drive and see what happens. Very often the optical drive would have been set as the first boot device and the system boots from the cd automatically. If it still goes to windows and refuses to boot from your cd or dvd then you will have to adjust your bios settings or search for a boot menu as I described earlier.

OpenSUSE Installation
If your pc boots successfully from your OpenSUSE DVD you will see this screen

Use the Up and Down arrow keys on your keyboard to select the option Installation and press ENTER. The system will start booting.

http://img143.imageshack.us/img143/2226/xp42xh3.th.png](http://img143.imageshack.us/my.php?image=xp42xh3.png) http://img143.imageshack.us/img143/7710/xp43lu3.th.png](http://img143.imageshack.us/my.php?image=xp43lu3.png) http://img143.imageshack.us/img143/2193/xp44ae2.th.png](http://img143.imageshack.us/my.php?image=xp44ae2.png) http://img143.imageshack.us/img143/7053/xp45ox8.th.png](http://img143.imageshack.us/my.php?image=xp45ox8.png)

http://img367.imageshack.us/img367/9301/xp46pw8.th.png](http://img367.imageshack.us/my.php?image=xp46pw8.png)

You will see the Welcome screen in your language. Make sure your language selection and keyboard selection is right, tick I Agree and click next

http://img143.imageshack.us/img143/4643/xp47ib0.th.png](http://img143.imageshack.us/my.php?image=xp47ib0.png)

Your system will be probed

http://img367.imageshack.us/img367/7598/xp48bi4.th.png](http://img367.imageshack.us/my.php?image=xp48bi4.png)

Select New Installation, and uncheck Use Automatic Configuration

http://img143.imageshack.us/img143/994/xp49qc4.th.png](http://img143.imageshack.us/my.php?image=xp49qc4.png)

Select your timezone from the list, and click forward

http://img148.imageshack.us/img148/3669/xp50ze6.th.png](http://img148.imageshack.us/my.php?image=xp50ze6.png) http://img376.imageshack.us/img376/6728/xp51ka0.th.png](http://img376.imageshack.us/my.php?image=xp51ka0.png)

Choose your desktop. I’d recommend GNOME desktop if you have <b>less than</b> 512 MB RAM, and KDE 3.5 if you have more than that.

http://img264.imageshack.us/img264/4079/xp52cf1.th.png](http://img264.imageshack.us/my.php?image=xp52cf1.png)

You will now be presented with the partitioning options. OpenSUSE “intelligently” offers to resize your windows partition and do everything automatically. I advise AGAINST using this option, and instead click Create Partition Setup

http://img264.imageshack.us/img264/8732/xp53qp0.th.png](http://img264.imageshack.us/my.php?image=xp53qp0.png)

Select Custom Partitioning (for experts)

http://img355.imageshack.us/img355/1707/xp54oc2.th.png](http://img355.imageshack.us/my.php?image=xp54oc2.png)

You will now come to a screen which shows you the layout of partiitons on your hard disk. Note the nomenclature used in linux. The first hard disk is labelled as /dev/sda Partitions withing this are labelled as /dev/sda1 /dev/sda2 so on and so forth. Now in this example, there are some numbers missing inbetween as you can see. These have gone for the extended partition. /dev/sda5 is actually my D drive, but as it is not formatted it shows up as an unknown partition. /dev/sda1 is the C drive and has an ntfs filesystem.

http://img355.imageshack.us/img355/5317/xp55ae8.th.png](http://img355.imageshack.us/my.php?image=xp55ae8.png)

Select /dev/sda and click on the the Create button, you will get a dialog box as shown below

http://img264.imageshack.us/img264/2695/xp56ni6.th.png](http://img264.imageshack.us/my.php?image=xp56ni6.png)

Click the dropdown list against filesystem and select swap

http://img376.imageshack.us/img376/1585/xp57jz7.th.png](http://img376.imageshack.us/my.php?image=xp57jz7.png)

You now have to enter the size of the swap partition. For example, if you want a partition of 512 MB size, in the End box type +512M as shown below. If you want 1 GB then you have to type +1GB. Swap partition size is typically 1.5 to 2 times the amount of RAM you have.

http://img376.imageshack.us/img376/4620/xp58zr3.th.png](http://img376.imageshack.us/my.php?image=xp58zr3.png)

Click OK. Now again select /dev/sda and click on the the Create button, you will get a dialog box as shown below. Select the filesystem as ext3, End as +8GB, mount point as /

http://img355.imageshack.us/img355/8647/xp59wu8.th.png](http://img355.imageshack.us/my.php?image=xp59wu8.png)

Click OK. Now again select /dev/sda and click on the the Create button, you will get a dialog box as shown below. Select the filesystem as ext3, mount point as /home
Leave the End value as it is

http://img264.imageshack.us/img264/3276/xp60bm1.th.png](http://img264.imageshack.us/my.php?image=xp60bm1.png)

The proposed partition table layout will get updated as shown

http://img170.imageshack.us/img170/5170/xp61eu6.th.png](http://img170.imageshack.us/my.php?image=xp61eu6.png)

You now have to mount your Windows partitions. This will enable you to read and write to your windows partitions from linux. Windows partitions are marked as ntfs, fat16 or fat32 in the partitoner. Usually, as is also the case in this example, the C drive corresponds to the first partition on the hard disk, so it is /dev/sda1
You can also confirm this by seeing the size of the partiton in the partitioner (I am assuming that you know the size of your windows drives/partitions). So select /dev/sda1 and click Edit. You will get this dialog box

http://img92.imageshack.us/img92/5066/xp62md0.th.png](http://img92.imageshack.us/my.php?image=xp62md0.png)

Now type /windows/c as shown in the mount point box. Click on Fstab options

http://img292.imageshack.us/img292/1189/xp63dr5.th.png](http://img292.imageshack.us/my.php?image=xp63dr5.png)

In this tick mountable by user, and in the Arbitrary option value box add the entry

umask=0002

inbetween users, and fmask=133
so it should read

…users,umask=0002,fmask=133…

Please note it is umask and not unmask Click OK

Do the same for other windows partitions, the only difference being the difference in mount point. D will become /windows/d E will become /windows/E so on and so forth. There is no need to mount the partition marked as extended partition.

This is how your proposed partition table layout finally looks like.

http://img397.imageshack.us/img397/5788/xp66mj9.th.png](http://img397.imageshack.us/my.php?image=xp66mj9.png)

Remember, nothing has actually happened to your partitions as yet, this is just a proposed layout, so if you make a mistake in your newly created linux partitions you can simply go back and redo the partitioning. Note the partition table down in a book and keep it safely. You will require it to rescue your system if need be, and to install the GAG boot loader later (optional but desirable). Click Next.

You will be shown, one last time the partitioning tasks that the installer is going to perform. Click Next

http://img170.imageshack.us/img170/6360/xp67oq2.th.png](http://img170.imageshack.us/my.php?image=xp67oq2.png)

You will now be asked some details about yourself. You will have to give a password. Make sure you don’t forget it. I have unchecked Automatic login and Use this password for system administrator. This need not be done if you wish so. I am kind of fixated with the traditional OpenSUSE install. Fill in the details and click next.

http://img292.imageshack.us/img292/8861/xp68cs4.th.png](http://img292.imageshack.us/my.php?image=xp68cs4.png)

If your password is weak you will get these prompts. I usually give yes to override them, this is optional, you may take them seriously and give a strong password if you are in a multiuser environment.

http://img92.imageshack.us/img92/9701/xp69kn6.th.png](http://img92.imageshack.us/my.php?image=xp69kn6.png) http://img170.imageshack.us/img170/9650/xp70yy8.th.png](http://img170.imageshack.us/my.php?image=xp70yy8.png)

Key in your root password (also called administrator password) and click next

http://img380.imageshack.us/img380/5817/xp71wp9.th.png](http://img380.imageshack.us/my.php?image=xp71wp9.png)

You will now be shown an overview of system wide changes that are going to be made and what is going to be installed.

http://img247.imageshack.us/img247/8146/xp72pg0.th.png](http://img247.imageshack.us/my.php?image=xp72pg0.png)

Click on Booting. As you can see there is a tick mark against OpenSUSE indicating that it will boot automatically in case you do not make an OS selection in 10 seconds at the time of booting. In case you want to make Windows the default select windows and click Set as Default, and click OK. Else leave it as it is.

http://img247.imageshack.us/img247/6774/xp73vf8.th.png](http://img247.imageshack.us/my.php?image=xp73vf8.png)

You will be shown an updated overview of system wide changes that are going to be made and what is going to be installed.

http://img247.imageshack.us/img247/3353/xp74rq4.th.png](http://img247.imageshack.us/my.php?image=xp74rq4.png)

Click Install, and in the popup dialog box, Install.

http://img264.imageshack.us/img264/5703/xp75hz1.th.png](http://img264.imageshack.us/my.php?image=xp75hz1.png)

http://img388.imageshack.us/img388/6231/xp76nx4.th.png](http://img388.imageshack.us/my.php?image=xp76nx4.png) http://img388.imageshack.us/img388/4899/xp77yp7.th.png](http://img388.imageshack.us/my.php?image=xp77yp7.png) http://img388.imageshack.us/img388/9391/xp78wu2.th.png](http://img388.imageshack.us/my.php?image=xp78wu2.png) http://img264.imageshack.us/img264/8093/xp79rt4.th.png](http://img264.imageshack.us/my.php?image=xp79rt4.png)

http://img264.imageshack.us/img264/7158/xp80iw0.th.png](http://img264.imageshack.us/my.php?image=xp80iw0.png)

You will be shown your host name and domain name. Leave everything as it is unless you know what you’re doing. Click Next

http://img355.imageshack.us/img355/6516/xp81rn9.th.png](http://img355.imageshack.us/my.php?image=xp81rn9.png)

The Network Configuration will come up.

http://img377.imageshack.us/img377/3738/xp82og9.th.png](http://img377.imageshack.us/my.php?image=xp82og9.png) http://img377.imageshack.us/img377/933/xp83hz1.th.png](http://img377.imageshack.us/my.php?image=xp83hz1.png)

Click Disable IPv6. You’ll get this warning. Click OK and click next.

http://img397.imageshack.us/img397/3382/xp84kg8.th.png](http://img397.imageshack.us/my.php?image=xp84kg8.png)

Click Next till you get the hardware configuration window.

http://img355.imageshack.us/img355/9528/xp85lt9.th.png](http://img355.imageshack.us/my.php?image=xp85lt9.png) http://img355.imageshack.us/img355/9383/xp86iw2.th.png](http://img355.imageshack.us/my.php?image=xp86iw2.png) http://img397.imageshack.us/img397/2271/xp87ow5.th.png](http://img397.imageshack.us/my.php?image=xp87ow5.png)

OpenSUSE will automatically probe your system and configure your hardware. Your screen may blank momentarily to configure your display, don’t panic ! Just wait patiently. You can configure your printer from here.

http://img355.imageshack.us/img355/5198/xp88on8.th.png](http://img355.imageshack.us/my.php?image=xp88on8.png) http://img355.imageshack.us/img355/2106/xp89bd7.th.png](http://img355.imageshack.us/my.php?image=xp89bd7.png) http://img377.imageshack.us/img377/4904/xp90gn9.th.png](http://img377.imageshack.us/my.php?image=xp90gn9.png)

Click Next, and then Finish.

http://img152.imageshack.us/img152/9967/xp91qk3.th.png](http://img152.imageshack.us/my.php?image=xp91qk3.png)

Enjoy your OpenSUSE Linux!!!

This may be difficult for first time users who have no idea on command line usage in dos or windows. If you are familiar with the cd command to browse directories then you may proceed with Method 1, else use Method 2.

Ubuntu and OpenSUSE by default use the GRUB bootloader which is again, by default, written to the first sector of your hard disk, a location for the Master Boot Record (MBR). If anything happens to this boot record because of a virus attack or a system bug your system simply won’t boot. Updating Ubuntu or OpenSUSE over the internet, updates (especially kernel updates) sometimes mess up the boot loader because of wrong entries or pointing. You’ll find enough of these instances in the official forums. This can be avoided if you put your GRUB bootloader in your / partition instead of your MBR. In your MBR you can install any third party bootloader like GAG as I have described below. This is optional and if you are happy with GRUB you need not install GAG. If you want to learn more about GRUB go through this wonderful article.

Download GAG from here

gag4_10.zip

You can also get the latest version from here
Download section

Save it on your linux desktop.

Installation Method 1:
Right click on the file and select Extract here. Open a terminal and browse to the folder using the cd command. In that folder enter the linux folder using the cd command.

At prompt type

sudo ./copy-file.sh

and press ENTER

Then type

sudo ./gag-install /dev/sda

and press ENTER. If this does not work (in OpenSUSE), type su and press ENTER to become root, and then type

./gag-install /dev/sda

and press ENTER.

Restart your PC

Installation Method 2 (EASY):
Right click on the file you just downloaded and select Extract here. Open the folder, you will find a file cdrom.iso in it, write that file to a cd using the default cd writing software in linux (simply double click on it and burn). Restart your PC and boot from the cd.

Whichever of the above you have followed, you will now get this screen

http://img123.imageshack.us/img123/7092/xp48gc6.th.png](http://img123.imageshack.us/my.php?image=xp48gc6.png)

Press 4 to install GAG. You will get this screen next

http://img123.imageshack.us/img123/5369/xp49hk2.th.png](http://img123.imageshack.us/my.php?image=xp49hk2.png)

Select your keyboard (usually 1 in India)

then your language

http://img411.imageshack.us/img411/1084/xp50ra6.th.png](http://img411.imageshack.us/my.php?image=xp50ra6.png)

You will then come to this screen. press S to setup the bootloader

http://img123.imageshack.us/img123/5121/xp51ri0.th.png](http://img123.imageshack.us/my.php?image=xp51ri0.png)

The alphabets you have to press to execute a function are highlighted in red in the GAG set up screen. Keys are case insensitive. Press A to add an operating system

http://img155.imageshack.us/img155/6761/xp53rz0.th.png](http://img155.imageshack.us/my.php?image=xp53rz0.png)

As you can see, partition A is the floppy, B is the first windows partition, so press B

http://img120.imageshack.us/img120/9020/xp54ni5.th.png](http://img120.imageshack.us/my.php?image=xp54ni5.png)

You will now have to type a name, say Windows
http://img155.imageshack.us/img155/9198/xp55kd5.th.png](http://img155.imageshack.us/my.php?image=xp55kd5.png)

You will have to now type a password, optionally, so press ENTER to avoid giving one
http://img155.imageshack.us/img155/8981/xp56io8.th.png](http://img155.imageshack.us/my.php?image=xp56io8.png)

You now have to select an icon, Press C for windows
http://img120.imageshack.us/img120/4530/xp57gs8.th.png](http://img120.imageshack.us/my.php?image=xp57gs8.png)

Now you will come back to this screen
http://img353.imageshack.us/img353/4060/xp58ui9.th.png](http://img353.imageshack.us/my.php?image=xp58ui9.png)

Press A to add an operating system

http://img223.imageshack.us/img223/6342/xp59ym9.th.png](http://img223.imageshack.us/my.php?image=xp59ym9.png)

Now if you remember the first partition you made was swap, so that’s D, followed by /, that’s E over here (refer the partition table in your notes). So press E (in this example).

You will now have to type a name, say Linux
http://img353.imageshack.us/img353/9378/xp60ro3.th.png](http://img353.imageshack.us/my.php?image=xp60ro3.png)

You will have to now type a password, optionally, so press ENTER to avoid giving one
http://img155.imageshack.us/img155/8981/xp56io8.th.png](http://img155.imageshack.us/my.php?image=xp56io8.png)

You now have to select an icon, Press D for Linux
http://img120.imageshack.us/img120/4530/xp57gs8.th.png](http://img120.imageshack.us/my.php?image=xp57gs8.png)

Now you will come back to this screen
http://img353.imageshack.us/img353/4060/xp58ui9.th.png](http://img353.imageshack.us/my.php?image=xp58ui9.png)

Press H to save in the hard disk, you will get this message, press ENTER

http://img84.imageshack.us/img84/6605/xp61fn0.th.png](http://img84.imageshack.us/my.php?image=xp61fn0.png)

Press R to return to the main menu, you should see this

http://img329.imageshack.us/img329/9237/xp63gf9.th.png](http://img329.imageshack.us/my.php?image=xp63gf9.png)

Extra options in the setup include setting a timer for a default OS to boot.
Read the index.html file in the docs folder of the gag file you downloaded.
All the best !!!