<p dir="ltr">I've been watching the australian drama The Code on bbc4 . there's quite a lot of linux based command line stuff in it and some nice shots of some gnome type desktops.</p>
<p dir="ltr">Fantastic series too.</p>
<p dir="ltr">Also the main character is someone with aspergers. That may be of interest to some people in this forum possibly.</p>
<p dir="ltr">Forgive my poor grammar as i'm using google voice typing for this message.</p>
<p dir="ltr">Steve Roberts</p>
<div class="gmail_quote">On 18 Oct 2014 13:00,  <<a href="mailto:ubuntu-uk-request@lists.ubuntu.com">ubuntu-uk-request@lists.ubuntu.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send ubuntu-uk mailing list submissions to<br>
        <a href="mailto:ubuntu-uk@lists.ubuntu.com">ubuntu-uk@lists.ubuntu.com</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:ubuntu-uk-request@lists.ubuntu.com">ubuntu-uk-request@lists.ubuntu.com</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:ubuntu-uk-owner@lists.ubuntu.com">ubuntu-uk-owner@lists.ubuntu.com</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of ubuntu-uk digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re:  Swap area not created on install (J Fernyhough)<br>
   2. Re:  Swap area not created on install (Gordon Burgess-Parker)<br>
   3. Re:  Swap area not created on install (J Fernyhough)<br>
   4. Re:  Swap area not created on install (Gordon Burgess-Parker)<br>
   5. Re:  Swap area not created on install (J Fernyhough)<br>
   6. Re:  Swap area not created on install (Gordon Burgess-Parker)<br>
   7. Re:  Swap area not created on install (J Fernyhough)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Fri, 17 Oct 2014 14:39:44 +0100<br>
From: J Fernyhough <<a href="mailto:j.fernyhough@gmail.com">j.fernyhough@gmail.com</a>><br>
To: UK Ubuntu Talk <<a href="mailto:ubuntu-uk@lists.ubuntu.com">ubuntu-uk@lists.ubuntu.com</a>><br>
Subject: Re: [ubuntu-uk] Swap area not created on install<br>
Message-ID:<br>
        <CAAsys0cJU=S34uqJ9jzUoOwZE_o0P67sN=<a href="mailto:EjNDhTzzX78JeL-A@mail.gmail.com">EjNDhTzzX78JeL-A@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
On 17 October 2014 14:26, Gordon Burgess-Parker <<a href="mailto:gordonbp@mail.com">gordonbp@mail.com</a>> wrote:<br>
><br>
> Can anyone tell me what the 1.1 GB partition is, and as presumably I do need<br>
> a Swap area, how do I create one?<br>
><br>
<br>
That's your swap device.<br>
<br>
Check free -m:<br>
<br>
me@pc ~> free -m<br>
             total       used       free     shared    buffers     cached<br>
Mem:          7680       4660       3019        221          3       1141<br>
-/+ buffers/cache:       3515       4164<br>
Swap:         9398          0       9398<br>
<br>
Note the "Swap:" line. If you have that swap is active; if you don't, it's not.<br>
<br>
Check also your /etc/fstab (run e.g. cat /etc/fstab). Mine has a line:<br>
<br>
# swap was on /dev/sdb6 during installation<br>
UUID=a156e2ed-db18-4064-9d6f-9bd310328c80 none            swap    sw<br>
           0       0<br>
<br>
Yours should show as /dev/ubuntu-vg/swap_1. If it's present but not<br>
active, type:<br>
<br>
sudo swapon /dev/ubuntu-vg/swap_1<br>
<br>
This should get it to show as active. If it's not present, add it in.<br>
Two choices:<br>
<br>
1) Find its UUID by running:<br>
<br>
sudo blkid<br>
<br>
Mine shows:<br>
<br>
/dev/sda6: UUID="a156e2ed-db18-4064-9d6f-9bd310328c80" TYPE="swap"<br>
<br>
Then you can use a line similar to my /etc/fstab in your own.<br>
<br>
2) Specify it by /dev instead, e.g.:<br>
<br>
/dev/ubuntu-vg/swap_1   none   swap  sw   0   0<br>
<br>
<br>
J<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Fri, 17 Oct 2014 15:20:01 +0100<br>
From: Gordon Burgess-Parker <<a href="mailto:gordonbp@mail.com">gordonbp@mail.com</a>><br>
To: <a href="mailto:ubuntu-uk@lists.ubuntu.com">ubuntu-uk@lists.ubuntu.com</a><br>
Subject: Re: [ubuntu-uk] Swap area not created on install<br>
Message-ID: <<a href="mailto:54412591.40406@mail.com">54412591.40406@mail.com</a>><br>
Content-Type: text/plain; charset="windows-1252"; Format="flowed"<br>
<br>
On 17/10/14 14:39, J Fernyhough wrote:<br>
><br>
> Check free -m:<br>
><br>
> me@pc ~> free -m<br>
>               total       used       free     shared    buffers     cached<br>
> Mem:          7680       4660       3019        221          3       1141<br>
> -/+ buffers/cache:       3515       4164<br>
> Swap:         9398          0       9398<br>
<br>
That says Swap:   0        0       0<br>
<br>
> Check also your /etc/fstab (run e.g. cat /etc/fstab). Mine has a line:<br>
><br>
> # swap was on /dev/sdb6 during installation<br>
> UUID=a156e2ed-db18-4064-9d6f-9bd310328c80 none            swap    sw<br>
>             0       0<br>
><br>
> Yours should show as /dev/ubuntu-vg/swap_1.<br>
<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<br>
defaults        0       2<br>
/dev/mapper/cryptswap1 none swap sw 0 0<br>
<br>
>   If it's present but not<br>
> active, type:<br>
><br>
> sudo swapon /dev/ubuntu-vg/swap_1<br>
><br>
> This should get it to show as active. If it's not present, add it in.<br>
> Two choices:<br>
><br>
> 1) Find its UUID by running:<br>
><br>
> sudo blkid<br>
><br>
> Mine shows:<br>
><br>
> /dev/sda6: UUID="a156e2ed-db18-4064-9d6f-9bd310328c80" TYPE="swap"<br>
<br>
Output of blkid:<br>
<br>
/dev/sda1: UUID="ba8d370e-f29c-4c18-ae93-650b7fe5f2a2" TYPE="ext2"<br>
<br>
/dev/sda5: UUID="f114109b-288a-432e-85bb-ba6be511ad58" TYPE="crypto_LUKS"<br>
<br>
/dev/mapper/sda5_crypt: UUID="GVodJX-Am7J-fDKW-PWoG-7XBA-LpvG-U3G5NB"<br>
TYPE="LVM2_member"<br>
<br>
/dev/mapper/ubuntu--vg-root: UUID="c0f919a1-e626-44d6-b621-73134eeefda4"<br>
TYPE="ext4"<br>
<br>
<br>
<br>
<br>
><br>
> Then you can use a line similar to my /etc/fstab in your own.<br>
><br>
> 2) Specify it by /dev instead, e.g.:<br>
><br>
> /dev/ubuntu-vg/swap_1   none   swap  sw   0   0<br>
><br>
><br>
> J<br>
><br>
<br>
I'm now confused!<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="https://lists.ubuntu.com/archives/ubuntu-uk/attachments/20141017/d89bdab5/attachment-0001.html" target="_blank">https://lists.ubuntu.com/archives/ubuntu-uk/attachments/20141017/d89bdab5/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Fri, 17 Oct 2014 15:28:21 +0100<br>
From: J Fernyhough <<a href="mailto:j.fernyhough@gmail.com">j.fernyhough@gmail.com</a>><br>
To: UK Ubuntu Talk <<a href="mailto:ubuntu-uk@lists.ubuntu.com">ubuntu-uk@lists.ubuntu.com</a>><br>
Subject: Re: [ubuntu-uk] Swap area not created on install<br>
Message-ID:<br>
        <<a href="mailto:CAAsys0dgWvfpc5qFc5hw72QGDbG0XVup0O1tRS6C7pZr_ZcOLQ@mail.gmail.com">CAAsys0dgWvfpc5qFc5hw72QGDbG0XVup0O1tRS6C7pZr_ZcOLQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
On 17 October 2014 15:20, Gordon Burgess-Parker <<a href="mailto:gordonbp@mail.com">gordonbp@mail.com</a>> wrote:<br>
><br>
> Output of blkid:<br>
><br>
> /dev/sda1: UUID="ba8d370e-f29c-4c18-ae93-650b7fe5f2a2" TYPE="ext2"<br>
> /dev/sda5: UUID="f114109b-288a-432e-85bb-ba6be511ad58" TYPE="crypto_LUKS"<br>
> /dev/mapper/sda5_crypt: UUID="GVodJX-Am7J-fDKW-PWoG-7XBA-LpvG-U3G5NB"<br>
> TYPE="LVM2_member"<br>
> /dev/mapper/ubuntu--vg-root: UUID="c0f919a1-e626-44d6-b621-73134eeefda4"<br>
> TYPE="ext4"<br>
><br>
<br>
Oki, so it doesn't look like it's actually created a swap partition.<br>
What's the output of 'ls /dev/mapper/' ?<br>
<br>
J<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Fri, 17 Oct 2014 15:31:41 +0100<br>
From: Gordon Burgess-Parker <<a href="mailto:gordonbp@mail.com">gordonbp@mail.com</a>><br>
To: <a href="mailto:ubuntu-uk@lists.ubuntu.com">ubuntu-uk@lists.ubuntu.com</a><br>
Subject: Re: [ubuntu-uk] Swap area not created on install<br>
Message-ID: <<a href="mailto:5441284D.2060204@mail.com">5441284D.2060204@mail.com</a>><br>
Content-Type: text/plain; charset="windows-1252"; Format="flowed"<br>
<br>
On 17/10/14 15:28, J Fernyhough wrote:<br>
> On 17 October 2014 15:20, Gordon Burgess-Parker <<a href="mailto:gordonbp@mail.com">gordonbp@mail.com</a>> wrote:<br>
>> Output of blkid:<br>
>><br>
>> /dev/sda1: UUID="ba8d370e-f29c-4c18-ae93-650b7fe5f2a2" TYPE="ext2"<br>
>> /dev/sda5: UUID="f114109b-288a-432e-85bb-ba6be511ad58" TYPE="crypto_LUKS"<br>
>> /dev/mapper/sda5_crypt: UUID="GVodJX-Am7J-fDKW-PWoG-7XBA-LpvG-U3G5NB"<br>
>> TYPE="LVM2_member"<br>
>> /dev/mapper/ubuntu--vg-root: UUID="c0f919a1-e626-44d6-b621-73134eeefda4"<br>
>> TYPE="ext4"<br>
>><br>
> Oki, so it doesn't look like it's actually created a swap partition.<br>
> What's the output of 'ls /dev/mapper/' ?<br>
><br>
> J<br>
><br>
<br>
control sda5_crypt ubuntu--vg-root ubuntu--vg-swap_1<br>
<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="https://lists.ubuntu.com/archives/ubuntu-uk/attachments/20141017/ae4bcc59/attachment-0001.html" target="_blank">https://lists.ubuntu.com/archives/ubuntu-uk/attachments/20141017/ae4bcc59/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Fri, 17 Oct 2014 15:36:16 +0100<br>
From: J Fernyhough <<a href="mailto:j.fernyhough@gmail.com">j.fernyhough@gmail.com</a>><br>
To: UK Ubuntu Talk <<a href="mailto:ubuntu-uk@lists.ubuntu.com">ubuntu-uk@lists.ubuntu.com</a>><br>
Subject: Re: [ubuntu-uk] Swap area not created on install<br>
Message-ID:<br>
        <CAAsys0dT7itWu8gn-c5eQN=<a href="mailto:6yDEvsLFRPX_63ixFHkoRNkg6DA@mail.gmail.com">6yDEvsLFRPX_63ixFHkoRNkg6DA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
On 17 October 2014 15:31, Gordon Burgess-Parker <<a href="mailto:gordonbp@mail.com">gordonbp@mail.com</a>> wrote:<br>
><br>
> control sda5_crypt ubuntu--vg-root ubuntu--vg-swap_1<br>
><br>
<br>
Nice - so the device is present, I reckon it just needs to be formatted.<br>
<br>
sudo mkswap /dev/mapper/ubuntu--vg-swap_1<br>
sudo swapon /dev/mapper/ubuntu--vg-swap_1<br>
<br>
Once it's formatted it should also show up in 'blkid'. After swapon it<br>
should show as active in 'free'.<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Fri, 17 Oct 2014 15:42:59 +0100<br>
From: Gordon Burgess-Parker <<a href="mailto:gordonbp@mail.com">gordonbp@mail.com</a>><br>
To: <a href="mailto:ubuntu-uk@lists.ubuntu.com">ubuntu-uk@lists.ubuntu.com</a><br>
Subject: Re: [ubuntu-uk] Swap area not created on install<br>
Message-ID: <<a href="mailto:54412AF3.5040209@mail.com">54412AF3.5040209@mail.com</a>><br>
Content-Type: text/plain; charset=windows-1252; format=flowed<br>
<br>
On 17/10/14 15:36, J Fernyhough wrote:<br>
> sudo mkswap /dev/mapper/ubuntu--vg-swap_1<br>
> sudo swapon /dev/mapper/ubuntu--vg-swap_1<br>
<br>
Looks like that's it.<br>
Swap is now showing up in System Monitor as available with 1GB of space.<br>
As I'm going to add another GB of RAM shortly, will it expand<br>
automatically, or if not, can I increase the Swap area?<br>
<br>
Thanks for all your help!<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Fri, 17 Oct 2014 18:35:02 +0100<br>
From: J Fernyhough <<a href="mailto:j.fernyhough@gmail.com">j.fernyhough@gmail.com</a>><br>
To: UK Ubuntu Talk <<a href="mailto:ubuntu-uk@lists.ubuntu.com">ubuntu-uk@lists.ubuntu.com</a>><br>
Subject: Re: [ubuntu-uk] Swap area not created on install<br>
Message-ID:<br>
        <CAAsys0d41yMRCxPfi22OKxYj6YcLkC4+9=<a href="mailto:KRs2bfcrqE74GSZQ@mail.gmail.com">KRs2bfcrqE74GSZQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
On 17 October 2014 15:42, Gordon Burgess-Parker <<a href="mailto:gordonbp@mail.com">gordonbp@mail.com</a>> wrote:<br>
> On 17/10/14 15:36, J Fernyhough wrote:<br>
>><br>
>> sudo mkswap /dev/mapper/ubuntu--vg-swap_1<br>
>> sudo swapon /dev/mapper/ubuntu--vg-swap_1<br>
><br>
><br>
> Looks like that's it.<br>
> Swap is now showing up in System Monitor as available with 1GB of space.<br>
><br>
<br>
Just to make sure it's pointed out, you'll need to add it to your<br>
fstab to get it activated on each boot.<br>
<br>
><br>
> As I'm going to add another GB of RAM shortly, will it expand automatically,<br>
> or if not, can I increase the Swap area?<br>
><br>
<br>
It won't expand automatically, and I'm not sure how LVM will respond<br>
to resizing the first (root) group. I remember having problems<br>
shrinking an ext4 partition to allow the volume group to be shrunk,<br>
though you should be fine if you can take the disk offline (e.g. use a<br>
USB live image). So it's possible, but a faff, and with more RAM you<br>
should need swap less. If you're stuck you could create a swap file<br>
instead and do away with the separate partition (I'll leave that as an<br>
exercise for now ;).<br>
<br>
><br>
> Thanks for all your help!<br>
><br>
<br>
More than welcome. ;) I'm glad there was something on this list I<br>
could help with!<br>
<br>
<br>
<br>
------------------------------<br>
<br>
--<br>
ubuntu-uk mailing list<br>
<a href="mailto:ubuntu-uk@lists.ubuntu.com">ubuntu-uk@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk</a><br>
<br>
<br>
End of ubuntu-uk Digest, Vol 114, Issue 14<br>
******************************************<br>
</blockquote></div>