I have 32Gb RAM and this web server using Nginx and Web Application with MySQL database.
I plan to partition my SSD hard drive into /boot/efi, swap, /, and /home. If considering the beginning of my disk is faster than its end, how shall I arrange the order of my partitions?
Should
/(root) be as close to the front as possible, because there is the running OS?Should swap also be as close to the front as possible, because swapping back and forth with main memory should be fast?
Does
efineed to be near the front or not?How about
/home?Which one is the correct orders option 1 or 2?
The correct order for the size of the partition from smallest to largest. Example:
- /dev/sda1=/boot/efi = 1-2Gb
- /dev/sda2=Swap = 8 GB
- /dev/sda3=/(root) = 50Gb
- /dev/sda4=/home = 100Gb (without /home recomended or not?)
Largest to smallest:
- /dev/sda1=/home = 100Gb (without /home recomended or not?)
- /dev/sda2=/(root) = 50Gb
- /dev/sda3=swap=8Gb
- /dev/sda4=/boot/efi = 1-2Gb