1

I have to replace the old 2.5" SATA disk with new HDD (SATA) and make a clean installation (Ubuntu 18). What would be basic partitioning scheme for laptop 1TB (SATA) hard drive and 4GB RAM? I want to have separate partitions /usr, /home, /var and /tmp

Please advice approximate reasonable size for these. Does ubuntu 18.04 use swap file or swap partition?

Lexx Luxx
  • 549
  • 2
  • 7
  • 12

2 Answers2

1

The basic partitioning scheme would be the default partitioning scheme of the Ubuntu installer: one single partition (and depending on how you boot, an EFI partition). Current versions of Ubuntu by default use a swap file instead of a dedicated swap partition.

vanadium
  • 82,909
  • 6
  • 116
  • 186
  • I'm going to install ubuntu 18.04 LTS, currently is used default "legacy" boot [mode](https://ibb.co/D8WbyKc). Do I need /boot and /boot/efi partitions? – Lexx Luxx Nov 14 '20 at 17:03
  • Just let the installer do the partitioning. In legacy you do not need an efi. A separate boot is only used if you choose to encrypt the system partition. – vanadium Nov 14 '20 at 17:45
  • I need separate /usr, /home, /var and /tmp partitions – Lexx Luxx Nov 14 '20 at 21:21
  • That is utterly unclear from your question. Please edit your question and explain your goals. – vanadium Nov 15 '20 at 09:39
0

For this purpose I would create 4-5 partitions:

  • / (at least 15-20 GB, depends on which programs you'll use)
  • /boot (~512MB)
  • /home (rest of you free space)
  • efi-partition mounted at /boot/efi (~512MB)
  • /swap (since you have only 4GB RAM I would take at least 8GB for it)

You may also use a swapfile located at / instead of an extra partition.

glootie
  • 11
  • 1
  • 4
  • 1
    OP: Read some of the questions about boot partition filling up before choosing this approach https://askubuntu.com/q/785460/243321 – Organic Marble Nov 14 '20 at 14:57