# Dual-boot Ubuntu and Win10 (Acer) # 前言 之前用Win10作為Host,VirtualBox上載Ubuntu來玩玩。用一陣子後發現,就算Win10上什麼都不跑,只跑VBox有時候也會卡,就決定直接磁碟分割把兩個OS分開!以下簡單紀錄安裝的過程,以及遇到的問題,希望對大家有幫助~(部份參考[此文章](https://medium.com/caesars-study-review-on-web-development/win10-and-ubuntu-%E9%9B%99%E7%B3%BB%E7%B5%B1%E5%AE%89%E8%A3%9D%E7%AD%86%E8%A8%98-bc824bef7fb4)) <br> # Step 1:安裝 Win10 - 安裝順序:爬文發現大多推薦先載Windows再載Linux (Windows的boot loader比較霸道,會蓋過先前安裝OS的boot loader;但Ubuntu不會) - 參考[此篇教學](https://influrry.tw/reformat-windows10/),但Step 4和Step5跳過。 (剩下的未配置空間不新增磁碟,待會安裝Ubuntu可以直接用。) - Hotkey:以Acer為例,`F2`進到BIOS,`F12`進到Boot Menu。 <br> # Step 2:安裝Ubuntu - 參考[此篇教學](https://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/how-to-install-ubuntu-18-04-alongside-with-windows-10-or-8-in-dual-boot.html) - 我的Boot Mode為UEFI模式,另外我有關掉Secure boot以及在關掉Win10中的快速開機 - 關掉Secure Boot的方法: `F2`進到BIOS系統中→Security→Set Supervisor Password→Secure boot mode "Disabled" - 若前面Win10安裝有預留未配置空間,則教學前半Shrink Memory的部份可跳過。 - 分割磁碟大小 - 參考 : [Reference1](https://askubuntu.com/questions/343268/how-to-use-manual-partitioning-during-installation), [Reference 2](https://askubuntu.com/questions/280270/partitions-required-for-installing-ubuntu), [Reference 3](https://askubuntu.com/questions/21719/how-large-should-i-make-root-home-and-swap-partitions), [About swap,](http://www.ubuntu-tw.net/modules/newbb/viewtopic.php?topic_id=50332&start=10) [Ubuntu doc](https://help.ubuntu.com/community/DiskSpace) - 我的切割方式 - `/swap` : RAM大小(完全不打算用休眠功能)(若需要休眠,建議1.5-2倍RAM的大小) - `/` : 15GB(建議10-20GB) - `/home` : 剩下的容量 <br> # 遇到問題:安裝Ubuntu時,讀不到重灌USB(Live USB) ## 問題簡述: 明明開機時Boot的順序調過,會先從USB開始Boot,但不管怎麼開機都會直接進到Win10裡。開機時狂點`F12` ,才發現Boot menu中只有Windows boot manager,讀不到裝著Ubuntu安裝檔的Live USB! - 最簡單也最直接的解決方法:**換一台USB或是換一個USB Port!!!** - 其他方法: - 關掉Secure boot - 調成Legacy Mode Youtube上很多影片這樣教,但個人覺得很怪,雖然的確可以讀到USB,但安裝過程中顯示的不是"Install Ubuntu alongside Windows Boot Manager",感覺會直接把Win10覆蓋掉... <br> # 遇到問題:成功安裝Ubuntu後,開機時不會出現Grub選單 ## 問題簡述: 如果按照Win10→Ubuntu的安裝順序,在安裝完Ubuntu,重新開機後應該會直接出現Grub選單,讓使用者選擇要進入Win10還是Ubuntu,。但無論我怎麼開機,都會**直接進入Win10。 狂按`F12`進入Boot Menu,也只顯示Windows Boot Manager一個選項。** - ### Acer神奇的解決方法:手動把`grubx64.efi`加入開機路徑 1. BIOS→Security→**Select an UEFI file as trusted for executing**→選擇`.../Ubuntu/grubx64.efi` 2. BIOS→Boot→Boot priority order : 把新出現的`EFI File Boot :[你設定的名字]` 放到第一順序,以後開機就會出現Grub選單囉~ - **如果Select an UEFI file as trusted for executing為灰階字,無法更動...** - ### 瞎貓碰到死耗子的解法: 我把User password也設定,Password on Boot "Enabled",調成Legacy mode開一次機,再改回UEFI Mode後,Select an UEFI file as trusted for executing就變成藍色字,供大家參考~ - ### 試過但無解的方法: 1. 重新安裝Ubuntu N次 - Device for boot loader installation : 選硬碟`/dev/sda`, 或選`/dev/sdaX efi`(直接裝在Windows Boot Manager上) 2. 重新安裝Grub (其實在安裝時Ubuntu時,就會自動下載Grub選單,此動作只是怕當初下載失敗) - 燒錄Boot disk repair到Live USB中,Re-install Grub 3. 嘗試開啟Grub選單 - 在acer商標出現前(reboot過程中)按`Shift`, `Esc` (狂按/久按) 4. 重新指定開機路徑 - 到 Windows powershell/ cmd中輸入 `bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi`或是`bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi` - 懶得試的方法: - 用燒錄Ubuntu的Live USB開機,進入試用版的Terminal下載Boot disk repair <br> # 後話 終於安裝完了,祝大家以後打叩如有神助,讚讚讚! 偶們下次見ʕ•ᴥ•ʔ~ <br> # 未來可會用到 1. [Reinstallation](https://help.ubuntu.com/community/UbuntuReinstallation)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up