Install linux in dual boot with windows

How to Install Ubuntu Alongside With Windows in Dual-Boot

This tutorial will guide you on how you can perform the installation of Ubuntu 20.04, Ubuntu 19.04, Ubuntu 18.10, or Ubuntu 18.04 in dual-boot with a Microsoft Operating System on machines that come pre-installed with Windows 10.

This guide assumes that your machine comes pre-installed with Windows 10 OS or an older version of Microsoft Windows, such as Windows 8.1 or 8.

In case your hardware uses UEFI then you should modify the EFI settings and disable the Secure Boot feature.

If your computer has no other Operating System already installed and you plan to use a Windows variant alongside Ubuntu, you should first install Microsoft Windows and then proceed with Ubuntu installation.

In this particular case, on Windows installation steps, when formatting the hard disk, you should allocate a free space on the disk with at least 20 GB in size in order to use it later as a partition for Ubuntu installation.

Requirements

Download Ubuntu ISO Image as per your system architecture using the following link:

Step 1: Prepare Windows Machine for Dual-Boot

1. The first thing you need to take care of is to create free space on the computer hard disk in case the system is installed on a single partition.

Log in to your Windows machine with an administrative account and right-click on the Start Menu -> Command Prompt (Admin) in order to enter Windows Command-Line.

Preparing Windows for Dual Boot with Ubuntu

2. Once in CLI, type diskmgmt.msc on prompt, and the Disk Management utility should open. From here, right-click on C: the partition and select Shrink Volume in order to resize the partition.

C:\Windows\system32\>diskmgmt.msc 

Shrink Volume to Resize Windows Partition

3. On Shrink C: enter a value on space to shrink in MB (use at least 20000 MB depending on the C: partition size) and hit Shrink to start partition resize as illustrated below (the value of space shrink from below image is lower and only used for demonstration purposes).

Once space has been resized you will see a new unallocated space on the hard drive. Leave it as default and reboot the computer in order to proceed with the Ubuntu installation.

Create Windows Partition for Ubuntu Installation Windows Partition for Dual Boot Ubuntu Installation

Step 2: Install Ubuntu with Windows Dual-Boot

4. For the purpose of this article, We will be installing Ubuntu 20.04 alongside Windows dual boot (you can use any Ubuntu release for installation). Go to the download link from the topic description and grab the Ubuntu Desktop 20.04 ISO image.

Burn the image to a DVD or create a bootable USB stick using a utility such as Universal USB Installer (BIOS compatible) or Rufus (UEFI compatible).

Place the USB stick or DVD in the appropriate drive, reboot the machine, and instruct the BIOS/UEFI to boot up from the DVD/USB by pressing a special function key (usually F12, F10 or F2 depending on the vendor specifications).

Once the media boot-up a new grub screen should appear on your monitor. From the menu select Install Ubuntu and hit Enter to continue.

Читайте также:  Macbook pro linux 2015

Ubuntu Boot Screen

5. After the boot media finishes loading into RAM you will end up with a completely functional Ubuntu system running in live mode.

On the Launcher choose Install Ubuntu, and the installer utility will start. Choose the keyboard layout you wish to perform the installation and click on the Continue button to proceed further.

Select Ubuntu Installation Language Select Ubuntu Keyboard Layout

6. Next, choose the first option “Normal Installation” and hit on the Continue button again.

Select Ubuntu Normal Installation

7. Now it’s time to select an Installation Type. You can choose to Install Ubuntu alongside Windows Boot Manager, an option that will automatically take care of all the partition steps. Use this option if you don’t require a personalized partition scheme.

In case you want a custom partition layout, check the Something else option and hit on the Continue button to proceed further.

The option Erase disk and install Ubuntu should be avoided on dual-boot because is potentially dangerous and will wipe out your disk.

Select Ubuntu Installation Type

8. In this step, we’ll create our custom partition layout for Ubuntu. This guide will recommend that you create two partitions, one for root and the other for home accounts data, and no partition for swap (use a swap partition only if you have limited RAM resources or you use a fast SSD).

To create the first partition, the root partition, select the free space (the shrinking space from Windows created earlier), and hit on the + icon below. On partition settings use the following configurations and hit OK to apply changes:

  1. Size = at least 15000 MB
  2. Type for the new partition = Primary
  3. Location for the new partition = Beginning
  4. Use as = EXT4 journaling file system
  5. Mount point = /

Create Ubuntu Root PartitionRoot Partition Settings

Create the home partition using the same steps as above. Use all the available free space left for the home partition size. The partition settings should look like this:

Create Home Partition

  1. Size = all remaining free space
  2. Type for the new partition = Primary
  3. Location for the new partition = Beginning
  4. Use as = EXT4 journaling file system
  5. Mount point = /home

9. When finished, hit the Install Now button in order to apply changes to the disk and start the installation process.

A pop-up window should appear to inform you about swap space. Ignore the alert by pressing the Continue button.

Next, a new pop-up window will ask you if you agree with committing changes to the disk. Hit Continue to write changes to disk and the installation process will now start.

Confirm Partition Changes

10. On the next screen adjust your machine’s physical location by selecting a city nearby from the map. When done hit Continue to move ahead.

Choos -City Location

11. Pick up a username and password for your administrative sudo account, enter a descriptive name for your computer and hit Continue to finalize the installation.

These are all the settings required for customizing the Ubuntu installation. From here on the installation process will run automatically until it reaches the end.

Create Ubuntu User Account Ubuntu Installation Process

12. After the installation process reaches its end hit on the Restart Now button in order to complete the installation.

The machine will reboot into the Grub menu, where for ten seconds, you will be presented to choose what OS you wish to use further: Ubuntu 20.04 or Microsoft Windows.

Ubuntu is designated as the default OS to boot from. Thus, just press Enter key or wait for those 10 seconds timeout to drain.

Читайте также:  Using ldap on linux

Ubuntu Installation Completed Ubuntu Windows Dual Boot Grub Menu

13. After Ubuntu finishes loading, log in with the credentials created during the installation process, and enjoy it. Ubuntu provides NTFS file system support automatically so you can access the files from Windows partitions just by clicking on the Windows volume.

Ubuntu Login Screen Access Windows Partition from Ubuntu

That’s it! In case you need to switch back to Windows, just reboot the computer and select Windows from the Grub menu.

If you want to install some additional software packages and customize Ubuntu, then read our article Top 20 Things to Do After Ubuntu Installation.

Источник

How To Install Ubuntu Along With Windows

Brief: This detailed guide shows you how to dual boot Ubuntu with Windows legacy BIOS systems. If you are not sure, read this to know if you have BIOS or UEFI system.

Continuing my experimentation with different Linux distribution, I installed Xubuntu last week. Xubuntu is a variant of Ubuntu with Xfce desktop environment instead of the default Unity. Light on resources, Xubuntu can be a good Linux alternative of Windows XP.

I prefer to install Linux in dual boot with Windows. I hardly use Windows but it gives me sort of back up if I mess up with things. Dual booting Linux with Windows is always suggestible for the beginners. In this tutorial, we shall see how to install Ubuntu in dual boot mode with Windows.

This guide covers system with BIOS. You can read this article for dual booting Windows 10 and Ubuntu with UEFI.

Ubuntu, Xubuntu, which one is it? Don’t be confused. The steps given here are equally applicable to Ubuntu, Xubuntu or even Linux Mint.

Guide to dual boot Ubuntu with Windows

Before we see how to dual boot Ubuntu with Windows, let me give you some important details.

First, I had Windows 7 installed with 3 partitions on it. Later I installed Linux on it in dual boot mode. I changed the partition and kept around 100 GB of total 320 GB for Linux installation. In the course of time, I upgraded to Windows 8 and subsequently to Windows 8.1. I never had to face the problem of Windows 8′s secure boot thingy. It is just to clarify that this process does not show you how to deal with UEFI .

Install Ubuntu in dual boot with Windows 10 & Windows 8

Follow the steps below to install Ubuntu in dual boot with Windows:

Step 1: Create a live USB or disk

Download and create a live USB or DVD. In Windows, my favorite tool to create a live USB is Universal USB Installer.

Step 2: Boot in to live USB

Plug the live USB or disk in to the computer and restart the computer. While booting the computer press F10 or F12 function key (defers from computer to computer) to go to the boot menu. Now, choose the option to boot from USB or Removable Media.

Step 3: Start the installation

It will take some time to boot in to the live USB or disk. Once booted, you will be immediately provided with option to either try Ubuntu or install Ubuntu. Even if you choose to try, you can find the option to install on the desktop:

Install Ubuntu in dual boot with Windows

First few screens are pretty straight forward. Just choose press continue:

Install_Ubuntu_Windows_Dual_Boot_2

Step 4: Prepare the partition

This is the most important part of the whole dual boot installation. Where to install Ubuntu? Windows is already installed here, so, we’ll prepare a new partition for Ubuntu. In the Installation Type window, choose Something Else:

Читайте также:  Linux mint debian edition 64 bit

Install_Ubuntu_Windows_Dual_Boot_3

As you can see, I have 3 NTFS and some ext4 partitions. If you don’t have ext4 partition, don’t worry, we don’t need that. As you can see in the picture below, one of the NTFS partition consists of Windows installation. This should be untouched if you want to keep your Windows installation safe.

I presume that you have more than one NTFS (or FAT 32) partitions (i.e. Drives in Windows term) on your hard disk, with one of them consisting of Windows installation (usually C drive). What you need to do here is to delete a NTFS or existing ext4 partition and create some free space. This will delete all the data in that partition and this is why I asked you to verify if you have Windows installed in a different partition.

Click on the desired partition and press the to delete the partition.

Install_Ubuntu_Windows_Dual_Boot_4

Step 5: Create root, swap and home

Once you have some free space on your hard drive, its time to install Ubuntu on it. Now, there are several ways to do it. But I prefer to have a Root, a Swap and a Home.

The root should be at least 15 GB for a comfortable use. If you have more disk space, increase the root size. Suppose you have 100 GB of disk space. You can easily devote 30 GB of space to root.

Create a root partition first. Choose the free space available and click on +.

Install_Ubuntu_Windows_Dual_Boot_5

Here, choose the size of root directory (keep it 20 GB or more), choose ext4file system, and mount point as / (i.e. root):

dual boot Windows with Linux

Next step is to create swap partition. It is advised by many that Swap should be double of your system’s RAM size. You can choose the swap size accordingly.

Install_Ubuntu_Windows_Dual_Boot_7

The next step is to create Home. Try to allocate the maximum size to Home because this is where you’ll be downloading and keeping the files.

Install_Ubuntu_Windows_Dual_Boot_8

Once you have created Root, Swap and Home partitions, click on Install Now button.

installing Ubuntu in dual boot with Windows

Step 6: Follow the trivial instructions

If you successfully created the partitions as mentioned above, you have almost won the battle. Rest is just some trivial steps to follow. You will be taken through a number of screens to select options like keyboard layout, login credentials etc. You don’t have to be a genius to figure out what to do here afterwards. I have attached screenshots for reference purpose here.

Install_Ubuntu_Windows_Dual_Boot_10

Install_Ubuntu_Windows_Dual_Boot_11

Install_Ubuntu_Windows_Dual_Boot_12

Install_Ubuntu_Windows_Dual_Boot_13

Once the installation is over, you will be presented with the option to keep trying live version or to restart the system.

Install_Ubuntu_Windows_Dual_Boot_14

And that’s it. On next boot, you will see the option of Ubuntu in the grub screen. And thus you can enjoy the beautiful, beginner friendly and world’s most popular Linux distribution. I hope you found this guide to dual boot Ubuntu with Windows helpful. If you need, you can change the boot order easily to make Windows your default OS. Since you have just installed Ubuntu 14.04, you can check out things to do after installing Ubuntu.

If you have questions, suggestions or a word of thanks, feel free to drop a comment.

Источник

Оцените статью
Adblock
detector