A
A
AUN2015-08-29 15:32:19
linux
AUN, 2015-08-29 15:32:19

Disk layout. How right?

Hey! I'm setting up a web server under Debian, I need to partition the disk. There will be several small sites on the server. How to properly mark? I'm leaning towards:

  1. /ext4 4gb
  2. /boot ext2 100mb
  3. /tmp ext2 2gb
  4. swap 2*RAM=2gb
  5. /varext4 4gb
  6. /var/www ext4 6gb
  7. /var/log ext4 2gb

PS 1GB RAM, 20GB HDD

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan Fedoseev, 2015-08-29
@martin74ua

do not engage in nonsense, trust the installer. In 99% of cases /boot + lvm root + swap configuration is more than enough

M
Mikhail Konyukhov, 2015-09-01
@piromanlynx

Your best bet is to use lvm.
/boot - ext3 outside of lvm, just partition
and root, swap and /var on LVM.
There is a PHP session in /tmp - make it tmpfs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question