Web lists-archives.com

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




Curt 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=aes-cbc-essiv:sha256
> 
> Which is dangerous because that dev/sda5 gets wiped out at every
> (re)boot.
> 
> curty@einstein:~/tips$  find -L /dev/disk -samefile /dev/sda5
> /dev/disk/by-partuuid/00065379-05
> /dev/disk/by-path/pci-0000:00:11.0-ata-1-part5
> /dev/disk/by-id/wwn-0x50014ee2b0b1534b-part5
> /dev/disk/by-id/ata-WDC_WD15EARS-22MVWB0_WD-WCAZA8328525-part5
> 
> I probably should change my crypttab (as a sane precaution) to:
> 
> swap
> /dev/disk/by-id//dev/disk/by-id/ata-WDC_WD15EARS-22MVWB0_WD-WCAZA8328525-part5
> /dev/urandom   swap,cipher=aes-cbc-essiv:sha256,size=256
> 
> Still, I'm uncertain what goes into /etc/fstab.
> 
> /dev/mapper/swap none swap sw 0 0
> 
> ?

in the above example (crypttab) you could replace /dev/sda5
with /dev/disk/by-id/ata-WDC_WD15EARS-22MVWB0_WD-WCAZA8328525-part5

in fstab however goes whatever is returned by lvm (most probably leave
untouched)

regards