In our previous article you’ve learned how to make bootable usb-stick with Linux Ubuntu live distribution on it. This is the last on – “How to install Windows and Linux”, in this part3 you will learn how to:
- boot from installation media
- make Windows ntfs partitions
- install Windows
- make Linux ext4 partitions
- install Linux Ubuntu
After all been done you will have a really cool workstation with two operating systems, Windows and Linux Ubuntu.
Many users will probably switch to Linux, and keep Windows for gaming and Video editing.
Simulation installing Windows and Linux – dual boot
In my simulation i was having 100 GB hard disk space available and i’ve decided to give approximately 50 GB to windows and 50 GB to Linux ubuntu operating system, because this was made on qemu-kvm for educational purpose.
Some reasonable hard drive capacity now days is about 1 Terabyte (1000G) if you have a hard disk similar capacity you can decide how many space you want for each system. If you just started as beginner,and you wish to use linux for some time you can give 900G to Windows and the rest will go to Linux.
It’s really up to you how many space you want to give to each operating system. Follow the instructions, furthermore you can “stick” to my recommendations for Linux partitions sizes, but when you create /home partition you can give it all available space you got because on this partition goes your personal data like Music, Videos, Documents ..etc.
One more thing to mention, if you have a really big hard disk (2TB or more) the procedure will be different, you will have to use GPT partition tables. We will cover more about GPT in the future articles.
Installing Windows and leaving some extra space for Linux ubuntu
First thing is to set Bios / Uefi where you have Windows CD-ROM installation media. The rest of procedure you probably know already. I will skip to the point where you making partitions.
The recommended approach is to choose Custom: Install Windows only, this option will give you more flexibility for making custom size ntfs partitions. While making ntfs Windows partitions make shore to leave free space for Linux Ubuntu operating system.
In this dialog choose New and enter your desired space in megabytes. In my example i was set 51200 MB (50 GB) After you click Apply
To ensure that all Windows features work correctly, Windows might create additional partitions for system files, click OK!
If your computer was booted in legacy bios mode this is how its partition table will look like. Now you’ve created two Windows partition and unallocated space will be given later to Linux Ubuntu.
Other ways if you see something that looks like this:
you’ve been booted in uefi mode and from this point you should continue with tutorial How to Install Windows and Linux – part4. In this case procedure is little different because you have little bit more partitions to handle!
Users that end up with bios version (illustration with blue border above) should continue reading this tutorial:
You just created two windows partitions, click Next and installation of Windows operating system will start. After you successfully install Windows follow this procedure:
- Turn off your computer and remove your Windows installation media.
- Put your linux usb-stick in place
- Turn on computer and quickly press (delete or whatever) key you need to enter for entering Bios
- In bios set boot priority for your usb stick, it has to be first device in order to load your operating system.
- Exit and make shore you save your boot changes.
After Windows – Installing Linux Ubuntu from usb-stick
Again, just to make things more clearly – in this episode we are installing Linux Ubuntu after we have installed Windows 8.1. Installation goes in empty space previously left after installing Windows.
If you booted from your Linux usb-stick correctly you will see something like this:
How to install Linux ubuntu? – Just choose Install Ubuntu and follow procedure!
During boot process you will see the Ubuntu logo we are waited for! Be patient and wait for Welcome screen. Speed of this boot up varies on your hardware like RAM amount and processor. If you got plenty of RAM your system will load faster.
You can choose your language here. There will be some additional steps like setting keyboard, this is quite simple.
In this menu choose Normal installation, Download updates while installing Ubuntu and Install third party software for graphics and wi-fi hardware and additional media formats.
Here you can choose Install Ubuntu alongside Windows 8 and that reminds me on one Epic scene in movie called Matrix, furthermore the first option is like a blue pill, or if you choose option Something else(red pill) – “you stay in wonderland and i show you how deep the rabbit-hole goes”
If you select first option the system will install by itself and you will loose opportunity to learn how to make partitions.
Partitions are really great subject to learn, once you gain knowledge how to deal with partitions you will be able to install many more operating systems on one computer. In this tutorial we are making classic MBR partition scheme. There are also GPT scheme which are used for really big hard disks with more then 2TB space.
Those are the most important steps. Select free space and click on plus symbol. Here we going to make our self a Linux partitions. This is empty space that we previously left when we where installing Windows.
This is your first linux partition called /boot partition. Klick OK! After this select free space and click + symbol again!
Make sure you create this partition as Logical partition, if you choose Primary by accident you will not be able to create more partitions!
How much swap space do i need?
Now in this simulation i was having only 4GB of ram. Since you are installing Linux on real hardware there are some rules of thumb how much swap space you are going to need. Here are the examples:
|RAM Size||Swap Size (Without Hibernation)||Swap size (With Hibernation)|
This table is borrowed from https://itsfoss.com/swap-size/ for example, if you have 8GB of RAM you can put 11GB of swap space. Set the proper value and Klick OK. Create another partition called ” / “
This partition is called root partition(slash symbol). Click OK and choose free space, click on plus symbol create last partition called /home.
Usually when you make last partition called /home the system will offer you all available hard disk space and you don’t need to calculate, just use all. Now, this is our final preparation before Installing. Just click OK.
And our final result is looking like this! Blue section represents Windows and orange is representing Linux Ubuntu partitions which are part of Linux Ubuntu operating system. Just click on Install Now! …and final warning before partitioning looks like this:
…just click Continue and your installation will start, furthermore you will have to set your personal settings like Country, keyboard, username, password …etc.
IMPORTANT: Do not enable Log in automatically! Set your username and password!
All you have to do now is grab a beer, smoke a cigarette or
do some meditation. 🙂
There is really no need to wait here, grab a
beer girl and enjoy. I mean beer! O gosh!!! Both!! – anyway, you deserve this because i know linux world is pretty confusing at a first time! How to install Windows and Linux – part3 is final part, after that you will have a really great machine with two operating systems side by side.
How to install Windows and Linux – part3 a good starting point for plenty more research
Linux Ubuntu also comes in many flavors, some versions works pretty good on old computers, furthermore you can also make some different Linux ubuntu usb stick directly from this new linux system you’ve just created. I will mention some of them:
Linux 32bit pc(i386) version
If you have some really old hardware and you want to do some experiments they still doing support for linux ubuntu, therefore the last ubuntu version that work with 32bit pc(i386) is Linux Ubuntu 16.04.6 LTS (Xenial Xerus) and this version will be supported till April 2024.
In this artice “How to install Windows and Linux – part3” you’ve learned how to make linux partition in graphical mode. There are a few things more to mention, for example if you stuck in process of making partitions.
On linux you can only have 3 primary partitions (bios mode), forth partition is called Extended, and after that partition system creates Logical partitions. Having created 4 partitions as primary, you can’t create any more partitions! Here is an example:
In example above, we count partitions like this:
- Partition: /dev/sda1 type ntfs Windows 8 (system files)
- Partition: /dev/sda2 type ntfs Windows 8 (Windows installation)
- Partition: /dev/sda3 type ext4 /boot (Linux)
- Partition: /dev/sda4 type ext4 /home (created by mistake as Primary)
- unusable (unusable space) 53GB in size!!!!
In example above you can’t make any more Partitions, that’s because you’ve created partition 4 (/home) as Primary partition. To correct this error and use all space you must create this partition as Logical partition.
After having done this, you will be able to create many more Logical partitions. In this example above easiest solution is just to delete partition 4 and create it again as Logical partition.
That’s all for now, this “episode” How to install Windows and Linux – part3 is final part regarding installation to real physical hardware. After this article we are going to do all kind’s of tests and stuff. I really hope you make it all work!