5
~$ blkid
/dev/sda5: UUID="2a5b14e5-ac61-42c5-8240-c8aa144b07b3" TYPE="ext4" 
/dev/sda6: UUID="685a9f14-4680-4620-a498-126f1113a471" TYPE="swap"

~$ sudoedit /etc/fstab
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda5 during installation
UUID=2a5b14e5-ac61-42c5-8240-c8aa144b07b3 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda6 during installation
UUID=685a9f14-4680-4620-a498-126f1113a471 none            swap    sw              0       0

As far as I can see, everything is perfect. But it does not mount on boot. I can do umount -a after booting, and that works. Live sessions also mount the partition automagically. Help?

I have already seen and read the answers to System not mounting swap partition question. It does not apply in my case as the swap entry in fstab is already at the end. Something else is cause the issue here.

Oxwivi
  • 18,499

1 Answers1

6

Don't worry!

  1. Format /dev/sda6 to be a valid swap mkswap /dev/sda6
  2. Activate the swap by swapon /dev/sda6
  3. Additionally modify /etc/fstab to make swap start after every boot. The swap line will probably be already there. You will just need to update UUID received as output of step 1.
αғsнιη
  • 36,350