1

I have about 8 different ubuntu systems using different versions of ubuntu/lubuntu/kubuntu/mythbuntu/etc. Some are physical machines, some are virtual. The issue I always have is that upon booting up, it's a 50/50 chance that the swap partition will be mounted.

Some systems use encrypted home directories, some do not. This issue happens on all my systems. I usually have more than enough ram so it's not a major issue, but it would be nice if the swap was to load each time like it should.

This happens on even my fresh 14.04 installs. It even happened on the first boot of my latest install.

Why does this happen so often with ubuntu and how can we fix this? Surely I am not the only one with this issue.

  • If they are all on the same physical machine, are you using the same swap partition for all the *buntus? If so I would try using a file instead of a partition for swapping, especially on the VMs. – AFH Sep 6 '14 at 19:38
  • No, none share a swap. I am not so sure that's a good idea to have multiple running systems share a swap partition. All the systems use the ubuntu default swap setup. – user277244 Sep 6 '14 at 19:42
  • This is the line I see in /etc/fstab --- /dev/mapper/cryptswap1 none swap sw 0 0 --- basically all my systems are the same here – user277244 Sep 6 '14 at 20:06
  • No, not a good idea, but I thought I'd check. I've used a mixture of swap partitions and files over the years and never seen this problem. Is it always the same installations that fail to mount the swap? Does sudo swapon -a work after reboot? I don't suppose there's a noauto entry in /etc/fstab, is there? – AFH Sep 6 '14 at 20:07
  • ok, my main system which is lubuntu 14.04 and was just setup a few days ago has no swap currently. So I just ran sudo swapon -a and it returned: swapon: /dev/mapper/cryptswap1: stat failed: No such file or directory – user277244 Sep 6 '14 at 20:13

Your Answer

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

Browse other questions tagged or ask your own question.