<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 17/10/14 14:39, J Fernyhough wrote:<br>
    <blockquote
cite="mid:CAAsys0cJU=S34uqJ9jzUoOwZE_o0P67sN=EjNDhTzzX78JeL-A@mail.gmail.com"
      type="cite">
      <pre wrap="">

Check free -m:

me@pc ~> free -m
             total       used       free     shared    buffers     cached
Mem:          7680       4660       3019        221          3       1141
-/+ buffers/cache:       3515       4164
Swap:         9398          0       9398</pre>
    </blockquote>
    <br>
    That says Swap:   0        0       0<br>
    <br>
    <blockquote
cite="mid:CAAsys0cJU=S34uqJ9jzUoOwZE_o0P67sN=EjNDhTzzX78JeL-A@mail.gmail.com"
      type="cite">
      <pre wrap="">Check also your /etc/fstab (run e.g. cat /etc/fstab). Mine has a line:

# swap was on /dev/sdb6 during installation
UUID=a156e2ed-db18-4064-9d6f-9bd310328c80 none            swap    sw
           0       0

Yours should show as /dev/ubuntu-vg/swap_1.</pre>
    </blockquote>
    <br>
    The result of cat/etc/fstab  is:<br>
    # /etc/fstab: static file system information.<br>
    #<br>
    # Use 'blkid' to print the universally unique identifier for a<br>
    # device; this may be used with UUID= as a more robust way to name
    devices<br>
    # that works even if disks are added and removed. See fstab(5).<br>
    #<br>
    # <file system> <mount point>   <type> 
    <options>       <dump>  <pass><br>
    /dev/mapper/ubuntu--vg-root /               ext4   
    errors=remount-ro 0       1<br>
    # /boot was on /dev/sda1 during installation<br>
    UUID=ba8d370e-f29c-4c18-ae93-650b7fe5f2a2 /boot           ext2   
    defaults        0       2<br>
    /dev/mapper/cryptswap1 none swap sw 0 0<br>
    <br>
    <blockquote
cite="mid:CAAsys0cJU=S34uqJ9jzUoOwZE_o0P67sN=EjNDhTzzX78JeL-A@mail.gmail.com"
      type="cite">
      <pre wrap=""> If it's present but not
active, type:

sudo swapon /dev/ubuntu-vg/swap_1

This should get it to show as active. If it's not present, add it in.
Two choices:

1) Find its UUID by running:

sudo blkid

Mine shows:

/dev/sda6: UUID="a156e2ed-db18-4064-9d6f-9bd310328c80" TYPE="swap"</pre>
    </blockquote>
    <br>
    Output of blkid:<br>
    <meta name="qrichtext" content="1">
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--StartFragment-->/dev/sda1:
      UUID="ba8d370e-f29c-4c18-ae93-650b7fe5f2a2" TYPE="ext2" </p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;">/dev/sda5:
      UUID="f114109b-288a-432e-85bb-ba6be511ad58" TYPE="crypto_LUKS" </p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;">/dev/mapper/sda5_crypt:
      UUID="GVodJX-Am7J-fDKW-PWoG-7XBA-LpvG-U3G5NB" TYPE="LVM2_member" </p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
      margin-right:0px; -qt-block-indent:0; text-indent:0px;">/dev/mapper/ubuntu--vg-root:
      UUID="c0f919a1-e626-44d6-b621-73134eeefda4" TYPE="ext4"
      <!--EndFragment--></p>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
    <style type="text/css">
p, li { white-space: pre-wrap; }
</style><br>
    <br>
    <br>
    <blockquote
cite="mid:CAAsys0cJU=S34uqJ9jzUoOwZE_o0P67sN=EjNDhTzzX78JeL-A@mail.gmail.com"
      type="cite">
      <pre wrap="">

Then you can use a line similar to my /etc/fstab in your own.

2) Specify it by /dev instead, e.g.:

/dev/ubuntu-vg/swap_1   none   swap  sw   0   0


J

</pre>
    </blockquote>
    <br>
    I'm now confused!<br>
  </body>
</html>