I set up a new Ubuntu Partition a few days ago. Yesterday I installed the Kubuntu-Desktop to replace the Unity thing.
Since I installed the new desktop the Linux-Swap partition won't work anymore and not even recognized as Swap. I don't know how that could happen.
Does anybody of you knows how to fix a problem like that? I understand it has something to do with /etc/fstab
, but don't really know what to do with it.
The Swap Partition is 4GB and was set up during installation of Ubuntu.
If it helps, here is the result of: cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda7 during installation
UUID=345e5bbd-d951-4376-8f4b-724be9d0417b / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda5 during installation
UUID=9669db10-3a55-47cd-8c49-e8e4520ca2d3 /boot ext4 defaults 0 2
# /home was on /dev/sda8 during installation
UUID=38b3f3ac-c96b-4f01-8fcf-eac44c6ed28f /home ext4 defaults 0 2
# swap was on /dev/sda6 during installation
#UUID=6ea517a3-a80a-4acb-bea9-4efea2a71acf none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0
Edit: Since there was a Question regarding: cat /etc/crypttab
cryptswap1 UUID=6ea517a3-a80a-4acb-bea9-4efea2a71acf /dev/urandom swap,cipher=aes-cbc-essiv:sha256
Best Answer
Try to recreate your swap partition as following steps:
Step 1. Format
/dev/sda6
to be a valid swapmkswap /dev/sda6
Step 2. Activate the swap by
swapon /dev/sda6
Step 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 updateUUID
received as output of step 1.For example in your case REMOVE these lines (IF you don't want Encrypted swap partition):
And add this line instead at the end with NEW UUID that you get in step 1:
see here and my answer there