[CentOS] CentOS 6 and crypttab

Thu Jun 22 20:31:02 UTC 2017
Leon Fauster <leonfauster at googlemail.com>

> Am 22.06.2017 um 21:05 schrieb m.roth at 5-cent.us:
> Folks,
>   I have an issue: I've gotten that drive that I posted about the other
> day encrypted, and things were looking good... until there was a
> problem with another RAID attached to the box, and I wound up having to
> reboot.
>   What had been /dev/sdb came up as /dev/sdc. So... is there any way
> other than using /dev/disk/by-uuid/<uUUID> as the second field in
> /etc/crypttab to deal with this possibility?

Use UUID=xxx

cryptsetup luksUUID /dev/sdcx shows the corresponding ID