Web lists-archives.com

Re: Got tired of waiting for suspend/resume (something like that)




On 2018-02-01, Nicolas George <george@xxxxxxxx> wrote:
>
>> Unfortunately my crypttab (which I've never touched or looked at)
>> reveals the following:

>> # <target name> <source device>         <key file>      <options>
>> cryptswap1 /dev/sda5 /dev/urandom swap,cipher=3Daes-cbc-essiv:sha256

>> Which is dangerous because that dev/sda5 gets wiped out at every
>> (re)boot.

> The danger is quite exaggerated, but better eliminate it altogether if
> convenient.
>
>> Still, I'm uncertain what goes into /etc/fstab.

>>    /dev/mapper/swap none swap sw 0 0

Actually, for posterity, that should be

 /dev/mapper/cryptswap1 none swap sw 0 0

cryptswap1 being the crypttab "name".

>
> Indeed, /dev/mapper/swap, since your swap device is named like that in
> crypttab. Although I personally prefer a more explicit name.
>
> Regards,

Thank you.

>   Nicolas George
>

-- 
“True terror is to wake up one morning and discover that your high school class
is running the country.” – Kurt Vonnegut