於 UEFI 環境 安裝 OPENsuse 13.2

我使用的硬體規格是

主板 H97M-E
i7 4790
RAM 16 GB
硬碟 3T

之前灌的時候,常會出現:

error : no such partition

這是因為 grub2 找不到開機區域,你可以使用 GRUB2看看,但也沒啥用。

基本上,在 UEFI 的環境下,還是要以能跟 UEFI 相容的環境安裝 Linux,但是要把 Secure Boot 關掉
就是:

  1. 將Secure Boot裡的OS Type設定為Other OS
  2. 將CSM裡的Launch CSM設定為Enabled

但有一些比較高級的linux 還是可以支援 Secure Boot。但對於免費的自由軟體來說,新的 shim 載入器允許更多的機器能從 Secure Boot 模式下啟動(請參考 啟動於 Secure Boot 模式下)。以目前的情況來說,要灌 Linux,基本上還是要關掉 Secure Boot。

這裡有些爭議的點

以下開始我所經過的流程:

  1. 首先是更新 UEFI BIOS 到最新版本,像我的 ASUS H97M-E ,這裡就有更新。
  2. 然後用 Gparted 來分割硬碟。大家可以到 這裡 下載,含有 Gparted 的開機光碟。

    我是使用 “d” 方法來製作。

    download 頁面 下載 iso 檔

    然後再執行

    sudo dd if=/path-to-gparted-live.x.y.z-w.iso of=/dev/sde bs=4M; sync

    x,y,z 對應的是你下載 iso 的數字,/dev/sde 是對應你隨身碟的位置。

  3. 另外還要準備可以在 UEFI 環境下安裝 Opensuse 的 USB。

    我是使用 Windows 環境的 rufus ,大家可以到 這裡 下載

    當然,也要下載 Opensuse 13.2 的 DVD

    開啟 rufus 選擇你要的 ISO 後, 出現如下:

    View post on imgur.com

    記得,第二欄要選擇 「GPT UEFI 資料分割配置」。

    然後按「執行」他就幫你製作完成。

  4. 接下來要關閉 Secure Boot 模式 (請參考 要如何關閉UEFI secure boot功能?)

    開啟你要灌的電腦,進入UEFI BIOS > BOOT > Boot\CSM (Compatibility Support Module)

    View post on imgur.com

    選擇開啟 「Enable」

  5. 關閉 安全模式 「Disabled」

    View post on imgur.com

    OS type 選擇 「Other OS」

  6. 順便選擇 USB 優先開機

    View post on imgur.com

  7. 接下來,要分割磁區,為了與 UFI 相容,必須要用到 GPT 的分割方式。(請參考 MSDOS(MBR) 與 GPT 磁碟分割表(partition table) 以及 UEFI,GPT 與 MS-DOS 磁碟分割區。)

    插入步驟 1. 製作的 Gparted USB 執行後,會出現選單:

    View post on imgur.com

    選擇第1個即可。

  8. 選擇預設的 「Don’t touch keymap」

    View post on imgur.com

  9. 選擇預設的 「33 US English」

    View post on imgur.com

  10. 選擇預設的「0」

    View post on imgur.com

  11. 然後進入桌面 的 Gparted 之後,先把所有的東西 formatted,然後按 「Device」>「Create Partition Table..」

    View post on imgur.com

  12. 選擇 「gpt」 格式,按 「Apply」。

    View post on imgur.com

  13. 接下來先切 /boot/efi 的空間,最好是 500Mb ~ 1Gb 之間。(from 鳥哥 2.2.3 開機流程中的 BIOS 與 UEFI 開機檢測程式)
    我給的 New Size 是「756 Mib」 ,Partition Name 給 「/boot/efi」,File System 給 「FAT32」

    View post on imgur.com

  14. SWAT 給 RAM 的大小。我給 New Size:「32768」(Mib),就是 32 Gib。Partition Name 給「swap」,File System 給「linux-swap」。

    View post on imgur.com

  15. 接下來是切根目錄的空間,我給 New Sise:「61440」(Mib),就是 60 Gib。 Partition Name 給「/」,File System 給「Ext4」。

    View post on imgur.com

  16. 剩下的其他給 /home

    View post on imgur.com

  17. 最後按 「Apply」*2 就可以了。然後關機 (Shut Down)。

    View post on imgur.com

    View post on imgur.com

  18. 接著插入 步驟 2. 製作的 Opensuse 安裝 USB,進入安裝(Installation)。(以下大多 follow Dual Boot openSUSE Leap and Windows 10 UEFI 的流程。)

    View post on imgur.com

  19. 進入後,按一連串的 Accept、Next、Next。

    View post on imgur.com

    View post on imgur.com

    View post on imgur.com

  20. 在硬碟配置的地方,選擇「Expert Partitioner」

    View post on imgur.com

  21. 你會發現一些東西被改掉了,我們要把他改回來。

    View post on imgur.com

  22. 首先刪除自己冒出來的 /dev/sda4 的 /boot/efi ,按右鍵,「delete」

    View post on imgur.com

  23. 接著把 /dev/sda1 修改回來,按右鍵「Edit」,進入後,長這樣:

    View post on imgur.com

    把 File System ID 改回 「0X00 EFI Boot」,Mount Point 選「/boot/efi」

    View post on imgur.com

  24. 接著把自己產生的 40 Gib 的根目錄 「delete」

    View post on imgur.com

  25. 然後修改 60Gib 的 /dev/sda3,

    View post on imgur.com

    Mount Point 改回「/」。

    View post on imgur.com

  26. 然後刪除 XFS type 的 /home。

    View post on imgur.com

  27. 新增 /home 磁區

    View post on imgur.com

    剩餘全部的空間

    View post on imgur.com

    選擇 OS

    View post on imgur.com

    「Ext4」、「/home」

    View post on imgur.com

  28. 恢復原狀後,按「Accept」、「Accept」

    View post on imgur.com

    View post on imgur.com

  29. 選擇台北時區,以及 「KDE Desktop」

    View post on imgur.com

    View post on imgur.com

  30. 接下來,要把「Enable Secure Boot」關掉

    View post on imgur.com

    按一下「Booting」

    View post on imgur.com

    取消「Enable Secure Booting Support」

    View post on imgur.com

    然後就取消了

    View post on imgur.com

    接著按 「Install」。

  31. 然後再按「Install」,就開始安裝了。

    View post on imgur.com

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *