You are not logged in.

#1 2012-02-17 21:01:24

smayer
Member
Registered: 2010-08-07
Posts: 13

crypttab to fast for USB HDDs on boot

Hi,

i have two USB hdds which are encrypted with luks and which I'd like to unlock and mount at boot time. But in some cases crypttab tries to unlock the hdds too soon when the USB drives have not been recognized by the system.... so of course there is no device to unlock at that moment and crypttab fails - so I need to unlock it by hand later.....

My current solution is to delay the unlocking by putting "sleep 5" into /etc/rc.sysinit right before the crypttab unlocking....

Does anybody have a better idea?

Best,
smax

Offline

#2 2012-02-19 19:37:40

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,491

Re: crypttab to fast for USB HDDs on boot

I have not tried, but if the mapper is the problem: dmsetup has options for synchronising with udev.

Offline

Board footer

Powered by FluxBB