技术流ken

运维拯救世界

Linux系统安装时要分几个区?如何规划分区?–技术流ken

Linux下没有分区,只有挂载点,类似于Window下的分区。


1. 挂载点主要有 / 、 swap 、 /home 等,它们都有什么具体的含义呢?

建议挂载的几大目录:

/-------根目录,唯一必须挂载的目录。不要有任何的犹豫,选一个分区,挂载它!(在绝大多数情况下  有2G的容量应该是够用了。当然了,很多东西都是多多益善的)
swap----交换分区,可能不是必须的,不过按照传统,并且照顾到您的安全感,还是挂载它吧。它的容量  只要约等于您的物理内存就可以了,如果超过了您物理内存两倍的容量,那绝对是一种浪费。
/home---这是您的家目录,通常您自己创建的文件,都保存在这里,您最好给它分配一个分区
/usr----应用程序目录。大部分的软件都安装在这里,如果您计划安装许多软件,建议也给它分配一个分区
/var----如果您要作一些服务器方面的应用,可以考虑给它分配一个较大的分区
/boot---如果您的硬盘不支持LBA模式(不太可能),您最好挂载它,如果挂载,将它挂载在硬盘的第一个  分区,应该比较稳妥。一般来说,挂载的分区只要100M大小就足够了

一般来说,在linux系统中都有最少两个挂载点,分别是/ (根目录)及 swap(交换分区),其中,/ 是必须的!那别的分区我们有没有挂上去的必要呢?这就得看你的需求了。我们继续往下看!

 


2.几种基本的划分

2.1 对初次接触的新手或硬盘空间有限Desktop的安装建议

挂载点          装置                            说明
/               /dev/hda1                       可用空间-swap大小后的所有空间     
/swap           /dev/hda2                       大约内存大小(建议至少512MB)

2.2 对高级Desktop用户的安装建议:

挂载点          装置                            说明
/               /dev/hda1                       10~15G足矣    
/home           /dev/hda2                       最大的剩余空间    
/boot           /dev/hda3                       100MB即可    
/swap           /dev/hda5                       大约内存大小(建议至少512MB)

 

2.3 对高级Server用户的安装建议:

挂载点          装置                            说明
/               /dev/hda1                       10~15G足矣    
/home           /dev/hda2                       最大的剩余空间     
/boot           /dev/hda3                       100MB即可   
/swap           /dev/hda5                       大约内存大小(建议至少512MB)
/var            /dev/hda6                       视服务器功能决定大小,至少需要1GB以上    
/usr            /dev/hda7                       最大的剩余空间的一半

 

10 thoughts on “Linux系统安装时要分几个区?如何规划分区?–技术流ken

  1. That is the fitting blog for anybody who wants to seek out out about this topic. You realize so much its almost exhausting to argue with you (not that I truly would need匟aHa). You definitely put a brand new spin on a topic thats been written about for years. Nice stuff, just great!

  2. I needed to create you the very small observation in order to say thanks a lot once again considering the nice pointers you have documented on this site. It was open-handed of people like you to present without restraint precisely what a few people could have distributed as an e book to earn some dough for themselves, primarily considering that you might have done it if you ever desired. Those tips as well acted to become great way to know that other people online have the same desire just as my own to know more on the subject of this problem. I know there are some more pleasurable sessions in the future for folks who read through your website.

  3. I enjoy you because of your entire effort on this website. My mum really loves doing investigation and it is obvious why. All of us learn all regarding the dynamic form you give sensible items on your web blog and as well boost participation from website visitors on that matter so my child is in fact discovering a great deal. Take advantage of the remaining portion of the new year. You’re the one carrying out a superb job.

  4. I am just commenting to make you know what a great discovery my child gained using your blog. She came to understand lots of details, with the inclusion of what it’s like to have an incredible helping mindset to get the others completely learn about a variety of tricky subject matter. You undoubtedly surpassed visitors’ desires. Thank you for displaying the helpful, trusted, educational and even unique guidance on this topic to Lizeth.

  5. I have to show my appreciation for your kindness in support of individuals who must have help with this subject matter. Your personal dedication to getting the solution all through turned out to be extraordinarily useful and has without exception encouraged people much like me to arrive at their objectives. Your new valuable guidelines means a whole lot to me and far more to my office colleagues. Thanks a lot; from each one of us.

  6. Thanks for your whole labor on this blog. Ellie enjoys carrying out investigation and it’s obvious why. We hear all about the dynamic manner you render reliable tactics by means of your web site and as well as welcome contribution from the others about this theme and our favorite daughter is truly starting to learn a lot. Enjoy the remaining portion of the new year. You have been carrying out a very good job.

  7. I want to express some thanks to you for rescuing me from this dilemma. Right after scouting through the internet and getting basics which are not powerful, I was thinking my life was over. Existing without the approaches to the difficulties you’ve sorted out through your entire guide is a serious case, and the kind that would have adversely damaged my entire career if I had not noticed the website. Your own personal knowledge and kindness in controlling a lot of things was excellent. I am not sure what I would have done if I had not encountered such a thing like this. I’m able to at this moment relish my future. Thanks for your time very much for the expert and effective guide. I will not hesitate to endorse your web page to anybody who should get direction on this matter.

  8. I intended to write you one very little word to be able to thank you so much yet again for the breathtaking principles you have discussed in this article. This is so particularly generous of you to provide extensively all that a number of us would’ve offered for sale for an ebook in making some cash on their own, most importantly seeing that you could have tried it if you considered necessary. The concepts likewise acted as a great way to recognize that most people have the identical interest like my very own to see a little more with regard to this matter. I’m sure there are a lot more enjoyable opportunities ahead for individuals who go through your website.

  9. Thank you a lot for providing individuals with a very wonderful opportunity to read articles and blog posts from this website. It really is so great plus full of amusement for me and my office colleagues to visit your blog at least 3 times every week to read through the fresh tips you have got. And of course, I’m so at all times satisfied with your brilliant information you serve. Some two facts in this posting are completely the most impressive I have ever had.

  10. Thank you for your own efforts on this blog. My daughter really likes carrying out internet research and it is easy to understand why. My spouse and i know all regarding the powerful form you create valuable items through the web blog and even boost response from visitors on that matter then my child is really studying a lot of things. Take advantage of the rest of the year. You’re carrying out a great job.

发表评论

电子邮件地址不会被公开。