首先肯定是明確到底是UEFI+GPT還是Legacy(BIOS)+MBR。方法很簡(jiǎn)單耘擂,在window桌面上右鍵點(diǎn)擊開(kāi)始菜單胆剧,選擇磁盤(pán)管理。在下面點(diǎn)左邊的“磁盤(pán)0”右鍵屬性醉冤,在“卷”里面有磁盤(pán)分區(qū)形式秩霍,如果是GPT那就肯定是UEFI啟動(dòng)了。
下面說(shuō)說(shuō)我在UEFI啟動(dòng)下裝雙系統(tǒng)遇到的一些問(wèn)題:
我的電腦是先預(yù)裝了Windows10的蚁阳,第一次裝Ubuntu時(shí)候沒(méi)想太多铃绒,直接隨便搜了一篇教程照著安裝,結(jié)果教程是針對(duì)BIOS+MBR的螺捐,導(dǎo)致boot loader裝錯(cuò)了位置颠悬,無(wú)法引導(dǎo)開(kāi)機(jī)。后來(lái)看到了這篇文章归粉,里面有這樣一段:
Having a PC with UEFI firmware does not mean that you need to install Ubuntu in UEFI mode. What is important is below:
if the other systems (Windows Vista/7/8, GNU/Linux...) of your computer are installed in UEFI mode, then you must install Ubuntu in UEFI mode too.
if the other systems (Windows, GNU/Linux...) of your computer are installed in Legacy (not-UEFI) mode, then you must install Ubuntu in Legacy mode too. Eg if your computer is old (<2010), is 32bits, or was sold with a pre-installed Windows XP.
if Ubuntu is the only operating system on your computer, then it does not matter whether you install Ubuntu in UEFI mode or not.
也就是說(shuō)椿疗,由于Win10是UEFI啟動(dòng)的,所以Ubuntu也必須安裝在UEFI模式下糠悼。那么就需要做下面的操作届榄,首先關(guān)閉Windows中的快速啟動(dòng)(控制面板 > 硬件與聲音 > 電源選項(xiàng) > 選擇電源按鈕的功能 > 更改當(dāng)前不可用的設(shè)置,取消選中啟用快速啟動(dòng))倔喂,然后關(guān)機(jī)斷電再開(kāi)機(jī)铝条,進(jìn)入BIOS(我的電腦是按F1),關(guān)閉secure boot并且把BIOS模式改為UEFI only席噩。保存BIOS設(shè)置插入U(xiǎn)buntu安裝U盤(pán)班缰,并重啟電腦。由于U盤(pán)可能在UEFI模式下無(wú)法自動(dòng)引導(dǎo)悼枢,所以需要手動(dòng)選擇U盤(pán)啟動(dòng)(我這里是按F12)埠忘。注意UEFI只支持64位的系統(tǒng),所以制作U盤(pán)的時(shí)候要選擇64位的Ubuntu。后面安裝Ubuntu的步驟就照著教程來(lái)就行了莹妒,注意裝boot loader(引導(dǎo)程序)的時(shí)候要選擇系統(tǒng)自帶的EFI分區(qū)(windows boot manager)名船,而不是教程里面掛載/boot的分區(qū)(事實(shí)上/boot也沒(méi)必要獨(dú)立分區(qū))。如果沒(méi)有的話旨怠,就自己建一個(gè)分區(qū)渠驼,類(lèi)型選擇EFI不選掛載點(diǎn)胀蛮,然后把boot loader裝在里面四康。之后安裝完成重啟就行了贝室,Ubuntu用的grub2引導(dǎo)程序會(huì)自動(dòng)引導(dǎo)window的半沽。