Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Encrypted swap not available

  1. #1
    Join Date
    Jun 2010
    Beans
    269

    Exclamation Encrypted swap not available

    after a usual reboot in nautilus i saw a strange 4.1 gb filesystem which could not be mounted. Soon i realized it was the swap, so i opened system monitor and "swap was not available".
    until now i haven’t noticed any differences in performance but i don’t want to wait for a problem from this...

    since i use this computer for everything... please point me to the right direction

  2. #2
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: "swap not available"

    If the only problem is an incorrect or missing UUID, this should fix it:

    Run the following commands:
    Code:
    free -m
    It should show your memory usage. Your swap line should not be all zeros.

    Check for an existing fstab entry and confirm the UUID of the real swap partition:
    Code:
    grep swap /etc/fstab
    sudo blkid -c /dev/null | grep swap
    Are the UUIDs the same in both returns. If not, then you need to edit the fstab file and make sure it agrees with the UUID of the seceond command:
    Code:
    gksu gedit /etc/fstab
    Make the change to the swap line, using the correct UUID, save the file, then run
    Code:
    sudo update-initramfs -uk all
    sudo swapon -a
    If swap mounts properly, no messages will be generated by the command.

    If your system doesn't find a swap partition with the blkid command we'll have to create one.
    New to Wayland.

    Retired.

  3. #3
    Join Date
    Jun 2010
    Beans
    269

    Re: "swap not available"

    Quote Originally Posted by drs305 View Post
    If the only problem is an incorrect or missing UUID, this should fix it:

    Run the following commands:
    Code:
    free -m
    It should show your memory usage. Your swap line should not be all zeros.

    Check for an existing fstab entry and confirm the UUID of the real swap partition:
    Code:
    grep swap /etc/fstab
    sudo blkid -c /dev/null | grep swap
    Are the UUIDs the same in both returns. If not, then you need to edit the fstab file and make sure it agrees with the UUID of the seceond command:
    Code:
    gksu gedit /etc/fstab
    Make the change to the swap line, using the correct UUID, save the file, then run
    Code:
    sudo update-initramfs -uk all
    sudo swapon -a
    If swap mounts properly, no messages will be generated by the command.

    If your system doesn't find a swap partition with the blkid command we'll have to create one.
    free -m:
    Code:
                         total           used       free     shared    buffers     cached
    Mem:          3819            1570       2249          0        102        585
    -/+ buffers/cache:        881       2937
    Swap:            0          0          0
    grep swap /etc/fstab:
    Code:
    # swap was on /dev/sda5 during installation
    #UUID=c7297cbb-fdb4-499a-8a26-2944fbe02051 none            swap    sw              0       0
    /dev/mapper/cryptswap1 none swap sw 0 0
    as a newbe im kind of lost.. could you be a bit more specific, thanks

  4. #4
    Join Date
    Jun 2010
    Beans
    269

    Re: "swap not available"

    giving it a second look my swap line is all zeros...
    what now?

  5. #5
    Join Date
    Jun 2007
    Location
    K-o-T,
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: "swap not available"

    Quote Originally Posted by werty2010 View Post
    giving it a second look my swap line is all zeros...
    what now?
    Follow the rest of the post by drs305 to fix your problem.

    Good Luck
    Hypertension = Take with a pinch of salt
    | Psychocats | Ubuntu Documentation | Howto [Solved] | BBcode list | Brother Website |

  6. #6
    Join Date
    Jun 2010
    Beans
    269

    Re: "swap not available"

    drs305 i followed your instructions

    the output of the second command( grep swap /etc/fstab )
    is exactly the same with this ( gksu gedit /etc/fstab ).

    despite this i followed your instructions and after " sudo swapon -a "
    returned: " swapon: /dev/mapper/cryptswap1: stat failed: No such file or directory "

  7. #7
    Join Date
    Feb 2012
    Location
    Athens/Greece
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: "swap not available"

    Hi ,
    can you post the results of
    Code:
    sudo blkid
    Thanks

  8. #8
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: "swap not available"

    It looks like you might be using a RAID setup (/dev/mapper) and/or an encrypted partition. I'll have to let those familiar with how those interface with swap provide a solution as I have no experience with either. I'll continue to monitor the thread and post if I can provide anything useful.
    New to Wayland.

    Retired.

  9. #9
    Join Date
    Jun 2010
    Beans
    269

    Re: "swap not available"

    Quote Originally Posted by NikTh View Post
    Hi ,
    can you post the results of
    Code:
    sudo blkid
    Thanks
    output of "sudo blkid":
    Code:
    /dev/sda1: UUID="03dc6dc4-69a3-479b-b4b1-e6a7eb10f619" TYPE="ext4" 
    /dev/sda5: TYPE="minix"
    if this is any help, i'm on a laptop
    Last edited by werty2010; August 3rd, 2012 at 02:44 PM.

  10. #10
    Join Date
    Feb 2012
    Location
    Athens/Greece
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: "swap not available"

    Hi ,

    please post the output of
    Code:
    cat /etc/fstab
    cat /etc/lsb-release && uname -r
    Thanks
    Last edited by NikTh; August 3rd, 2012 at 03:11 PM.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •