PDA

View Full Version : swap space, how?



Curbside Jimmy
October 28th, 2014, 03:26 PM
I have loaded ubuntu lots of times but I have never been able to figure out how to add swap space when the dialog comes up. It is part of the instalation process but as far as I can tell there is no way to do it.

I always install ubuntu on a seperate partitioon.

How exactly does one assign swap space?

mastablasta
October 28th, 2014, 03:43 PM
this works on manual partitioning /expert mode whatever is called now...

select /swap as mount point, dedicate disk size to that partition, then select to format it as swap.

I am not sure where you have the problem to explain it better. I mean at what step do you miss it?

Curbside Jimmy
October 28th, 2014, 03:50 PM
I have not seen that exact choice. I actually made two partitions for ubuntu with a small one for swap space, I ended up using the large one only and skipping swap space. Are you saying that I should have chosen to format the smaller partition as /swap? I am about to install ubuntu on another computer.
Do I actually need two partions, or can this be accomplished with just one partition?

sudodus
October 28th, 2014, 04:49 PM
Select Something else at the partitioning window. Normally all available swap partitions are set to be used automatically, but you can select or de-select each of them (if you have more than one swap partition).

You can even select to have no swap, but it is recommended to have at least a small swap partition for example 512 MB or 1 GB. If you intend to hibernate, you need at least as much swap as RAM (in Gibibytes; base 2), otherwise you can have less, and when you notice that the computer starts swapping you can close some application.

mastablasta
October 29th, 2014, 03:10 PM
I have not seen that exact choice. I actually made two partitions for ubuntu with a small one for swap space, I ended up using the large one only and skipping swap space. Are you saying that I should have chosen to format the smaller partition as /swap? I am about to install ubuntu on another computer.
Do I actually need two partions, or can this be accomplished with just one partition?

mount point is /swap
file format: swap

you could do it with a file but it's more complicated.

Herman
October 30th, 2014, 11:45 AM
Dynamic Swap Space Manager (http://pqxx.org/development/swapspace/) is an option worth considering for anyone who has installed without creating a swap area.
It's easy to use, all we need to do is install it.
sudo apt-get install swapspaceI have been using it for years and it works well for me. Performance doesn't seem to suffer at all. A disadvantage is we lose the option to hibernate our systems, but we can still suspend if we don't want to shut down. It offers quite a savings in disk space for anyone installing with limited disk space such as in an SSD or flash memory. Also it may possibly help to reduce and spread wear on the flash cells. I use it for hard drives too.