Linux - system partition scheme

Wen Yuan 2022-06-24 08:05:01 阅读数:960

linuxpartitionscheme

background

Recently installed via virtual machine Linux The system conducts small project experiments , I have never installed my own system , I have made great efforts to learn how to partition , Two common partition schemes are summarized .

Partition plan

programme 1: Normal server

Usually develop / test , Or data is not important :

  • /boot: <ext4> 200MB
  • swap: <swap> Physical memory 1.5 times , When memory is greater than or equal to 8GB when , Configure to 8-16GB that will do
  • /: <ext4> The amount of free hard disk space

programme 2: Data storage nodes

Server mainly used for data storage :

  • /boot: <ext4> 200MB
  • /: <ext4> The size is set to 50-200GB, Store only system related documents , Website and other business data are not put here .
  • swap: <swap> Physical memory 1.5 times , When memory is greater than or equal to 8GB when , Configure to 8-16GB that will do
  • /data: <ext4> Release important data

notes : This scheme is to partition important data separately , Easy to back up and manage .

copyright:author[Wen Yuan],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/175/20210628191923955W.html