[Encrypted] Re: Swap Space Not Activated On Boot
NoOp
glgxg at sbcglobal.net
Thu Jul 3 19:55:33 UTC 2014
On 07/03/2014 11:31 AM, Graham Watkins wrote:
> On 03/07/14 02:01, NoOp wrote:
>>>
>>>
>>> Hi Nils,
>>>
>>> Thanks for your response.
>>>
>>> I think that's fixed it. However, sudo swapon -a produces the following
>>> response:
>>>
>>> Still, at least I now have a fully functioning swap partition. Thanks again.
>>
>> You may not after reboot... especially if you boot with external usb
>> drives attached:
>>
>
> I have but it's not the encrypted one referred to in my fstab.
>
>> <https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/953875>
>> (Encrypted swap no longer mounted at bootup)
>>
>> I finally gave up and just use an unencrypted swap (that and switch to
>> fully encrypted distro environments instead of ecryptfs). The wasted
>> time & effort mucking about with this simply isn't worth it & it seems
>> that Dustin has gone 'walkabout' so who knows when/if it will ever be
>> fixed in Ubuntu?
>>
> Mine is also unencrypted.
>
>> My recommendation is to comment out '/dev/mapper/cryptswap1 none swap sw
>> 0 0' in your /etc/fstab & just move on.
>>
>> and if you keep trying to use encrypted swap you'll likely encounter:
>>
>> <https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/1153661>
>> (The disk drive for /dev/mapper/cryptswap1 is not ready yet or not present)
>>
>> Good luck...
>>
>>
> Yes I've seen something like that on boot up. Didn't know what it was
> all about. As you suggest, I'll comment it out. Does this mean my home
> partition isn't encrypted?
No, your home 'directory/folder' will still be encrypted, only your swap
will not. You can always double check using a terminal with:
$ mount | grep ecryptfs
That should return something along the lines of:
$ /home/<usernamehere>/.Private on /home/<usernamehere> type ecryptfs
(ecryptfs_check_dev_ruid,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs,ecryptfs_sig=9f6e568af7ab0747,ecryptfs_fnek_sig=024cd7646d9d2734)
And to check your swap:
$ sudo blkid | grep swap
That should return something along the lines of:
/dev/sda7: UUID="<string of UUID characters here>" TYPE="swap"
sda7 of course can be sd<a-x><1-9)
If it is encrypted, then it will return something along the lines of:
/dev/mapper/cryptswap1: UUID="<string of UUID characters here>" TYPE="swap"
You can of course just:
$ sudo blkid
and that will show you all at once.
I reckon that there are easier ways, but those are what I've always used.
And to check using a GUI, simply open the 'Disks' utility and you'll be
able to see each partition & disk, minus the UUID's, there.
More information about the ubuntu-users
mailing list