# 第一次實體機安裝LINUX ###### tags: `nonetype` Copyright 2021, [月下麒麟 YMont](https://hackmd.io/@YMont/note-catalog) --- ## Record 修改BIOS設定 關閉fast boot ==Disabled== ![](https://i.imgur.com/c6cqaNl.png) 變更Boot順序(開機順序),==Boot Option \#1 [USB CD/DVD]== (預設是CD/DVD為\#1 , USB CD/DVD為\#2) ![](https://i.imgur.com/Hqw6qLd.png) 關閉sercur boot ==Disabled== ![](https://i.imgur.com/68FmNAW.png) 不需要partition /boot的說明 `Generally speaking, unless you're dealing with encryption, or RAID, you don't need a separate /boot partition.` ` That said, I occasionally find a use for adding a separate /boot partition as a FAT partition. This allows your dual-boot system to make alterations to your GRUB config, so you can create a batch file to shut down windows and alter the default menu choice so that it boots something else next. Most people don't need this, but I've had a few projects which required switching back and forth, and it allows it to be done entirely by script.` 確認==筆電磁碟==是分割是`GPT` ``` 1. 在快速啟動列點選檔案總管的捷徑圖示,開啟檔案總管。 2. 對著「本機」按滑鼠右鍵,選擇「管理」。 3. 選擇「磁碟管理」。 4. 對著要檢查的磁碟按滑鼠右鍵,點選「內容」。 5. 選擇「磁碟區」。 6. 顯示硬碟的「磁碟分割表樣式」為GPT,如下圖所示,點選「確定」。 ``` ![](https://i.imgur.com/lC6iSyP.png =60%x) 選擇完開機檔案(.iso)後,資料分割配置,選用==GPT== ![](https://i.imgur.com/8CNCFld.png =60%x) 該圖片參考至如下網站文章所截圖,該文章教學相當詳細。 reference: [Ubuntu 20.04製作Live USB隨身碟的軟體rufus](https://blog.xuite.net/yh96301/blog/450717778-Rufus%E8%A3%BD%E4%BD%9CUbuntu+16.04+USB%E5%AE%89%E8%A3%9D%E9%9A%A8%E8%BA%AB%E7%A2%9F) 利用rufus掛載完的安裝檔格式 `Rufus 是個能格式化並製作可開機 USB 快閃磁碟機(USB 隨身碟、Memory Stick 等等)的工具` reference: [Rufus download](https://rufus.ie/zh_TW/) ![](https://i.imgur.com/XpnK6OL.png =50%x) 進行安裝,首先要從安裝作業系統的第一個步驟就是要選擇「從安裝媒體開機」,教學中會使用 USB 隨身碟安裝 Ubuntu,所以就要選擇「從 USB 隨身碟開機」,才能順利進入安裝的畫面。 每個電腦製造商開機時要進入開機選單的按鍵都不太一樣,以我的筆電MSI為例是在開機前按==F11== 進入後會看到這個畫面 ![](https://i.imgur.com/yjRzCmD.png =80%x) referenece:[如何透過 USB 安裝 Ubuntu 作業系統?完整教學指南](https://adersaytech.com/practical-software/ubuntu-install-tutorial.html) --- **開始安裝** 將已掛載好的USB插上欲安裝新系統Linux的電腦上 插上USB前 ![](https://i.imgur.com/MGGBadV.png =60%x) 插上USB後 ![](https://i.imgur.com/aVxmAco.png =60%x) 進行check disk ![](https://i.imgur.com/XMmBJkR.png =40%x) 將聲音關掉,連上網路 ![](https://i.imgur.com/sKZUTVu.jpg =40%x) 選擇右側的正式安裝 ![](https://i.imgur.com/hbOmzMe.jpg =60%x) 選擇鍵盤架構 ![](https://i.imgur.com/9klGMaA.png =60%x) 更新與其他軟體 ![](https://i.imgur.com/GYCiy4f.jpg =60%x) 安裝類型,這部很重要,我們要用手動模式 ![](https://i.imgur.com/aPlD9On.jpg =60%x) 進入切割磁碟畫面 ![](https://i.imgur.com/sc2EKP9.jpg =60%x) 首先,找到欲先從windows切割出來未配置的空間200GB (小技巧就是記住前後的磁碟大小,才不會選錯) (200GB == 204800 Bytes) ![](https://i.imgur.com/gpAZyy1.jpg =60%x) 點擊下方的"+"符號,新增配置空間 先配置"/"的空間(40GB)。配完後,原本的200GB就會變少。 ![](https://i.imgur.com/uey7KuG.jpg =60%x) 接著,配置"/home"空間(20GB) ![](https://i.imgur.com/1swIWIv.jpg =60%x) 沒拍到切割swap畫面,用文字補充,其空間為50GB 參數Use as選"swap" ==就是磁碟模擬成為記憶體,由於swap並不會使用到目錄樹的掛載,所以用swap就不需要指定掛載點== ![](https://i.imgur.com/pqgrupS.png =50%x) 切割完/ , /home , swap後,接著選擇機器啟動的硬碟 (選/dev/sda這顆) ![](https://i.imgur.com/C89pV5d.png =60%x) 按下install Now 再次跟你確認切割資訊是否正確 ![](https://i.imgur.com/rOiERGi.png =60%x) 選擇時區 ![](https://i.imgur.com/hbyyTd0.jpg =60%x) 安裝完畢,需要重啟電腦 ![](https://i.imgur.com/9dHO6UR.png =50%x) 開機後,再次進入選擇作業系統 會發現window下方多一個Ubuntu ![](https://i.imgur.com/NIjNNbH.png =60%x) 登入後,桌面正常顯示 開啟Terminal(ctrl + alt + T),成功 接著進行一連串的更新 `$ sudo apt update` `$ apt list --upgradable` `$ sudo apt upgrade` `$ sudo apt dist-upgrade` `$ sudo apt autoremove` refernece:[How to Update Ubuntu packages on Ubuntu 20.04 Focal Fossa Linux](https://linuxconfig.org/how-to-update-ubuntu-packages-on-ubuntu-20-04-focal-fossa-linux) --- reference: [ 這篇不錯 Is it necessary to have a /home and /swap partitions in 20.04](https://askubuntu.com/questions/1234838/is-it-necessary-to-have-a-home-and-swap-partitions-in-20-04) reference: [這篇更好 How To Install Ubuntu 20.04 LTS (Focal Fossa) On UEFI and Legacy BIOS System](https://www.itzgeek.com/post/how-to-install-ubuntu-20-04-lts/) reference: [中文的安裝教學 Win10 and Ubuntu 雙系統安裝筆記](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) reference: [Ubuntu 20.04 雙系統安裝完整教程](https://www.uj5u.com/caozuo/295891.html) reference: [(保姆式教學) Win10 + Ubuntu 20.04——雙系統安裝方法 + 配置顯示卡 + root許可權 + flash調配](https://www.gushiciku.cn/pl/gfr7/zh-tw) --- 補充: ![](https://i.imgur.com/AsxJxby.png =80%x) ---