All right people it is time to do something. The subject of this post is probably the reason for which most people give up trying Linux even before installing it. I guess it is also the reason because most of the distro developer create Live version of them. I am talking about perhaps the deadliest operation you can perform on your PC.
The operation by the way involves changing your disk partition. Change the partition of your hard disk is not something that you do everyday. In fact it is something that you probably won’t do it at all in your life.
A partition is a space on your hard disk where you can store your data. When we buy a new PC it has only the partition C. If the hard disk is of very large size, it is common than the user create a supplementary partition normally named D. So we may store Windows and our programs in the partition C and our data only in the partition D. In this very case we want to create a new partition in order to install our Linux distro.
As I previously said installing Linux doesn’t involve getting rid of Windows. Even though it is necessary to install the Operative System (OS) in two different partition, leaving Windows on C otherwise it won’t start. After the installation any Linux distro will take care of the dual system installing a boot loader; this will allow you to decide what OS have to start.
We can’t talk about partition without involving file systems. When you format a partition whatever is the software you are using, you can choose among different type of file system. The most popular perhaps are Windows partition such as FAT, FAT32 and NTFS; For Linux we have to use the EXT2.
What you need before you start:
- A copy of Ubuntu Linux. You can download the ISO image following this link. Once downloaded you can use any software you like to burn the image (I used CDBurnerXP, which has a straightforward option to burn ISO images)
- If you are connected to Internet with a wireless device it is better if you download in advance the following packages as they’re not included in the distro ndiswrapper common (libraries common for all the platforms), ndiswrapper utils (package that allow you to use Windows wireless devices, make sure you choose the right platform), ndisgtk (Graphic interface option for ndiswrapper package). Note that you will need the ndiswrapper only if your card doesn’t have a native Linux driver. If your wireless card is equipped with a Broadcom chipset the procedure to get the connection working is bit more painful than other chipset. In particular you want to check this page from the ubuntu forum. (Before start the migration to Linux i used a Belkin card with Broadcom chipset but I struggle to get it up and running with Ubuntu. Eventually I opted to buy a new card, Netgear WG311 with Marvell chipset and had no moreproblems)
- BACKUP BACKUP BACKUP BACKUP BACKUP BACKUP BACKUP BACKUP
- If you didn’t do it yet BACKUP all your data.
First thing to do is to decide how much space you want to reserve to Linux. If you have only one hard disk and you need to run Windows too you must leave the latter in the partition C. If you have two hard disk, as I do, you can allocate one disk for each OS.
This is the screenshot of my hard drives situation before installing Linux.
The second hard disk has the space already formatted as NFTS, because Windows use to be allocated here. To manage your partition you can use the software EASEUS, a free partition manager. Once you created the space for Linux you don’t need to format it, everything will be done during the installation.
So you burn your image of Ubuntu, you downloaded all the ndiswrapper packages (if you wish to have a wireless connection and your device doesn’t have a native Linux driver), now you are ready.
Insert the disc with the image on your drive
- Restart your PC and make sure that your boot sequence start from the right drive. To do so when you restart the PC you need to access to your BIOS (usually is the button F1). Depending on the version of yor BIOS you have to go to the menu Boot or Boot Option or something like this and choose the right sequence (CD/DVD drives are normally on the secondary master channel so you should read something like SMD follows by the model)
- Save your the changes and reboot
- The CD starts and the first thing to choose is the language. It will be English for me
- A installation menu appears. We want to select Install Ubuntu. The kernel starts loading
- Complete all the steps, such as geographic zone and keyboard
- The partition (Starting up Partitioner) screnn appear. You see different option such as Guided resize (if you use one disk for Linux and Windows; if you follow this tutorial you did this already in Windows and you don’t want this). Another option is Guided for entire disk (you may use this option if you have two different drives, and you want to dedicate an entire disk to Linux. Again if you want to keep using Windows leave it in the primary master channel in the C partition). The last option, which is the one I used is Manual Configuration. Go for it.
- It will open a windows where you can see all the drives and partition present on your PC. If you have only one disk you should see only /dev/sda followed by as many numbers as the partitions in that disk. To clarify this I’ll explain my configuration: I have the first hard disk, where Windows is installed, with one partition; then I have a second hard disk with three partitions and a third external disk again with only one partition. My screen then was one item under /dev/sda/(first disk), three items under /dev/sdb/(second disk) and one item under /dev/sdc/(external disk)
- Check the box correspondent to the partition you want to use to install Linux and then click the button Edit Partition at the bottom of the windows.
- Another windows will open where are listed the properties of the chosen partition or drive. You can see the size, the file system and the mount point. Select Ext2 as file system and the character / as mount point (the character / it means mount point root)
- That’s it. The installer will notify you a message where it advices to set up a swap space. You can ignore it for the moment we will set up a swap space once the installation is completed
- Other information will be asked such as log in name and password. Those can be whatever you like just remember that the name and password you input at this stage are automatically considered the one of the administrator user. Although you will log in using this settings, you still need to enter your password for same action where administrator privilege are needed. (Installing new software and change system settings)
- Before the installation ends you have the option to import other OS accounts. It is up to you to include this option in the installation.
- You are ready now. Once the installation is terminated you will be asked to remove the CD and press Enter in order to restart the system
- The system restart and you find a windows generated by the boot loader. This windows contains all the OS and their options present in the disks. So you can see an Ubuntu Generic option (generally the first in the list) shich aloow you to start Ubuntu; other Ubuntu option that we don’t care for the mometn and also the Windows option. Remember that if your PC has a recovry routine this will be stored in a dedicated partition, usually at the very begin of the drive. This partition will also be visible in the boot loader, so check which is the right one for Windows
And this is it. If you happily installed Ubuntu you already achieve something that most people didn’t or tried and gave up. If you messed up, don’t worry I did that few times and I survived; try again you’ll be luckier. If you messed up and contemporary lost all your data…what can I say life is unfair but human beings are stupid, and you are definitely one them because you did’tn do any backup
NOTE: in this blog we will refer to the Ubuntu distro. Most of the thing we will say are applicable to all the other Debian based distro. Software (Gimp, Blender, QCAD, OpenOffice) and command line tuttorials can be followed on any machine where the softwares are installed.