I'm on debian 9

I want to boot from an encrypted root,using a usb key

Editing /etc/crypttab...

cifr /dev/md0  /dev/disk/by-uuid/88D9-A79B:/FILE luks,keyscript=/lib/cryptsetup/scripts/passdev

Reboot..works fine.

Only one problem,systemd stuck with this error,then boot..but I have to wait 1:30 minute!


return this error

dev-disk-by\x2duuid-88D9\x2dA79B:-FILE.device: Job dev-disk-by\x2duuid-88D9\x2dA79B:-FILE.device/start failed with result 'timeout'.

USB key is formatted with vfat

1 Answer 1


Solution found.

The command


Convert the /etc/crypttab in systemd service.

But it add those bad lines wich cause error


So the solution is,after boot run


This create the service in /tmp

/tmp/[email protected]

In my case in luksmd0,in your case can change. Edit the file,remove the two lines Then copy it to /etc/systemd/system And reboot. At reboot the command

systemctl status [email protected]

must return active.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .