---
title: "Lenovo-LEGION-Y520 windows10+Ubuntu18.04 Dual Boot"
description: "Prep before installing"
author: "kidneyweakx"
published: 2019-04-16T00:00:00.000Z
updated: 2026-06-02T17:23:45.567Z
lang: en
tags: ["程式筆記", "Linux"]
canonical: https://kidneyweakx.com/blog/19log-0416-y520-duals?lang=en
alternate_zh_tw: https://kidneyweakx.com/blog/19log-0416-y520-duals.md
alternate_ja: https://kidneyweakx.com/blog/19log-0416-y520-duals.md?lang=ja
---

# Lenovo-LEGION-Y520 windows10+Ubuntu18.04 Dual Boot

### **Prep before installing**

1. **First, carve out a partition in Windows for the new system**
   *This PC -> right-click -> Manage -> Disk Management*
   ![](https://raw.githubusercontent.com/kidneyweakx/img-host/image/image/y520-01.png)

2) **Burn Ubuntu onto a bootable USB. I used [rufus](https://rufus.ie/) and [ubuntu](http://www.ubuntu.com/download)**
   ![rufus screenshot](https://raw.githubusercontent.com/kidneyweakx/img-host/image/image/y520-rufus.png)

3) **Go into the BIOS and adjust settings (boot by poking the small hole on the left side of the machine with something pointy, or press F2 at boot)**

\[configuration]->Set Sata Controller Mode to AHCI, otherwise the Ubuntu installer won't see the SSD

\[Security]->Set Secure Boot to disabled

[Boot]->Boot Mode[UEFI], USB BOOT[Enabled]; make sure these options are set    

**Press F10 to save settings**

4. **Enter the boot menu and pick the inserted USB to boot from (select it via the pinhole)**

### **Installation**

Now you can start the install.

It's just a normal OS installation; you can follow this [installation guide](http://blog.csdn.net/zifehng/article/details/79514756)

I picked the option to **install alongside Windows Boot Manager**, which saved a lot of setup time.

### **Fixing small issues after installing**

1. **After installing, you'll find you can boot into Ubuntu but not Windows. See [this post](http://www.yanglajiao.com/article/weixin_38570251/79923451)**

That's because when Windows 10 was installed, the BIOS Sata Controller Mode wasn't AHCI, so it won't boot

(1) Boot into `ubuntu` first, then restart and enter the BIOS

(2) Set `[configuration]->Sata Controller Mode` to `Intel RST Premium`, press F10 to save

(3) Get into Windows through grub, then hold Shift while restarting: Troubleshoot -> Advanced options -> Startup Settings -> Restart

(4) On restart you'll pass through the grub screen; choose System setup, change Sata Controller Mode in the BIOS back to AHCI, press F10 to save, and restart again

(5) After going through `grub` into `windows10 `, restart once more and dual boot will work

2. **Clock out of sync. See [this post](http://www.cnblogs.com/leime/p/9411551.html)**

There's also a way to switch `windows` to UTC, but I'd rather not touch Windows settings if I can help it

```bash
sudo apt-get install ntpdate #安裝ntpdate
sudo ntpdate time.windows.com #設定時間伺服器
sudo hwclock --localtime --systohc #設定本機時間
```

Now you can enjoy the joy of dual boot. Double the joy (lol)

### **Programming newbie here, corrections very welcome**

Feel free to reach out with any questions, and let me know what I could improve
