This excellent Linux installation guide was written by my friend, “The Trojan” initially on the CHIP forums. So all credits to him, for writing this excellent post(and note that I’ve taken his permission to reproduce it here).
I am writing this down considering the fact that most of the newbies who want to try out Linux or want to make a shift to it or want to use it along side with Windows are afraid of the installation and the “GEEK” status of the Linux OS. I will try to resolve the issues with both the mental fear of geek status of Linux and the small technical fear of a new operating system.
First with the mental fear as it is necessary that you are mentally ready to do something before actually trying it out! So, what is the reason people fear that Linux is tough to use. Well, Linux is not tough to use, its only that it is a bit more difficult to administer it when compared to Windows Operating systems. So first of all, before installing Linux, be ready that you will have to learn new things and some really interesting facts about the real potential of your hardware and its details will be shown to you. The rules of Linux are much different from that of Windows. But there is JUST NO NEED TO BE AFRAID OF LINUX. It will become easier as you keep on using it.
So let us start with how to install it. I will compare the Windows XP installation by the side so that it is easier to understand and be prepared while installing Linux. Another thing which I want to clarify is that for people completely new to Linux (or installation procedures of Linux), it is advised that they do backup all their important stuff before trying to install Linux as they may end with no data on the system in case they do something wrong.
OK, so let us step by step:
Step 1: What is the first step in the installation of Windows XP? Simple, you just put the installation [bootable] CD inside and boot from it. This step is same in Linux as well. You have to put the installation CD/DVD into the tray and boot from it.
Step 2: Windows XP will load some files/components which will be used to create the environment (the blue screen) where you will take steps to install Windows XP. Similarly a Linux installer will detect your hardware and load the files that will create an installation environment.
The one thing that is different from Windows XP here is that Windows installation environment uses just keyboard whereas i Linux, most distributions will allow you to use Mouse you install Linux.
Step 3: Now, Linux installer will ask you for date, time and the region where you belong and the language to be selected. This is a small step that Windows setup does towards the end of installation. This step is very simple.
Step 4 So what does Windows do afterwards? It asks you if you want to repair an installation or you want to install a new copy. In linux, it depends on the Linux distribution. Most of the Linux distributions would not ask you if you want to repair. However some of them may show an ‘upgrade’ option which will also repair the last installation if it is the same distro and the same version of Linux that was previously installed. This is similar to XP as you cannot repair a Windows Vista or Windows 2000 form a XP CD. So we choose to perform a new installation.
Step 5: Windows will ask you to perform the partitioning of the hard disk. This is the tough task and it is necessary that the background is clarified about the partitioning and the related terminology before we proceed further. So I am going to write down the related terms , their meanings and other details in a QUOTE box:
|There are terms which are related to the Linux world and are unknown to newbies. They must be known because while installations, the setup will ask questions related to it. Let us start:1. Partitions (and the names by which they are represented): It is very well known to the Windows users as well. Of course, making partitions helps in managing and organizing data. Windows uses the names C, D, E ,. . . and so on. But Linux does not. and this is the place where a newbie first starts thinking that he made a mistake by putting in the CD and even thinking to install it. I thought the same way but I did not look back and went on. After almost 20 times formatting my hard disk, I knew how it all works and how the disks are names and what everything means. So let me tell you how it is named which will then help us understand how it WORKS.Windows uses alphabets like C and D to make it easy but the Linux way is different as is easier while providing more information than Windows installer. Linux would call the disks as either /dev/sda or /dev/sda2 (or sometimes just /sda1 or /sda2) or /dev/hda1 or /dev/hda2 (or sometimes just /hda1 or /hda2).
How do these stupid names provide information and are easier than Windows. See /dev/sda1 can be divided into 4 parts:
* sd OR hd : The letter ‘s’ stands for ‘SCSI’ devcies. Do not bang your head on what SCSI is. Just think that it would show SATA devices. MOST of the new hard disks are SATA. So ‘sd’ would mean that it is referring to the hard disk.
The letters ‘hd’ refer to the IDE devices such as your DVD writer or a Hard disk connectd to the IDE cable (looks like a long ribbon).
* a : This represents the ‘number’ of hard disk. For example, if you have 2 hard disks, it will be shown as ‘b’ for the second disk and the hard disk itself will be represented by /dev/sdb.
* 1 : This is the partition number on the hard disk. Say you have three partitions on your first hard disk. Then the three partitions will be represented by /dev/sda1 , /dev/sda2/ and /dev/sda3. Your DVD Drive will appear as /dev/hda
So for example I am giving some names which would help you understand the nomenclature. Do understand this coz if you mess up with the partitions, you will end up with something you never wanted!
/dev/sda3 : The third partition (digit 3 at end) on the first (the letter ‘a’) hard disk (signified by ‘sd’) of our system
/dev/sdb2 : The 2nd (digit ‘2’ at the end) on the second (the letter ‘b’) hard disk of your system
/dev/hda : The IDE device of the system.
If you have 2 IDE devices, they will show up as hda1 and hda2.
EDIT: With the newer kernel, at boot time all hard disks will shown as /dev/sdx, correct me if I’m wrong
2. File systems: File Systems are a way of keeping the data on the disk. File systems differ from one Operating System to other because their design differs. So Linux uses files systems that are different from Windows. Some of the file systems are : etx2, etx3, reiserfs, jfs, xfs etc. So you will have to format the partition on which you want to install Linux with one of them. etx3 is recommended as it is very stable and there is a software available to help you access data on ext3 which will mean that you will be able to access your Linux documents from Windows.
3. Mount Points: Mount points are a bit confusing but after you understand it, It is so easy that you will love Linux for the simple way to allow you to mount the partitions on it. Mount points are certain directories (or folders) where whole partition appears to be kept. To understand mount point, do the following on a Windows XP system:
Now you will see that all the contents that were there in that drive appears to be there in the folder that you had chosen. What you just saw is called mounting. You have mounted a drive a folder. Similar thing happens with Linux.
Its just another matter that when you are using Windows, mounting a drive into a folder is a choice; on Linux it is a necessity that for using a partition, it must be mounted into a folder (a directory). So when you install Linux, pay attention to what partitions are being used for what. The ‘/’ mount point means that all the system files will be kept here. It is necessary that a ‘/’ mount point exists. You can also make your Windows drives mount by creating a folder and using it as a mount point.
So after you have done the partitioning, you need to create mount points where your drives will be accessed as directories. After you have done that, you may choose to change the software settings (if your Linux installer permits you to)
Step 6 You may like to change the boot loader settings. However it is not recommended to mess around with the boot loader thing. In most of the cases, default settings will work fine.
Step 7: Start the install. It will automatically complete
Step 8: After the install is complete, the system may or may not reboot. Now it will ask you to enter the “root password”. The ‘root’ is the “administrator” account of Linux. Enter a password and remember that you do not forget what you are typing as there are nothing like password hints which will help you remind the password. Without this password, you will end up with almost a locked system. So do take care that you enter a password which you will never forget.
Now it will ask you to create other user accounts. Do that and finish the install. One thing to be remembered that all that you enter is CaSe SeNsiTiVe. So be careful.
Step 9: Enjoy! Linux is installed!
If you have any queries or are confused, just ask it in the forums