It depends on personal habits, many people have different methods;
I use debian 7, the division is as follows:
Swap is as big as the memory. Personally, I think this highlights the significance of swap (as a memory swap, of course it must be able to fit the entire memory to be "perfect")
"/" can be divided into at most 30G, because I really can't think of any reason to put too many things in the non-home directory;
/opt: If you have the habit of installing programs here, then divide it into a larger one. I don’t have this habit, so I don’t divide it here. Let’s mix it with “/”
The rest are all in /home. I am used to bumping the installed programs into /home/xxx/installations/xxx
In this case, every time I change computers, I only need to tar -czvf xxx.tar.gz /home/xxx; then after the new machine is installed, go to tar -xzvf and it will be done
In short, there are different partitioning schemes depending on your purpose and hard drive size. There is no recognized best, only what you think is best after using it. Just like going from Shanghai to Beijing, drive, take a long-distance bus, take a train, fly, walk, or ride a bicycle? All are available, depending on the needs.
In addition, I have a complaint: Linux is too customizable, and many novices are at a loss as to what to do. They are always thinking about: what kind of partition is optimal, what file system is best, what desktop system is best, and what kind of desktop system is best? Which player is best and which browser is best...
I would also struggle with this. So, I guess after you decide on the partition plan, you will be confused (perhaps after a while) about which file system to use. I'm not laughing at you, I'm complaining about Linux. It provides too many choices and is too unfriendly to novices. Novices should have no choice.
If this is your first time using Linux or Ubuntu, I recommend using a virtual machine and selecting All to the root directory, which is the default partition plan of the installation wizard.
Familiarize yourself with the Linux directory file management method in the system. Once you are familiar with it, you can partition according to your own needs.
Tell me about your partition plan. Mine is a 2T warehouse hard drive + 240G SSD
The SSD is divided into /
The warehouse disk is divided into one /HDD
Then I created several directories such as Music Video Documents under /HDD and used links to do it under /home/User/
The Swap partition was also divided due to obsessive-compulsive disorder...
/tmp is a little bit, it will be used when burning a CD or something. I ran some services, so /var is a bit big, and the space of / does not need to be too large. Of course, it depends on how many software you are used to installing.
For other things, use custom mount points in /home or other self-built partitions.
By the way, the memory is 8G, and swap is divided into 10G:
It depends on personal habits, many people have different methods;
I use debian 7, the division is as follows:
Swap is as big as the memory. Personally, I think this highlights the significance of swap (as a memory swap, of course it must be able to fit the entire memory to be "perfect")
"/" can be divided into at most 30G, because I really can't think of any reason to put too many things in the non-home directory;
/opt: If you have the habit of installing programs here, then divide it into a larger one. I don’t have this habit, so I don’t divide it here. Let’s mix it with “/”
The rest are all in /home. I am used to bumping the installed programs into /home/xxx/installations/xxx
In this case, every time I change computers, I only need to tar -czvf xxx.tar.gz /home/xxx; then after the new machine is installed, go to tar -xzvf and it will be done
Look at this ubuntu partition plan
In short, there are different partitioning schemes depending on your purpose and hard drive size. There is no recognized best, only what you think is best after using it. Just like going from Shanghai to Beijing, drive, take a long-distance bus, take a train, fly, walk, or ride a bicycle? All are available, depending on the needs.
In addition, I have a complaint: Linux is too customizable, and many novices are at a loss as to what to do. They are always thinking about: what kind of partition is optimal, what file system is best, what desktop system is best, and what kind of desktop system is best? Which player is best and which browser is best...
I would also struggle with this. So, I guess after you decide on the partition plan, you will be confused (perhaps after a while) about which file system to use. I'm not laughing at you, I'm complaining about Linux. It provides too many choices and is too unfriendly to novices. Novices should have no choice.
If this is your first time using Linux or Ubuntu, I recommend using a virtual machine and selecting All to the root directory, which is the default partition plan of the installation wizard.
Familiarize yourself with the Linux directory file management method in the system. Once you are familiar with it, you can partition according to your own needs.
Tell me about your partition plan. Mine is a 2T warehouse hard drive + 240G SSD
The SSD is divided into /
The warehouse disk is divided into one /HDD
Then I created several directories such as Music Video Documents under /HDD and used links to do it under /home/User/
The Swap partition was also divided due to obsessive-compulsive disorder...
It is recommended to directly default the partition
I hung up the home myself...boot was not hung up~
/Directory gave 100G
/home gave 200G
swap is 2050M
The other 200G is given to windows...
haha, I don’t partition
I usually have a 2~4G
swap
space, a 200Mboot
partition, and then/home
and/
half eachA system that I have used for several years, not a server, for reference:
/tmp is a little bit, it will be used when burning a CD or something. I ran some services, so /var is a bit big, and the space of / does not need to be too large. Of course, it depends on how many software you are used to installing.
For other things, use custom mount points in /home or other self-built partitions.
By the way, the memory is 8G, and swap is divided into 10G: