1

Ubuntu 19.10 is released. How do I partition my disk, and do I need the swap partition?

Artur Meinild
  • 26,018
EDLIU
  • 57
  • 1
  • 5
  • 1
    Let the installer do it. No swap partition is needed. – user68186 Oct 17 '19 at 20:39
  • I would not recommend a swap partition. IMO a swapfile is better utilized than a swap partition. Please have a look at https://askubuntu.com/q/1165477/968501 – Raffa Oct 17 '19 at 20:40
  • Two choices, about 25GB for /root and the rest for /home, or just one partition of /, but make sure it is big enough to hold everything(all of disk). If new drive will need about 300MB for a EFI partition also. It is better to go too big now than too small and have to expand after. – crip659 Oct 17 '19 at 20:59
  • Use the 'something else' option on the installer. It is the bottom choice. I usually like to set up partitions with gparted before I install. Can do it when you use 'try ubuntu' to make sure everything works. – crip659 Oct 17 '19 at 21:10
  • The extra / partition usually helps save data if you need to reinstall or upgrade. Not 100% so you should keep backups of important data. – crip659 Oct 17 '19 at 21:18
  • Please take a look at this question: https://askubuntu.com/q/1177861/1001196 – EDLIU Oct 17 '19 at 21:26
  • How do I setup a swapfile? If no swap partition is needed, then do I set the / partition as Primary or Logical? https://linuxize.com/post/create-a-linux-swap-file/ – EDLIU Nov 05 '19 at 00:11
  • 3
  • This question was not EoSS or EOL when it was submitted. I'm voting to Leave Open. – C.S.Cameron Aug 15 '22 at 14:55

1 Answers1

0

Ubuntu 19.10 only needs a swap partition if you use Hibernation. If you do, the swap partition should be set to equal your memory size.

Otherwise, the Ubiquity installer used by Ubuntu will create an optimally sized swap file. If later on you discover you need to enlarge the swap file, because of very memory-hungry apps, it is far easier to enlarge a swap file than a swap partition.

Early on, before 17.10, swap partitions were also faster than swap files, but that was fixed two years ago. Now the only need for a swap partition is for Hibernation.

K7AAY
  • 17,202