Workspaces Queston *answered*

Liam Proven lproven at gmail.com
Fri Jun 12 17:35:47 UTC 2020


On Fri, 12 Jun 2020 at 18:33, Jay Ridgley <jridgley2 at austin.rr.com> wrote:
> >
> I am an old stick in the mud and have always used a swap partition.

Yes, I usually do, too.

I have 1 laptop with no HDD, just 2 SSDs. On it, I use a swapfile. On
my Raspberry Pi machines, and my live bootable USBs, I use ZRAM for
compressed swap in RAM.

> The
> only thing is it has been years since I had to define one in /etc/fstab.
>
> I have a partition on another drive defined as swap partition..
>
> /dev/sda5       380391424 390721535  10330112   4.9G 82 Linux swap / Solaris
>
> if I add this line to my /etc/fstab is it correct?
>
> /dev/sda5       /swap    swap    default 0 0
>
> or does /swap need to be none?

That's right. Swap is not mounted on a mountpoint -- you can't `ls` it
or anything.

Some pointers and samples here:

https://askubuntu.com/questions/33697/how-do-i-add-swap-after-system-installation

> What do I do with the existing /swapfile entry?

Comment it out, and after a reboot, check if the swapfile is still
there and delete it if so.


-- 
Liam Proven – Profile: https://about.me/liamproven
Email: lproven at cix.co.uk – gMail/gTalk/gHangouts: lproven at gmail.com
Twitter/Facebook/LinkedIn/Flickr: lproven – Skype: liamproven
UK: +44 7939-087884 – ČR (+ WhatsApp/Telegram/Signal): +420 702 829 053




More information about the ubuntu-users mailing list