Installing Linux, a dual boot system with Windows and Linux

Status
Not open for further replies.

NucleusKore

TheSaint
PDF version of this guide - *www.mediafire.com/?b1zushbgmeo
-------------------------------------------------------------------------------------------------------------
*img253.imageshack.us/img253/8504/new14juneue0.gif Dual Boot with Ubuntu 8.10 - Click Here *img253.imageshack.us/img253/8504/new14juneue0.gif

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.

[size=+2]Assesing your hard disk, partitions[/size]
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

*img180.imageshack.us/img180/116/xp1su6.th.png *img359.imageshack.us/img359/7670/xp2fw4.th.png *img519.imageshack.us/img519/4714/xp3ru7.th.png *img128.imageshack.us/img128/2121/xp4ux7.th.png

Click on Disk Management System

*img128.imageshack.us/img128/9708/xp5hb3.th.png

I have covered a few possible scenarios you might face.

  • 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.

    *img128.imageshack.us/img128/9708/xp5hb3.th.png

    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

    *img374.imageshack.us/img374/217/xp6tg7.th.png *img376.imageshack.us/img376/813/xp7oy8.th.png *img523.imageshack.us/img523/6247/xp8mz9.th.png *img201.imageshack.us/img201/1411/xp9mp1.th.png
  • 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.

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.

[size=+2]Hardware check[/size]
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.

[size=+2]Installing Linux[/size]
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).

[size=+2]So let's get started !![/size]

I shall first describe the installation with Ubuntu 8.04, followed by OpenSUSE 11.0
The first step in installing any linux distro involves booting from a live media, usually a CD or DVD.
Ubuntu CDs are available for free from SHIPIT
You can also download it from Ubuntu website or ask a LUG (Linux User Group) near you. SUSE CDs and DVDs can be downloaded from *www.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.

Go to post number 19 of this thread for OpenSUSE installation or click here

[size=+2]Ubuntu Installation[/size]

If your pc boot successfully from your ubuntu cd you will see this screen

*img119.imageshack.us/img119/5418/xp13am8.th.png

It is asking you to select the language. Use your arrow keys to select the system language and press ENTER. You will then get this screen

*img119.imageshack.us/img119/8603/xp14lc7.th.png
 
Last edited:
OP
NucleusKore

NucleusKore

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

*img509.imageshack.us/img509/1696/xp15gg6.th.png *img401.imageshack.us/img401/4421/xp16kt4.th.png

You will see the Welcome screen in your language. Make sure your language selection is right and click forward

*img390.imageshack.us/img390/2749/xp17bz9.th.png

Select your timezone from the list, it is arranged by continent, and click forward

*img87.imageshack.us/img87/9237/xp18hh3.th.png

Select your keyboard type, most common is US International (see picture below), but make sure and use the test box made available to you to check your selection. Check not only for alphabets, capital and small, but also for special characters like ' " ? / + ; If all these are correct then your choice of keybord layout is fine, click forward

*img230.imageshack.us/img230/3234/xp19nn2.th.png

You will now be presented with the partitioning options. Ubuntu "intelligently" offers to resize your windows partition and do everything automatically. I advise AGAINST using this option, and instead select the manual option and click forward

*img230.imageshack.us/img230/9577/xp20lu4.th.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.

*img295.imageshack.us/img295/7818/xp21rn6.th.png

Select free space and click on the "New Partition" button as shown below

*img87.imageshack.us/img87/4752/xp22ze6.th.png

Select type of partition logical, size 1.5 times your RAM (512 in this example), location for new partition Begining, Use as: swap area, and click OK

*img116.imageshack.us/img116/7241/xp23lt3.th.png

The proposed partition table layout will get updated as shown

*img116.imageshack.us/img116/7940/xp24dt2.th.png *img329.imageshack.us/img329/6503/xp25nf7.th.png

and you will get this

*img148.imageshack.us/img148/4213/xp26ee2.th.png

Again select free space and click New Partition. Select type of partition logical, size 8000 MB or more, location for new partition Begining, Use as: Ext 3 journaling file system, mount point: / and click OK

*img148.imageshack.us/img148/3279/xp27ju6.th.png

The proposed partition table layout will get updated. Again select free space and click New Partition. Select type of partition logical, size: don't touch anything, let it be as it is, location for new partition Begining, Use as: Ext 3 journaling file system, mount point: /home and click OK. Note that you will manually have to type in the mount point in the box provided as /home

*img134.imageshack.us/img134/623/xp28du2.th.png
 
OP
NucleusKore

NucleusKore

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

*img355.imageshack.us/img355/4086/xp29oi7.th.png *img127.imageshack.us/img127/8548/xp32sk4.th.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. CLick Forward.

You will now be asked some details about yourself. You will have to give a password. Make sure you don't forget it. Click Forward

*img46.imageshack.us/img46/4590/xp30vt9.th.png

Import your windows settings. This is optional you can leave it unchecked as shown in the second figure and click forward.

*img46.imageshack.us/img46/6974/xp31fe3.th.png

Click Install, the installation will begin with the formatting and copying of files to your hard disk.
*img171.imageshack.us/img171/3966/xp33fo8.th.png*img206.imageshack.us/img206/5447/xp34sj6.th.png

At the end of installation click on the Restart Now button

*img122.imageshack.us/img122/2033/xp38go7.th.png

As the system shuts down, you will get a message telling you to remove the cd from the drive and press ENTER to reboot the system which you must do.
*img99.imageshack.us/img99/1012/xp39by7.th.png

As the system boots for the first time after your installation, you will see this screen. This is the GRUB boot loader from where you can choose between Ubuntu Linux (first entry) and Windows (last entry), using the up and down arrow keys on your keyboard and press ENTER. If you do not respond in 10 seconds it will boot to Ubuntu automatically.

Enjoy your Ubuntu !!!

*img376.imageshack.us/img376/927/xp40kd2.th.png

Optional: Installing the GAG Bootloader
Go to post number 23 of this thread or click here
 
Last edited:

Cool G5

Conversation Architect
Awesome post Nucleuskore. You have written in a very simple language & that's what I liked the most. The newbie's will find it easier to follow.

Reps for you. :)
This should be made sticky.
 
But wait
I've got a prob... :(
I've got 4 partitions, roughly 50GB each
one partition is relatively empty
I want to give 10gb to ubuntu
so once i delete that partition,
how do i create a 40GB partition from the partition I deleted?
Also, what option do i select in the "partioning" part of ubuntu installation so that it installs by creating partition of the remaining space?
And how do I make Windows as first entry in GRUB?
Please reply
 

Faun

Wahahaha~!
Staff member
1.how do i create a 40GB partition from the partition I deleted?
2.Also, what option do i select in the "partioning" part of ubuntu installation so that it installs by creating partition of the remaining space?
3.And how do I make Windows as first entry in GRUB?
Please reply
1. Its as simple as create and then specifying size of 40GB
2. Once you have created a partition, its easy to go for custom partition.
3. First install linux, then its just a matter of changing a number in GRUB menu.lst file.


@Nukleuskore
Images speak for itself *s269.photobucket.com/albums/jj44/visio159/Unismilies/70.png
 
Last edited:

Faun

Wahahaha~!
Staff member
^^I meant Manual Option (its like doing it yourself)
*img230.imageshack.us/my.php?image=xp20lu4.png

See the mouse pointer. And read what Nucleuskore has written.
 

Garbage

God of Mistakes...
Very nice tut Nucleuscore..

BTW, /me is asking admins to increase post character limits for NucleusCore.. :D
 
T

The Conqueror

Guest
^Also the Image Limits
And What an amazing tutorial you have made! :)
Very Very Useful for those who are new to linux world.
 

Garbage

God of Mistakes...
yeh.. He is coming with great HELP now a days...
@ NucleusCore bhai... kya khhate ho aaj kal ?? :p

Same for AptOnCD and OpenSuSE updates thread...

Keep it up... :)
 
OP
NucleusKore

NucleusKore

TheSaint
This tutorial is far from over, still have to write about OpenSUSE. Hope to finish in a week. My parents and brothers are down on holiday, so everyone wants the PC. Will have it all to myself after the 27th.

*s269.photobucket.com/albums/jj44/visio159/Unismilies/38large.png
 

mediator

Technomancer
All hail @nucleuskore. U shud contact Digit & offer to write the next magazine covering the same subject & ofcors for a moderate fee with which u may give a moderate party! Your efforts r admirable. Amazing tute man and so is ur site! Neat...................

Hope to see some 'M.D' stuff on ur site tooo. ;)
 

Ecko

Wandering In Tecno Land
Shocked to see you were using windows for initial partitioning (rather formatting)
Ubuntu has got the best 1 ever I've seen :D & even i use live CD just for it
BTW excellent tut thumbs up
 
OP
NucleusKore

NucleusKore

TheSaint
Shocked to see you were using windows for initial partitioning (rather formatting)
Ubuntu has got the best 1 ever I've seen :D & even i use live CD just for it
BTW excellent tut thumbs up

This IS for windows users. Traditional Windows home users may find even the disk management system confusing if they see it for the first time.
 
OP
NucleusKore

NucleusKore

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

*img367.imageshack.us/img367/9452/xp41dx9.th.png

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

*img143.imageshack.us/img143/2226/xp42xh3.th.png *img143.imageshack.us/img143/7710/xp43lu3.th.png *img143.imageshack.us/img143/2193/xp44ae2.th.png *img143.imageshack.us/img143/7053/xp45ox8.th.png *img367.imageshack.us/img367/9301/xp46pw8.th.png

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

*img143.imageshack.us/img143/4643/xp47ib0.th.png

Your system will be probed

*img367.imageshack.us/img367/7598/xp48bi4.th.png

Select New Installation, and uncheck Use Automatic Configuration

*img143.imageshack.us/img143/994/xp49qc4.th.png

Select your timezone from the list, and click forward

*img148.imageshack.us/img148/3669/xp50ze6.th.png *img376.imageshack.us/img376/6728/xp51ka0.th.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.

*img264.imageshack.us/img264/4079/xp52cf1.th.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

*img264.imageshack.us/img264/8732/xp53qp0.th.png

Select Custom Partitioning (for experts)

*img355.imageshack.us/img355/1707/xp54oc2.th.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.

*img355.imageshack.us/img355/5317/xp55ae8.th.png
 
OP
NucleusKore

NucleusKore

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

*img264.imageshack.us/img264/2695/xp56ni6.th.png

Click the dropdown list against filesystem and select swap

*img376.imageshack.us/img376/1585/xp57jz7.th.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.


*img376.imageshack.us/img376/4620/xp58zr3.th.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 /

*img355.imageshack.us/img355/8647/xp59wu8.th.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

*img264.imageshack.us/img264/3276/xp60bm1.th.png

The proposed partition table layout will get updated as shown

*img170.imageshack.us/img170/5170/xp61eu6.th.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

*img92.imageshack.us/img92/5066/xp62md0.th.png

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

*img292.imageshack.us/img292/1189/xp63dr5.th.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.

*img397.imageshack.us/img397/5788/xp66mj9.th.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

*img170.imageshack.us/img170/6360/xp67oq2.th.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.

*img292.imageshack.us/img292/8861/xp68cs4.th.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.

*img92.imageshack.us/img92/9701/xp69kn6.th.png *img170.imageshack.us/img170/9650/xp70yy8.th.png
 
Status
Not open for further replies.
Top Bottom