swap inactive after boot <SOLVED>
Posted: Fri Nov 23, 2012 5:05 pm
I was looking in my system's monitor and I noticed that my swap partition was listed as inactive. I searched discussions and figured out how to turn it on manually with(swapon /dev/sda4). This works (at least it shows up in system's manager) but I lose it on reboot. From reading forums I thought the problem was that I needed to edit my fstab.
I have a dual boot macbook with partitions as follows: sda1 efi, sda2 mac os, sda3 lmde, sda4 swap. I've attached a screenshot of gparted to show how this is set up. (By the way, is that normal to have the unallocated space between the partitions?)
cat /etc/fstab
as you can see the swap isn't there.
sudo blkid
I edited fstab to include the following line:
I saved the file and rebooted. I still had to activate swap with command even though my fstab contains the the line I wrote.
Any idea what is wrong?
I have a dual boot macbook with partitions as follows: sda1 efi, sda2 mac os, sda3 lmde, sda4 swap. I've attached a screenshot of gparted to show how this is set up. (By the way, is that normal to have the unallocated space between the partitions?)
cat /etc/fstab
Code: Select all
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda3
UUID=142ecb22-a57e-4cbe-9316-7f31ae317d27 / ext4 rw,errors=remount-ro 0 1
sudo blkid
Code: Select all
/dev/sda1: LABEL="EFI" UUID="70D6-1701" TYPE="vfat"
/dev/sda2: UUID="e15d7451-8196-31ed-bb5b-beb35cad13e4" LABEL="hd" TYPE="hfsplus"
/dev/sda4: UUID="1c41d7bb-a90a-499c-bd11-4de68968709e" TYPE="swap"
/dev/sda3: UUID="142ecb22-a57e-4cbe-9316-7f31ae317d27" TYPE="ext4"
Code: Select all
# /dev/sda4
UUID=1c41d7bb-a90a-499c-bd11-4de68968709e none swap sw 0 0
Any idea what is wrong?