当前位置: 技术问答>linux和unix
关于Linux分区的一些疑惑
来源: 互联网 发布时间:2017-05-23
本文导语: 我已经知道安装Linux至少要有两个分区 / 分区和swap分区,我也是这样创建的,书上还说有其他常用分区/boot /usr /home 等可以依据情况建立与否 但是进入/ 分区后发现还有一堆home usr b...
我已经知道安装Linux至少要有两个分区 / 分区和swap分区,我也是这样创建的,书上还说有其他常用分区/boot /usr /home 等可以依据情况建立与否
但是进入/ 分区后发现还有一堆home usr boot等的目录。
请问: 这些目录和常用的/boot /usr /home 等分区是什么关系?
我一直纠结啊? 求好人解惑!
但是进入/ 分区后发现还有一堆home usr boot等的目录。
请问: 这些目录和常用的/boot /usr /home 等分区是什么关系?
我一直纠结啊? 求好人解惑!
|
一样的。区别就是/home有专门的分区还是和/公用分区。
|
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s2-diskpartrecommend-x86.html
If you partition your disk array (sda) to sda1 and sda2 then mount / on sda1, mount swap on sda2. Then everything else you mentioned, such as /usr, /home, are folders (parts of the file system and are )under partition 1 where root is mounted on.
I always thought /boot should be on its own partition, I guess I was wrong. I must do too much lvms...
If you partition your disk array (sda) to sda1 and sda2 then mount / on sda1, mount swap on sda2. Then everything else you mentioned, such as /usr, /home, are folders (parts of the file system and are )under partition 1 where root is mounted on.
I always thought /boot should be on its own partition, I guess I was wrong. I must do too much lvms...