Ubuntu分區小知識與分區方案


Most PC operating systems still work with an ancient disk partition scheme that historically makes distinction between primary and extended partitions. It also places a limitation for four primary partitions or three primary partitions and one extended partition. When present, an extended partition can then be divided into any number number of logical partitions.
However, many recent (since 2011) machines use a different and incompatible scheme known as "gpt" which allows many more primary partitions. Search these pages for UEFI to learn how to tell which scheme your system is using; applying techniques for one scheme to a system that uses the other will definitely lead to possibly serious problems.
Each Windows installation will need to be installed on a primary partition. Windows systems commonly assign a drive letter to each individual (Windows) partition.
Linux operating systems need a minimum of one partition: one for the OS itself (and data files) and optionally one for a swap area (to be used as an extension for RAM memory) if preferred over a swap file.
While these two partitions can be primary partitions, more flexibility is afforded when logical partitions (within the extended partition) are used. In this manner, as many partitions can be created as is desired. Multiple (Ubuntu Linux and Mac) operating systems can be installed, each in its own partition, and data can also be more easily compartmentalized when it is placed within individually separate logical partitions. (The swap partition can also be located on a logical partition.)

一句話概括:Ubuntu系統在一個硬盤上只支持最多4個 Primary 分區或3個 Primary 分區加1個 Extended 分區。Extended 分區下面可以有多個 Logical 分區。

以2TB大小的硬盤為例,結合官方推薦的分區方案(單系統):

  • swap: 10GB (10240MB)
    這是10GB是以系統內存大小4GB的2倍為依據的。也就是說,swap 分區的大小要大於系統內存大小的2倍。

  • (root)/: 30GB (30960MB)
    存放 Ubuntu 系統文件和程序

  • /home: 100GB (102400MB)
    存放系統/應用的配置文件,數據和其他文件。Ubuntu 下新建一個用戶會自動在/home文件夾下新建對應的文件夾/username,這個用戶的文檔、下載等都存放在這個文件夾里,所以這個分區不能太小。

  • 10850GB空間分給其他,比如/data/存放數據或/download當下載盤。

參考文獻

根據我自己查到的資料,分區類型為 Primary 或 Logical 本身並不影響分區的性能和使用。

參考文獻


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM