Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
swap not available

Running Mint 19. Swap is a 4GB partition, shows up in the disks utility as such. It is listed in  fstab as follows:

     # swap was on /dev/sdb3 during installation

     UUID=2e3e5ccb-9055-418c-9b60-3f006eab0659 none            swap    sw              0      0

...but "free" command shows

     quicksilver@harold-G1-Sniper-H6:~$ free
                  total        used        free      shared  buff/cache  available
     Mem:        8026128    2569504      824100      182676    4632524    4970528
     Swap:            0          0          0

Gnome-system-monitor sez "swap not available".

Thoughts? Suggestions?

"A little bit of knowledge is a dangerous thing."

Hi Harold,

I'm no expert but the Mint 19 series no longer has a Swap has a Swap File of shown below...I'm Running Cinnamon 19.1.

bob@bob-B85M-D3H:~$  swapon -s
Filename Type      Size   Used Priority
/swapfile   file    2097148    0      -2

Swap Partitions are no longer needed because you can add more long as you have a 64bit System which most people have now...I have 16GB of Ram installed.

bob@bob-B85M-D3H:~$ free
              total               used            free             shared    buff/cache   available

Mem:   16302048    1554204      13119684      253668    1628160    14210132

Swap:  2097148           0              2097148

As you can see from above no Swap is used or needed...sorry I can't help but it seems the problem is user created if there is one...hopefully someone can help you...good luck.  Undecided
Linux Forever...Windoze Never       [Image: t12701.gif]
thx Bob...

That's odd since I just went with the defaults at the Mint install. But that was a year ago and I didn't really start playing with it until January.

Either way, good information to have.

EDIT 5/8/20

OK well through a combination of Bob's post & google & RTFM this is no longer a mystery.

I am curious, so please spill the beans.  
What did you learn? 
Idea Give a person a fish, and you feed them for a day. Teach a person how to fish, and you feed them for a lifetime. ✝️ Proverbs 4:7 Wisdom is the principal thing; therefore get wisdom: and with all thy getting get understanding.
After reflecting for a bit on the question "what did I learn?", a couple of facts like Mint (and Ubuntu) use swap files as opposed to partitions, or swapon/swapoff commands are a thing.

But what I did was find a good walkthrough. I formatted the swap partition and create a swapfile there. Ive been watching the terminal basics videos on this site with my morning coffee, so as I stepped through creating the swap and getting things configured, I was able to recognize the commands I was using. The examples I was working from were for creating the swapfile in the root directory, so I had to change the paths appropriately.

There wasn't really a lot of new stuff learned, it was more like collating a bunch of facts and then instantiating them.The learning was in the doing. Plus now I have a swap partition with a swap file on it. :P
"A little bit of knowledge is a dangerous thing."

Linux Mint 18.3 came with a Swap Partition which was created by the Installer...

Cinnamon 18.3

bob@bob-B85M-D3H ~ $ swapon -s
Filename   Type     Size   Used    Priority
/dev/sda5 partition 16651260       0 -2 
bob@bob-B85M-D3H ~ $

bob@bob-B85M-D3H ~ $ free -m 
         total    used   free    shared   buff/cache available
Mem: 15920 690   10954     29       4275         14828
Swap: 16260  0    16260
bob@bob-B85M-D3H ~ $

As you can see the Swap Partition took up 16GB of Drive space and was never needed. [Image: smileys-confused-867956.gif]   Now Distros have a Swap File which makes more sense because you can add more Ram.  [Image: smileys-happy-028345.gif]

Here is my 8 yr old 64bit Laptop running an up to date version of Linux Lite (good OS)'ll notice it has a Swap File too.  

Sunday 10 May 2020, 16:33:15

Memory Usage: 413/3721MB (11.10%)

Disk Usage: 12/458GB (3%)

bob  ~  free

             total       used      free       shared   buff/cache    available

Mem: 3810988 422972 2144404  42540    1243612      3115176
Swap: 2097148   0       2097148

Of cause these days you can't do very much with 4GB of Ram (emails or surf the Net etc) but as I said...just add more...especially with Linux Mint Cinnamon as it loves Ram. [Image: smileys-scare-861807.gif]

If I had done what you did...I would backup important files and Re-Install the OS and let the Installer worry about Swap.  [Image: smileys-thumbs-315757.gif]

Linux Forever...Windoze Never       [Image: t12701.gif]

Forum Jump:

Users browsing this thread: 1 Guest(s)