Ubuntu 18.04 LTS Dual Boot with Win10(BIOS Legacy & MBR)

Ubuntu Installation Documentation

Posted by Danni on February 22, 2019

Recently I reinstalled Ubuntu 18.04 on my ThinkPad T460P. This post records all problems I encounterd and what I tried to solve them. Hope this help you:)

What you need

  1. A USB stick/flash drive. Official guide from Ubuntu website says at least 4GB, personally, I used a 30GB stick. (Too big I know but just to be safe)
  2. MS Windows XP or later that is working on the PC.
  3. Rufus/ Ultral OS/ Universal USB Installer etc: A tool that can write Ubuntu ISO(Download Here) to your USB to install later. Choose this carefully. Some common installation issues are caused by the tools you choose.
  4. Enough unallocated space on disk.

Make your bootable USB stick

Before we start, I wanna emphasize one thing: Always check your disk file format.

There are 2 ways of partitioning drive: MBR(Master Boot Record) and GPT(GUID Partition Table)(To check your format, go to disk management and right click your disk 0 to see properties, mine is MBR). So what’s the difference between MBR and GPT? Well, MBR is old and GPT is new. But as “But the new is not always better than the old.“ I quoted here, they all have their own pros and cons.

GPT disk can support larger than 2TB while MBR cannot. They can both be dynamic and basic. Also, GPT can supports up to 128 partitions while MBR can only support four primary ones.

Usually, we associate MBR + BIOS and GPT + UEFI together. If a Windows pc uses UEFI, it will only support GPT.

THINGS TO DO:

Write downloaded Ubuntu ISO to your USB stick. This USB will be formatted so remember to back up data. Remember to choose Partition scheme to MBR and File system is FAT32(Default).

PLease also check Ubuntu official guide

Get into Boot Menu

Restart PC. Know your shortcuts to enter the boot menu. For Thinkpad it’s F12. After the Leveno red sign shows on screen quickly press it before the sign disappears. There will show a line in white color: Entering Boot Menu.

Here are some shortcuts for other PCs. Since I haven’t tried them all myself, I strongly suggest you verify before actually start:

1
2
3
4
5
6
Leveno PC: F12 or F1
Dell laptop: F12
HASEE laptop: F2
Sony laptop: DEL or F2 or F9
Samsung laptop: F10
IBM Pc: F12

Then you will see something like this:(Disclaimer: I took the image from this website, I do not own the copy right of this file)

THINGS TO DO:

  1. disable Secure Boot after entering boot menu.
  2. Turn boot priority into legacy first since the disk format is MBR.
  3. Choose USB stick for boot queue.
1
2
3
4
5
UEFI/Legacy Boot                 [Both]

UEFI/Legacy Boot Priority        [Legacy First]

CSM Support                      [Yes]

Enter esc + y to save and exit.

Now install Ubuntu!

If things go well, after select USB in the boot menu, you should be directed to a menu with the list of “Try Ubuntu”, “Install Ubuntu”, …

Select Install/Try(It doesn’t matter unless you really wanna play with it first for a bit). Remember to select something else in the installation choice step.

Note: There are many partition scheme online, choose the one that’s suitable! Here’s mine just for your reference:

1
2
3
4
5
on sdaa:
/dev/sda3  /     ext4  primary beginning  30GB
/dev/sda4  swap        logical beginning  5GB
/dev/sda5  /boot ext4  logical beginning  1GB
/dev/sda6  /home ext4  logical beginning  200GB  # make sure this is as large as possible

Install boot loader on /boot!

Use EasyBCD

After installation, restart and enter Windows. Download EasyBCD(This is for BIOS) and add an entry:

1
2
3
4
5
Add Entry: Linux/BSD
Type: GRUB(Legacy)
Name: define yourself
Bootloader: /boot partition
Edit Menu: # Now you should have two entried, one Windows one Linux.

Now restart, you can choose OS as you wish.

SOME issues

a. Failed to load ldlinux.32 This happened the first time I tried to install Linux. I was a complete novice and knew nothing about deep-level OS. In general, this error can be caused by a lot of things: a broken USB port, corrupted ISO image, driver incompatibility…

For me it is because of the writing software, I switched from Ultral SO to Win32 Disk Manager and it all worked out. (But now it’s deprecated so I strongly suggest not to follow)

b. underscore flashing on black screen after booting into newly installed Ubuntu.

Something like this:

[black]

Grub issues.

This happened so many times to me that I can recite all commands I tried to repair it in my sleep. Basically to repair it you can boot into live USB after installation and install grub in your \boot partition. If it’s still not working, add repository of grub repair and run grub-repair command.

Check links here and here.

boot-repair

How to rescue a Non-booting GRUB 2 on Linux?

GRUB rescue mode.

This is also related to broken grub. It could happen after you reboot into Ubuntu partition. To fix it, simply run command below and check the /root partition.

1
2
3
4
5
6
7
8
grub rescue > ls
(hd0) (hd0,msdos5) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1) (hd1) (hd1,msdos1)
grub rescue > ls (hd0,msdos1) # try to recognize which partition is this
grub rescue > ls (hd0,msdos2) # let's assume this is the linux partition
grub rescue > set root=(hd0,msdos2)
grub rescue > set prefix=(hd0,msdos2)/boot/grub # or wherever grub is installed
grub rescue > insmod normal # if this produced an error, reset root and prefix to something else ..
grub rescue > normal
  1. Some Useful Links Ubuntu Desktop on Win10 Installation official Guide

“Welcome to the producer side!”