The reason of that I installed Dual System.

Recently, I install and configure Jekyll to build a blog in using Windows. But actually, Jekyll is based on Ruby and using Ruby in Windows is unsuitable, I think. However using Linux virtual machine is unsmooth. Then I decided to install Dual System that is included Windows10 and Ubuntu.

What You Need

  • a Ubuntu ISO file
  • a installed Windows System
  • a UltraISO Software
  • a EasyBCD Software

You can get them via Baidu, Google and so on.

Step 1. Prepare Disk

Right click "计算机" and choose the "管理" choise, and then click the "磁盘管理" in the left (You know my Windows10 is Chinese version). You should separate a useless disk and delete it in order to use it to install your Ubuntu.

Step2. Make Installation Environment

Open your installed EasyBCD and add new list, choose NeoGrub, then click install. A Configure button will display, you click it and add some text after "menu.lst" like the following code.

menu.lst title Install Ubuntu
root (hd0,0)
kernel (hd0,0)/vmlinuz.efi boot=casper iso-scan/filename=/ubuntu-14.10-desktop-i386.iso ro quiet splash locale=zh_CN.UTF-8
initrd (hd0,0)/initrd.lz
  • the "ubuntu-14.10-desktop-i386.iso" is the name of your Ubuntu IOS file.
  • the "(hd0,0)" stands for your C Drive. The first 0 stands for the first hard disk, and the second 0 stands for the first column("卷") in the first hard disk (Maybe in the picture above, you can understand it). If your C Drive isn't the first column in the first hard disk, you should change it.

Then you should open your ISO file, and move initrd.lz and vmlinuz.efi under The Casper folder to the root directory in your C Drive. And move all files under the .disk folder to the root directory in your C Drive. At last, you need to move your ISO file to the root directory in your C Drive.

Step3. Install your Ubuntu

You should reset your computer and you will see that you can choose two choise to start system. The first is your Windows system, and the second is NeoGrub that you have installed just now. Without doubt, you will start your system by NeoGrub. Then the installation environment is building, which is a Ubuntu UI.

If you haven't the NeoGrub Startup Item, I think you have some mistakes in Step2.

After you come in Ubuntu Installation Environment, you should click Ctrl+Alt+T to open terminal. Input

sudo umout -l /isodevice

to unmount mounted Drive.

Next, you can run the "Default Installation" in the desktop to Install your Ubuntu System. The process is basic Installation process, you can use the free Column that you deleted it in Step1 to install your system. I advice that you can create four partitions. they are /, swap, /home and /boot. The first two are necessary, and the latter two are unnecessary. The swap partition is similar to the virtual file in Windows. At the end of the article, I will tell you how to creat all partitions.

/ partition

type: primary partition
size: 15-20G
purpose: ext4 journaling file system
mount point: /

swap partition

type: logic partition
size: 1024-2048M
purpose: swap

/boot partition

type: logic partition
size: 200M
purpose: ext4 journaling file system
mount point: /boot

/home partition

type: logic partition
size: you have
purpose: ext4 journaling file system
mount point: /home

Tip: At the last, you should choose the boot device, that is the id of your /boot partition, such as sda5, sda6 and so on.