ubuntu分区方案(合并分区)

MostPCoperatingsystemsstillworkwithanancientdiskpartitionschemethathistoricallymakesdistinctionbetweenprimaryandextendedpartitions.Italsoplacesalimitationforfourprimarypart

大家好,又见面了,我是你们的朋友全栈君。

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 本身并不影响分区的性能和使用。

参考文献

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/129554.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 怎么成为一个比较成功的IT人士

    怎么成为一个比较成功的IT人士

    2021年8月19日
    43
  • SQL Server 2005“备份集中的数据库备份与现有的数据库不同”解决方法

    SQL Server 2005“备份集中的数据库备份与现有的数据库不同”解决方法以前一直使用SQLServer2000,现在跟潮流都这么紧,而且制定要求使用SQLServer2005,就在现在的项目中使用它了。 对于SQLServer2005,有几个地方是要注意的,比方在还原数据库时,不像2000里边将数据库和文件区分的很细,统一均为文件,这就使还原的数据库文件制定为.bak。那么想还原2000的数据库(备份数据库文件,无后缀名的),就需要自己手工选择。

    2022年5月26日
    26
  • Java中CAS详解

    Java中CAS详解在JDK5之前Java语言是靠synchronized关键字保证同步的,这会导致有锁锁机制存在以下问题:(1)在多线程竞争下,加锁、释放锁会导致比较多的上下文切换和调度延时,引起性能问题。(2)一个线程持有锁会导致其它所有需要此锁的线程挂起。(3)如果一个优先级高的线程等待一个优先级低的线程释放锁会导致优先级倒置,引起性能风险。volatile是不错的机制,但是volatile不能保证原子性。因此对于同步最终还是要回到锁机制上来。独占锁是一种悲观锁,synchronized就是一种独占锁,会导

    2022年7月7日
    34
  • python dll注入监听_DLL注入和API拦截

    python dll注入监听_DLL注入和API拦截读《Windows核心编程》笔记一DLL注入和API拦截在Windows中,每个进程相互独立,都有自己的私有的地址空间,程序中使用的指针都是进程自己地址空间的一个内存地址,无法创建也没法使用其他进程的指针。这种机制使得各个进程之间不会相互影响,万一自己出现了问题,也不会影响到其他的进程。对用户来说,系统更加的稳定了,但是对于开发人员来说,会使我们很难编写能够与其他进程通信的应用程序或对其他进程进…

    2022年5月16日
    46
  • jps 命令_jps只有一个jps进程

    jps 命令_jps只有一个jps进程简介jps(全称:JavaVirtualMachineProcessStatusTool)是java提供的一个用来显示当前所有java进程的pid的命令。unix系统里也有一个ps命令,用来显示当前系统的进程id及其基本情况。配置环境变量jsp命令的位置在JAVA_HOME/bin/jps下,如果使用sudoaptgetinstall、dpkg-i、yuminstall命令进行安装,会自动配置环境变量。如果手动解压,可以编辑~/.bashrc

    2022年9月19日
    4
  • 3DCNN

    3DCNN学习论文Appearance-and-RelationNetworksforVideoClassification的时候看到了3DCNN,因为是第一次接触视频分类,因此,查询学习转自:https://blog.csdn.net/zouxy09/article/details/9002508最近看DeepLearning的论文,看到这篇论文:3DConvolutionalNeural…

    2022年6月11日
    49

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号