2

I just got a recent Dell XPS 13 laptop. I'd like to install a Linux distro, but I have a requirement that I need hibernate to work. I've read that I need the swap partition to be at least 2x the size of the amount of RAM (so >16GB). I find the UI for configuring the partitions in the installer quite confusing. Any help?


The installer is not giving me an option to change the partition sizes. 1GB is not enough for swap.

No way to edit the partition table either.

And if I boot straight into the installer, it crashes on the partitioning even if I leave it alone.

:P connected to my bluetooth headphones

  • Are you going to dual boot? If not you could try erasing all disk and selecting the "Use LVM" option during installation. You would then be able to resize partition after installation. – endorama Dec 19 '19 at 21:52
2

I know that with at least the elementaryOS 5.0 "Juno" install media you are able to create custom partition tables.

Proceed through the installation wizard, and when you get to the "Installation Type" screen, select "Something else." installationtype_select_something else

From here you can add/remove/change partitions. customize_partitions

If you're using a different version or are used to using other tools, you could consider partitioning the disk first, and then install the OS later.

For example, with the elementaryOS 5.0 install disk:

  1. Boot from the installation media and select "Try elementaryOS without installing" from the menu. bootmenu
  2. Run GParted and create the partitions exactly as you'd like. If you'd only like to create the swap partition, then you could do that and point the installer at it later. In this example, I'm creating a 2GB swap partition at the end of the disk. creating_swap_in_gparted Note: GParted is included with the live distro by default (at least in 5.0 Juno), but some people prefer to use Gnome-Disk-Utilities. You can install it from the command line with sudo apt install gnome-disk-utility.
  3. Save the partition table changes and reboot the PC
  4. Proceed through the installation wizard, and when you get to the "Installation Type" screen, select "Something else." installationtype_select_something else From here you can add/remove/change partitions. customize_partitions

Also as a side note, it may not be necessary to set the swap as double your RAM. Abhishek Prakash over at It's Foss recently wrote an article about swap file sizing that you might want to check out. The short version is that RedHat, CentOS, and Ubuntu suggest slightly different calculations. Since elementaryOS is Ubuntu-derived, here's what he says Ubuntu recommends:

If hibernation is used, swap size should be equal to size of RAM plus the square root of the RAM size

Check the article for a table containing examples with common RAM sizes if you don't have to worry about performing the calculation yourself.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.