Announcement

Collapse
No announcement yet.

Swap Partition

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Swap Partition

    When I open System Settings -> Advanced -> Disk & File Systems the swap partition is shown as disabled. When I try to enable it I get the following error message:

    An error occurred while enabling swap partition a5c9e60b-f319-44d0-a68f-ccdee617d5e2.
    The system reported: swapon: cannot stat a5c9e60b-f319-44d0-a68f-ccdee617d5e2: No such file or directory

    The machine is otherwise working ok. Does anyone know what's going on?

    #2
    Re: Swap Partition

    Check, is there problems with the swap (konsole):
    Code:
    dmesg | grep swap
    or
    Code:
    grep swap /var/log/dmesg
    Here it tells:
    [ 44.207367] Adding 2048276k swap on /dev/sda3. Priority:-1 extents:1 across:2048276k
    What do you have in the fstab (/etc/fstab)?

    Here:
    # swap
    # /dev/sda3
    /dev/sda3 none swap sw 0 0

    Commands:

    man mkswap
    MKSWAP(8) Linux Programmer’s Manual MKSWAP(8)

    NAME
    mkswap - set up a Linux swap area

    SYNOPSIS
    mkswap [-c] [-vN] [-f] [-p PSZ] [-L label] device [size]

    DESCRIPTION
    mkswap sets up a Linux swap area on a device or in a file.

    (After creating the swap area, you need the swapon command to start
    using it. Usually swap areas are listed in /etc/fstab so that they can
    be taken into use at boot time by a swapon -a command in some boot
    script.)
    With my system:
    Code:
    sudo mkswap -c /dev/sda3
    man swapon
    SWAPON(8) Linux Programmer’s Manual SWAPON(8)

    NAME
    swapon, swapoff - enable/disable devices and files for paging and swap‐
    ping

    SYNOPSIS
    /sbin/swapon [-h -V]
    /sbin/swapon -a [-v] [-e]
    /sbin/swapon [-v] [-p priority] specialfile ...
    /sbin/swapon [-s]
    /sbin/swapoff [-h -V]
    /sbin/swapoff -a
    /sbin/swapoff specialfile ...

    DESCRIPTION
    Swapon is used to specify devices on which paging and swapping are to
    take place.
    Here:
    Code:
    sudo swapon -a
    swap ok !

    Link > Swap Partition FAQ
    Before you edit, BACKUP !

    Why there are dead links ?
    1. Thread: Please explain how to access old kubuntu forum posts
    2. Thread: Lost Information

    Comment


      #3
      Re: Swap Partition

      Thanks Rog131. With a combination of your help and the Swap Partition FAQ I managed to work it out. My swap partition is now enabled.

      Comment

      Working...
      X