How to install Linux alongside Windows (instructions)

Loading

If you are interested in this system and you have already “tapped it a little”, you may want to install it.

 Nedeštruktívne Technoogie ktoré nikde nekúpiš. 

However, due to the fact that Linux Mint is not a full-fledged replacement for Windows in all directions, you will probably want to have them on both systems at the same time.
So now we’ll show you how.
The described tutorial is not only tied to Linux Mint, but with slight differences can be used for most Linux distributions.

Although the procedure is not very difficult, we recommend applying it only to more experienced users.
If you don’t dare to install, you better leave it to someone “who knows what he’s doing”.
The author of the article is not responsible for any data loss or damage to the device.

1) Free space and backup

We recommend that you have several on the disk before installation ten gigabytes of free space for Linux itself.
At the same time, don’t forget enough free capacity for Windows, which also cannot remain “completely dry”.
Finally, add a reserve for user data, such as documents, photos, videos, etc.
The exact number cannot be determined, it only depends on the specific user how much space he actually needs.

{Googleads Left}

If you don’t have enough free space, move data that you don’t necessarily need to have on your computer, for example, to an external drive.
We also recommend a backup medium back up the most important files, which you would not want to lose in any case.
There is always the possibility that not only when installing Linux you delete something you didn’t want, or if the disk simply fails, or the computer attacks a dangerous ransomware that encrypts the data and you never have to access it again.

2) Disc partitioning

If you have everything important backed up and there is enough free space on the disk, you need to ensure that Linux is installed completely separately from Windows.
At any time, you will be able to choose which system you will start.

You don’t need two separate disks to separate the systems, one is enough, which you divide into two partitions.
You do this directly in the Windows environment, in the Disk Management utility.

If you have Windows 10, the easiest way to open it is to right-click the button Start and choosing an item Disk management.
The universal solution on all windows is, but pressing the keyboard shortcut Windows+R and writing the string “Diskmgmt.msc” (without quotation marks), which you can start by pressing ENTER.

Disk Management in Windows 10

Advertisements

 

In the Disk Manager, you can see a list of installed disks and their partitions.
In different computers, the redistribution is different.
You can have one or more disks, each of which can be further divided into several partitions.
In our model situation, we expect that you only have one disk with a single partition on your computer or laptop.

Therefore, right-click on the OS partition (C:), in some cases also System (C:) and select an option Reduce the volume (Shrink Volume).
You can only shrink a partition by as many megabytes as there is free space available.
If you have enough of it, it’s up to you how much Linux you allocate.

When entering the capacity that the system partition for Linux is supposed to release, the size is entered in MB, while it is true that 1 GB = 1,024 MB.
Therefore, if you want to allocate 80 GB to Linux, you enter the number 81,920 here:

 

After starting the process, your system partition with Windows will be reduced by the value you specified.
This space will later serve you to install Linux.

Do you have two discs and you don’t use one?

If you own a desktop computer and you have an empty disk in it, or if you have two disks installed in your laptop, you don’t use that one and you don’t have any data stored on it, you can also install Linux here.
This avoids the need to divide one disk into multiple partitions.

However, if you have an SSD and a secondary mechanical disk in your computer at the same time, it is always advisable to prioritize the installation of the system on the SSD, on which it will be significantly faster.
Even at the cost of dividing it into several sections.
However, if you don’t have enough capacity on the SSD and you can’t move anything to another medium to release it, you’ll have to settle for installing Linux on a mechanical disk.

3) Running Linux installation from USB

The installation itself is preceded by the creation of a bootable USB key with a Linux Mint disk image.
How to do it is detailed Explained in the article.
If you already have a bootable flash drive, insert the key into the USB port, in BIOS (UEFI) Disable function Secure Boot and set Primary booting from a USB stick.
These steps are also described in the article about booting Linux from USB.

{Googleads Left}

If you have set up everything you need in the BIOS, you should see a black screen with a simple text menu after a restart.
It is the so-called GRUB bootloader (GNU Grand Unified Bootloader).
Here you select the first option (in our case, Start Linux Mint 18 Cinnamon 64-bit) and press ENTER.

 GRUB loader. Select the first item.

Advertisements

In a few seconds, you have a Linux Mint desktop in front of you, where you are interested in an icon with the characteristic name “Install Linux Mint”, which you just need to double-click with the left mouse button.

After running Linux Mint from a USB stick, you are interested in the “Install Linux Mint” icon

 

4) Customized installation

The following is a language selection, after which the installer will ask you if you want to allow third-party software installation, for example for graphics hardware, network, and the like.
We recommend allowing this option.

In the next step, you already choose the type of installation.
Since you want Linux installed alongside Windows, be sure to Avoid the second option “Delete Disk and Install Linux Mint”, when you will lose the original system and all the data.

However, we will not even select the first option “Install Linux Mint next to them”, but the last “something else”, which offers you a complete customization of the installation.

In the next step, you will therefore be shown Windows-like disk management window.
Here, too, you have individual partitions displayed.

you are interested in the partition where the Device column is listed “Free space”.
It is precisely the space that you freed from the system partition in Windows.

 If you don’t want to lose Windows with your data, definitely don’t choose the second option “Delete Disk and Install Linux Mint”

Select from the partition list “Free space”. Do not format or manipulate other partitions under any circumstances

Within this partition, we will now create three separate partitions, namely:

Root – It will be intended for the system itself and the files necessary for its operation.

swap – Its purpose is similar to a paging file in Windows.
It is therefore a kind of virtual memory, which will serve if the system and running applications are not sufficient at a certain moment the capacity of the physical operating memory.
Then the data from the operating memory is moved to this partition, and the released capacity of fast RAM can be used for more important operations.

Home – It is used for storing user files, i.e. for your documents, videos or images.

So we select the “Free space” partition and click on the button “+”.
If you don’t have space to give away, you can allocate 10 GB to the root partition (root).
We recommend double, i.e. 20,480 MB, approx. 20 GB.
At Type of new area Choose logical, select “journaling file system ext4″ and in the Connection point box, select a slash “/”.

Set up the root, swap and home partitions.
The sizes specified by us are only used as an example:

Similarly, you create a swap partition.
The size of the partition should be at least equal to the capacity of the physical operating memory, but ideally twice as much.
So if you have 4 GB of RAM on your computer, the swap partition should be 8,192 MB.
Then select “Stock space (SWAP)” from the list.

Well, finally, allocate all the remaining free space to the HOME partition, to which you can set the “Ext4 journaling file system” and select “/home” for the connection point option.

You don’t have to create a Home partition

In our model situation, we separated system and user files into two separate partitions.
In practice, this has the advantage that if something “goes wrong” in the system, you can reinstall it without losing your data.
After reinstalling, you will find the system as you remember it.
Desktop and application settings will even be preserved.
These data are also stored in a separate HOME partition and are separated from the system.

However, if you do not consider this functionality to be important, you do not have to create the Home partition and you only reserve all the space for the system partition, in which all data will be “completely”, just like in Windows.

Then just click on the button “Install now“.
The following is the selection of time zone, keyboard layout, computer name, user name and password.
During the installation process itself, which takes a few minutes, you no longer have to interfere with anything.
The installer uses this time only for a short tour of the system, which you may or may not pay attention to.
After successful installation, Linux Mint will prompt you to restart your computer.

5) Determining the priority system

After restarting, you will see the GRUB bootloader again, but this time it already offers the option of starting Linux or Windows directly from the disk.
By default, Linux is in the first place.
If it suits you, you don’t have to change anything and you can start using the “penguin system” alongside Windows.

By default, Linux will automatically start after the timeout has elapsed

However, if you want Windows to automatically start after the time limit has expired, it requires editing a single file.
We will help each other freely available instructions.

First of all, note which position Windows is in the GRUB menu.
In our case, it is the third line.

In Linux, click on the menu at the bottom left and run Terminal, which is a command line similar to what you may know from Windows.

You can find the terminal in the main menu. It’s the fourth icon on the left

Here, enter the following command to install the LeafPad application intended for editing text files:

sudo apt-get install gksu leafpad

Press ENTER.
The terminal will then ask for the user password that you entered during the system installation.
When you write it, nothing will appear in the command line, but that’s normal.
If you have typed the password, press ENTER again.

You can also install applications through Software manager, which can be compared to some kind of application store.
You can reach it through the main offer, is on the left as the second icon below the Firefox browser.
After starting it, just type the name of the application in the search field and install it in the graphical environment.

Applications can also be installed in the software manager

 If you have installed the software, run another command in the term:

gksudo leafpad /etc/default/grub

The system will ask for your password again, and after entering it, a text editor with an open file will start.
Here you are interested in the line grub_default=0, where 0 corresponds to the first line in the bootloader menu.
The second line would be number 1, the third would correspond to number 2, and so on.
So if it is on the third line in your Windows menu, overwrite 0 to 2 and save the file.

 In the line grub_default=0, you only rewrite the number. In the GRUB file, you can also adjust the countdown time, after which the system will automatically start. In the GRUB_TIMEOUT line, you change the number that corresponds to the number of seconds

Finally, run the last command in the term:

sudo update-grub

It must be confirmed again with a password.

And that’s all.
After restarting the computer, the selection will be set to the line that corresponds to Windows.
Thus, after the specified time, this system will automatically start.

 Source: zive.sk

Advertisements
AliExpress

Leave a Reply

Your email address will not be published. Required fields are marked *